Autogenerated update (2020-05-07)
Delete: - commentanalyzer_v1alpha1 - osconfig_v1beta Update: - adexchangebuyer2_v2beta1 - androidenterprise_v1 - androidpublisher_v1 - androidpublisher_v1_1 - androidpublisher_v2 - androidpublisher_v3 - bigquery_v2 - bigqueryconnection_v1beta1 - bigqueryreservation_v1 - bigqueryreservation_v1beta1 - binaryauthorization_v1 - binaryauthorization_v1beta1 - calendar_v3 - cloudasset_v1p1beta1 - cloudbilling_v1 - cloudbuild_v1 - clouddebugger_v2 - cloudidentity_v1beta1 - cloudiot_v1 - cloudresourcemanager_v1 - cloudresourcemanager_v1beta1 - cloudresourcemanager_v2 - cloudresourcemanager_v2beta1 - cloudscheduler_v1 - cloudscheduler_v1beta1 - cloudsearch_v1 - cloudshell_v1alpha1 - cloudtasks_v2 - cloudtasks_v2beta2 - cloudtasks_v2beta3 - cloudtrace_v2 - composer_v1beta1 - compute_alpha - compute_beta - compute_v1 - container_v1 - container_v1beta1 - containeranalysis_v1alpha1 - containeranalysis_v1beta1 - content_v2 - content_v2_1 - customsearch_v1 - datacatalog_v1beta1 - dataproc_v1 - dataproc_v1beta2 - dialogflow_v2 - dialogflow_v2beta1 - displayvideo_v1 - dlp_v2 - drive_v2 - drive_v3 - driveactivity_v2 - file_v1 - file_v1beta1 - firebase_v1beta1 - firebasehosting_v1beta1 - games_configuration_v1configuration - games_management_v1management - games_v1 - gameservices_v1beta - healthcare_v1 - healthcare_v1beta1 - homegraph_v1 - iamcredentials_v1 - managedidentities_v1 - managedidentities_v1alpha1 - managedidentities_v1beta1 - memcache_v1beta2 - ml_v1 - monitoring_v3 - people_v1 - policytroubleshooter_v1 - policytroubleshooter_v1beta - prod_tt_sasportal_v1alpha1 - remotebuildexecution_v1 - remotebuildexecution_v1alpha - remotebuildexecution_v2 - run_v1 - run_v1alpha1 - runtimeconfig_v1beta1 - sasportal_v1alpha1 - script_v1 - secretmanager_v1 - secretmanager_v1beta1 - serviceconsumermanagement_v1 - serviceconsumermanagement_v1beta1 - servicecontrol_v1 - servicedirectory_v1beta1 - servicemanagement_v1 - servicenetworking_v1 - servicenetworking_v1beta - serviceusage_v1 - serviceusage_v1beta1 - sheets_v4 - sourcerepo_v1 - speech_v1 - speech_v1p1beta1 - storage_v1 - tagmanager_v1 - tagmanager_v2 - testing_v1 - toolresults_v1beta3 - vault_v1 - videointelligence_v1 - videointelligence_v1beta2 - videointelligence_v1p1beta1 - videointelligence_v1p2beta1 - videointelligence_v1p3beta1 - youtube_partner_v1 - youtube_v3
This commit is contained in:
parent
334a41b6f9
commit
2aab01171a
|
@ -27,7 +27,7 @@ module Google
|
|||
# @see https://developers.google.com/authorized-buyers/apis/reference/rest/
|
||||
module Adexchangebuyer2V2beta1
|
||||
VERSION = 'V2beta1'
|
||||
REVISION = '20200402'
|
||||
REVISION = '20200506'
|
||||
|
||||
# Manage your Ad Exchange buyer account configuration
|
||||
AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'
|
||||
|
|
|
@ -273,6 +273,12 @@ module Google
|
|||
# @return [Google::Apis::Adexchangebuyer2V2beta1::MetricValue]
|
||||
attr_accessor :measurable_impressions
|
||||
|
||||
# A metric value, with an expected value and a variance; represents a count
|
||||
# that may be either exact or estimated (i.e. when sampled).
|
||||
# Corresponds to the JSON property `reachedQueries`
|
||||
# @return [Google::Apis::Adexchangebuyer2V2beta1::MetricValue]
|
||||
attr_accessor :reached_queries
|
||||
|
||||
# A response may include multiple rows, breaking down along various dimensions.
|
||||
# Encapsulates the values of all dimensions for a given row.
|
||||
# Corresponds to the JSON property `rowDimensions`
|
||||
|
@ -296,6 +302,7 @@ module Google
|
|||
@billed_impressions = args[:billed_impressions] if args.key?(:billed_impressions)
|
||||
@impressions_won = args[:impressions_won] if args.key?(:impressions_won)
|
||||
@measurable_impressions = args[:measurable_impressions] if args.key?(:measurable_impressions)
|
||||
@reached_queries = args[:reached_queries] if args.key?(:reached_queries)
|
||||
@row_dimensions = args[:row_dimensions] if args.key?(:row_dimensions)
|
||||
@viewable_impressions = args[:viewable_impressions] if args.key?(:viewable_impressions)
|
||||
end
|
||||
|
@ -3456,7 +3463,8 @@ module Google
|
|||
|
||||
# Note: this resource requires whitelisting for access. Please contact your
|
||||
# account manager for access to Marketplace resources.
|
||||
# Represents a publisher profile in Marketplace.
|
||||
# Represents a publisher profile
|
||||
# (https://support.google.com/admanager/answer/6035806?hl=en) in Marketplace.
|
||||
# All fields are read only. All string fields are free-form text entered by the
|
||||
# publisher unless noted otherwise.
|
||||
class PublisherProfile
|
||||
|
@ -3498,6 +3506,18 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :google_plus_url
|
||||
|
||||
# Indicates if this profile is the parent profile of the seller. A parent
|
||||
# profile represents all the inventory from the seller, as opposed to child
|
||||
# profile that is created to brand a portion of inventory. One seller should
|
||||
# have only one parent publisher profile, and can have multiple child
|
||||
# profiles. Publisher profiles for the same seller will have same value of
|
||||
# field google.ads.adexchange.buyer.v2beta1.PublisherProfile.seller.
|
||||
# See https://support.google.com/admanager/answer/6035806?hl=en for details.
|
||||
# Corresponds to the JSON property `isParent`
|
||||
# @return [Boolean]
|
||||
attr_accessor :is_parent
|
||||
alias_method :is_parent?, :is_parent
|
||||
|
||||
# A Google public URL to the logo for this publisher profile. The logo is
|
||||
# stored as a PNG, JPG, or GIF image.
|
||||
# Corresponds to the JSON property `logoUrl`
|
||||
|
@ -3560,6 +3580,7 @@ module Google
|
|||
@display_name = args[:display_name] if args.key?(:display_name)
|
||||
@domains = args[:domains] if args.key?(:domains)
|
||||
@google_plus_url = args[:google_plus_url] if args.key?(:google_plus_url)
|
||||
@is_parent = args[:is_parent] if args.key?(:is_parent)
|
||||
@logo_url = args[:logo_url] if args.key?(:logo_url)
|
||||
@media_kit_url = args[:media_kit_url] if args.key?(:media_kit_url)
|
||||
@overview = args[:overview] if args.key?(:overview)
|
||||
|
|
|
@ -729,6 +729,8 @@ module Google
|
|||
|
||||
property :measurable_impressions, as: 'measurableImpressions', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation
|
||||
|
||||
property :reached_queries, as: 'reachedQueries', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation
|
||||
|
||||
property :row_dimensions, as: 'rowDimensions', class: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions, decorator: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions::Representation
|
||||
|
||||
property :viewable_impressions, as: 'viewableImpressions', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation
|
||||
|
@ -1585,6 +1587,7 @@ module Google
|
|||
property :display_name, as: 'displayName'
|
||||
collection :domains, as: 'domains'
|
||||
property :google_plus_url, as: 'googlePlusUrl'
|
||||
property :is_parent, as: 'isParent'
|
||||
property :logo_url, as: 'logoUrl'
|
||||
property :media_kit_url, as: 'mediaKitUrl'
|
||||
property :overview, as: 'overview'
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/android/work/play/emm-api
|
||||
module AndroidenterpriseV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20200315'
|
||||
REVISION = '20200427'
|
||||
|
||||
# Manage corporate Android devices
|
||||
AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise'
|
||||
|
|
|
@ -1971,7 +1971,8 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :product_availability_policy
|
||||
|
||||
# The list of product policies.
|
||||
# The list of product policies. The productAvailabilityPolicy needs to be set to
|
||||
# WHITELIST or ALL for the product policies to be applied.
|
||||
# Corresponds to the JSON property `productPolicy`
|
||||
# @return [Array<Google::Apis::AndroidenterpriseV1::ProductPolicy>]
|
||||
attr_accessor :product_policy
|
||||
|
|
|
@ -25,10 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/android-publisher
|
||||
module AndroidpublisherV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20181009'
|
||||
|
||||
# View and manage your Google Play Developer account
|
||||
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
|
||||
REVISION = '20200428'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -21,47 +21,6 @@ require 'google/apis/errors'
|
|||
module Google
|
||||
module Apis
|
||||
module AndroidpublisherV1
|
||||
|
||||
# A SubscriptionPurchase resource indicates the status of a user's subscription
|
||||
# purchase.
|
||||
class SubscriptionPurchase
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Whether the subscription will automatically be renewed when it reaches its
|
||||
# current expiry time.
|
||||
# Corresponds to the JSON property `autoRenewing`
|
||||
# @return [Boolean]
|
||||
attr_accessor :auto_renewing
|
||||
alias_method :auto_renewing?, :auto_renewing
|
||||
|
||||
# Time at which the subscription was granted, in milliseconds since the Epoch.
|
||||
# Corresponds to the JSON property `initiationTimestampMsec`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :initiation_timestamp_msec
|
||||
|
||||
# This kind represents a subscriptionPurchase object in the androidpublisher
|
||||
# service.
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# Time at which the subscription will expire, in milliseconds since the Epoch.
|
||||
# Corresponds to the JSON property `validUntilTimestampMsec`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :valid_until_timestamp_msec
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@auto_renewing = args[:auto_renewing] if args.key?(:auto_renewing)
|
||||
@initiation_timestamp_msec = args[:initiation_timestamp_msec] if args.key?(:initiation_timestamp_msec)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@valid_until_timestamp_msec = args[:valid_until_timestamp_msec] if args.key?(:valid_until_timestamp_msec)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -21,22 +21,6 @@ require 'google/apis/errors'
|
|||
module Google
|
||||
module Apis
|
||||
module AndroidpublisherV1
|
||||
|
||||
class SubscriptionPurchase
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SubscriptionPurchase
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :auto_renewing, as: 'autoRenewing'
|
||||
property :initiation_timestamp_msec, :numeric_string => true, as: 'initiationTimestampMsec'
|
||||
property :kind, as: 'kind'
|
||||
property :valid_until_timestamp_msec, :numeric_string => true, as: 'validUntilTimestampMsec'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -47,89 +47,9 @@ module Google
|
|||
attr_accessor :user_ip
|
||||
|
||||
def initialize
|
||||
super('https://www.googleapis.com/', 'androidpublisher/v1/applications/')
|
||||
super('https://www.googleapis.com/', '')
|
||||
@batch_path = 'batch/androidpublisher/v1'
|
||||
end
|
||||
|
||||
# Cancels a user's subscription purchase. The subscription remains valid until
|
||||
# its expiration time.
|
||||
# @param [String] package_name
|
||||
# The package name of the application for which this subscription was purchased (
|
||||
# for example, 'com.some.thing').
|
||||
# @param [String] subscription_id
|
||||
# The purchased subscription ID (for example, 'monthly001').
|
||||
# @param [String] token
|
||||
# The token provided to the user's device when the subscription was purchased.
|
||||
# @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 [NilClass] No result returned for this method
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [void]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def cancel_purchase(package_name, subscription_id, token, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, '{packageName}/subscriptions/{subscriptionId}/purchases/{token}/cancel', options)
|
||||
command.params['packageName'] = package_name unless package_name.nil?
|
||||
command.params['subscriptionId'] = subscription_id unless subscription_id.nil?
|
||||
command.params['token'] = token unless token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Checks whether a user's subscription purchase is valid and returns its expiry
|
||||
# time.
|
||||
# @param [String] package_name
|
||||
# The package name of the application for which this subscription was purchased (
|
||||
# for example, 'com.some.thing').
|
||||
# @param [String] subscription_id
|
||||
# The purchased subscription ID (for example, 'monthly001').
|
||||
# @param [String] token
|
||||
# The token provided to the user's device when the subscription was purchased.
|
||||
# @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::AndroidpublisherV1::SubscriptionPurchase] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::AndroidpublisherV1::SubscriptionPurchase]
|
||||
#
|
||||
# @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_purchase(package_name, subscription_id, token, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, '{packageName}/subscriptions/{subscriptionId}/purchases/{token}', options)
|
||||
command.response_representation = Google::Apis::AndroidpublisherV1::SubscriptionPurchase::Representation
|
||||
command.response_class = Google::Apis::AndroidpublisherV1::SubscriptionPurchase
|
||||
command.params['packageName'] = package_name unless package_name.nil?
|
||||
command.params['subscriptionId'] = subscription_id unless subscription_id.nil?
|
||||
command.params['token'] = token unless token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/android-publisher
|
||||
module AndroidpublisherV1_1
|
||||
VERSION = 'V1_1'
|
||||
REVISION = '20190618'
|
||||
REVISION = '20200428'
|
||||
|
||||
# View and manage your Google Play Developer account
|
||||
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
|
||||
|
|
|
@ -89,47 +89,6 @@ module Google
|
|||
@purchase_type = args[:purchase_type] if args.key?(:purchase_type)
|
||||
end
|
||||
end
|
||||
|
||||
# A SubscriptionPurchase resource indicates the status of a user's subscription
|
||||
# purchase.
|
||||
class SubscriptionPurchase
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Whether the subscription will automatically be renewed when it reaches its
|
||||
# current expiry time.
|
||||
# Corresponds to the JSON property `autoRenewing`
|
||||
# @return [Boolean]
|
||||
attr_accessor :auto_renewing
|
||||
alias_method :auto_renewing?, :auto_renewing
|
||||
|
||||
# Time at which the subscription was granted, in milliseconds since the Epoch.
|
||||
# Corresponds to the JSON property `initiationTimestampMsec`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :initiation_timestamp_msec
|
||||
|
||||
# This kind represents a subscriptionPurchase object in the androidpublisher
|
||||
# service.
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# Time at which the subscription will expire, in milliseconds since the Epoch.
|
||||
# Corresponds to the JSON property `validUntilTimestampMsec`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :valid_until_timestamp_msec
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@auto_renewing = args[:auto_renewing] if args.key?(:auto_renewing)
|
||||
@initiation_timestamp_msec = args[:initiation_timestamp_msec] if args.key?(:initiation_timestamp_msec)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@valid_until_timestamp_msec = args[:valid_until_timestamp_msec] if args.key?(:valid_until_timestamp_msec)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -28,12 +28,6 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SubscriptionPurchase
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class InappPurchase
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -46,16 +40,6 @@ module Google
|
|||
property :purchase_type, as: 'purchaseType'
|
||||
end
|
||||
end
|
||||
|
||||
class SubscriptionPurchase
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :auto_renewing, as: 'autoRenewing'
|
||||
property :initiation_timestamp_msec, :numeric_string => true, as: 'initiationTimestampMsec'
|
||||
property :kind, as: 'kind'
|
||||
property :valid_until_timestamp_msec, :numeric_string => true, as: 'validUntilTimestampMsec'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -90,86 +90,6 @@ module Google
|
|||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Cancels a user's subscription purchase. The subscription remains valid until
|
||||
# its expiration time.
|
||||
# @param [String] package_name
|
||||
# The package name of the application for which this subscription was purchased (
|
||||
# for example, 'com.some.thing').
|
||||
# @param [String] subscription_id
|
||||
# The purchased subscription ID (for example, 'monthly001').
|
||||
# @param [String] token
|
||||
# The token provided to the user's device when the subscription was purchased.
|
||||
# @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 [NilClass] No result returned for this method
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [void]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def cancel_purchase(package_name, subscription_id, token, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, '{packageName}/subscriptions/{subscriptionId}/purchases/{token}/cancel', options)
|
||||
command.params['packageName'] = package_name unless package_name.nil?
|
||||
command.params['subscriptionId'] = subscription_id unless subscription_id.nil?
|
||||
command.params['token'] = token unless token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Checks whether a user's subscription purchase is valid and returns its expiry
|
||||
# time.
|
||||
# @param [String] package_name
|
||||
# The package name of the application for which this subscription was purchased (
|
||||
# for example, 'com.some.thing').
|
||||
# @param [String] subscription_id
|
||||
# The purchased subscription ID (for example, 'monthly001').
|
||||
# @param [String] token
|
||||
# The token provided to the user's device when the subscription was purchased.
|
||||
# @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::AndroidpublisherV1_1::SubscriptionPurchase] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::AndroidpublisherV1_1::SubscriptionPurchase]
|
||||
#
|
||||
# @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_purchase(package_name, subscription_id, token, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, '{packageName}/subscriptions/{subscriptionId}/purchases/{token}', options)
|
||||
command.response_representation = Google::Apis::AndroidpublisherV1_1::SubscriptionPurchase::Representation
|
||||
command.response_class = Google::Apis::AndroidpublisherV1_1::SubscriptionPurchase
|
||||
command.params['packageName'] = package_name unless package_name.nil?
|
||||
command.params['subscriptionId'] = subscription_id unless subscription_id.nil?
|
||||
command.params['token'] = token unless token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/android-publisher
|
||||
module AndroidpublisherV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20200331'
|
||||
REVISION = '20200428'
|
||||
|
||||
# View and manage your Google Play Developer account
|
||||
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -22,300 +22,24 @@ module Google
|
|||
module Apis
|
||||
module AndroidpublisherV2
|
||||
|
||||
class Apk
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ApkBinary
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ApkListing
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListApkListingsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ApksAddExternallyHostedRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ApksAddExternallyHostedResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListApksResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AppDetails
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AppEdit
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Bundle
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class BundlesListResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Comment
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class DeobfuscationFile
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class DeobfuscationFilesUploadResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class DeveloperComment
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class DeviceMetadata
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ExpansionFile
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class UploadExpansionFilesResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ExternallyHostedApk
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ExternallyHostedApkUsesPermission
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Image
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class DeleteAllImagesResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListImagesResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class UploadImagesResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class InAppProduct
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class InAppProductListing
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListInAppProductsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Listing
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListListingsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class PageInfo
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Price
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ProductPurchase
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Review
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ReviewReplyResult
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ReviewsListResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ReviewsReplyRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ReviewsReplyResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SubscriptionCancelSurveyResult
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SubscriptionDeferralInfo
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SubscriptionPriceChange
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SubscriptionPurchase
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class DeferSubscriptionPurchasesRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class DeferSubscriptionPurchasesResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Testers
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Timestamp
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TokenPagination
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Track
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListTracksResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class UserComment
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class VoidedPurchase
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -328,293 +52,6 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Apk
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :binary, as: 'binary', class: Google::Apis::AndroidpublisherV2::ApkBinary, decorator: Google::Apis::AndroidpublisherV2::ApkBinary::Representation
|
||||
|
||||
property :version_code, as: 'versionCode'
|
||||
end
|
||||
end
|
||||
|
||||
class ApkBinary
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :sha1, as: 'sha1'
|
||||
property :sha256, as: 'sha256'
|
||||
end
|
||||
end
|
||||
|
||||
class ApkListing
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :language, as: 'language'
|
||||
property :recent_changes, as: 'recentChanges'
|
||||
end
|
||||
end
|
||||
|
||||
class ListApkListingsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :kind, as: 'kind'
|
||||
collection :listings, as: 'listings', class: Google::Apis::AndroidpublisherV2::ApkListing, decorator: Google::Apis::AndroidpublisherV2::ApkListing::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class ApksAddExternallyHostedRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :externally_hosted_apk, as: 'externallyHostedApk', class: Google::Apis::AndroidpublisherV2::ExternallyHostedApk, decorator: Google::Apis::AndroidpublisherV2::ExternallyHostedApk::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class ApksAddExternallyHostedResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :externally_hosted_apk, as: 'externallyHostedApk', class: Google::Apis::AndroidpublisherV2::ExternallyHostedApk, decorator: Google::Apis::AndroidpublisherV2::ExternallyHostedApk::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class ListApksResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :apks, as: 'apks', class: Google::Apis::AndroidpublisherV2::Apk, decorator: Google::Apis::AndroidpublisherV2::Apk::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
end
|
||||
end
|
||||
|
||||
class AppDetails
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :contact_email, as: 'contactEmail'
|
||||
property :contact_phone, as: 'contactPhone'
|
||||
property :contact_website, as: 'contactWebsite'
|
||||
property :default_language, as: 'defaultLanguage'
|
||||
end
|
||||
end
|
||||
|
||||
class AppEdit
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :expiry_time_seconds, as: 'expiryTimeSeconds'
|
||||
property :id, as: 'id'
|
||||
end
|
||||
end
|
||||
|
||||
class Bundle
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :sha1, as: 'sha1'
|
||||
property :sha256, as: 'sha256'
|
||||
property :version_code, as: 'versionCode'
|
||||
end
|
||||
end
|
||||
|
||||
class BundlesListResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :bundles, as: 'bundles', class: Google::Apis::AndroidpublisherV2::Bundle, decorator: Google::Apis::AndroidpublisherV2::Bundle::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
end
|
||||
end
|
||||
|
||||
class Comment
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :developer_comment, as: 'developerComment', class: Google::Apis::AndroidpublisherV2::DeveloperComment, decorator: Google::Apis::AndroidpublisherV2::DeveloperComment::Representation
|
||||
|
||||
property :user_comment, as: 'userComment', class: Google::Apis::AndroidpublisherV2::UserComment, decorator: Google::Apis::AndroidpublisherV2::UserComment::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class DeobfuscationFile
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :symbol_type, as: 'symbolType'
|
||||
end
|
||||
end
|
||||
|
||||
class DeobfuscationFilesUploadResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :deobfuscation_file, as: 'deobfuscationFile', class: Google::Apis::AndroidpublisherV2::DeobfuscationFile, decorator: Google::Apis::AndroidpublisherV2::DeobfuscationFile::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class DeveloperComment
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :last_modified, as: 'lastModified', class: Google::Apis::AndroidpublisherV2::Timestamp, decorator: Google::Apis::AndroidpublisherV2::Timestamp::Representation
|
||||
|
||||
property :text, as: 'text'
|
||||
end
|
||||
end
|
||||
|
||||
class DeviceMetadata
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :cpu_make, as: 'cpuMake'
|
||||
property :cpu_model, as: 'cpuModel'
|
||||
property :device_class, as: 'deviceClass'
|
||||
property :gl_es_version, as: 'glEsVersion'
|
||||
property :manufacturer, as: 'manufacturer'
|
||||
property :native_platform, as: 'nativePlatform'
|
||||
property :product_name, as: 'productName'
|
||||
property :ram_mb, as: 'ramMb'
|
||||
property :screen_density_dpi, as: 'screenDensityDpi'
|
||||
property :screen_height_px, as: 'screenHeightPx'
|
||||
property :screen_width_px, as: 'screenWidthPx'
|
||||
end
|
||||
end
|
||||
|
||||
class ExpansionFile
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :file_size, :numeric_string => true, as: 'fileSize'
|
||||
property :references_version, as: 'referencesVersion'
|
||||
end
|
||||
end
|
||||
|
||||
class UploadExpansionFilesResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :expansion_file, as: 'expansionFile', class: Google::Apis::AndroidpublisherV2::ExpansionFile, decorator: Google::Apis::AndroidpublisherV2::ExpansionFile::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class ExternallyHostedApk
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :application_label, as: 'applicationLabel'
|
||||
collection :certificate_base64s, as: 'certificateBase64s'
|
||||
property :externally_hosted_url, as: 'externallyHostedUrl'
|
||||
property :file_sha1_base64, as: 'fileSha1Base64'
|
||||
property :file_sha256_base64, as: 'fileSha256Base64'
|
||||
property :file_size, :numeric_string => true, as: 'fileSize'
|
||||
property :icon_base64, as: 'iconBase64'
|
||||
property :maximum_sdk, as: 'maximumSdk'
|
||||
property :minimum_sdk, as: 'minimumSdk'
|
||||
collection :native_codes, as: 'nativeCodes'
|
||||
property :package_name, as: 'packageName'
|
||||
collection :uses_features, as: 'usesFeatures'
|
||||
collection :uses_permissions, as: 'usesPermissions', class: Google::Apis::AndroidpublisherV2::ExternallyHostedApkUsesPermission, decorator: Google::Apis::AndroidpublisherV2::ExternallyHostedApkUsesPermission::Representation
|
||||
|
||||
property :version_code, as: 'versionCode'
|
||||
property :version_name, as: 'versionName'
|
||||
end
|
||||
end
|
||||
|
||||
class ExternallyHostedApkUsesPermission
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :max_sdk_version, as: 'maxSdkVersion'
|
||||
property :name, as: 'name'
|
||||
end
|
||||
end
|
||||
|
||||
class Image
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :id, as: 'id'
|
||||
property :sha1, as: 'sha1'
|
||||
property :sha256, as: 'sha256'
|
||||
property :url, as: 'url'
|
||||
end
|
||||
end
|
||||
|
||||
class DeleteAllImagesResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :deleted, as: 'deleted', class: Google::Apis::AndroidpublisherV2::Image, decorator: Google::Apis::AndroidpublisherV2::Image::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class ListImagesResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :images, as: 'images', class: Google::Apis::AndroidpublisherV2::Image, decorator: Google::Apis::AndroidpublisherV2::Image::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class UploadImagesResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :image, as: 'image', class: Google::Apis::AndroidpublisherV2::Image, decorator: Google::Apis::AndroidpublisherV2::Image::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class InAppProduct
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :default_language, as: 'defaultLanguage'
|
||||
property :default_price, as: 'defaultPrice', class: Google::Apis::AndroidpublisherV2::Price, decorator: Google::Apis::AndroidpublisherV2::Price::Representation
|
||||
|
||||
property :grace_period, as: 'gracePeriod'
|
||||
hash :listings, as: 'listings', class: Google::Apis::AndroidpublisherV2::InAppProductListing, decorator: Google::Apis::AndroidpublisherV2::InAppProductListing::Representation
|
||||
|
||||
property :package_name, as: 'packageName'
|
||||
hash :prices, as: 'prices', class: Google::Apis::AndroidpublisherV2::Price, decorator: Google::Apis::AndroidpublisherV2::Price::Representation
|
||||
|
||||
property :purchase_type, as: 'purchaseType'
|
||||
property :sku, as: 'sku'
|
||||
property :status, as: 'status'
|
||||
property :subscription_period, as: 'subscriptionPeriod'
|
||||
property :trial_period, as: 'trialPeriod'
|
||||
end
|
||||
end
|
||||
|
||||
class InAppProductListing
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :description, as: 'description'
|
||||
property :title, as: 'title'
|
||||
end
|
||||
end
|
||||
|
||||
class ListInAppProductsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :inappproduct, as: 'inappproduct', class: Google::Apis::AndroidpublisherV2::InAppProduct, decorator: Google::Apis::AndroidpublisherV2::InAppProduct::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
property :page_info, as: 'pageInfo', class: Google::Apis::AndroidpublisherV2::PageInfo, decorator: Google::Apis::AndroidpublisherV2::PageInfo::Representation
|
||||
|
||||
property :token_pagination, as: 'tokenPagination', class: Google::Apis::AndroidpublisherV2::TokenPagination, decorator: Google::Apis::AndroidpublisherV2::TokenPagination::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Listing
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :full_description, as: 'fullDescription'
|
||||
property :language, as: 'language'
|
||||
property :short_description, as: 'shortDescription'
|
||||
property :title, as: 'title'
|
||||
property :video, as: 'video'
|
||||
end
|
||||
end
|
||||
|
||||
class ListListingsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :kind, as: 'kind'
|
||||
collection :listings, as: 'listings', class: Google::Apis::AndroidpublisherV2::Listing, decorator: Google::Apis::AndroidpublisherV2::Listing::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class PageInfo
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -624,14 +61,6 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class Price
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :currency, as: 'currency'
|
||||
property :price_micros, as: 'priceMicros'
|
||||
end
|
||||
end
|
||||
|
||||
class ProductPurchase
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -645,136 +74,6 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class Review
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :author_name, as: 'authorName'
|
||||
collection :comments, as: 'comments', class: Google::Apis::AndroidpublisherV2::Comment, decorator: Google::Apis::AndroidpublisherV2::Comment::Representation
|
||||
|
||||
property :review_id, as: 'reviewId'
|
||||
end
|
||||
end
|
||||
|
||||
class ReviewReplyResult
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :last_edited, as: 'lastEdited', class: Google::Apis::AndroidpublisherV2::Timestamp, decorator: Google::Apis::AndroidpublisherV2::Timestamp::Representation
|
||||
|
||||
property :reply_text, as: 'replyText'
|
||||
end
|
||||
end
|
||||
|
||||
class ReviewsListResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :page_info, as: 'pageInfo', class: Google::Apis::AndroidpublisherV2::PageInfo, decorator: Google::Apis::AndroidpublisherV2::PageInfo::Representation
|
||||
|
||||
collection :reviews, as: 'reviews', class: Google::Apis::AndroidpublisherV2::Review, decorator: Google::Apis::AndroidpublisherV2::Review::Representation
|
||||
|
||||
property :token_pagination, as: 'tokenPagination', class: Google::Apis::AndroidpublisherV2::TokenPagination, decorator: Google::Apis::AndroidpublisherV2::TokenPagination::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class ReviewsReplyRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :reply_text, as: 'replyText'
|
||||
end
|
||||
end
|
||||
|
||||
class ReviewsReplyResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :result, as: 'result', class: Google::Apis::AndroidpublisherV2::ReviewReplyResult, decorator: Google::Apis::AndroidpublisherV2::ReviewReplyResult::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class SubscriptionCancelSurveyResult
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :cancel_survey_reason, as: 'cancelSurveyReason'
|
||||
property :user_input_cancel_reason, as: 'userInputCancelReason'
|
||||
end
|
||||
end
|
||||
|
||||
class SubscriptionDeferralInfo
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :desired_expiry_time_millis, :numeric_string => true, as: 'desiredExpiryTimeMillis'
|
||||
property :expected_expiry_time_millis, :numeric_string => true, as: 'expectedExpiryTimeMillis'
|
||||
end
|
||||
end
|
||||
|
||||
class SubscriptionPriceChange
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :new_price, as: 'newPrice', class: Google::Apis::AndroidpublisherV2::Price, decorator: Google::Apis::AndroidpublisherV2::Price::Representation
|
||||
|
||||
property :state, as: 'state'
|
||||
end
|
||||
end
|
||||
|
||||
class SubscriptionPurchase
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :auto_renewing, as: 'autoRenewing'
|
||||
property :cancel_reason, as: 'cancelReason'
|
||||
property :cancel_survey_result, as: 'cancelSurveyResult', class: Google::Apis::AndroidpublisherV2::SubscriptionCancelSurveyResult, decorator: Google::Apis::AndroidpublisherV2::SubscriptionCancelSurveyResult::Representation
|
||||
|
||||
property :country_code, as: 'countryCode'
|
||||
property :developer_payload, as: 'developerPayload'
|
||||
property :email_address, as: 'emailAddress'
|
||||
property :expiry_time_millis, :numeric_string => true, as: 'expiryTimeMillis'
|
||||
property :family_name, as: 'familyName'
|
||||
property :given_name, as: 'givenName'
|
||||
property :kind, as: 'kind'
|
||||
property :linked_purchase_token, as: 'linkedPurchaseToken'
|
||||
property :order_id, as: 'orderId'
|
||||
property :payment_state, as: 'paymentState'
|
||||
property :price_amount_micros, :numeric_string => true, as: 'priceAmountMicros'
|
||||
property :price_change, as: 'priceChange', class: Google::Apis::AndroidpublisherV2::SubscriptionPriceChange, decorator: Google::Apis::AndroidpublisherV2::SubscriptionPriceChange::Representation
|
||||
|
||||
property :price_currency_code, as: 'priceCurrencyCode'
|
||||
property :profile_id, as: 'profileId'
|
||||
property :profile_name, as: 'profileName'
|
||||
property :purchase_type, as: 'purchaseType'
|
||||
property :start_time_millis, :numeric_string => true, as: 'startTimeMillis'
|
||||
property :user_cancellation_time_millis, :numeric_string => true, as: 'userCancellationTimeMillis'
|
||||
end
|
||||
end
|
||||
|
||||
class DeferSubscriptionPurchasesRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :deferral_info, as: 'deferralInfo', class: Google::Apis::AndroidpublisherV2::SubscriptionDeferralInfo, decorator: Google::Apis::AndroidpublisherV2::SubscriptionDeferralInfo::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class DeferSubscriptionPurchasesResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :new_expiry_time_millis, :numeric_string => true, as: 'newExpiryTimeMillis'
|
||||
end
|
||||
end
|
||||
|
||||
class Testers
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :google_groups, as: 'googleGroups'
|
||||
end
|
||||
end
|
||||
|
||||
class Timestamp
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :nanos, as: 'nanos'
|
||||
property :seconds, :numeric_string => true, as: 'seconds'
|
||||
end
|
||||
end
|
||||
|
||||
class TokenPagination
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -783,44 +82,6 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class Track
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :track, as: 'track'
|
||||
property :user_fraction, as: 'userFraction'
|
||||
collection :version_codes, as: 'versionCodes'
|
||||
end
|
||||
end
|
||||
|
||||
class ListTracksResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :kind, as: 'kind'
|
||||
collection :tracks, as: 'tracks', class: Google::Apis::AndroidpublisherV2::Track, decorator: Google::Apis::AndroidpublisherV2::Track::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class UserComment
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :android_os_version, as: 'androidOsVersion'
|
||||
property :app_version_code, as: 'appVersionCode'
|
||||
property :app_version_name, as: 'appVersionName'
|
||||
property :device, as: 'device'
|
||||
property :device_metadata, as: 'deviceMetadata', class: Google::Apis::AndroidpublisherV2::DeviceMetadata, decorator: Google::Apis::AndroidpublisherV2::DeviceMetadata::Representation
|
||||
|
||||
property :last_modified, as: 'lastModified', class: Google::Apis::AndroidpublisherV2::Timestamp, decorator: Google::Apis::AndroidpublisherV2::Timestamp::Representation
|
||||
|
||||
property :original_text, as: 'originalText'
|
||||
property :reviewer_language, as: 'reviewerLanguage'
|
||||
property :star_rating, as: 'starRating'
|
||||
property :text, as: 'text'
|
||||
property :thumbs_down_count, as: 'thumbsDownCount'
|
||||
property :thumbs_up_count, as: 'thumbsUpCount'
|
||||
end
|
||||
end
|
||||
|
||||
class VoidedPurchase
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/android-publisher
|
||||
module AndroidpublisherV3
|
||||
VERSION = 'V3'
|
||||
REVISION = '20200331'
|
||||
REVISION = '20200421'
|
||||
|
||||
# View and manage your Google Play Developer account
|
||||
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
|
||||
|
|
|
@ -2088,8 +2088,9 @@ module Google
|
|||
|
||||
# In-app update priority of the release. All newly added APKs in the release
|
||||
# will be considered at this priority. in_app_update_priority can take values
|
||||
# between [0, 5]. 5 is the highest priority. Default priority is 0. See https://
|
||||
# developer.android.com/guide/playcore/in-app-updates.
|
||||
# between [0, 5]. 5 is the highest priority. Default priority is 0.
|
||||
# in_app_update_priority can not be updated once the release is rolled out. See
|
||||
# https://developer.android.com/guide/playcore/in-app-updates.
|
||||
# Corresponds to the JSON property `inAppUpdatePriority`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :in_app_update_priority
|
||||
|
|
|
@ -458,10 +458,11 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Uploads the deobfuscation file of the specified APK. If a deobfuscation file
|
||||
# already exists, it will be replaced.
|
||||
# Uploads the deobfuscation file of the specified APK. If a deobfuscation or
|
||||
# symbolication file already exists, it will be replaced. See https://developer.
|
||||
# android.com/studio/build/shrink-code to learn more about deobfuscation files.
|
||||
# @param [String] package_name
|
||||
# Unique identifier of the Android app for which the deobfuscatiuon files are
|
||||
# Unique identifier of the Android app for which the deobfuscation files are
|
||||
# being uploaded; for example, "com.spiffygame".
|
||||
# @param [String] edit_id
|
||||
# Unique identifier for this edit.
|
||||
|
|
|
@ -0,0 +1,40 @@
|
|||
# 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/apigee_v1/service.rb'
|
||||
require 'google/apis/apigee_v1/classes.rb'
|
||||
require 'google/apis/apigee_v1/representations.rb'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
# Apigee API
|
||||
#
|
||||
# The Apigee API lets you programmatically manage Apigee hybrid with a set of
|
||||
# RESTful operations, including:<ul> <li>Create, edit, and delete API proxies</
|
||||
# li> <li>Manage users</li> <li>Deploy and undeploy proxy revisions</li> <li>
|
||||
# Configure environments</li></ul><p>For information on using the APIs described
|
||||
# in this section, see <a href="docs.apigee.com/hybrid/latest/api-get-started">
|
||||
# Get started using the APIs</a>.</p><p><strong>Note:</strong> This product is
|
||||
# available as a free trial for a time period of 60 days.
|
||||
#
|
||||
# @see https://cloud.google.com/apigee-api-management/
|
||||
module ApigeeV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20200502'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
end
|
||||
end
|
||||
end
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/bigquery/
|
||||
module BigqueryV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20200324'
|
||||
REVISION = '20200415'
|
||||
|
||||
# View and manage your data in Google BigQuery
|
||||
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
|
||||
|
|
|
@ -174,17 +174,17 @@ module Google
|
|||
class ArimaFittingMetrics
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# AIC
|
||||
# AIC.
|
||||
# Corresponds to the JSON property `aic`
|
||||
# @return [Float]
|
||||
attr_accessor :aic
|
||||
|
||||
# log-likelihood
|
||||
# Log-likelihood.
|
||||
# Corresponds to the JSON property `logLikelihood`
|
||||
# @return [Float]
|
||||
attr_accessor :log_likelihood
|
||||
|
||||
# variance.
|
||||
# Variance.
|
||||
# Corresponds to the JSON property `variance`
|
||||
# @return [Float]
|
||||
attr_accessor :variance
|
||||
|
@ -215,11 +215,29 @@ module Google
|
|||
# @return [Google::Apis::BigqueryV2::ArimaFittingMetrics]
|
||||
attr_accessor :arima_fitting_metrics
|
||||
|
||||
# Whether Arima model fitted with drift or not. It is always false
|
||||
# when d is not 1.
|
||||
# Corresponds to the JSON property `hasDrift`
|
||||
# @return [Boolean]
|
||||
attr_accessor :has_drift
|
||||
alias_method :has_drift?, :has_drift
|
||||
|
||||
# Arima order, can be used for both non-seasonal and seasonal parts.
|
||||
# Corresponds to the JSON property `nonSeasonalOrder`
|
||||
# @return [Google::Apis::BigqueryV2::ArimaOrder]
|
||||
attr_accessor :non_seasonal_order
|
||||
|
||||
# Seasonal periods. Repeated because multiple periods are supported
|
||||
# for one time series.
|
||||
# Corresponds to the JSON property `seasonalPeriods`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :seasonal_periods
|
||||
|
||||
# The id to indicate different time series.
|
||||
# Corresponds to the JSON property `timeSeriesId`
|
||||
# @return [String]
|
||||
attr_accessor :time_series_id
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
@ -228,7 +246,10 @@ module Google
|
|||
def update!(**args)
|
||||
@arima_coefficients = args[:arima_coefficients] if args.key?(:arima_coefficients)
|
||||
@arima_fitting_metrics = args[:arima_fitting_metrics] if args.key?(:arima_fitting_metrics)
|
||||
@has_drift = args[:has_drift] if args.key?(:has_drift)
|
||||
@non_seasonal_order = args[:non_seasonal_order] if args.key?(:non_seasonal_order)
|
||||
@seasonal_periods = args[:seasonal_periods] if args.key?(:seasonal_periods)
|
||||
@time_series_id = args[:time_series_id] if args.key?(:time_series_id)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -959,6 +980,31 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
#
|
||||
class ConnectionProperty
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# [Required] Name of the connection property to set.
|
||||
# Corresponds to the JSON property `key`
|
||||
# @return [String]
|
||||
attr_accessor :key
|
||||
|
||||
# [Required] Value of the connection property.
|
||||
# Corresponds to the JSON property `value`
|
||||
# @return [String]
|
||||
attr_accessor :value
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@key = args[:key] if args.key?(:key)
|
||||
@value = args[:value] if args.key?(:value)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class CsvOptions
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -1819,12 +1865,6 @@ module Google
|
|||
# @return [Google::Apis::BigqueryV2::GoogleSheetsOptions]
|
||||
attr_accessor :google_sheets_options
|
||||
|
||||
# [Optional, Trusted Tester] Deprecated, do not use. Please set
|
||||
# hivePartitioningOptions instead.
|
||||
# Corresponds to the JSON property `hivePartitioningMode`
|
||||
# @return [String]
|
||||
attr_accessor :hive_partitioning_mode
|
||||
|
||||
# [Optional, Trusted Tester] Options to configure hive partitioning support.
|
||||
# Corresponds to the JSON property `hivePartitioningOptions`
|
||||
# @return [Google::Apis::BigqueryV2::HivePartitioningOptions]
|
||||
|
@ -1892,7 +1932,6 @@ module Google
|
|||
@compression = args[:compression] if args.key?(:compression)
|
||||
@csv_options = args[:csv_options] if args.key?(:csv_options)
|
||||
@google_sheets_options = args[:google_sheets_options] if args.key?(:google_sheets_options)
|
||||
@hive_partitioning_mode = args[:hive_partitioning_mode] if args.key?(:hive_partitioning_mode)
|
||||
@hive_partitioning_options = args[:hive_partitioning_options] if args.key?(:hive_partitioning_options)
|
||||
@ignore_unknown_values = args[:ignore_unknown_values] if args.key?(:ignore_unknown_values)
|
||||
@max_bad_records = args[:max_bad_records] if args.key?(:max_bad_records)
|
||||
|
@ -2518,12 +2557,6 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :field_delimiter
|
||||
|
||||
# [Optional, Trusted Tester] Deprecated, do not use. Please set
|
||||
# hivePartitioningOptions instead.
|
||||
# Corresponds to the JSON property `hivePartitioningMode`
|
||||
# @return [String]
|
||||
attr_accessor :hive_partitioning_mode
|
||||
|
||||
# [Optional, Trusted Tester] Options to configure hive partitioning support.
|
||||
# Corresponds to the JSON property `hivePartitioningOptions`
|
||||
# @return [Google::Apis::BigqueryV2::HivePartitioningOptions]
|
||||
|
@ -2684,7 +2717,6 @@ module Google
|
|||
@destination_table_properties = args[:destination_table_properties] if args.key?(:destination_table_properties)
|
||||
@encoding = args[:encoding] if args.key?(:encoding)
|
||||
@field_delimiter = args[:field_delimiter] if args.key?(:field_delimiter)
|
||||
@hive_partitioning_mode = args[:hive_partitioning_mode] if args.key?(:hive_partitioning_mode)
|
||||
@hive_partitioning_options = args[:hive_partitioning_options] if args.key?(:hive_partitioning_options)
|
||||
@ignore_unknown_values = args[:ignore_unknown_values] if args.key?(:ignore_unknown_values)
|
||||
@max_bad_records = args[:max_bad_records] if args.key?(:max_bad_records)
|
||||
|
@ -2728,7 +2760,7 @@ module Google
|
|||
|
||||
# Connection properties.
|
||||
# Corresponds to the JSON property `connectionProperties`
|
||||
# @return [Array<Object>]
|
||||
# @return [Array<Google::Apis::BigqueryV2::ConnectionProperty>]
|
||||
attr_accessor :connection_properties
|
||||
|
||||
# [Optional] Specifies whether the job is allowed to create new tables. The
|
||||
|
@ -4186,7 +4218,7 @@ module Google
|
|||
|
||||
# Connection properties.
|
||||
# Corresponds to the JSON property `connectionProperties`
|
||||
# @return [Array<Object>]
|
||||
# @return [Array<Google::Apis::BigqueryV2::ConnectionProperty>]
|
||||
attr_accessor :connection_properties
|
||||
|
||||
# [Optional] Specifies the default datasetId and projectId to assume for any
|
||||
|
|
|
@ -160,6 +160,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ConnectionProperty
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CsvOptions
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -767,8 +773,11 @@ module Google
|
|||
|
||||
property :arima_fitting_metrics, as: 'arimaFittingMetrics', class: Google::Apis::BigqueryV2::ArimaFittingMetrics, decorator: Google::Apis::BigqueryV2::ArimaFittingMetrics::Representation
|
||||
|
||||
property :has_drift, as: 'hasDrift'
|
||||
property :non_seasonal_order, as: 'nonSeasonalOrder', class: Google::Apis::BigqueryV2::ArimaOrder, decorator: Google::Apis::BigqueryV2::ArimaOrder::Representation
|
||||
|
||||
collection :seasonal_periods, as: 'seasonalPeriods'
|
||||
property :time_series_id, as: 'timeSeriesId'
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -959,6 +968,14 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class ConnectionProperty
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :key, as: 'key'
|
||||
property :value, as: 'value'
|
||||
end
|
||||
end
|
||||
|
||||
class CsvOptions
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -1157,7 +1174,6 @@ module Google
|
|||
|
||||
property :google_sheets_options, as: 'googleSheetsOptions', class: Google::Apis::BigqueryV2::GoogleSheetsOptions, decorator: Google::Apis::BigqueryV2::GoogleSheetsOptions::Representation
|
||||
|
||||
property :hive_partitioning_mode, as: 'hivePartitioningMode'
|
||||
property :hive_partitioning_options, as: 'hivePartitioningOptions', class: Google::Apis::BigqueryV2::HivePartitioningOptions, decorator: Google::Apis::BigqueryV2::HivePartitioningOptions::Representation
|
||||
|
||||
property :ignore_unknown_values, as: 'ignoreUnknownValues'
|
||||
|
@ -1320,7 +1336,6 @@ module Google
|
|||
|
||||
property :encoding, as: 'encoding'
|
||||
property :field_delimiter, as: 'fieldDelimiter'
|
||||
property :hive_partitioning_mode, as: 'hivePartitioningMode'
|
||||
property :hive_partitioning_options, as: 'hivePartitioningOptions', class: Google::Apis::BigqueryV2::HivePartitioningOptions, decorator: Google::Apis::BigqueryV2::HivePartitioningOptions::Representation
|
||||
|
||||
property :ignore_unknown_values, as: 'ignoreUnknownValues'
|
||||
|
@ -1351,7 +1366,8 @@ 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'
|
||||
collection :connection_properties, as: 'connectionProperties', class: Google::Apis::BigqueryV2::ConnectionProperty, decorator: Google::Apis::BigqueryV2::ConnectionProperty::Representation
|
||||
|
||||
property :create_disposition, as: 'createDisposition'
|
||||
property :default_dataset, as: 'defaultDataset', class: Google::Apis::BigqueryV2::DatasetReference, decorator: Google::Apis::BigqueryV2::DatasetReference::Representation
|
||||
|
||||
|
@ -1730,7 +1746,8 @@ module Google
|
|||
class QueryRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :connection_properties, as: 'connectionProperties'
|
||||
collection :connection_properties, as: 'connectionProperties', class: Google::Apis::BigqueryV2::ConnectionProperty, decorator: Google::Apis::BigqueryV2::ConnectionProperty::Representation
|
||||
|
||||
property :default_dataset, as: 'defaultDataset', class: Google::Apis::BigqueryV2::DatasetReference, decorator: Google::Apis::BigqueryV2::DatasetReference::Representation
|
||||
|
||||
property :dry_run, as: 'dryRun'
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/bigquery/
|
||||
module BigqueryconnectionV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20200303'
|
||||
REVISION = '20200415'
|
||||
|
||||
# View and manage your data in Google BigQuery
|
||||
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
|
||||
|
|
|
@ -697,8 +697,7 @@ module Google
|
|||
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
|
||||
# the fields in the mask will be modified. If no mask is provided, the
|
||||
# following default mask is used:
|
||||
# paths: "bindings, etag"
|
||||
# This field is only used by Cloud IAM.
|
||||
# `paths: "bindings, etag"`
|
||||
# Corresponds to the JSON property `updateMask`
|
||||
# @return [String]
|
||||
attr_accessor :update_mask
|
||||
|
|
|
@ -259,7 +259,7 @@ module Google
|
|||
|
||||
# Sets the access control policy on the specified resource. Replaces any
|
||||
# existing policy.
|
||||
# Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED
|
||||
# Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
|
||||
# @param [String] resource
|
||||
# REQUIRED: The resource for which the policy is being specified.
|
||||
# See the operation documentation for the appropriate value for this field.
|
||||
|
@ -295,7 +295,7 @@ module Google
|
|||
|
||||
# Returns permissions that a caller has on the specified resource.
|
||||
# If the resource does not exist, this will return an empty set of
|
||||
# permissions, not a NOT_FOUND error.
|
||||
# permissions, not a `NOT_FOUND` error.
|
||||
# Note: This operation is designed to be used for building permission-aware
|
||||
# UIs and command-line tools, not for authorization checking. This operation
|
||||
# may "fail open" without warning.
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/bigquery/
|
||||
module BigqueryreservationV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20200403'
|
||||
REVISION = '20200410'
|
||||
|
||||
# View and manage your data in Google BigQuery
|
||||
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
|
||||
|
|
|
@ -96,10 +96,10 @@ module Google
|
|||
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.
|
||||
# (in the form of slots) with some committed period of usage. Annual
|
||||
# commitments renew by default. Commitments can be removed after their
|
||||
# commitment end time passes. In order to remove annual commitment, its plan
|
||||
# needs to be changed to monthly or flex first.
|
||||
# A capacity commitment resource exists as a child resource of the admin
|
||||
# project.
|
||||
class CapacityCommitment
|
||||
|
@ -511,10 +511,10 @@ module Google
|
|||
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.
|
||||
# (in the form of slots) with some committed period of usage. Annual
|
||||
# commitments renew by default. Commitments can be removed after their
|
||||
# commitment end time passes. In order to remove annual commitment, its plan
|
||||
# needs to be changed to monthly or flex first.
|
||||
# A capacity commitment resource exists as a child resource of the admin
|
||||
# project.
|
||||
# Corresponds to the JSON property `first`
|
||||
|
@ -522,10 +522,10 @@ module Google
|
|||
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.
|
||||
# (in the form of slots) with some committed period of usage. Annual
|
||||
# commitments renew by default. Commitments can be removed after their
|
||||
# commitment end time passes. In order to remove annual commitment, its plan
|
||||
# needs to be changed to monthly or flex first.
|
||||
# A capacity commitment resource exists as a child resource of the admin
|
||||
# project.
|
||||
# Corresponds to the JSON property `second`
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/bigquery/
|
||||
module BigqueryreservationV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20200403'
|
||||
REVISION = '20200410'
|
||||
|
||||
# View and manage your data in Google BigQuery
|
||||
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
|
||||
|
|
|
@ -130,10 +130,10 @@ module Google
|
|||
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.
|
||||
# (in the form of slots) with some committed period of usage. Annual
|
||||
# commitments renew by default. Commitments can be removed after their
|
||||
# commitment end time passes. In order to remove annual commitment, its plan
|
||||
# needs to be changed to monthly or flex first.
|
||||
# A capacity commitment resource exists as a child resource of the admin
|
||||
# project.
|
||||
class CapacityCommitment
|
||||
|
@ -469,10 +469,10 @@ module Google
|
|||
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.
|
||||
# (in the form of slots) with some committed period of usage. Annual
|
||||
# commitments renew by default. Commitments can be removed after their
|
||||
# commitment end time passes. In order to remove annual commitment, its plan
|
||||
# needs to be changed to monthly or flex first.
|
||||
# A capacity commitment resource exists as a child resource of the admin
|
||||
# project.
|
||||
# Corresponds to the JSON property `first`
|
||||
|
@ -480,10 +480,10 @@ module Google
|
|||
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.
|
||||
# (in the form of slots) with some committed period of usage. Annual
|
||||
# commitments renew by default. Commitments can be removed after their
|
||||
# commitment end time passes. In order to remove annual commitment, its plan
|
||||
# needs to be changed to monthly or flex first.
|
||||
# A capacity commitment resource exists as a child resource of the admin
|
||||
# project.
|
||||
# Corresponds to the JSON property `second`
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/binary-authorization/
|
||||
module BinaryauthorizationV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20200221'
|
||||
REVISION = '20200501'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -354,10 +354,13 @@ module Google
|
|||
# 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.
|
||||
# For some types of Google Cloud resources, a `binding` can also specify a
|
||||
# `condition`, which is a logical expression that allows access to a resource
|
||||
# only if the expression evaluates to `true`. A condition can add constraints
|
||||
# based on attributes of the request, the resource, or both. To learn which
|
||||
# resources support conditions in their IAM policies, see the
|
||||
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
|
||||
# policies).
|
||||
# **JSON example:**
|
||||
# `
|
||||
# "bindings": [
|
||||
|
@ -372,7 +375,9 @@ module Google
|
|||
# `,
|
||||
# `
|
||||
# "role": "roles/resourcemanager.organizationViewer",
|
||||
# "members": ["user:eve@example.com"],
|
||||
# "members": [
|
||||
# "user:eve@example.com"
|
||||
# ],
|
||||
# "condition": `
|
||||
# "title": "expirable access",
|
||||
# "description": "Does not grant access after Sep 2020",
|
||||
|
@ -445,6 +450,9 @@ module Google
|
|||
# the conditions in the version `3` policy are lost.
|
||||
# If a policy does not include any conditions, operations on that policy may
|
||||
# specify any valid version or leave the field unset.
|
||||
# To learn which resources support conditions in their IAM policies, see the
|
||||
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
|
||||
# policies).
|
||||
# Corresponds to the JSON property `version`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :version
|
||||
|
@ -605,10 +613,13 @@ module Google
|
|||
# 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.
|
||||
# For some types of Google Cloud resources, a `binding` can also specify a
|
||||
# `condition`, which is a logical expression that allows access to a resource
|
||||
# only if the expression evaluates to `true`. A condition can add constraints
|
||||
# based on attributes of the request, the resource, or both. To learn which
|
||||
# resources support conditions in their IAM policies, see the
|
||||
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
|
||||
# policies).
|
||||
# **JSON example:**
|
||||
# `
|
||||
# "bindings": [
|
||||
|
@ -623,7 +634,9 @@ module Google
|
|||
# `,
|
||||
# `
|
||||
# "role": "roles/resourcemanager.organizationViewer",
|
||||
# "members": ["user:eve@example.com"],
|
||||
# "members": [
|
||||
# "user:eve@example.com"
|
||||
# ],
|
||||
# "condition": `
|
||||
# "title": "expirable access",
|
||||
# "description": "Does not grant access after Sep 2020",
|
||||
|
|
|
@ -238,6 +238,9 @@ module Google
|
|||
# Requests for policies with any conditional bindings must specify version 3.
|
||||
# Policies without any conditional bindings may specify any valid value or
|
||||
# leave the field unset.
|
||||
# To learn which resources support conditions in their IAM policies, see the
|
||||
# [IAM
|
||||
# documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -309,7 +312,7 @@ module Google
|
|||
|
||||
# Sets the access control policy on the specified resource. Replaces any
|
||||
# existing policy.
|
||||
# Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED
|
||||
# Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
|
||||
# @param [String] resource
|
||||
# REQUIRED: The resource for which the policy is being specified.
|
||||
# See the operation documentation for the appropriate value for this field.
|
||||
|
@ -345,7 +348,7 @@ module Google
|
|||
|
||||
# Returns permissions that a caller has on the specified resource.
|
||||
# If the resource does not exist, this will return an empty set of
|
||||
# permissions, not a NOT_FOUND error.
|
||||
# permissions, not a `NOT_FOUND` error.
|
||||
# Note: This operation is designed to be used for building permission-aware
|
||||
# UIs and command-line tools, not for authorization checking. This operation
|
||||
# may "fail open" without warning.
|
||||
|
@ -430,6 +433,9 @@ module Google
|
|||
# Requests for policies with any conditional bindings must specify version 3.
|
||||
# Policies without any conditional bindings may specify any valid value or
|
||||
# leave the field unset.
|
||||
# To learn which resources support conditions in their IAM policies, see the
|
||||
# [IAM
|
||||
# documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -460,7 +466,7 @@ module Google
|
|||
|
||||
# Sets the access control policy on the specified resource. Replaces any
|
||||
# existing policy.
|
||||
# Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED
|
||||
# Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
|
||||
# @param [String] resource
|
||||
# REQUIRED: The resource for which the policy is being specified.
|
||||
# See the operation documentation for the appropriate value for this field.
|
||||
|
@ -496,7 +502,7 @@ module Google
|
|||
|
||||
# Returns permissions that a caller has on the specified resource.
|
||||
# If the resource does not exist, this will return an empty set of
|
||||
# permissions, not a NOT_FOUND error.
|
||||
# permissions, not a `NOT_FOUND` error.
|
||||
# Note: This operation is designed to be used for building permission-aware
|
||||
# UIs and command-line tools, not for authorization checking. This operation
|
||||
# may "fail open" without warning.
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/binary-authorization/
|
||||
module BinaryauthorizationV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20200221'
|
||||
REVISION = '20200501'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -354,10 +354,13 @@ module Google
|
|||
# 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.
|
||||
# For some types of Google Cloud resources, a `binding` can also specify a
|
||||
# `condition`, which is a logical expression that allows access to a resource
|
||||
# only if the expression evaluates to `true`. A condition can add constraints
|
||||
# based on attributes of the request, the resource, or both. To learn which
|
||||
# resources support conditions in their IAM policies, see the
|
||||
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
|
||||
# policies).
|
||||
# **JSON example:**
|
||||
# `
|
||||
# "bindings": [
|
||||
|
@ -372,7 +375,9 @@ module Google
|
|||
# `,
|
||||
# `
|
||||
# "role": "roles/resourcemanager.organizationViewer",
|
||||
# "members": ["user:eve@example.com"],
|
||||
# "members": [
|
||||
# "user:eve@example.com"
|
||||
# ],
|
||||
# "condition": `
|
||||
# "title": "expirable access",
|
||||
# "description": "Does not grant access after Sep 2020",
|
||||
|
@ -445,6 +450,9 @@ module Google
|
|||
# the conditions in the version `3` policy are lost.
|
||||
# If a policy does not include any conditions, operations on that policy may
|
||||
# specify any valid version or leave the field unset.
|
||||
# To learn which resources support conditions in their IAM policies, see the
|
||||
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
|
||||
# policies).
|
||||
# Corresponds to the JSON property `version`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :version
|
||||
|
@ -605,10 +613,13 @@ module Google
|
|||
# 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.
|
||||
# For some types of Google Cloud resources, a `binding` can also specify a
|
||||
# `condition`, which is a logical expression that allows access to a resource
|
||||
# only if the expression evaluates to `true`. A condition can add constraints
|
||||
# based on attributes of the request, the resource, or both. To learn which
|
||||
# resources support conditions in their IAM policies, see the
|
||||
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
|
||||
# policies).
|
||||
# **JSON example:**
|
||||
# `
|
||||
# "bindings": [
|
||||
|
@ -623,7 +634,9 @@ module Google
|
|||
# `,
|
||||
# `
|
||||
# "role": "roles/resourcemanager.organizationViewer",
|
||||
# "members": ["user:eve@example.com"],
|
||||
# "members": [
|
||||
# "user:eve@example.com"
|
||||
# ],
|
||||
# "condition": `
|
||||
# "title": "expirable access",
|
||||
# "description": "Does not grant access after Sep 2020",
|
||||
|
|
|
@ -238,6 +238,9 @@ module Google
|
|||
# Requests for policies with any conditional bindings must specify version 3.
|
||||
# Policies without any conditional bindings may specify any valid value or
|
||||
# leave the field unset.
|
||||
# To learn which resources support conditions in their IAM policies, see the
|
||||
# [IAM
|
||||
# documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -309,7 +312,7 @@ module Google
|
|||
|
||||
# Sets the access control policy on the specified resource. Replaces any
|
||||
# existing policy.
|
||||
# Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED
|
||||
# Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
|
||||
# @param [String] resource
|
||||
# REQUIRED: The resource for which the policy is being specified.
|
||||
# See the operation documentation for the appropriate value for this field.
|
||||
|
@ -345,7 +348,7 @@ module Google
|
|||
|
||||
# Returns permissions that a caller has on the specified resource.
|
||||
# If the resource does not exist, this will return an empty set of
|
||||
# permissions, not a NOT_FOUND error.
|
||||
# permissions, not a `NOT_FOUND` error.
|
||||
# Note: This operation is designed to be used for building permission-aware
|
||||
# UIs and command-line tools, not for authorization checking. This operation
|
||||
# may "fail open" without warning.
|
||||
|
@ -430,6 +433,9 @@ module Google
|
|||
# Requests for policies with any conditional bindings must specify version 3.
|
||||
# Policies without any conditional bindings may specify any valid value or
|
||||
# leave the field unset.
|
||||
# To learn which resources support conditions in their IAM policies, see the
|
||||
# [IAM
|
||||
# documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -460,7 +466,7 @@ module Google
|
|||
|
||||
# Sets the access control policy on the specified resource. Replaces any
|
||||
# existing policy.
|
||||
# Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED
|
||||
# Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
|
||||
# @param [String] resource
|
||||
# REQUIRED: The resource for which the policy is being specified.
|
||||
# See the operation documentation for the appropriate value for this field.
|
||||
|
@ -496,7 +502,7 @@ module Google
|
|||
|
||||
# Returns permissions that a caller has on the specified resource.
|
||||
# If the resource does not exist, this will return an empty set of
|
||||
# permissions, not a NOT_FOUND error.
|
||||
# permissions, not a `NOT_FOUND` error.
|
||||
# Note: This operation is designed to be used for building permission-aware
|
||||
# UIs and command-line tools, not for authorization checking. This operation
|
||||
# may "fail open" without warning.
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/google-apps/calendar/firstapp
|
||||
module CalendarV3
|
||||
VERSION = 'V3'
|
||||
REVISION = '20200315'
|
||||
REVISION = '20200428'
|
||||
|
||||
# See, edit, share, and permanently delete all the calendars you can access using Google Calendar
|
||||
AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar'
|
||||
|
|
|
@ -331,8 +331,8 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :foreground_color
|
||||
|
||||
# Whether the calendar has been hidden from the list. Optional. The default is
|
||||
# False.
|
||||
# Whether the calendar has been hidden from the list. Optional. The attribute is
|
||||
# only returned when the calendar is hidden, in which case the value is true.
|
||||
# Corresponds to the JSON property `hidden`
|
||||
# @return [Boolean]
|
||||
attr_accessor :hidden
|
||||
|
@ -630,7 +630,7 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :conference_id
|
||||
|
||||
# The conference solution, such as Hangouts or Hangouts Meet.
|
||||
# The conference solution, such as Hangouts or Google Meet.
|
||||
# Unset for a conference with a failed create request.
|
||||
# Either conferenceSolution and at least one entryPoint, or createRequest is
|
||||
# required.
|
||||
|
@ -841,7 +841,7 @@ module Google
|
|||
class CreateConferenceRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The conference solution, such as Hangouts or Hangouts Meet.
|
||||
# The conference solution, such as Hangouts or Google Meet.
|
||||
# Corresponds to the JSON property `conferenceSolutionKey`
|
||||
# @return [Google::Apis::CalendarV3::ConferenceSolutionKey]
|
||||
attr_accessor :conference_solution_key
|
||||
|
@ -1064,7 +1064,7 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :color_id
|
||||
|
||||
# The conference-related information, such as details of a Hangouts Meet
|
||||
# The conference-related information, such as details of a Google Meet
|
||||
# conference. To create new conference details use the createRequest field. To
|
||||
# persist your changes, remember to set the conferenceDataVersion request
|
||||
# parameter to 1 for all event modification requests.
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/asset-inventory/docs/quickstart
|
||||
module CloudassetV1p1beta1
|
||||
VERSION = 'V1p1beta1'
|
||||
REVISION = '20200403'
|
||||
REVISION = '20200410'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -60,6 +60,7 @@ module Google
|
|||
# * Organization number (such as "organizations/123")
|
||||
# * Folder number(such as "folders/1234")
|
||||
# * Project number (such as "projects/12345")
|
||||
# * Project id (such as "projects/abc")
|
||||
# @param [Fixnum] page_size
|
||||
# Optional. The page size for search result pagination. Page size is capped at
|
||||
# 500 even
|
||||
|
@ -120,6 +121,7 @@ module Google
|
|||
# * Organization number (such as "organizations/123")
|
||||
# * Folder number(such as "folders/1234")
|
||||
# * Project number (such as "projects/12345")
|
||||
# * Project id (such as "projects/abc")
|
||||
# @param [Array<String>, String] asset_types
|
||||
# Optional. A list of asset types that this request searches for. If empty, it
|
||||
# will
|
||||
|
|
|
@ -12,20 +12,19 @@
|
|||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'google/apis/osconfig_v1beta/service.rb'
|
||||
require 'google/apis/osconfig_v1beta/classes.rb'
|
||||
require 'google/apis/osconfig_v1beta/representations.rb'
|
||||
require 'google/apis/cloudasset_v1p4beta1/service.rb'
|
||||
require 'google/apis/cloudasset_v1p4beta1/classes.rb'
|
||||
require 'google/apis/cloudasset_v1p4beta1/representations.rb'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
# Cloud OS Config API
|
||||
# Cloud Asset API
|
||||
#
|
||||
# OS management tools that can be used for patch management, patch compliance,
|
||||
# and configuration management on VM instances.
|
||||
# The cloud asset API manages the history and inventory of cloud resources.
|
||||
#
|
||||
# @see https://cloud.google.com/
|
||||
module OsconfigV1beta
|
||||
VERSION = 'V1beta'
|
||||
# @see https://cloud.google.com/asset-inventory/docs/quickstart
|
||||
module CloudassetV1p4beta1
|
||||
VERSION = 'V1p4beta1'
|
||||
REVISION = '20200403'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
|
@ -0,0 +1,924 @@
|
|||
# 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 CloudassetV1p4beta1
|
||||
|
||||
# Specifies roles and/or permissions to analyze, to determine both the
|
||||
# identities possessing them and the resources they control. If multiple
|
||||
# values are specified, results will include identities and resources
|
||||
# matching any of them.
|
||||
class AccessSelector
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Optional. The permissions to appear in result.
|
||||
# Corresponds to the JSON property `permissions`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :permissions
|
||||
|
||||
# Optional. The roles to appear in result.
|
||||
# Corresponds to the JSON property `roles`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :roles
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@permissions = args[:permissions] if args.key?(:permissions)
|
||||
@roles = args[:roles] if args.key?(:roles)
|
||||
end
|
||||
end
|
||||
|
||||
# A response message for AssetService.AnalyzeIamPolicy.
|
||||
class AnalyzeIamPolicyResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Represents whether all entries in the main_analysis and
|
||||
# service_account_impersonation_analysis have been fully explored to
|
||||
# answer the query in the request.
|
||||
# Corresponds to the JSON property `fullyExplored`
|
||||
# @return [Boolean]
|
||||
attr_accessor :fully_explored
|
||||
alias_method :fully_explored?, :fully_explored
|
||||
|
||||
# An analysis message to group the query and results.
|
||||
# Corresponds to the JSON property `mainAnalysis`
|
||||
# @return [Google::Apis::CloudassetV1p4beta1::IamPolicyAnalysis]
|
||||
attr_accessor :main_analysis
|
||||
|
||||
# A list of non-critical errors happened during the request handling to
|
||||
# explain why `fully_explored` is false, or empty if no error happened.
|
||||
# Corresponds to the JSON property `nonCriticalErrors`
|
||||
# @return [Array<Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1AnalysisState>]
|
||||
attr_accessor :non_critical_errors
|
||||
|
||||
# The service account impersonation analysis if
|
||||
# AnalyzeIamPolicyRequest.analyze_service_account_impersonation is
|
||||
# enabled.
|
||||
# Corresponds to the JSON property `serviceAccountImpersonationAnalysis`
|
||||
# @return [Array<Google::Apis::CloudassetV1p4beta1::IamPolicyAnalysis>]
|
||||
attr_accessor :service_account_impersonation_analysis
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@fully_explored = args[:fully_explored] if args.key?(:fully_explored)
|
||||
@main_analysis = args[:main_analysis] if args.key?(:main_analysis)
|
||||
@non_critical_errors = args[:non_critical_errors] if args.key?(:non_critical_errors)
|
||||
@service_account_impersonation_analysis = args[:service_account_impersonation_analysis] if args.key?(:service_account_impersonation_analysis)
|
||||
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::CloudassetV1p4beta1::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
|
||||
|
||||
# A request message for AssetService.ExportIamPolicyAnalysis.
|
||||
class ExportIamPolicyAnalysisRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# IAM policy analysis query message.
|
||||
# Corresponds to the JSON property `analysisQuery`
|
||||
# @return [Google::Apis::CloudassetV1p4beta1::IamPolicyAnalysisQuery]
|
||||
attr_accessor :analysis_query
|
||||
|
||||
# Contains request options.
|
||||
# Corresponds to the JSON property `options`
|
||||
# @return [Google::Apis::CloudassetV1p4beta1::Options]
|
||||
attr_accessor :options
|
||||
|
||||
# Output configuration for export IAM policy analysis destination.
|
||||
# Corresponds to the JSON property `outputConfig`
|
||||
# @return [Google::Apis::CloudassetV1p4beta1::IamPolicyAnalysisOutputConfig]
|
||||
attr_accessor :output_config
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@analysis_query = args[:analysis_query] if args.key?(:analysis_query)
|
||||
@options = args[:options] if args.key?(:options)
|
||||
@output_config = args[:output_config] if args.key?(:output_config)
|
||||
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
|
||||
|
||||
# A Cloud Storage location.
|
||||
class GcsDestination
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Required. The uri of the Cloud Storage object. It's the same uri that is used
|
||||
# by
|
||||
# gsutil. For example: "gs://bucket_name/object_name". See [Viewing and
|
||||
# Editing Object
|
||||
# Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata)
|
||||
# for more information.
|
||||
# Corresponds to the JSON property `uri`
|
||||
# @return [String]
|
||||
attr_accessor :uri
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@uri = args[:uri] if args.key?(:uri)
|
||||
end
|
||||
end
|
||||
|
||||
# A role or permission that appears in an access control list.
|
||||
class GoogleCloudAssetV1p4beta1Access
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Represents analysis state of each node in the result graph or non-critical
|
||||
# errors in the response.
|
||||
# Corresponds to the JSON property `analysisState`
|
||||
# @return [Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1AnalysisState]
|
||||
attr_accessor :analysis_state
|
||||
|
||||
# The permission.
|
||||
# Corresponds to the JSON property `permission`
|
||||
# @return [String]
|
||||
attr_accessor :permission
|
||||
|
||||
# The role.
|
||||
# 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)
|
||||
@analysis_state = args[:analysis_state] if args.key?(:analysis_state)
|
||||
@permission = args[:permission] if args.key?(:permission)
|
||||
@role = args[:role] if args.key?(:role)
|
||||
end
|
||||
end
|
||||
|
||||
# An access control list, derived from the above IAM policy binding, which
|
||||
# contains a set of resources and accesses. May include one
|
||||
# item from each set to compose an access control entry.
|
||||
# NOTICE that there could be multiple access control lists for one IAM policy
|
||||
# binding. The access control lists are created based on resource and access
|
||||
# combinations.
|
||||
# For example, assume we have the following cases in one IAM policy binding:
|
||||
# - Permission P1 and P2 apply to resource R1 and R2;
|
||||
# - Permission P3 applies to resource R2 and R3;
|
||||
# This will result in the following access control lists:
|
||||
# - AccessControlList 1: [R1, R2], [P1, P2]
|
||||
# - AccessControlList 2: [R2, R3], [P3]
|
||||
class GoogleCloudAssetV1p4beta1AccessControlList
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The accesses that match one of the following conditions:
|
||||
# - The access_selector, if it is specified in request;
|
||||
# - Otherwise, access specifiers reachable from the policy binding's role.
|
||||
# Corresponds to the JSON property `accesses`
|
||||
# @return [Array<Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1Access>]
|
||||
attr_accessor :accesses
|
||||
|
||||
# Resource edges of the graph starting from the policy attached
|
||||
# resource to any descendant resources. The Edge.source_node contains
|
||||
# the full resource name of a parent resource and Edge.target_node
|
||||
# contains the full resource name of a child resource. This field is
|
||||
# present only if the output_resource_edges option is enabled in request.
|
||||
# Corresponds to the JSON property `resourceEdges`
|
||||
# @return [Array<Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1Edge>]
|
||||
attr_accessor :resource_edges
|
||||
|
||||
# The resources that match one of the following conditions:
|
||||
# - The resource_selector, if it is specified in request;
|
||||
# - Otherwise, resources reachable from the policy attached resource.
|
||||
# Corresponds to the JSON property `resources`
|
||||
# @return [Array<Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1Resource>]
|
||||
attr_accessor :resources
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@accesses = args[:accesses] if args.key?(:accesses)
|
||||
@resource_edges = args[:resource_edges] if args.key?(:resource_edges)
|
||||
@resources = args[:resources] if args.key?(:resources)
|
||||
end
|
||||
end
|
||||
|
||||
# Represents analysis state of each node in the result graph or non-critical
|
||||
# errors in the response.
|
||||
class GoogleCloudAssetV1p4beta1AnalysisState
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The human-readable description of the cause of failure.
|
||||
# Corresponds to the JSON property `cause`
|
||||
# @return [String]
|
||||
attr_accessor :cause
|
||||
|
||||
# The Google standard error code that best describes the state.
|
||||
# For example:
|
||||
# - OK means the node has been successfully explored;
|
||||
# - PERMISSION_DENIED means an access denied error is encountered;
|
||||
# - DEADLINE_EXCEEDED means the node hasn't been explored in time;
|
||||
# Corresponds to the JSON property `code`
|
||||
# @return [String]
|
||||
attr_accessor :code
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@cause = args[:cause] if args.key?(:cause)
|
||||
@code = args[:code] if args.key?(:code)
|
||||
end
|
||||
end
|
||||
|
||||
# A directional edge.
|
||||
class GoogleCloudAssetV1p4beta1Edge
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The source node of the edge.
|
||||
# Corresponds to the JSON property `sourceNode`
|
||||
# @return [String]
|
||||
attr_accessor :source_node
|
||||
|
||||
# The target node of the edge.
|
||||
# Corresponds to the JSON property `targetNode`
|
||||
# @return [String]
|
||||
attr_accessor :target_node
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@source_node = args[:source_node] if args.key?(:source_node)
|
||||
@target_node = args[:target_node] if args.key?(:target_node)
|
||||
end
|
||||
end
|
||||
|
||||
# An identity that appears in an access control list.
|
||||
class GoogleCloudAssetV1p4beta1Identity
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Represents analysis state of each node in the result graph or non-critical
|
||||
# errors in the response.
|
||||
# Corresponds to the JSON property `analysisState`
|
||||
# @return [Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1AnalysisState]
|
||||
attr_accessor :analysis_state
|
||||
|
||||
# The identity name in any form of members appear in
|
||||
# [IAM policy
|
||||
# binding](https://cloud.google.com/iam/reference/rest/v1/Binding), such
|
||||
# as:
|
||||
# - user:foo@google.com
|
||||
# - group:group1@google.com
|
||||
# - serviceAccount:s1@prj1.iam.gserviceaccount.com
|
||||
# - projectOwner:some_project_id
|
||||
# - domain:google.com
|
||||
# - allUsers
|
||||
# - etc.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@analysis_state = args[:analysis_state] if args.key?(:analysis_state)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class GoogleCloudAssetV1p4beta1IdentityList
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Group identity edges of the graph starting from the binding's
|
||||
# group members to any node of the identities. The Edge.source_node
|
||||
# contains a group, such as "group:parent@google.com". The
|
||||
# Edge.target_node contains a member of the group,
|
||||
# such as "group:child@google.com" or "user:foo@google.com".
|
||||
# This field is present only if the output_group_edges option is enabled in
|
||||
# request.
|
||||
# Corresponds to the JSON property `groupEdges`
|
||||
# @return [Array<Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1Edge>]
|
||||
attr_accessor :group_edges
|
||||
|
||||
# Only the identities that match one of the following conditions will be
|
||||
# presented:
|
||||
# - The identity_selector, if it is specified in request;
|
||||
# - Otherwise, identities reachable from the policy binding's members.
|
||||
# Corresponds to the JSON property `identities`
|
||||
# @return [Array<Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1Identity>]
|
||||
attr_accessor :identities
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@group_edges = args[:group_edges] if args.key?(:group_edges)
|
||||
@identities = args[:identities] if args.key?(:identities)
|
||||
end
|
||||
end
|
||||
|
||||
# A GCP resource that appears in an access control list.
|
||||
class GoogleCloudAssetV1p4beta1Resource
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Represents analysis state of each node in the result graph or non-critical
|
||||
# errors in the response.
|
||||
# Corresponds to the JSON property `analysisState`
|
||||
# @return [Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1AnalysisState]
|
||||
attr_accessor :analysis_state
|
||||
|
||||
# The [full resource name](https://aip.dev/122#full-resource-names).
|
||||
# Corresponds to the JSON property `fullResourceName`
|
||||
# @return [String]
|
||||
attr_accessor :full_resource_name
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@analysis_state = args[:analysis_state] if args.key?(:analysis_state)
|
||||
@full_resource_name = args[:full_resource_name] if args.key?(:full_resource_name)
|
||||
end
|
||||
end
|
||||
|
||||
# An analysis message to group the query and results.
|
||||
class IamPolicyAnalysis
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# IAM policy analysis query message.
|
||||
# Corresponds to the JSON property `analysisQuery`
|
||||
# @return [Google::Apis::CloudassetV1p4beta1::IamPolicyAnalysisQuery]
|
||||
attr_accessor :analysis_query
|
||||
|
||||
# A list of IamPolicyAnalysisResult that matches the analysis query, or
|
||||
# empty if no result is found.
|
||||
# Corresponds to the JSON property `analysisResults`
|
||||
# @return [Array<Google::Apis::CloudassetV1p4beta1::IamPolicyAnalysisResult>]
|
||||
attr_accessor :analysis_results
|
||||
|
||||
# Represents whether all entries in the analysis_results have been
|
||||
# fully explored to answer the query.
|
||||
# Corresponds to the JSON property `fullyExplored`
|
||||
# @return [Boolean]
|
||||
attr_accessor :fully_explored
|
||||
alias_method :fully_explored?, :fully_explored
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@analysis_query = args[:analysis_query] if args.key?(:analysis_query)
|
||||
@analysis_results = args[:analysis_results] if args.key?(:analysis_results)
|
||||
@fully_explored = args[:fully_explored] if args.key?(:fully_explored)
|
||||
end
|
||||
end
|
||||
|
||||
# Output configuration for export IAM policy analysis destination.
|
||||
class IamPolicyAnalysisOutputConfig
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A Cloud Storage location.
|
||||
# Corresponds to the JSON property `gcsDestination`
|
||||
# @return [Google::Apis::CloudassetV1p4beta1::GcsDestination]
|
||||
attr_accessor :gcs_destination
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
|
||||
end
|
||||
end
|
||||
|
||||
# IAM policy analysis query message.
|
||||
class IamPolicyAnalysisQuery
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Specifies roles and/or permissions to analyze, to determine both the
|
||||
# identities possessing them and the resources they control. If multiple
|
||||
# values are specified, results will include identities and resources
|
||||
# matching any of them.
|
||||
# Corresponds to the JSON property `accessSelector`
|
||||
# @return [Google::Apis::CloudassetV1p4beta1::AccessSelector]
|
||||
attr_accessor :access_selector
|
||||
|
||||
# Specifies an identity for which to determine resource access, based on
|
||||
# roles assigned either directly to them or to the groups they belong to,
|
||||
# directly or indirectly.
|
||||
# Corresponds to the JSON property `identitySelector`
|
||||
# @return [Google::Apis::CloudassetV1p4beta1::IdentitySelector]
|
||||
attr_accessor :identity_selector
|
||||
|
||||
# Required. The relative name of the root asset. Only resources and IAM policies
|
||||
# within
|
||||
# the parent will be analyzed. This can only be an organization number (such
|
||||
# as "organizations/123") or a folder number (such as "folders/123").
|
||||
# Corresponds to the JSON property `parent`
|
||||
# @return [String]
|
||||
attr_accessor :parent
|
||||
|
||||
# Specifies the resource to analyze for access policies, which may be set
|
||||
# directly on the resource, or on ancestors such as organizations, folders or
|
||||
# projects. At least one of ResourceSelector, IdentitySelector or
|
||||
# AccessSelector must be specified in a request.
|
||||
# Corresponds to the JSON property `resourceSelector`
|
||||
# @return [Google::Apis::CloudassetV1p4beta1::ResourceSelector]
|
||||
attr_accessor :resource_selector
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@access_selector = args[:access_selector] if args.key?(:access_selector)
|
||||
@identity_selector = args[:identity_selector] if args.key?(:identity_selector)
|
||||
@parent = args[:parent] if args.key?(:parent)
|
||||
@resource_selector = args[:resource_selector] if args.key?(:resource_selector)
|
||||
end
|
||||
end
|
||||
|
||||
# IAM Policy analysis result, consisting of one IAM policy binding and derived
|
||||
# access control lists.
|
||||
class IamPolicyAnalysisResult
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The access control lists derived from the iam_binding that match or
|
||||
# potentially match resource and access selectors specified in the request.
|
||||
# Corresponds to the JSON property `accessControlLists`
|
||||
# @return [Array<Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1AccessControlList>]
|
||||
attr_accessor :access_control_lists
|
||||
|
||||
# The full name of the resource to which the iam_binding policy attaches.
|
||||
# Corresponds to the JSON property `attachedResourceFullName`
|
||||
# @return [String]
|
||||
attr_accessor :attached_resource_full_name
|
||||
|
||||
# Represents whether all nodes in the transitive closure of the
|
||||
# iam_binding node have been explored.
|
||||
# Corresponds to the JSON property `fullyExplored`
|
||||
# @return [Boolean]
|
||||
attr_accessor :fully_explored
|
||||
alias_method :fully_explored?, :fully_explored
|
||||
|
||||
# Associates `members` with a `role`.
|
||||
# Corresponds to the JSON property `iamBinding`
|
||||
# @return [Google::Apis::CloudassetV1p4beta1::Binding]
|
||||
attr_accessor :iam_binding
|
||||
|
||||
# The identity list derived from members of the iam_binding that match or
|
||||
# potentially match identity selector specified in the request.
|
||||
# Corresponds to the JSON property `identityList`
|
||||
# @return [Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1IdentityList]
|
||||
attr_accessor :identity_list
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@access_control_lists = args[:access_control_lists] if args.key?(:access_control_lists)
|
||||
@attached_resource_full_name = args[:attached_resource_full_name] if args.key?(:attached_resource_full_name)
|
||||
@fully_explored = args[:fully_explored] if args.key?(:fully_explored)
|
||||
@iam_binding = args[:iam_binding] if args.key?(:iam_binding)
|
||||
@identity_list = args[:identity_list] if args.key?(:identity_list)
|
||||
end
|
||||
end
|
||||
|
||||
# Specifies an identity for which to determine resource access, based on
|
||||
# roles assigned either directly to them or to the groups they belong to,
|
||||
# directly or indirectly.
|
||||
class IdentitySelector
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Required. The identity appear in the form of members in
|
||||
# [IAM policy
|
||||
# binding](https://cloud.google.com/iam/reference/rest/v1/Binding).
|
||||
# Corresponds to the JSON property `identity`
|
||||
# @return [String]
|
||||
attr_accessor :identity
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@identity = args[:identity] if args.key?(:identity)
|
||||
end
|
||||
end
|
||||
|
||||
# This resource represents a long-running operation that is the result of a
|
||||
# network API call.
|
||||
class Operation
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# If the value is `false`, it means the operation is still in progress.
|
||||
# If `true`, the operation is completed, and either `error` or `response` is
|
||||
# available.
|
||||
# Corresponds to the JSON property `done`
|
||||
# @return [Boolean]
|
||||
attr_accessor :done
|
||||
alias_method :done?, :done
|
||||
|
||||
# The `Status` type defines a logical error model that is suitable for
|
||||
# different programming environments, including REST APIs and RPC APIs. It is
|
||||
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
|
||||
# three pieces of data: error code, error message, and error details.
|
||||
# You can find out more about this error model and how to work with it in the
|
||||
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
||||
# Corresponds to the JSON property `error`
|
||||
# @return [Google::Apis::CloudassetV1p4beta1::Status]
|
||||
attr_accessor :error
|
||||
|
||||
# Service-specific metadata associated with the operation. It typically
|
||||
# contains progress information and common metadata such as create time.
|
||||
# Some services might not provide such metadata. Any method that returns a
|
||||
# long-running operation should document the metadata type, if any.
|
||||
# Corresponds to the JSON property `metadata`
|
||||
# @return [Hash<String,Object>]
|
||||
attr_accessor :metadata
|
||||
|
||||
# The server-assigned name, which is only unique within the same service that
|
||||
# originally returns it. If you use the default HTTP mapping, the
|
||||
# `name` should be a resource name ending with `operations/`unique_id``.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# The normal response of the operation in case of success. If the original
|
||||
# method returns no data on success, such as `Delete`, the response is
|
||||
# `google.protobuf.Empty`. If the original method is standard
|
||||
# `Get`/`Create`/`Update`, the response should be the resource. For other
|
||||
# methods, the response should have the type `XxxResponse`, where `Xxx`
|
||||
# is the original method name. For example, if the original method name
|
||||
# is `TakeSnapshot()`, the inferred response type is
|
||||
# `TakeSnapshotResponse`.
|
||||
# Corresponds to the JSON property `response`
|
||||
# @return [Hash<String,Object>]
|
||||
attr_accessor :response
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@done = args[:done] if args.key?(:done)
|
||||
@error = args[:error] if args.key?(:error)
|
||||
@metadata = args[:metadata] if args.key?(:metadata)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@response = args[:response] if args.key?(:response)
|
||||
end
|
||||
end
|
||||
|
||||
# Contains request options.
|
||||
class Options
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Optional. If true, the response will include access analysis from identities
|
||||
# to
|
||||
# resources via service account impersonation. This is a very expensive
|
||||
# operation, because many derived queries will be executed.
|
||||
# For example, if the request analyzes for which resources user A has
|
||||
# permission P, and there's an IAM policy states user A has
|
||||
# iam.serviceAccounts.getAccessToken permission to a service account SA,
|
||||
# and there's another IAM policy states service account SA has permission P
|
||||
# to a GCP folder F, then user A potentially has access to the GCP folder
|
||||
# F. And those advanced analysis results will be included in
|
||||
# AnalyzeIamPolicyResponse.service_account_impersonation_analysis.
|
||||
# Another example, if the request analyzes for who has
|
||||
# permission P to a GCP folder F, and there's an IAM policy states user A
|
||||
# has iam.serviceAccounts.actAs permission to a service account SA, and
|
||||
# there's another IAM policy states service account SA has permission P to
|
||||
# the GCP folder F, then user A potentially has access to the GCP folder
|
||||
# F. And those advanced analysis results will be included in
|
||||
# AnalyzeIamPolicyResponse.service_account_impersonation_analysis.
|
||||
# Default is false.
|
||||
# Corresponds to the JSON property `analyzeServiceAccountImpersonation`
|
||||
# @return [Boolean]
|
||||
attr_accessor :analyze_service_account_impersonation
|
||||
alias_method :analyze_service_account_impersonation?, :analyze_service_account_impersonation
|
||||
|
||||
# Optional. If true, the identities section of the result will expand any
|
||||
# Google groups appearing in an IAM policy binding.
|
||||
# If identity_selector is specified, the identity in the result will
|
||||
# be determined by the selector, and this flag will have no effect.
|
||||
# Default is false.
|
||||
# Corresponds to the JSON property `expandGroups`
|
||||
# @return [Boolean]
|
||||
attr_accessor :expand_groups
|
||||
alias_method :expand_groups?, :expand_groups
|
||||
|
||||
# Optional. If true, the resource section of the result will expand any
|
||||
# resource attached to an IAM policy to include resources lower in the
|
||||
# resource hierarchy.
|
||||
# For example, if the request analyzes for which resources user A has
|
||||
# permission P, and the results include an IAM policy with P on a GCP
|
||||
# folder, the results will also include resources in that folder with
|
||||
# permission P.
|
||||
# If resource_selector is specified, the resource section of the result
|
||||
# will be determined by the selector, and this flag will have no effect.
|
||||
# Default is false.
|
||||
# Corresponds to the JSON property `expandResources`
|
||||
# @return [Boolean]
|
||||
attr_accessor :expand_resources
|
||||
alias_method :expand_resources?, :expand_resources
|
||||
|
||||
# Optional. If true, the access section of result will expand any roles
|
||||
# appearing in IAM policy bindings to include their permissions.
|
||||
# If access_selector is specified, the access section of the result
|
||||
# will be determined by the selector, and this flag will have no effect.
|
||||
# Default is false.
|
||||
# Corresponds to the JSON property `expandRoles`
|
||||
# @return [Boolean]
|
||||
attr_accessor :expand_roles
|
||||
alias_method :expand_roles?, :expand_roles
|
||||
|
||||
# Optional. If true, the result will output group identity edges, starting
|
||||
# from the binding's group members, to any expanded identities.
|
||||
# Default is false.
|
||||
# Corresponds to the JSON property `outputGroupEdges`
|
||||
# @return [Boolean]
|
||||
attr_accessor :output_group_edges
|
||||
alias_method :output_group_edges?, :output_group_edges
|
||||
|
||||
# Optional. If true, the result will output resource edges, starting
|
||||
# from the policy attached resource, to any expanded resources.
|
||||
# Default is false.
|
||||
# Corresponds to the JSON property `outputResourceEdges`
|
||||
# @return [Boolean]
|
||||
attr_accessor :output_resource_edges
|
||||
alias_method :output_resource_edges?, :output_resource_edges
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@analyze_service_account_impersonation = args[:analyze_service_account_impersonation] if args.key?(:analyze_service_account_impersonation)
|
||||
@expand_groups = args[:expand_groups] if args.key?(:expand_groups)
|
||||
@expand_resources = args[:expand_resources] if args.key?(:expand_resources)
|
||||
@expand_roles = args[:expand_roles] if args.key?(:expand_roles)
|
||||
@output_group_edges = args[:output_group_edges] if args.key?(:output_group_edges)
|
||||
@output_resource_edges = args[:output_resource_edges] if args.key?(:output_resource_edges)
|
||||
end
|
||||
end
|
||||
|
||||
# Specifies the resource to analyze for access policies, which may be set
|
||||
# directly on the resource, or on ancestors such as organizations, folders or
|
||||
# projects. At least one of ResourceSelector, IdentitySelector or
|
||||
# AccessSelector must be specified in a request.
|
||||
class ResourceSelector
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Required. The [full resource
|
||||
# name](https://cloud.google.com/apis/design/resource_names#full_resource_name)
|
||||
# .
|
||||
# Corresponds to the JSON property `fullResourceName`
|
||||
# @return [String]
|
||||
attr_accessor :full_resource_name
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@full_resource_name = args[:full_resource_name] if args.key?(:full_resource_name)
|
||||
end
|
||||
end
|
||||
|
||||
# The `Status` type defines a logical error model that is suitable for
|
||||
# different programming environments, including REST APIs and RPC APIs. It is
|
||||
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
|
||||
# three pieces of data: error code, error message, and error details.
|
||||
# You can find out more about this error model and how to work with it in the
|
||||
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
||||
class Status
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The status code, which should be an enum value of google.rpc.Code.
|
||||
# Corresponds to the JSON property `code`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :code
|
||||
|
||||
# A list of messages that carry the error details. There is a common set of
|
||||
# message types for APIs to use.
|
||||
# Corresponds to the JSON property `details`
|
||||
# @return [Array<Hash<String,Object>>]
|
||||
attr_accessor :details
|
||||
|
||||
# A developer-facing error message, which should be in English. Any
|
||||
# user-facing error message should be localized and sent in the
|
||||
# google.rpc.Status.details field, or localized by the client.
|
||||
# Corresponds to the JSON property `message`
|
||||
# @return [String]
|
||||
attr_accessor :message
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@code = args[:code] if args.key?(:code)
|
||||
@details = args[:details] if args.key?(:details)
|
||||
@message = args[:message] if args.key?(:message)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,377 @@
|
|||
# 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 CloudassetV1p4beta1
|
||||
|
||||
class AccessSelector
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AnalyzeIamPolicyResponse
|
||||
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 ExportIamPolicyAnalysisRequest
|
||||
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 GcsDestination
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudAssetV1p4beta1Access
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudAssetV1p4beta1AccessControlList
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudAssetV1p4beta1AnalysisState
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudAssetV1p4beta1Edge
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudAssetV1p4beta1Identity
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudAssetV1p4beta1IdentityList
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudAssetV1p4beta1Resource
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class IamPolicyAnalysis
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class IamPolicyAnalysisOutputConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class IamPolicyAnalysisQuery
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class IamPolicyAnalysisResult
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class IdentitySelector
|
||||
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 Options
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ResourceSelector
|
||||
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 AccessSelector
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :permissions, as: 'permissions'
|
||||
collection :roles, as: 'roles'
|
||||
end
|
||||
end
|
||||
|
||||
class AnalyzeIamPolicyResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :fully_explored, as: 'fullyExplored'
|
||||
property :main_analysis, as: 'mainAnalysis', class: Google::Apis::CloudassetV1p4beta1::IamPolicyAnalysis, decorator: Google::Apis::CloudassetV1p4beta1::IamPolicyAnalysis::Representation
|
||||
|
||||
collection :non_critical_errors, as: 'nonCriticalErrors', class: Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1AnalysisState, decorator: Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1AnalysisState::Representation
|
||||
|
||||
collection :service_account_impersonation_analysis, as: 'serviceAccountImpersonationAnalysis', class: Google::Apis::CloudassetV1p4beta1::IamPolicyAnalysis, decorator: Google::Apis::CloudassetV1p4beta1::IamPolicyAnalysis::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Binding
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :condition, as: 'condition', class: Google::Apis::CloudassetV1p4beta1::Expr, decorator: Google::Apis::CloudassetV1p4beta1::Expr::Representation
|
||||
|
||||
collection :members, as: 'members'
|
||||
property :role, as: 'role'
|
||||
end
|
||||
end
|
||||
|
||||
class ExportIamPolicyAnalysisRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :analysis_query, as: 'analysisQuery', class: Google::Apis::CloudassetV1p4beta1::IamPolicyAnalysisQuery, decorator: Google::Apis::CloudassetV1p4beta1::IamPolicyAnalysisQuery::Representation
|
||||
|
||||
property :options, as: 'options', class: Google::Apis::CloudassetV1p4beta1::Options, decorator: Google::Apis::CloudassetV1p4beta1::Options::Representation
|
||||
|
||||
property :output_config, as: 'outputConfig', class: Google::Apis::CloudassetV1p4beta1::IamPolicyAnalysisOutputConfig, decorator: Google::Apis::CloudassetV1p4beta1::IamPolicyAnalysisOutputConfig::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 GcsDestination
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :uri, as: 'uri'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudAssetV1p4beta1Access
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :analysis_state, as: 'analysisState', class: Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1AnalysisState, decorator: Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1AnalysisState::Representation
|
||||
|
||||
property :permission, as: 'permission'
|
||||
property :role, as: 'role'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudAssetV1p4beta1AccessControlList
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :accesses, as: 'accesses', class: Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1Access, decorator: Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1Access::Representation
|
||||
|
||||
collection :resource_edges, as: 'resourceEdges', class: Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1Edge, decorator: Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1Edge::Representation
|
||||
|
||||
collection :resources, as: 'resources', class: Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1Resource, decorator: Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1Resource::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudAssetV1p4beta1AnalysisState
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :cause, as: 'cause'
|
||||
property :code, as: 'code'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudAssetV1p4beta1Edge
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :source_node, as: 'sourceNode'
|
||||
property :target_node, as: 'targetNode'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudAssetV1p4beta1Identity
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :analysis_state, as: 'analysisState', class: Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1AnalysisState, decorator: Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1AnalysisState::Representation
|
||||
|
||||
property :name, as: 'name'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudAssetV1p4beta1IdentityList
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :group_edges, as: 'groupEdges', class: Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1Edge, decorator: Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1Edge::Representation
|
||||
|
||||
collection :identities, as: 'identities', class: Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1Identity, decorator: Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1Identity::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudAssetV1p4beta1Resource
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :analysis_state, as: 'analysisState', class: Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1AnalysisState, decorator: Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1AnalysisState::Representation
|
||||
|
||||
property :full_resource_name, as: 'fullResourceName'
|
||||
end
|
||||
end
|
||||
|
||||
class IamPolicyAnalysis
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :analysis_query, as: 'analysisQuery', class: Google::Apis::CloudassetV1p4beta1::IamPolicyAnalysisQuery, decorator: Google::Apis::CloudassetV1p4beta1::IamPolicyAnalysisQuery::Representation
|
||||
|
||||
collection :analysis_results, as: 'analysisResults', class: Google::Apis::CloudassetV1p4beta1::IamPolicyAnalysisResult, decorator: Google::Apis::CloudassetV1p4beta1::IamPolicyAnalysisResult::Representation
|
||||
|
||||
property :fully_explored, as: 'fullyExplored'
|
||||
end
|
||||
end
|
||||
|
||||
class IamPolicyAnalysisOutputConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :gcs_destination, as: 'gcsDestination', class: Google::Apis::CloudassetV1p4beta1::GcsDestination, decorator: Google::Apis::CloudassetV1p4beta1::GcsDestination::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class IamPolicyAnalysisQuery
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :access_selector, as: 'accessSelector', class: Google::Apis::CloudassetV1p4beta1::AccessSelector, decorator: Google::Apis::CloudassetV1p4beta1::AccessSelector::Representation
|
||||
|
||||
property :identity_selector, as: 'identitySelector', class: Google::Apis::CloudassetV1p4beta1::IdentitySelector, decorator: Google::Apis::CloudassetV1p4beta1::IdentitySelector::Representation
|
||||
|
||||
property :parent, as: 'parent'
|
||||
property :resource_selector, as: 'resourceSelector', class: Google::Apis::CloudassetV1p4beta1::ResourceSelector, decorator: Google::Apis::CloudassetV1p4beta1::ResourceSelector::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class IamPolicyAnalysisResult
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :access_control_lists, as: 'accessControlLists', class: Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1AccessControlList, decorator: Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1AccessControlList::Representation
|
||||
|
||||
property :attached_resource_full_name, as: 'attachedResourceFullName'
|
||||
property :fully_explored, as: 'fullyExplored'
|
||||
property :iam_binding, as: 'iamBinding', class: Google::Apis::CloudassetV1p4beta1::Binding, decorator: Google::Apis::CloudassetV1p4beta1::Binding::Representation
|
||||
|
||||
property :identity_list, as: 'identityList', class: Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1IdentityList, decorator: Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1IdentityList::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class IdentitySelector
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :identity, as: 'identity'
|
||||
end
|
||||
end
|
||||
|
||||
class Operation
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :done, as: 'done'
|
||||
property :error, as: 'error', class: Google::Apis::CloudassetV1p4beta1::Status, decorator: Google::Apis::CloudassetV1p4beta1::Status::Representation
|
||||
|
||||
hash :metadata, as: 'metadata'
|
||||
property :name, as: 'name'
|
||||
hash :response, as: 'response'
|
||||
end
|
||||
end
|
||||
|
||||
class Options
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :analyze_service_account_impersonation, as: 'analyzeServiceAccountImpersonation'
|
||||
property :expand_groups, as: 'expandGroups'
|
||||
property :expand_resources, as: 'expandResources'
|
||||
property :expand_roles, as: 'expandRoles'
|
||||
property :output_group_edges, as: 'outputGroupEdges'
|
||||
property :output_resource_edges, as: 'outputResourceEdges'
|
||||
end
|
||||
end
|
||||
|
||||
class ResourceSelector
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :full_resource_name, as: 'fullResourceName'
|
||||
end
|
||||
end
|
||||
|
||||
class Status
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :code, as: 'code'
|
||||
collection :details, as: 'details'
|
||||
property :message, as: 'message'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,217 @@
|
|||
# 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 CloudassetV1p4beta1
|
||||
# Cloud Asset API
|
||||
#
|
||||
# The cloud asset API manages the history and inventory of cloud resources.
|
||||
#
|
||||
# @example
|
||||
# require 'google/apis/cloudasset_v1p4beta1'
|
||||
#
|
||||
# Cloudasset = Google::Apis::CloudassetV1p4beta1 # 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
|
||||
|
||||
# Analyzes IAM policies based on the specified request. Returns
|
||||
# a list of IamPolicyAnalysisResult matching the request.
|
||||
# @param [String] parent
|
||||
# Required. The relative name of the root asset. Only resources and IAM policies
|
||||
# within
|
||||
# the parent will be analyzed. This can only be an organization number (such
|
||||
# as "organizations/123") or a folder number (such as "folders/123").
|
||||
# @param [Array<String>, String] analysis_query_access_selector_permissions
|
||||
# Optional. The permissions to appear in result.
|
||||
# @param [Array<String>, String] analysis_query_access_selector_roles
|
||||
# Optional. The roles to appear in result.
|
||||
# @param [String] analysis_query_identity_selector_identity
|
||||
# Required. The identity appear in the form of members in
|
||||
# [IAM policy
|
||||
# binding](https://cloud.google.com/iam/reference/rest/v1/Binding).
|
||||
# @param [String] analysis_query_resource_selector_full_resource_name
|
||||
# Required. The [full resource
|
||||
# name](https://cloud.google.com/apis/design/resource_names#full_resource_name)
|
||||
# .
|
||||
# @param [Boolean] options_analyze_service_account_impersonation
|
||||
# Optional. If true, the response will include access analysis from identities
|
||||
# to
|
||||
# resources via service account impersonation. This is a very expensive
|
||||
# operation, because many derived queries will be executed. We highly
|
||||
# recommend you use ExportIamPolicyAnalysis rpc instead.
|
||||
# For example, if the request analyzes for which resources user A has
|
||||
# permission P, and there's an IAM policy states user A has
|
||||
# iam.serviceAccounts.getAccessToken permission to a service account SA,
|
||||
# and there's another IAM policy states service account SA has permission P
|
||||
# to a GCP folder F, then user A potentially has access to the GCP folder
|
||||
# F. And those advanced analysis results will be included in
|
||||
# AnalyzeIamPolicyResponse.service_account_impersonation_analysis.
|
||||
# Another example, if the request analyzes for who has
|
||||
# permission P to a GCP folder F, and there's an IAM policy states user A
|
||||
# has iam.serviceAccounts.actAs permission to a service account SA, and
|
||||
# there's another IAM policy states service account SA has permission P to
|
||||
# the GCP folder F, then user A potentially has access to the GCP folder
|
||||
# F. And those advanced analysis results will be included in
|
||||
# AnalyzeIamPolicyResponse.service_account_impersonation_analysis.
|
||||
# Default is false.
|
||||
# @param [String] options_execution_timeout
|
||||
# Optional. Amount of time executable has to complete. See JSON representation
|
||||
# of
|
||||
# [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
|
||||
# If this field is set with a value less than the RPC deadline, and the
|
||||
# execution of your query hasn't finished in the specified
|
||||
# execution timeout, you will get a response with partial result.
|
||||
# Otherwise, your query's execution will continue until the RPC deadline.
|
||||
# If it's not finished until then, you will get a DEADLINE_EXCEEDED error.
|
||||
# Default is empty.
|
||||
# @param [Boolean] options_expand_groups
|
||||
# Optional. If true, the identities section of the result will expand any
|
||||
# Google groups appearing in an IAM policy binding.
|
||||
# If identity_selector is specified, the identity in the result will
|
||||
# be determined by the selector, and this flag will have no effect.
|
||||
# Default is false.
|
||||
# @param [Boolean] options_expand_resources
|
||||
# Optional. If true, the resource section of the result will expand any
|
||||
# resource attached to an IAM policy to include resources lower in the
|
||||
# resource hierarchy.
|
||||
# For example, if the request analyzes for which resources user A has
|
||||
# permission P, and the results include an IAM policy with P on a GCP
|
||||
# folder, the results will also include resources in that folder with
|
||||
# permission P.
|
||||
# If resource_selector is specified, the resource section of the result
|
||||
# will be determined by the selector, and this flag will have no effect.
|
||||
# Default is false.
|
||||
# @param [Boolean] options_expand_roles
|
||||
# Optional. If true, the access section of result will expand any roles
|
||||
# appearing in IAM policy bindings to include their permissions.
|
||||
# If access_selector is specified, the access section of the result
|
||||
# will be determined by the selector, and this flag will have no effect.
|
||||
# Default is false.
|
||||
# @param [Boolean] options_output_group_edges
|
||||
# Optional. If true, the result will output group identity edges, starting
|
||||
# from the binding's group members, to any expanded identities.
|
||||
# Default is false.
|
||||
# @param [Boolean] options_output_resource_edges
|
||||
# Optional. If true, the result will output resource edges, starting
|
||||
# from the policy attached resource, to any expanded resources.
|
||||
# Default is false.
|
||||
# @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::CloudassetV1p4beta1::AnalyzeIamPolicyResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CloudassetV1p4beta1::AnalyzeIamPolicyResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def analyze_iam_policy(parent, analysis_query_access_selector_permissions: nil, analysis_query_access_selector_roles: nil, analysis_query_identity_selector_identity: nil, analysis_query_resource_selector_full_resource_name: nil, options_analyze_service_account_impersonation: nil, options_execution_timeout: nil, options_expand_groups: nil, options_expand_resources: nil, options_expand_roles: nil, options_output_group_edges: nil, options_output_resource_edges: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1p4beta1/{+parent}:analyzeIamPolicy', options)
|
||||
command.response_representation = Google::Apis::CloudassetV1p4beta1::AnalyzeIamPolicyResponse::Representation
|
||||
command.response_class = Google::Apis::CloudassetV1p4beta1::AnalyzeIamPolicyResponse
|
||||
command.params['parent'] = parent unless parent.nil?
|
||||
command.query['analysisQuery.accessSelector.permissions'] = analysis_query_access_selector_permissions unless analysis_query_access_selector_permissions.nil?
|
||||
command.query['analysisQuery.accessSelector.roles'] = analysis_query_access_selector_roles unless analysis_query_access_selector_roles.nil?
|
||||
command.query['analysisQuery.identitySelector.identity'] = analysis_query_identity_selector_identity unless analysis_query_identity_selector_identity.nil?
|
||||
command.query['analysisQuery.resourceSelector.fullResourceName'] = analysis_query_resource_selector_full_resource_name unless analysis_query_resource_selector_full_resource_name.nil?
|
||||
command.query['options.analyzeServiceAccountImpersonation'] = options_analyze_service_account_impersonation unless options_analyze_service_account_impersonation.nil?
|
||||
command.query['options.executionTimeout'] = options_execution_timeout unless options_execution_timeout.nil?
|
||||
command.query['options.expandGroups'] = options_expand_groups unless options_expand_groups.nil?
|
||||
command.query['options.expandResources'] = options_expand_resources unless options_expand_resources.nil?
|
||||
command.query['options.expandRoles'] = options_expand_roles unless options_expand_roles.nil?
|
||||
command.query['options.outputGroupEdges'] = options_output_group_edges unless options_output_group_edges.nil?
|
||||
command.query['options.outputResourceEdges'] = options_output_resource_edges unless options_output_resource_edges.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Exports IAM policy analysis based on the specified request. This API
|
||||
# implements the google.longrunning.Operation API allowing you to keep
|
||||
# track of the export. The metadata contains the request to help callers to
|
||||
# map responses to requests.
|
||||
# @param [String] parent
|
||||
# Required. The relative name of the root asset. Only resources and IAM policies
|
||||
# within
|
||||
# the parent will be analyzed. This can only be an organization number (such
|
||||
# as "organizations/123") or a folder number (such as "folders/123").
|
||||
# @param [Google::Apis::CloudassetV1p4beta1::ExportIamPolicyAnalysisRequest] export_iam_policy_analysis_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::CloudassetV1p4beta1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CloudassetV1p4beta1::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def export_iam_policy_analysis(parent, export_iam_policy_analysis_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1p4beta1/{+parent}:exportIamPolicyAnalysis', options)
|
||||
command.request_representation = Google::Apis::CloudassetV1p4beta1::ExportIamPolicyAnalysisRequest::Representation
|
||||
command.request_object = export_iam_policy_analysis_request_object
|
||||
command.response_representation = Google::Apis::CloudassetV1p4beta1::Operation::Representation
|
||||
command.response_class = Google::Apis::CloudassetV1p4beta1::Operation
|
||||
command.params['parent'] = parent unless parent.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
def apply_command_defaults(command)
|
||||
command.query['key'] = key unless key.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/billing/
|
||||
module CloudbillingV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20200210'
|
||||
REVISION = '20200503'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -560,10 +560,13 @@ module Google
|
|||
# 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.
|
||||
# For some types of Google Cloud resources, a `binding` can also specify a
|
||||
# `condition`, which is a logical expression that allows access to a resource
|
||||
# only if the expression evaluates to `true`. A condition can add constraints
|
||||
# based on attributes of the request, the resource, or both. To learn which
|
||||
# resources support conditions in their IAM policies, see the
|
||||
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
|
||||
# policies).
|
||||
# **JSON example:**
|
||||
# `
|
||||
# "bindings": [
|
||||
|
@ -578,7 +581,9 @@ module Google
|
|||
# `,
|
||||
# `
|
||||
# "role": "roles/resourcemanager.organizationViewer",
|
||||
# "members": ["user:eve@example.com"],
|
||||
# "members": [
|
||||
# "user:eve@example.com"
|
||||
# ],
|
||||
# "condition": `
|
||||
# "title": "expirable access",
|
||||
# "description": "Does not grant access after Sep 2020",
|
||||
|
@ -656,6 +661,9 @@ module Google
|
|||
# the conditions in the version `3` policy are lost.
|
||||
# If a policy does not include any conditions, operations on that policy may
|
||||
# specify any valid version or leave the field unset.
|
||||
# To learn which resources support conditions in their IAM policies, see the
|
||||
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
|
||||
# policies).
|
||||
# Corresponds to the JSON property `version`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :version
|
||||
|
@ -912,10 +920,13 @@ module Google
|
|||
# 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.
|
||||
# For some types of Google Cloud resources, a `binding` can also specify a
|
||||
# `condition`, which is a logical expression that allows access to a resource
|
||||
# only if the expression evaluates to `true`. A condition can add constraints
|
||||
# based on attributes of the request, the resource, or both. To learn which
|
||||
# resources support conditions in their IAM policies, see the
|
||||
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
|
||||
# policies).
|
||||
# **JSON example:**
|
||||
# `
|
||||
# "bindings": [
|
||||
|
@ -930,7 +941,9 @@ module Google
|
|||
# `,
|
||||
# `
|
||||
# "role": "roles/resourcemanager.organizationViewer",
|
||||
# "members": ["user:eve@example.com"],
|
||||
# "members": [
|
||||
# "user:eve@example.com"
|
||||
# ],
|
||||
# "condition": `
|
||||
# "title": "expirable access",
|
||||
# "description": "Does not grant access after Sep 2020",
|
||||
|
@ -968,8 +981,7 @@ module Google
|
|||
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
|
||||
# the fields in the mask will be modified. If no mask is provided, the
|
||||
# following default mask is used:
|
||||
# paths: "bindings, etag"
|
||||
# This field is only used by Cloud IAM.
|
||||
# `paths: "bindings, etag"`
|
||||
# Corresponds to the JSON property `updateMask`
|
||||
# @return [String]
|
||||
attr_accessor :update_mask
|
||||
|
|
|
@ -134,6 +134,9 @@ module Google
|
|||
# Requests for policies with any conditional bindings must specify version 3.
|
||||
# Policies without any conditional bindings may specify any valid value or
|
||||
# leave the field unset.
|
||||
# To learn which resources support conditions in their IAM policies, see the
|
||||
# [IAM
|
||||
# documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/cloud-build/docs/
|
||||
module CloudbuildV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20200317'
|
||||
REVISION = '20200505'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -1029,8 +1029,8 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :branch
|
||||
|
||||
# Whether to block builds on a "/gcbrun" comment from a repository admin or
|
||||
# collaborator.
|
||||
# Configure builds to run only when a repository owner or collaborator
|
||||
# comments `/gcbrun`.
|
||||
# Corresponds to the JSON property `commentControl`
|
||||
# @return [String]
|
||||
attr_accessor :comment_control
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/debugger
|
||||
module ClouddebuggerV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20200313'
|
||||
REVISION = '20200410'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -59,6 +59,12 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :action
|
||||
|
||||
# The deadline for the breakpoint to stay in CANARY_ACTIVE state. The value
|
||||
# is meaningless when the breakpoint is not in CANARY_ACTIVE state.
|
||||
# Corresponds to the JSON property `canaryExpireTime`
|
||||
# @return [String]
|
||||
attr_accessor :canary_expire_time
|
||||
|
||||
# Condition that triggers the breakpoint.
|
||||
# The condition is a compound boolean expression composed using expressions
|
||||
# in a programming language at the source location.
|
||||
|
@ -141,6 +147,11 @@ module Google
|
|||
# @return [Array<Google::Apis::ClouddebuggerV2::StackFrame>]
|
||||
attr_accessor :stack_frames
|
||||
|
||||
# The current state of the breakpoint.
|
||||
# Corresponds to the JSON property `state`
|
||||
# @return [String]
|
||||
attr_accessor :state
|
||||
|
||||
# Represents a contextual status message.
|
||||
# The message can indicate an error or informational status, and refer to
|
||||
# specific parts of the containing object.
|
||||
|
@ -177,6 +188,7 @@ module Google
|
|||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@action = args[:action] if args.key?(:action)
|
||||
@canary_expire_time = args[:canary_expire_time] if args.key?(:canary_expire_time)
|
||||
@condition = args[:condition] if args.key?(:condition)
|
||||
@create_time = args[:create_time] if args.key?(:create_time)
|
||||
@evaluated_expressions = args[:evaluated_expressions] if args.key?(:evaluated_expressions)
|
||||
|
@ -189,6 +201,7 @@ module Google
|
|||
@log_level = args[:log_level] if args.key?(:log_level)
|
||||
@log_message_format = args[:log_message_format] if args.key?(:log_message_format)
|
||||
@stack_frames = args[:stack_frames] if args.key?(:stack_frames)
|
||||
@state = args[:state] if args.key?(:state)
|
||||
@status = args[:status] if args.key?(:status)
|
||||
@user_email = args[:user_email] if args.key?(:user_email)
|
||||
@variable_table = args[:variable_table] if args.key?(:variable_table)
|
||||
|
@ -304,6 +317,11 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :agent_version
|
||||
|
||||
# Used when setting breakpoint canary for this debuggee.
|
||||
# Corresponds to the JSON property `canaryMode`
|
||||
# @return [String]
|
||||
attr_accessor :canary_mode
|
||||
|
||||
# Human readable description of the debuggee.
|
||||
# Including a human-readable project name, environment name and version
|
||||
# information is recommended.
|
||||
|
@ -380,6 +398,7 @@ module Google
|
|||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@agent_version = args[:agent_version] if args.key?(:agent_version)
|
||||
@canary_mode = args[:canary_mode] if args.key?(:canary_mode)
|
||||
@description = args[:description] if args.key?(:description)
|
||||
@ext_source_contexts = args[:ext_source_contexts] if args.key?(:ext_source_contexts)
|
||||
@id = args[:id] if args.key?(:id)
|
||||
|
@ -703,6 +722,12 @@ module Google
|
|||
class RegisterDebuggeeResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A unique ID generated for the agent.
|
||||
# Each RegisterDebuggee request will generate a new agent ID.
|
||||
# Corresponds to the JSON property `agentId`
|
||||
# @return [String]
|
||||
attr_accessor :agent_id
|
||||
|
||||
# Represents the debugged application. The application may include one or more
|
||||
# replicated processes executing the same code. Each of these processes is
|
||||
# attached with a debugger agent, carrying out the debugging commands.
|
||||
|
@ -718,6 +743,7 @@ module Google
|
|||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@agent_id = args[:agent_id] if args.key?(:agent_id)
|
||||
@debuggee = args[:debuggee] if args.key?(:debuggee)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -196,6 +196,7 @@ module Google
|
|||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :action, as: 'action'
|
||||
property :canary_expire_time, as: 'canaryExpireTime'
|
||||
property :condition, as: 'condition'
|
||||
property :create_time, as: 'createTime'
|
||||
collection :evaluated_expressions, as: 'evaluatedExpressions', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
|
||||
|
@ -211,6 +212,7 @@ module Google
|
|||
property :log_message_format, as: 'logMessageFormat'
|
||||
collection :stack_frames, as: 'stackFrames', class: Google::Apis::ClouddebuggerV2::StackFrame, decorator: Google::Apis::ClouddebuggerV2::StackFrame::Representation
|
||||
|
||||
property :state, as: 'state'
|
||||
property :status, as: 'status', class: Google::Apis::ClouddebuggerV2::StatusMessage, decorator: Google::Apis::ClouddebuggerV2::StatusMessage::Representation
|
||||
|
||||
property :user_email, as: 'userEmail'
|
||||
|
@ -253,6 +255,7 @@ module Google
|
|||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :agent_version, as: 'agentVersion'
|
||||
property :canary_mode, as: 'canaryMode'
|
||||
property :description, as: 'description'
|
||||
collection :ext_source_contexts, as: 'extSourceContexts', class: Google::Apis::ClouddebuggerV2::ExtendedSourceContext, decorator: Google::Apis::ClouddebuggerV2::ExtendedSourceContext::Representation
|
||||
|
||||
|
@ -366,6 +369,7 @@ module Google
|
|||
class RegisterDebuggeeResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :agent_id, as: 'agentId'
|
||||
property :debuggee, as: 'debuggee', class: Google::Apis::ClouddebuggerV2::Debuggee, decorator: Google::Apis::ClouddebuggerV2::Debuggee::Representation
|
||||
|
||||
end
|
||||
|
|
|
@ -98,6 +98,9 @@ module Google
|
|||
# setting those breakpoints again.
|
||||
# @param [String] debuggee_id
|
||||
# Required. Identifies the debuggee.
|
||||
# @param [String] agent_id
|
||||
# Identifies the agent.
|
||||
# This is the ID returned in the RegisterDebuggee response.
|
||||
# @param [Boolean] success_on_timeout
|
||||
# If set to `true` (recommended), returns `google.rpc.Code.OK` status and
|
||||
# sets the `wait_expired` response field to `true` when the server-selected
|
||||
|
@ -126,11 +129,12 @@ 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_controller_debuggee_breakpoints(debuggee_id, success_on_timeout: nil, wait_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def list_controller_debuggee_breakpoints(debuggee_id, agent_id: nil, success_on_timeout: nil, wait_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v2/controller/debuggees/{debuggeeId}/breakpoints', options)
|
||||
command.response_representation = Google::Apis::ClouddebuggerV2::ListActiveBreakpointsResponse::Representation
|
||||
command.response_class = Google::Apis::ClouddebuggerV2::ListActiveBreakpointsResponse
|
||||
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
|
||||
command.query['agentId'] = agent_id unless agent_id.nil?
|
||||
command.query['successOnTimeout'] = success_on_timeout unless success_on_timeout.nil?
|
||||
command.query['waitToken'] = wait_token unless wait_token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
|
@ -352,6 +356,8 @@ module Google
|
|||
# @param [String] debuggee_id
|
||||
# Required. ID of the debuggee where the breakpoint is to be set.
|
||||
# @param [Google::Apis::ClouddebuggerV2::Breakpoint] breakpoint_object
|
||||
# @param [String] canary_option
|
||||
# The canary option set by the user upon setting breakpoint.
|
||||
# @param [String] client_version
|
||||
# Required. The client version making the call.
|
||||
# Schema: `domain/type/version` (e.g., `google.com/intellij/v1`).
|
||||
|
@ -372,13 +378,14 @@ 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 set_debugger_debuggee_breakpoint(debuggee_id, breakpoint_object = nil, client_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def set_debugger_debuggee_breakpoint(debuggee_id, breakpoint_object = nil, canary_option: nil, client_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v2/debugger/debuggees/{debuggeeId}/breakpoints/set', options)
|
||||
command.request_representation = Google::Apis::ClouddebuggerV2::Breakpoint::Representation
|
||||
command.request_object = breakpoint_object
|
||||
command.response_representation = Google::Apis::ClouddebuggerV2::SetBreakpointResponse::Representation
|
||||
command.response_class = Google::Apis::ClouddebuggerV2::SetBreakpointResponse
|
||||
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
|
||||
command.query['canaryOption'] = canary_option unless canary_option.nil?
|
||||
command.query['clientVersion'] = client_version unless client_version.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/identity/
|
||||
module CloudidentityV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20200401'
|
||||
REVISION = '20200502'
|
||||
|
||||
# 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'
|
||||
|
|
|
@ -26,63 +26,12 @@ module Google
|
|||
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.
|
||||
|
@ -96,11 +45,6 @@ module Google
|
|||
# @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.
|
||||
|
@ -115,19 +59,9 @@ module Google
|
|||
|
||||
# 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
|
||||
|
@ -209,6 +143,132 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Resource representing ClientState and supports updates from API users
|
||||
class ClientState
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The caller can specify asset tags for this resource
|
||||
# Corresponds to the JSON property `assetTags`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :asset_tags
|
||||
|
||||
# The compliance state of the resource as specified by the API client.
|
||||
# Corresponds to the JSON property `complianceState`
|
||||
# @return [String]
|
||||
attr_accessor :compliance_state
|
||||
|
||||
# Output only. The time the client state data was created.
|
||||
# Corresponds to the JSON property `createTime`
|
||||
# @return [String]
|
||||
attr_accessor :create_time
|
||||
|
||||
# This field may be used to store a unique identifier for the API resource
|
||||
# within which these CustomAttributes are a field.
|
||||
# Corresponds to the JSON property `customId`
|
||||
# @return [String]
|
||||
attr_accessor :custom_id
|
||||
|
||||
# The token that needs to be passed back for
|
||||
# concurrency control in updates. Token needs to be passed back
|
||||
# in UpdateRequest
|
||||
# Corresponds to the JSON property `etag`
|
||||
# @return [String]
|
||||
attr_accessor :etag
|
||||
|
||||
# The Health score of the resource
|
||||
# Corresponds to the JSON property `healthScore`
|
||||
# @return [String]
|
||||
attr_accessor :health_score
|
||||
|
||||
# The map of key-value attributes stored by callers specific to a
|
||||
# device. The total serialized length of this map may not exceed 10KB. No
|
||||
# limit is placed on the number of attributes in a map.
|
||||
# Corresponds to the JSON property `keyValuePairs`
|
||||
# @return [Hash<String,Google::Apis::CloudidentityV1beta1::CustomAttributeValue>]
|
||||
attr_accessor :key_value_pairs
|
||||
|
||||
# Output only. The time the client state data was last updated.
|
||||
# Corresponds to the JSON property `lastUpdateTime`
|
||||
# @return [String]
|
||||
attr_accessor :last_update_time
|
||||
|
||||
# The management state of the resource as specified by the API client.
|
||||
# Corresponds to the JSON property `managed`
|
||||
# @return [String]
|
||||
attr_accessor :managed
|
||||
|
||||
# Output only. [Resource name](https://cloud.google.com/apis/design/
|
||||
# resource_names) of
|
||||
# the ClientState in format:
|
||||
# `devices/`device_id`/deviceUsers/`device_user_id`/clientState/`partner_id``,
|
||||
# where partner_id corresponds to the partner storing the data.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# Output only. The owner of the ClientState
|
||||
# Corresponds to the JSON property `ownerType`
|
||||
# @return [String]
|
||||
attr_accessor :owner_type
|
||||
|
||||
# A descriptive cause of the health score.
|
||||
# Corresponds to the JSON property `scoreReason`
|
||||
# @return [String]
|
||||
attr_accessor :score_reason
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@asset_tags = args[:asset_tags] if args.key?(:asset_tags)
|
||||
@compliance_state = args[:compliance_state] if args.key?(:compliance_state)
|
||||
@create_time = args[:create_time] if args.key?(:create_time)
|
||||
@custom_id = args[:custom_id] if args.key?(:custom_id)
|
||||
@etag = args[:etag] if args.key?(:etag)
|
||||
@health_score = args[:health_score] if args.key?(:health_score)
|
||||
@key_value_pairs = args[:key_value_pairs] if args.key?(:key_value_pairs)
|
||||
@last_update_time = args[:last_update_time] if args.key?(:last_update_time)
|
||||
@managed = args[:managed] if args.key?(:managed)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@owner_type = args[:owner_type] if args.key?(:owner_type)
|
||||
@score_reason = args[:score_reason] if args.key?(:score_reason)
|
||||
end
|
||||
end
|
||||
|
||||
# Additional custom attribute values may be one of these types
|
||||
class CustomAttributeValue
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Represents a boolean value.
|
||||
# Corresponds to the JSON property `boolValue`
|
||||
# @return [Boolean]
|
||||
attr_accessor :bool_value
|
||||
alias_method :bool_value?, :bool_value
|
||||
|
||||
# Represents a double value.
|
||||
# Corresponds to the JSON property `numberValue`
|
||||
# @return [Float]
|
||||
attr_accessor :number_value
|
||||
|
||||
# Represents a string value.
|
||||
# Corresponds to the JSON property `stringValue`
|
||||
# @return [String]
|
||||
attr_accessor :string_value
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@bool_value = args[:bool_value] if args.key?(:bool_value)
|
||||
@number_value = args[:number_value] if args.key?(:number_value)
|
||||
@string_value = args[:string_value] if args.key?(:string_value)
|
||||
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
|
||||
|
@ -224,11 +284,26 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :asset_tag
|
||||
|
||||
# Output only. Baseband version of the device.
|
||||
# Corresponds to the JSON property `basebandVersion`
|
||||
# @return [String]
|
||||
attr_accessor :baseband_version
|
||||
|
||||
# Output only. Device bootloader version. Example: 0.6.7.
|
||||
# Corresponds to the JSON property `bootloaderVersion`
|
||||
# @return [String]
|
||||
attr_accessor :bootloader_version
|
||||
|
||||
# Output only. Device brand. Example: Samsung.
|
||||
# Corresponds to the JSON property `brand`
|
||||
# @return [String]
|
||||
attr_accessor :brand
|
||||
|
||||
# Output only. Build number of the device.
|
||||
# Corresponds to the JSON property `buildNumber`
|
||||
# @return [String]
|
||||
attr_accessor :build_number
|
||||
|
||||
# Output only. Represents whether the Device is compromised.
|
||||
# Corresponds to the JSON property `compromisedState`
|
||||
# @return [String]
|
||||
|
@ -246,11 +321,33 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :device_type
|
||||
|
||||
# Output only. 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
|
||||
|
||||
# Output only. Whether 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
|
||||
|
||||
# Output only. Device encryption state.
|
||||
# Corresponds to the JSON property `encryptionState`
|
||||
# @return [String]
|
||||
attr_accessor :encryption_state
|
||||
|
||||
# Output only. IMEI number of device if GSM device; empty otherwise.
|
||||
# Corresponds to the JSON property `imei`
|
||||
# @return [String]
|
||||
attr_accessor :imei
|
||||
|
||||
# Output only. Kernel version of the device.
|
||||
# Corresponds to the JSON property `kernelVersion`
|
||||
# @return [String]
|
||||
attr_accessor :kernel_version
|
||||
|
||||
# Most recent time when device synced with this service.
|
||||
# Corresponds to the JSON property `lastSyncTime`
|
||||
# @return [String]
|
||||
|
@ -294,6 +391,16 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :os_version
|
||||
|
||||
# Output only. Domain name for Google accounts on device. Type for other
|
||||
# accounts on
|
||||
# device. On Android, 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 the device is owned by the company or an individual
|
||||
# Corresponds to the JSON property `ownerType`
|
||||
# @return [String]
|
||||
|
@ -304,6 +411,11 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :release_version
|
||||
|
||||
# Output only. OS security patch update time on device.
|
||||
# Corresponds to the JSON property `securityPatchTime`
|
||||
# @return [String]
|
||||
attr_accessor :security_patch_time
|
||||
|
||||
# Serial Number of device. Example: HT82V1A01076.
|
||||
# Corresponds to the JSON property `serialNumber`
|
||||
# @return [String]
|
||||
|
@ -322,11 +434,18 @@ module Google
|
|||
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)
|
||||
@baseband_version = args[:baseband_version] if args.key?(:baseband_version)
|
||||
@bootloader_version = args[:bootloader_version] if args.key?(:bootloader_version)
|
||||
@brand = args[:brand] if args.key?(:brand)
|
||||
@build_number = args[:build_number] if args.key?(:build_number)
|
||||
@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)
|
||||
@enabled_developer_options = args[:enabled_developer_options] if args.key?(:enabled_developer_options)
|
||||
@enabled_usb_debugging = args[:enabled_usb_debugging] if args.key?(:enabled_usb_debugging)
|
||||
@encryption_state = args[:encryption_state] if args.key?(:encryption_state)
|
||||
@imei = args[:imei] if args.key?(:imei)
|
||||
@kernel_version = args[:kernel_version] if args.key?(:kernel_version)
|
||||
@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)
|
||||
|
@ -335,8 +454,10 @@ module Google
|
|||
@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)
|
||||
@other_accounts = args[:other_accounts] if args.key?(:other_accounts)
|
||||
@owner_type = args[:owner_type] if args.key?(:owner_type)
|
||||
@release_version = args[:release_version] if args.key?(:release_version)
|
||||
@security_patch_time = args[:security_patch_time] if args.key?(:security_patch_time)
|
||||
@serial_number = args[:serial_number] if args.key?(:serial_number)
|
||||
@wifi_mac_addresses = args[:wifi_mac_addresses] if args.key?(:wifi_mac_addresses)
|
||||
end
|
||||
|
@ -614,6 +735,33 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Response message that is returned in LRO result of ListClientStates
|
||||
# Operation.
|
||||
class ListClientStatesResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Client states meeting the list restrictions.
|
||||
# Corresponds to the JSON property `clientStates`
|
||||
# @return [Array<Google::Apis::CloudidentityV1beta1::ClientState>]
|
||||
attr_accessor :client_states
|
||||
|
||||
# Token to retrieve the next page of results. Empty if there are no more
|
||||
# results.
|
||||
# Corresponds to the JSON property `nextPageToken`
|
||||
# @return [String]
|
||||
attr_accessor :next_page_token
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@client_states = args[:client_states] if args.key?(:client_states)
|
||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||
end
|
||||
end
|
||||
|
||||
# Response message that is returned in LRO result of ListDeviceUsers Operation.
|
||||
class ListDeviceUsersResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
|
|
@ -52,6 +52,18 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ClientState
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CustomAttributeValue
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Device
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -88,6 +100,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListClientStatesResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListDeviceUsersResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -205,19 +223,9 @@ module Google
|
|||
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
|
||||
|
@ -254,17 +262,52 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class ClientState
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :asset_tags, as: 'assetTags'
|
||||
property :compliance_state, as: 'complianceState'
|
||||
property :create_time, as: 'createTime'
|
||||
property :custom_id, as: 'customId'
|
||||
property :etag, as: 'etag'
|
||||
property :health_score, as: 'healthScore'
|
||||
hash :key_value_pairs, as: 'keyValuePairs', class: Google::Apis::CloudidentityV1beta1::CustomAttributeValue, decorator: Google::Apis::CloudidentityV1beta1::CustomAttributeValue::Representation
|
||||
|
||||
property :last_update_time, as: 'lastUpdateTime'
|
||||
property :managed, as: 'managed'
|
||||
property :name, as: 'name'
|
||||
property :owner_type, as: 'ownerType'
|
||||
property :score_reason, as: 'scoreReason'
|
||||
end
|
||||
end
|
||||
|
||||
class CustomAttributeValue
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :bool_value, as: 'boolValue'
|
||||
property :number_value, as: 'numberValue'
|
||||
property :string_value, as: 'stringValue'
|
||||
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 :baseband_version, as: 'basebandVersion'
|
||||
property :bootloader_version, as: 'bootloaderVersion'
|
||||
property :brand, as: 'brand'
|
||||
property :build_number, as: 'buildNumber'
|
||||
property :compromised_state, as: 'compromisedState'
|
||||
property :create_time, as: 'createTime'
|
||||
property :device_type, as: 'deviceType'
|
||||
property :enabled_developer_options, as: 'enabledDeveloperOptions'
|
||||
property :enabled_usb_debugging, as: 'enabledUsbDebugging'
|
||||
property :encryption_state, as: 'encryptionState'
|
||||
property :imei, as: 'imei'
|
||||
property :kernel_version, as: 'kernelVersion'
|
||||
property :last_sync_time, as: 'lastSyncTime'
|
||||
property :management_state, as: 'managementState'
|
||||
property :manufacturer, as: 'manufacturer'
|
||||
|
@ -273,8 +316,10 @@ module Google
|
|||
property :name, as: 'name'
|
||||
property :network_operator, as: 'networkOperator'
|
||||
property :os_version, as: 'osVersion'
|
||||
collection :other_accounts, as: 'otherAccounts'
|
||||
property :owner_type, as: 'ownerType'
|
||||
property :release_version, as: 'releaseVersion'
|
||||
property :security_patch_time, as: 'securityPatchTime'
|
||||
property :serial_number, as: 'serialNumber'
|
||||
collection :wifi_mac_addresses, as: 'wifiMacAddresses'
|
||||
end
|
||||
|
@ -342,6 +387,15 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class ListClientStatesResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :client_states, as: 'clientStates', class: Google::Apis::CloudidentityV1beta1::ClientState, decorator: Google::Apis::CloudidentityV1beta1::ClientState::Representation
|
||||
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
end
|
||||
end
|
||||
|
||||
class ListDeviceUsersResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/iot
|
||||
module CloudiotV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20200220'
|
||||
REVISION = '20200414'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/resource-manager
|
||||
module CloudresourcemanagerV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20200311'
|
||||
REVISION = '20200415'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -1773,8 +1773,7 @@ module Google
|
|||
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
|
||||
# the fields in the mask will be modified. If no mask is provided, the
|
||||
# following default mask is used:
|
||||
# paths: "bindings, etag"
|
||||
# This field is only used by Cloud IAM.
|
||||
# `paths: "bindings, etag"`
|
||||
# Corresponds to the JSON property `updateMask`
|
||||
# @return [String]
|
||||
attr_accessor :update_mask
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/resource-manager
|
||||
module CloudresourcemanagerV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20200203'
|
||||
REVISION = '20200415'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -949,8 +949,7 @@ module Google
|
|||
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
|
||||
# the fields in the mask will be modified. If no mask is provided, the
|
||||
# following default mask is used:
|
||||
# paths: "bindings, etag"
|
||||
# This field is only used by Cloud IAM.
|
||||
# `paths: "bindings, etag"`
|
||||
# Corresponds to the JSON property `updateMask`
|
||||
# @return [String]
|
||||
attr_accessor :update_mask
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/resource-manager
|
||||
module CloudresourcemanagerV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20200210'
|
||||
REVISION = '20200415'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -854,8 +854,7 @@ module Google
|
|||
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
|
||||
# the fields in the mask will be modified. If no mask is provided, the
|
||||
# following default mask is used:
|
||||
# paths: "bindings, etag"
|
||||
# This field is only used by Cloud IAM.
|
||||
# `paths: "bindings, etag"`
|
||||
# Corresponds to the JSON property `updateMask`
|
||||
# @return [String]
|
||||
attr_accessor :update_mask
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/resource-manager
|
||||
module CloudresourcemanagerV2beta1
|
||||
VERSION = 'V2beta1'
|
||||
REVISION = '20200210'
|
||||
REVISION = '20200415'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -854,8 +854,7 @@ module Google
|
|||
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
|
||||
# the fields in the mask will be modified. If no mask is provided, the
|
||||
# following default mask is used:
|
||||
# paths: "bindings, etag"
|
||||
# This field is only used by Cloud IAM.
|
||||
# `paths: "bindings, etag"`
|
||||
# Corresponds to the JSON property `updateMask`
|
||||
# @return [String]
|
||||
attr_accessor :update_mask
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/scheduler/
|
||||
module CloudschedulerV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20200210'
|
||||
REVISION = '20200414'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -809,7 +809,7 @@ module Google
|
|||
# A job's retry interval starts at
|
||||
# min_backoff_duration, then doubles
|
||||
# `max_doublings` times, then increases linearly, and finally
|
||||
# retries retries at intervals of
|
||||
# retries at intervals of
|
||||
# max_backoff_duration up to
|
||||
# retry_count times.
|
||||
# For example, if min_backoff_duration is
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/scheduler/
|
||||
module CloudschedulerV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20200210'
|
||||
REVISION = '20200414'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -810,7 +810,7 @@ module Google
|
|||
# A job's retry interval starts at
|
||||
# min_backoff_duration, then doubles
|
||||
# `max_doublings` times, then increases linearly, and finally
|
||||
# retries retries at intervals of
|
||||
# retries at intervals of
|
||||
# max_backoff_duration up to
|
||||
# retry_count times.
|
||||
# For example, if min_backoff_duration is
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://developers.google.com/cloud-search/docs/guides/
|
||||
module CloudsearchV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20200331'
|
||||
REVISION = '20200421'
|
||||
|
||||
# Index and serve your organization's data with Cloud Search
|
||||
AUTH_CLOUD_SEARCH = 'https://www.googleapis.com/auth/cloud_search'
|
||||
|
|
|
@ -1707,7 +1707,7 @@ module Google
|
|||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Access control list information for the item. For more information see
|
||||
# https://developers.google.com/cloud-search/docs/guides/index-your-data#acls
|
||||
# [Map ACLs](/cloud-search/docs/guides/acls).
|
||||
# Corresponds to the JSON property `acl`
|
||||
# @return [Google::Apis::CloudsearchV1::ItemAcl]
|
||||
attr_accessor :acl
|
||||
|
@ -1791,7 +1791,7 @@ module Google
|
|||
end
|
||||
|
||||
# Access control list information for the item. For more information see
|
||||
# https://developers.google.com/cloud-search/docs/guides/index-your-data#acls
|
||||
# [Map ACLs](/cloud-search/docs/guides/acls).
|
||||
class ItemAcl
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
|
@ -3533,7 +3533,8 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :language_code
|
||||
|
||||
# Id of the application created using SearchApplicationsService.
|
||||
# The ID generated when you create a search application using the
|
||||
# [admin console](https://support.google.com/a/answer/9043922).
|
||||
# Corresponds to the JSON property `searchApplicationId`
|
||||
# @return [String]
|
||||
attr_accessor :search_application_id
|
||||
|
@ -3875,7 +3876,8 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# IDs of the Long Running Operations (LROs) currently running for this
|
||||
# Output only. IDs of the Long Running Operations (LROs) currently running for
|
||||
# this
|
||||
# schema. Output only field.
|
||||
# Corresponds to the JSON property `operationIds`
|
||||
# @return [Array<String>]
|
||||
|
|
|
@ -759,6 +759,7 @@ module Google
|
|||
# @param [String] name
|
||||
# Name of the Item to start a resumable upload.
|
||||
# Format: datasources/`source_id`/items/`item_id`.
|
||||
# The maximum length is 1536 bytes.
|
||||
# @param [Google::Apis::CloudsearchV1::StartUploadItemRequest] start_upload_item_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
|
@ -982,7 +983,8 @@ module Google
|
|||
# The suggest API does not use this parameter. Instead, suggest autocompletes
|
||||
# only based on characters in the query.
|
||||
# @param [String] request_options_search_application_id
|
||||
# Id of the application created using SearchApplicationsService.
|
||||
# The ID generated when you create a search application using the
|
||||
# [admin console](https://support.google.com/a/answer/9043922).
|
||||
# @param [String] request_options_time_zone
|
||||
# Current user's time zone id, such as "America/Los_Angeles" or
|
||||
# "Australia/Sydney". These IDs are defined by
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/shell/docs/
|
||||
module CloudshellV1alpha1
|
||||
VERSION = 'V1alpha1'
|
||||
REVISION = '20200411'
|
||||
REVISION = '20200504'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -331,6 +331,11 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :access_token
|
||||
|
||||
# Public keys that should be added to the environment before it is started.
|
||||
# Corresponds to the JSON property `publicKeys`
|
||||
# @return [Array<Google::Apis::CloudshellV1alpha1::PublicKey>]
|
||||
attr_accessor :public_keys
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
@ -338,6 +343,7 @@ module Google
|
|||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@access_token = args[:access_token] if args.key?(:access_token)
|
||||
@public_keys = args[:public_keys] if args.key?(:public_keys)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -156,6 +156,8 @@ module Google
|
|||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :access_token, as: 'accessToken'
|
||||
collection :public_keys, as: 'publicKeys', class: Google::Apis::CloudshellV1alpha1::PublicKey, decorator: Google::Apis::CloudshellV1alpha1::PublicKey::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/tasks/
|
||||
module CloudtasksV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20200228'
|
||||
REVISION = '20200414'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -151,16 +151,13 @@ module Google
|
|||
|
||||
# The HTTP method to use for the request. The default is POST.
|
||||
# The app's request handler for the task's target URL must be able to handle
|
||||
# HTTP requests with this http_method, otherwise the task attempt will fail
|
||||
# with error code 405 (Method Not Allowed). See
|
||||
# [Writing a push task request
|
||||
# HTTP requests with this http_method, otherwise the task attempt fails with
|
||||
# error code 405 (Method Not Allowed). See [Writing a push task request
|
||||
# handler](https://cloud.google.com/appengine/docs/java/taskqueue/push/creating-
|
||||
# handlers#writing_a_push_task_request_handler)
|
||||
# and the documentation for the request handlers in the language your app is
|
||||
# written in e.g.
|
||||
# [Python Request
|
||||
# Handler](https://cloud.google.com/appengine/docs/python/tools/webapp/
|
||||
# requesthandlerclass).
|
||||
# and the App Engine documentation for your runtime on [How Requests are
|
||||
# Handled](https://cloud.google.com/appengine/docs/standard/python3/how-requests-
|
||||
# are-handled).
|
||||
# Corresponds to the JSON property `httpMethod`
|
||||
# @return [String]
|
||||
attr_accessor :http_method
|
||||
|
@ -1276,7 +1273,7 @@ module Google
|
|||
# A task's retry interval starts at
|
||||
# min_backoff, then doubles
|
||||
# `max_doublings` times, then increases linearly, and finally
|
||||
# retries retries at intervals of
|
||||
# retries at intervals of
|
||||
# max_backoff up to
|
||||
# max_attempts times.
|
||||
# For example, if min_backoff is 10s,
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/tasks/
|
||||
module CloudtasksV2beta2
|
||||
VERSION = 'V2beta2'
|
||||
REVISION = '20200324'
|
||||
REVISION = '20200414'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -164,16 +164,13 @@ module Google
|
|||
|
||||
# The HTTP method to use for the request. The default is POST.
|
||||
# The app's request handler for the task's target URL must be able to handle
|
||||
# HTTP requests with this http_method, otherwise the task attempt will fail
|
||||
# with error code 405 (Method Not Allowed). See
|
||||
# [Writing a push task request
|
||||
# HTTP requests with this http_method, otherwise the task attempt fails with
|
||||
# error code 405 (Method Not Allowed). See [Writing a push task request
|
||||
# handler](https://cloud.google.com/appengine/docs/java/taskqueue/push/creating-
|
||||
# handlers#writing_a_push_task_request_handler)
|
||||
# and the documentation for the request handlers in the language your app is
|
||||
# written in e.g.
|
||||
# [Python Request
|
||||
# Handler](https://cloud.google.com/appengine/docs/python/tools/webapp/
|
||||
# requesthandlerclass).
|
||||
# and the App Engine documentation for your runtime on [How Requests are
|
||||
# Handled](https://cloud.google.com/appengine/docs/standard/python3/how-requests-
|
||||
# are-handled).
|
||||
# Corresponds to the JSON property `httpMethod`
|
||||
# @return [String]
|
||||
attr_accessor :http_method
|
||||
|
@ -1434,7 +1431,7 @@ module Google
|
|||
# A task's retry interval starts at
|
||||
# min_backoff, then doubles
|
||||
# `max_doublings` times, then increases linearly, and finally
|
||||
# retries retries at intervals of
|
||||
# retries at intervals of
|
||||
# max_backoff up to
|
||||
# max_attempts times.
|
||||
# For example, if min_backoff is 10s,
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/tasks/
|
||||
module CloudtasksV2beta3
|
||||
VERSION = 'V2beta3'
|
||||
REVISION = '20200210'
|
||||
REVISION = '20200414'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -190,16 +190,13 @@ module Google
|
|||
|
||||
# The HTTP method to use for the request. The default is POST.
|
||||
# The app's request handler for the task's target URL must be able to handle
|
||||
# HTTP requests with this http_method, otherwise the task attempt will fail
|
||||
# with error code 405 (Method Not Allowed). See
|
||||
# [Writing a push task request
|
||||
# HTTP requests with this http_method, otherwise the task attempt fails with
|
||||
# error code 405 (Method Not Allowed). See [Writing a push task request
|
||||
# handler](https://cloud.google.com/appengine/docs/java/taskqueue/push/creating-
|
||||
# handlers#writing_a_push_task_request_handler)
|
||||
# and the documentation for the request handlers in the language your app is
|
||||
# written in e.g.
|
||||
# [Python Request
|
||||
# Handler](https://cloud.google.com/appengine/docs/python/tools/webapp/
|
||||
# requesthandlerclass).
|
||||
# and the App Engine documentation for your runtime on [How Requests are
|
||||
# Handled](https://cloud.google.com/appengine/docs/standard/python3/how-requests-
|
||||
# are-handled).
|
||||
# Corresponds to the JSON property `httpMethod`
|
||||
# @return [String]
|
||||
attr_accessor :http_method
|
||||
|
@ -1299,7 +1296,7 @@ module Google
|
|||
# A task's retry interval starts at
|
||||
# min_backoff, then doubles
|
||||
# `max_doublings` times, then increases linearly, and finally
|
||||
# retries retries at intervals of
|
||||
# retries at intervals of
|
||||
# max_backoff up to
|
||||
# max_attempts times.
|
||||
# For example, if min_backoff is 10s,
|
||||
|
|
|
@ -29,7 +29,7 @@ module Google
|
|||
# @see https://cloud.google.com/trace
|
||||
module CloudtraceV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20200309'
|
||||
REVISION = '20200414'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -86,10 +86,9 @@ module Google
|
|||
# The set of attributes. Each attribute's key can be up to 128 bytes
|
||||
# long. The value can be a string up to 256 bytes, a signed 64-bit integer,
|
||||
# or the Boolean values `true` and `false`. For example:
|
||||
# "/instance_id": "my-instance"
|
||||
# "/http/user_agent": ""
|
||||
# "/http/request_bytes": 300
|
||||
# "abc.com/myattribute": true
|
||||
# "/instance_id": ` "string_value": ` "value": "my-instance" ` `
|
||||
# "/http/request_bytes": ` "int_value": 300 `
|
||||
# "abc.com/myattribute": ` "bool_value": false `
|
||||
# Corresponds to the JSON property `attributeMap`
|
||||
# @return [Hash<String,Google::Apis::CloudtraceV2::AttributeValue>]
|
||||
attr_accessor :attribute_map
|
||||
|
|
|
@ -1,39 +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/commentanalyzer_v1alpha1/service.rb'
|
||||
require 'google/apis/commentanalyzer_v1alpha1/classes.rb'
|
||||
require 'google/apis/commentanalyzer_v1alpha1/representations.rb'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
# Perspective Comment Analyzer API
|
||||
#
|
||||
# The Perspective Comment Analyzer API provides information about the potential
|
||||
# impact of a comment on a conversation (e.g. it can provide a score for the "
|
||||
# toxicity" of a comment). Users can leverage the "SuggestCommentScore" method
|
||||
# to submit corrections to improve Perspective over time. Users can set the "
|
||||
# doNotStore" flag to ensure that all submitted comments are automatically
|
||||
# deleted after scores are returned.
|
||||
#
|
||||
# @see https://github.com/conversationai/perspectiveapi/blob/master/README.md
|
||||
module CommentanalyzerV1alpha1
|
||||
VERSION = 'V1alpha1'
|
||||
REVISION = '20200301'
|
||||
|
||||
# View your email address
|
||||
AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email'
|
||||
end
|
||||
end
|
||||
end
|
|
@ -1,480 +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 CommentanalyzerV1alpha1
|
||||
|
||||
# The comment analysis request message.
|
||||
# LINT.IfChange
|
||||
class AnalyzeCommentRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Opaque token that is echoed from the request to the response.
|
||||
# Corresponds to the JSON property `clientToken`
|
||||
# @return [String]
|
||||
attr_accessor :client_token
|
||||
|
||||
# Represents a body of text.
|
||||
# Corresponds to the JSON property `comment`
|
||||
# @return [Google::Apis::CommentanalyzerV1alpha1::TextEntry]
|
||||
attr_accessor :comment
|
||||
|
||||
# Optional identifier associating this AnalyzeCommentRequest with a
|
||||
# particular client's community. Different communities may have different
|
||||
# norms and rules. Specifying this value enables us to explore building
|
||||
# community-specific models for clients.
|
||||
# Corresponds to the JSON property `communityId`
|
||||
# @return [String]
|
||||
attr_accessor :community_id
|
||||
|
||||
# Context is typically something that a Comment is referencing or replying to
|
||||
# (such as an article, or previous comment).
|
||||
# Note: Populate only ONE OF the following fields. The oneof syntax cannot be
|
||||
# used because that would require nesting entries inside another message and
|
||||
# breaking backwards compatibility. The server will return an error if more
|
||||
# than one of the following fields is present.
|
||||
# Corresponds to the JSON property `context`
|
||||
# @return [Google::Apis::CommentanalyzerV1alpha1::Context]
|
||||
attr_accessor :context
|
||||
|
||||
# Do not store the comment or context sent in this request. By default, the
|
||||
# service may store comments/context for debugging purposes.
|
||||
# Corresponds to the JSON property `doNotStore`
|
||||
# @return [Boolean]
|
||||
attr_accessor :do_not_store
|
||||
alias_method :do_not_store?, :do_not_store
|
||||
|
||||
# The language(s) of the comment and context. If none are specified, we
|
||||
# attempt to automatically detect the language. Specifying multiple languages
|
||||
# means the text contains multiple lanugages. Both ISO and BCP-47 language
|
||||
# codes are accepted.
|
||||
# The server returns an error if no language was specified and language
|
||||
# detection fails. The server also returns an error if the languages (either
|
||||
# specified by the caller, or auto-detected) are not *all* supported by the
|
||||
# service.
|
||||
# Corresponds to the JSON property `languages`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :languages
|
||||
|
||||
# Specification of requested attributes. The AttributeParameters serve as
|
||||
# configuration for each associated attribute. The map keys are attribute
|
||||
# names. The available attributes may be different on each RFE installation,
|
||||
# and can be seen by calling ListAttributes (see above).
|
||||
# For the prod installation, known as Perspective API, at
|
||||
# blade:commentanalyzer-esf and commentanalyzer.googleapis.com, see
|
||||
# go/checker-models (internal) and
|
||||
# https://github.com/conversationai/perspectiveapi/blob/master/2-api/models.md#
|
||||
# all-attribute-types.
|
||||
# Corresponds to the JSON property `requestedAttributes`
|
||||
# @return [Hash<String,Google::Apis::CommentanalyzerV1alpha1::AttributeParameters>]
|
||||
attr_accessor :requested_attributes
|
||||
|
||||
# Session ID. Used to join related RPCs into a single session. For example,
|
||||
# an interactive tool that calls both the AnalyzeComment and
|
||||
# SuggestCommentScore RPCs should set all invocations of both RPCs to the
|
||||
# same Session ID, typically a random 64-bit integer.
|
||||
# Corresponds to the JSON property `sessionId`
|
||||
# @return [String]
|
||||
attr_accessor :session_id
|
||||
|
||||
# An advisory parameter that will return span annotations if the model
|
||||
# is capable of providing scores with sub-comment resolution. This will
|
||||
# likely increase the size of the returned message.
|
||||
# Corresponds to the JSON property `spanAnnotations`
|
||||
# @return [Boolean]
|
||||
attr_accessor :span_annotations
|
||||
alias_method :span_annotations?, :span_annotations
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@client_token = args[:client_token] if args.key?(:client_token)
|
||||
@comment = args[:comment] if args.key?(:comment)
|
||||
@community_id = args[:community_id] if args.key?(:community_id)
|
||||
@context = args[:context] if args.key?(:context)
|
||||
@do_not_store = args[:do_not_store] if args.key?(:do_not_store)
|
||||
@languages = args[:languages] if args.key?(:languages)
|
||||
@requested_attributes = args[:requested_attributes] if args.key?(:requested_attributes)
|
||||
@session_id = args[:session_id] if args.key?(:session_id)
|
||||
@span_annotations = args[:span_annotations] if args.key?(:span_annotations)
|
||||
end
|
||||
end
|
||||
|
||||
# The comment analysis response message.
|
||||
class AnalyzeCommentResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Scores for the requested attributes. The map keys are attribute names (same
|
||||
# as the requested_attribute field in AnalyzeCommentRequest, for example
|
||||
# "ATTACK_ON_AUTHOR", "INFLAMMATORY", etc).
|
||||
# Corresponds to the JSON property `attributeScores`
|
||||
# @return [Hash<String,Google::Apis::CommentanalyzerV1alpha1::AttributeScores>]
|
||||
attr_accessor :attribute_scores
|
||||
|
||||
# Same token from the original AnalyzeCommentRequest.
|
||||
# Corresponds to the JSON property `clientToken`
|
||||
# @return [String]
|
||||
attr_accessor :client_token
|
||||
|
||||
# Contains the languages detected from the text content, sorted in order of
|
||||
# likelihood.
|
||||
# Corresponds to the JSON property `detectedLanguages`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :detected_languages
|
||||
|
||||
# The language(s) used by CommentAnalyzer service to choose which Model to
|
||||
# use when analyzing the comment. Might better be called
|
||||
# "effective_languages". The logic used to make the choice is as follows:
|
||||
# if !Request.languages.empty()
|
||||
# effective_languages = Request.languages
|
||||
# else
|
||||
# effective_languages = detected_languages[0]
|
||||
# Corresponds to the JSON property `languages`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :languages
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@attribute_scores = args[:attribute_scores] if args.key?(:attribute_scores)
|
||||
@client_token = args[:client_token] if args.key?(:client_token)
|
||||
@detected_languages = args[:detected_languages] if args.key?(:detected_languages)
|
||||
@languages = args[:languages] if args.key?(:languages)
|
||||
end
|
||||
end
|
||||
|
||||
# A type of context specific to a comment left on a single-threaded comment
|
||||
# message board, where comments are either a top level comment or the child of
|
||||
# a top level comment.
|
||||
class ArticleAndParentComment
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Represents a body of text.
|
||||
# Corresponds to the JSON property `article`
|
||||
# @return [Google::Apis::CommentanalyzerV1alpha1::TextEntry]
|
||||
attr_accessor :article
|
||||
|
||||
# Represents a body of text.
|
||||
# Corresponds to the JSON property `parentComment`
|
||||
# @return [Google::Apis::CommentanalyzerV1alpha1::TextEntry]
|
||||
attr_accessor :parent_comment
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@article = args[:article] if args.key?(:article)
|
||||
@parent_comment = args[:parent_comment] if args.key?(:parent_comment)
|
||||
end
|
||||
end
|
||||
|
||||
# Configurable parameters for attribute scoring.
|
||||
class AttributeParameters
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Don't return scores for this attribute that are below this threshold. If
|
||||
# unset, a default threshold will be applied. A FloatValue wrapper is used to
|
||||
# distinguish between 0 vs. default/unset.
|
||||
# Corresponds to the JSON property `scoreThreshold`
|
||||
# @return [Float]
|
||||
attr_accessor :score_threshold
|
||||
|
||||
# What type of scores to return. If unset, defaults to probability scores.
|
||||
# Corresponds to the JSON property `scoreType`
|
||||
# @return [String]
|
||||
attr_accessor :score_type
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@score_threshold = args[:score_threshold] if args.key?(:score_threshold)
|
||||
@score_type = args[:score_type] if args.key?(:score_type)
|
||||
end
|
||||
end
|
||||
|
||||
# This holds score values for a single attribute. It contains both per-span
|
||||
# scores as well as an overall summary score..
|
||||
class AttributeScores
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Per-span scores.
|
||||
# Corresponds to the JSON property `spanScores`
|
||||
# @return [Array<Google::Apis::CommentanalyzerV1alpha1::SpanScore>]
|
||||
attr_accessor :span_scores
|
||||
|
||||
# Analysis scores are described by a value and a ScoreType.
|
||||
# Corresponds to the JSON property `summaryScore`
|
||||
# @return [Google::Apis::CommentanalyzerV1alpha1::Score]
|
||||
attr_accessor :summary_score
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@span_scores = args[:span_scores] if args.key?(:span_scores)
|
||||
@summary_score = args[:summary_score] if args.key?(:summary_score)
|
||||
end
|
||||
end
|
||||
|
||||
# Context is typically something that a Comment is referencing or replying to
|
||||
# (such as an article, or previous comment).
|
||||
# Note: Populate only ONE OF the following fields. The oneof syntax cannot be
|
||||
# used because that would require nesting entries inside another message and
|
||||
# breaking backwards compatibility. The server will return an error if more
|
||||
# than one of the following fields is present.
|
||||
class Context
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A type of context specific to a comment left on a single-threaded comment
|
||||
# message board, where comments are either a top level comment or the child of
|
||||
# a top level comment.
|
||||
# Corresponds to the JSON property `articleAndParentComment`
|
||||
# @return [Google::Apis::CommentanalyzerV1alpha1::ArticleAndParentComment]
|
||||
attr_accessor :article_and_parent_comment
|
||||
|
||||
# A list of messages. For example, a linear comments section or forum thread.
|
||||
# Corresponds to the JSON property `entries`
|
||||
# @return [Array<Google::Apis::CommentanalyzerV1alpha1::TextEntry>]
|
||||
attr_accessor :entries
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@article_and_parent_comment = args[:article_and_parent_comment] if args.key?(:article_and_parent_comment)
|
||||
@entries = args[:entries] if args.key?(:entries)
|
||||
end
|
||||
end
|
||||
|
||||
# Analysis scores are described by a value and a ScoreType.
|
||||
class Score
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The type of the above value.
|
||||
# Corresponds to the JSON property `type`
|
||||
# @return [String]
|
||||
attr_accessor :type
|
||||
|
||||
# Score value. Semantics described by type below.
|
||||
# Corresponds to the JSON property `value`
|
||||
# @return [Float]
|
||||
attr_accessor :value
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@type = args[:type] if args.key?(:type)
|
||||
@value = args[:value] if args.key?(:value)
|
||||
end
|
||||
end
|
||||
|
||||
# This is a single score for a given span of text.
|
||||
class SpanScore
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# "begin" and "end" describe the span of the original text that the attribute
|
||||
# score applies to. The values are the UTF-16 codepoint range. "end" is
|
||||
# exclusive. For example, with the text "Hi there", the begin/end pair (0,2)
|
||||
# describes the text "Hi".
|
||||
# If "begin" and "end" are unset, the score applies to the full text.
|
||||
# Corresponds to the JSON property `begin`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :begin
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `end`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :end
|
||||
|
||||
# Analysis scores are described by a value and a ScoreType.
|
||||
# Corresponds to the JSON property `score`
|
||||
# @return [Google::Apis::CommentanalyzerV1alpha1::Score]
|
||||
attr_accessor :score
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@begin = args[:begin] if args.key?(:begin)
|
||||
@end = args[:end] if args.key?(:end)
|
||||
@score = args[:score] if args.key?(:score)
|
||||
end
|
||||
end
|
||||
|
||||
# The comment score suggestion request message.
|
||||
class SuggestCommentScoreRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Attribute scores for the comment. The map keys are attribute names, same as
|
||||
# the requested_attribute field in AnalyzeCommentRequest (for example
|
||||
# "ATTACK_ON_AUTHOR", "INFLAMMATORY", etc.). This field has the same type as
|
||||
# the `attribute_scores` field in AnalyzeCommentResponse.
|
||||
# To specify an overall attribute score for the entire comment as a whole,
|
||||
# use the `summary_score` field of the mapped AttributeScores object. To
|
||||
# specify scores on specific subparts of the comment, use the `span_scores`
|
||||
# field. All SpanScore objects must have begin and end fields set.
|
||||
# All Score objects must be explicitly set (for binary classification, use
|
||||
# the score values 0 and 1). If Score objects don't include a ScoreType,
|
||||
# `PROBABILITY` is assumed.
|
||||
# `attribute_scores` must not be empty. The mapped AttributeScores objects
|
||||
# also must not be empty. An `INVALID_ARGUMENT` error is returned for all
|
||||
# malformed requests.
|
||||
# Corresponds to the JSON property `attributeScores`
|
||||
# @return [Hash<String,Google::Apis::CommentanalyzerV1alpha1::AttributeScores>]
|
||||
attr_accessor :attribute_scores
|
||||
|
||||
# Opaque token that is echoed from the request to the response.
|
||||
# Corresponds to the JSON property `clientToken`
|
||||
# @return [String]
|
||||
attr_accessor :client_token
|
||||
|
||||
# Represents a body of text.
|
||||
# Corresponds to the JSON property `comment`
|
||||
# @return [Google::Apis::CommentanalyzerV1alpha1::TextEntry]
|
||||
attr_accessor :comment
|
||||
|
||||
# Optional identifier associating this comment score suggestion with a
|
||||
# particular sub-community. Different communities may have different norms
|
||||
# and rules. Specifying this value enables training community-specific
|
||||
# models.
|
||||
# Corresponds to the JSON property `communityId`
|
||||
# @return [String]
|
||||
attr_accessor :community_id
|
||||
|
||||
# Context is typically something that a Comment is referencing or replying to
|
||||
# (such as an article, or previous comment).
|
||||
# Note: Populate only ONE OF the following fields. The oneof syntax cannot be
|
||||
# used because that would require nesting entries inside another message and
|
||||
# breaking backwards compatibility. The server will return an error if more
|
||||
# than one of the following fields is present.
|
||||
# Corresponds to the JSON property `context`
|
||||
# @return [Google::Apis::CommentanalyzerV1alpha1::Context]
|
||||
attr_accessor :context
|
||||
|
||||
# The language(s) of the comment and context. If none are specified, we
|
||||
# attempt to automatically detect the language. Both ISO and BCP-47 language
|
||||
# codes are accepted.
|
||||
# Corresponds to the JSON property `languages`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :languages
|
||||
|
||||
# Session ID. Used to join related RPCs into a single session. For example,
|
||||
# an interactive tool that calls both the AnalyzeComment and
|
||||
# SuggestCommentScore RPCs should set all invocations of both RPCs to the
|
||||
# same Session ID, typically a random 64-bit integer.
|
||||
# Corresponds to the JSON property `sessionId`
|
||||
# @return [String]
|
||||
attr_accessor :session_id
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@attribute_scores = args[:attribute_scores] if args.key?(:attribute_scores)
|
||||
@client_token = args[:client_token] if args.key?(:client_token)
|
||||
@comment = args[:comment] if args.key?(:comment)
|
||||
@community_id = args[:community_id] if args.key?(:community_id)
|
||||
@context = args[:context] if args.key?(:context)
|
||||
@languages = args[:languages] if args.key?(:languages)
|
||||
@session_id = args[:session_id] if args.key?(:session_id)
|
||||
end
|
||||
end
|
||||
|
||||
# The comment score suggestion response message.
|
||||
class SuggestCommentScoreResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Same token from the original SuggestCommentScoreRequest.
|
||||
# Corresponds to the JSON property `clientToken`
|
||||
# @return [String]
|
||||
attr_accessor :client_token
|
||||
|
||||
# The list of languages detected from the comment text.
|
||||
# Corresponds to the JSON property `detectedLanguages`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :detected_languages
|
||||
|
||||
# The list of languages provided in the request.
|
||||
# Corresponds to the JSON property `requestedLanguages`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :requested_languages
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@client_token = args[:client_token] if args.key?(:client_token)
|
||||
@detected_languages = args[:detected_languages] if args.key?(:detected_languages)
|
||||
@requested_languages = args[:requested_languages] if args.key?(:requested_languages)
|
||||
end
|
||||
end
|
||||
|
||||
# Represents a body of text.
|
||||
class TextEntry
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# UTF-8 encoded text.
|
||||
# Corresponds to the JSON property `text`
|
||||
# @return [String]
|
||||
attr_accessor :text
|
||||
|
||||
# Type of the text field.
|
||||
# Corresponds to the JSON property `type`
|
||||
# @return [String]
|
||||
attr_accessor :type
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@text = args[:text] if args.key?(:text)
|
||||
@type = args[:type] if args.key?(:type)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -1,210 +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 CommentanalyzerV1alpha1
|
||||
|
||||
class AnalyzeCommentRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AnalyzeCommentResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ArticleAndParentComment
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AttributeParameters
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AttributeScores
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Context
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Score
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SpanScore
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SuggestCommentScoreRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SuggestCommentScoreResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TextEntry
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AnalyzeCommentRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :client_token, as: 'clientToken'
|
||||
property :comment, as: 'comment', class: Google::Apis::CommentanalyzerV1alpha1::TextEntry, decorator: Google::Apis::CommentanalyzerV1alpha1::TextEntry::Representation
|
||||
|
||||
property :community_id, as: 'communityId'
|
||||
property :context, as: 'context', class: Google::Apis::CommentanalyzerV1alpha1::Context, decorator: Google::Apis::CommentanalyzerV1alpha1::Context::Representation
|
||||
|
||||
property :do_not_store, as: 'doNotStore'
|
||||
collection :languages, as: 'languages'
|
||||
hash :requested_attributes, as: 'requestedAttributes', class: Google::Apis::CommentanalyzerV1alpha1::AttributeParameters, decorator: Google::Apis::CommentanalyzerV1alpha1::AttributeParameters::Representation
|
||||
|
||||
property :session_id, as: 'sessionId'
|
||||
property :span_annotations, as: 'spanAnnotations'
|
||||
end
|
||||
end
|
||||
|
||||
class AnalyzeCommentResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
hash :attribute_scores, as: 'attributeScores', class: Google::Apis::CommentanalyzerV1alpha1::AttributeScores, decorator: Google::Apis::CommentanalyzerV1alpha1::AttributeScores::Representation
|
||||
|
||||
property :client_token, as: 'clientToken'
|
||||
collection :detected_languages, as: 'detectedLanguages'
|
||||
collection :languages, as: 'languages'
|
||||
end
|
||||
end
|
||||
|
||||
class ArticleAndParentComment
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :article, as: 'article', class: Google::Apis::CommentanalyzerV1alpha1::TextEntry, decorator: Google::Apis::CommentanalyzerV1alpha1::TextEntry::Representation
|
||||
|
||||
property :parent_comment, as: 'parentComment', class: Google::Apis::CommentanalyzerV1alpha1::TextEntry, decorator: Google::Apis::CommentanalyzerV1alpha1::TextEntry::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class AttributeParameters
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :score_threshold, as: 'scoreThreshold'
|
||||
property :score_type, as: 'scoreType'
|
||||
end
|
||||
end
|
||||
|
||||
class AttributeScores
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :span_scores, as: 'spanScores', class: Google::Apis::CommentanalyzerV1alpha1::SpanScore, decorator: Google::Apis::CommentanalyzerV1alpha1::SpanScore::Representation
|
||||
|
||||
property :summary_score, as: 'summaryScore', class: Google::Apis::CommentanalyzerV1alpha1::Score, decorator: Google::Apis::CommentanalyzerV1alpha1::Score::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Context
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :article_and_parent_comment, as: 'articleAndParentComment', class: Google::Apis::CommentanalyzerV1alpha1::ArticleAndParentComment, decorator: Google::Apis::CommentanalyzerV1alpha1::ArticleAndParentComment::Representation
|
||||
|
||||
collection :entries, as: 'entries', class: Google::Apis::CommentanalyzerV1alpha1::TextEntry, decorator: Google::Apis::CommentanalyzerV1alpha1::TextEntry::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Score
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :type, as: 'type'
|
||||
property :value, as: 'value'
|
||||
end
|
||||
end
|
||||
|
||||
class SpanScore
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :begin, as: 'begin'
|
||||
property :end, as: 'end'
|
||||
property :score, as: 'score', class: Google::Apis::CommentanalyzerV1alpha1::Score, decorator: Google::Apis::CommentanalyzerV1alpha1::Score::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class SuggestCommentScoreRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
hash :attribute_scores, as: 'attributeScores', class: Google::Apis::CommentanalyzerV1alpha1::AttributeScores, decorator: Google::Apis::CommentanalyzerV1alpha1::AttributeScores::Representation
|
||||
|
||||
property :client_token, as: 'clientToken'
|
||||
property :comment, as: 'comment', class: Google::Apis::CommentanalyzerV1alpha1::TextEntry, decorator: Google::Apis::CommentanalyzerV1alpha1::TextEntry::Representation
|
||||
|
||||
property :community_id, as: 'communityId'
|
||||
property :context, as: 'context', class: Google::Apis::CommentanalyzerV1alpha1::Context, decorator: Google::Apis::CommentanalyzerV1alpha1::Context::Representation
|
||||
|
||||
collection :languages, as: 'languages'
|
||||
property :session_id, as: 'sessionId'
|
||||
end
|
||||
end
|
||||
|
||||
class SuggestCommentScoreResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :client_token, as: 'clientToken'
|
||||
collection :detected_languages, as: 'detectedLanguages'
|
||||
collection :requested_languages, as: 'requestedLanguages'
|
||||
end
|
||||
end
|
||||
|
||||
class TextEntry
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :text, as: 'text'
|
||||
property :type, as: 'type'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -1,124 +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 CommentanalyzerV1alpha1
|
||||
# Perspective Comment Analyzer API
|
||||
#
|
||||
# The Perspective Comment Analyzer API provides information about the potential
|
||||
# impact of a comment on a conversation (e.g. it can provide a score for the "
|
||||
# toxicity" of a comment). Users can leverage the "SuggestCommentScore" method
|
||||
# to submit corrections to improve Perspective over time. Users can set the "
|
||||
# doNotStore" flag to ensure that all submitted comments are automatically
|
||||
# deleted after scores are returned.
|
||||
#
|
||||
# @example
|
||||
# require 'google/apis/commentanalyzer_v1alpha1'
|
||||
#
|
||||
# Commentanalyzer = Google::Apis::CommentanalyzerV1alpha1 # Alias the module
|
||||
# service = Commentanalyzer::CommentAnalyzerService.new
|
||||
#
|
||||
# @see https://github.com/conversationai/perspectiveapi/blob/master/README.md
|
||||
class CommentAnalyzerService < 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://commentanalyzer.googleapis.com/', '')
|
||||
@batch_path = 'batch'
|
||||
end
|
||||
|
||||
# Analyzes the provided text and returns scores for requested attributes.
|
||||
# @param [Google::Apis::CommentanalyzerV1alpha1::AnalyzeCommentRequest] analyze_comment_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::CommentanalyzerV1alpha1::AnalyzeCommentResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CommentanalyzerV1alpha1::AnalyzeCommentResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def analyze_comment(analyze_comment_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1alpha1/comments:analyze', options)
|
||||
command.request_representation = Google::Apis::CommentanalyzerV1alpha1::AnalyzeCommentRequest::Representation
|
||||
command.request_object = analyze_comment_request_object
|
||||
command.response_representation = Google::Apis::CommentanalyzerV1alpha1::AnalyzeCommentResponse::Representation
|
||||
command.response_class = Google::Apis::CommentanalyzerV1alpha1::AnalyzeCommentResponse
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Suggest comment scores as training data.
|
||||
# @param [Google::Apis::CommentanalyzerV1alpha1::SuggestCommentScoreRequest] suggest_comment_score_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::CommentanalyzerV1alpha1::SuggestCommentScoreResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CommentanalyzerV1alpha1::SuggestCommentScoreResponse]
|
||||
#
|
||||
# @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 suggestscore_comment(suggest_comment_score_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1alpha1/comments:suggestscore', options)
|
||||
command.request_representation = Google::Apis::CommentanalyzerV1alpha1::SuggestCommentScoreRequest::Representation
|
||||
command.request_object = suggest_comment_score_request_object
|
||||
command.response_representation = Google::Apis::CommentanalyzerV1alpha1::SuggestCommentScoreResponse::Representation
|
||||
command.response_class = Google::Apis::CommentanalyzerV1alpha1::SuggestCommentScoreResponse
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
def apply_command_defaults(command)
|
||||
command.query['key'] = key unless key.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/composer/
|
||||
module ComposerV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20200313'
|
||||
REVISION = '20200421'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -32,8 +32,7 @@ module Google
|
|||
attr_accessor :description
|
||||
|
||||
# IP address or range, defined using CIDR notation, of requests that this
|
||||
# rule applies to. You can use the wildcard character "*" to match all IPs
|
||||
# equivalent to "0/0" and "::/0" together.
|
||||
# rule applies to.
|
||||
# Examples: `192.168.1.1` or `192.168.0.0/16` or `2001:db8::/32`
|
||||
# or `2001:0db8:0000:0042:0000:8a2e:0370:7334`.
|
||||
# <p>IP range prefixes should be properly truncated. For example,
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/compute/docs/reference/latest/
|
||||
module ComputeAlpha
|
||||
VERSION = 'Alpha'
|
||||
REVISION = '20200311'
|
||||
REVISION = '20200331'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -622,9 +622,9 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :label_fingerprint
|
||||
|
||||
# Labels to apply to this Address resource. These can be later modified by the
|
||||
# setLabels method. Each label key/value must comply with RFC1035. Label values
|
||||
# may be empty.
|
||||
# Labels for this resource. These can only be added or modified by the setLabels
|
||||
# method. Each label key/value pair must comply with RFC1035. Label values may
|
||||
# be empty.
|
||||
# Corresponds to the JSON property `labels`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :labels
|
||||
|
@ -1144,6 +1144,12 @@ module Google
|
|||
# @return [Array<Google::Apis::ComputeAlpha::AllocationSpecificSkuAllocationAllocatedInstancePropertiesReservedDisk>]
|
||||
attr_accessor :local_ssds
|
||||
|
||||
# An opaque location hint used to place the allocation close to other resources.
|
||||
# This field is for use by internal tools that use the public API.
|
||||
# Corresponds to the JSON property `locationHint`
|
||||
# @return [String]
|
||||
attr_accessor :location_hint
|
||||
|
||||
# Compute Engine Long Term Release. When specified, VMs that have this policy
|
||||
# become long term release (internal: stable fleet) VMs.
|
||||
# For all VM shapes, this should result in fewer disruptions due to software
|
||||
|
@ -1175,6 +1181,7 @@ module Google
|
|||
def update!(**args)
|
||||
@guest_accelerators = args[:guest_accelerators] if args.key?(:guest_accelerators)
|
||||
@local_ssds = args[:local_ssds] if args.key?(:local_ssds)
|
||||
@location_hint = args[:location_hint] if args.key?(:location_hint)
|
||||
@long_term_release = args[:long_term_release] if args.key?(:long_term_release)
|
||||
@machine_type = args[:machine_type] if args.key?(:machine_type)
|
||||
@min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform)
|
||||
|
@ -6998,9 +7005,9 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :label_fingerprint
|
||||
|
||||
# Labels to apply to this ExternalVpnGateway resource. These can be later
|
||||
# modified by the setLabels method. Each label key/value must comply with
|
||||
# RFC1035. Label values may be empty.
|
||||
# Labels for this resource. These can only be added or modified by the setLabels
|
||||
# method. Each label key/value pair must comply with RFC1035. Label values may
|
||||
# be empty.
|
||||
# Corresponds to the JSON property `labels`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :labels
|
||||
|
@ -7823,7 +7830,7 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :label_fingerprint
|
||||
|
||||
# Labels to apply to this resource. These can be later modified by the setLabels
|
||||
# Labels for this resource. These can only be added or modified by the setLabels
|
||||
# method. Each label key/value pair must comply with RFC1035. Label values may
|
||||
# be empty.
|
||||
# Corresponds to the JSON property `labels`
|
||||
|
@ -12310,7 +12317,10 @@ module Google
|
|||
# @return [Array<Google::Apis::ComputeAlpha::NamedPort>]
|
||||
attr_accessor :named_ports
|
||||
|
||||
# The URL of the network to which all instances in the instance group belong.
|
||||
# [Output Only] The URL of the network to which all instances in the instance
|
||||
# group belong. If your instance has multiple network interfaces, then the
|
||||
# network and subnetwork fields only refer to the network and subnet used by
|
||||
# your primary interface (nic0).
|
||||
# Corresponds to the JSON property `network`
|
||||
# @return [String]
|
||||
attr_accessor :network
|
||||
|
@ -12337,7 +12347,9 @@ module Google
|
|||
attr_accessor :size
|
||||
|
||||
# [Output Only] The URL of the subnetwork to which all instances in the instance
|
||||
# group belong.
|
||||
# group belong. If your instance has multiple network interfaces, then the
|
||||
# network and subnetwork fields only refer to the network and subnet used by
|
||||
# your primary interface (nic0).
|
||||
# Corresponds to the JSON property `subnetwork`
|
||||
# @return [String]
|
||||
attr_accessor :subnetwork
|
||||
|
@ -15592,9 +15604,9 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :label_fingerprint
|
||||
|
||||
# Labels to apply to this Interconnect resource. These can be later modified by
|
||||
# the setLabels method. Each label key/value must comply with RFC1035. Label
|
||||
# values may be empty.
|
||||
# Labels for this resource. These can only be added or modified by the setLabels
|
||||
# method. Each label key/value pair must comply with RFC1035. Label values may
|
||||
# be empty.
|
||||
# Corresponds to the JSON property `labels`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :labels
|
||||
|
@ -15838,9 +15850,9 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :label_fingerprint
|
||||
|
||||
# Labels to apply to this InterconnectAttachment resource. These can be later
|
||||
# modified by the setLabels method. Each label key/value must comply with
|
||||
# RFC1035. Label values may be empty.
|
||||
# Labels for this resource. These can only be added or modified by the setLabels
|
||||
# method. Each label key/value pair must comply with RFC1035. Label values may
|
||||
# be empty.
|
||||
# Corresponds to the JSON property `labels`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :labels
|
||||
|
@ -18312,6 +18324,12 @@ module Google
|
|||
class MachineType
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# [Output Only] A list of accelerator configurations assigned to this machine
|
||||
# type.
|
||||
# Corresponds to the JSON property `accelerators`
|
||||
# @return [Array<Google::Apis::ComputeAlpha::MachineType::Accelerator>]
|
||||
attr_accessor :accelerators
|
||||
|
||||
# [Output Only] Creation timestamp in RFC3339 text format.
|
||||
# Corresponds to the JSON property `creationTimestamp`
|
||||
# @return [String]
|
||||
|
@ -18394,6 +18412,7 @@ module Google
|
|||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@accelerators = args[:accelerators] if args.key?(:accelerators)
|
||||
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
|
||||
@deprecated = args[:deprecated] if args.key?(:deprecated)
|
||||
@description = args[:description] if args.key?(:description)
|
||||
|
@ -18409,6 +18428,31 @@ module Google
|
|||
@self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id)
|
||||
@zone = args[:zone] if args.key?(:zone)
|
||||
end
|
||||
|
||||
#
|
||||
class Accelerator
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Number of accelerator cards exposed to the guest.
|
||||
# Corresponds to the JSON property `guestAcceleratorCount`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :guest_accelerator_count
|
||||
|
||||
# The accelerator type resource name, not a full URL, e.g. 'nvidia-tesla-k80'.
|
||||
# Corresponds to the JSON property `guestAcceleratorType`
|
||||
# @return [String]
|
||||
attr_accessor :guest_accelerator_type
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@guest_accelerator_count = args[:guest_accelerator_count] if args.key?(:guest_accelerator_count)
|
||||
@guest_accelerator_type = args[:guest_accelerator_type] if args.key?(:guest_accelerator_type)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
|
@ -20811,6 +20855,13 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# An opaque location hint used to place the Node close to other resources. This
|
||||
# field is for use by internal tools that use the public API. The location hint
|
||||
# here on the NodeGroup overrides any location_hint present in the NodeTemplate.
|
||||
# Corresponds to the JSON property `locationHint`
|
||||
# @return [String]
|
||||
attr_accessor :location_hint
|
||||
|
||||
# Specifies how to handle instances when a node in the group undergoes
|
||||
# maintenance.
|
||||
# Corresponds to the JSON property `maintenancePolicy`
|
||||
|
@ -20877,6 +20928,7 @@ module Google
|
|||
@fingerprint = args[:fingerprint] if args.key?(:fingerprint)
|
||||
@id = args[:id] if args.key?(:id)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@location_hint = args[:location_hint] if args.key?(:location_hint)
|
||||
@maintenance_policy = args[:maintenance_policy] if args.key?(:maintenance_policy)
|
||||
@maintenance_window = args[:maintenance_window] if args.key?(:maintenance_window)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
|
@ -29784,6 +29836,12 @@ module Google
|
|||
# @return [Array<String>]
|
||||
attr_accessor :drain_nat_ips
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `enableEndpointIndependentMapping`
|
||||
# @return [Boolean]
|
||||
attr_accessor :enable_endpoint_independent_mapping
|
||||
alias_method :enable_endpoint_independent_mapping?, :enable_endpoint_independent_mapping
|
||||
|
||||
# Timeout (in seconds) for ICMP connections. Defaults to 30s if not set.
|
||||
# Corresponds to the JSON property `icmpIdleTimeoutSec`
|
||||
# @return [Fixnum]
|
||||
|
@ -29823,6 +29881,11 @@ module Google
|
|||
# @return [Array<String>]
|
||||
attr_accessor :nat_ips
|
||||
|
||||
# A list of rules associated with this NAT.
|
||||
# Corresponds to the JSON property `rules`
|
||||
# @return [Array<Google::Apis::ComputeAlpha::RouterNatRule>]
|
||||
attr_accessor :rules
|
||||
|
||||
# Specify the Nat option, which can take one of the following values:
|
||||
# - ALL_SUBNETWORKS_ALL_IP_RANGES: All of the IP ranges in every Subnetwork are
|
||||
# allowed to Nat.
|
||||
|
@ -29851,6 +29914,12 @@ module Google
|
|||
# @return [Fixnum]
|
||||
attr_accessor :tcp_established_idle_timeout_sec
|
||||
|
||||
# Timeout (in seconds) for TCP connections that are in TIME_WAIT state. Defaults
|
||||
# to 120s if not set.
|
||||
# Corresponds to the JSON property `tcpTimeWaitTimeoutSec`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :tcp_time_wait_timeout_sec
|
||||
|
||||
# Timeout (in seconds) for TCP transitory connections. Defaults to 30s if not
|
||||
# set.
|
||||
# Corresponds to the JSON property `tcpTransitoryIdleTimeoutSec`
|
||||
|
@ -29869,15 +29938,18 @@ module Google
|
|||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@drain_nat_ips = args[:drain_nat_ips] if args.key?(:drain_nat_ips)
|
||||
@enable_endpoint_independent_mapping = args[:enable_endpoint_independent_mapping] if args.key?(:enable_endpoint_independent_mapping)
|
||||
@icmp_idle_timeout_sec = args[:icmp_idle_timeout_sec] if args.key?(:icmp_idle_timeout_sec)
|
||||
@log_config = args[:log_config] if args.key?(:log_config)
|
||||
@min_ports_per_vm = args[:min_ports_per_vm] if args.key?(:min_ports_per_vm)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@nat_ip_allocate_option = args[:nat_ip_allocate_option] if args.key?(:nat_ip_allocate_option)
|
||||
@nat_ips = args[:nat_ips] if args.key?(:nat_ips)
|
||||
@rules = args[:rules] if args.key?(:rules)
|
||||
@source_subnetwork_ip_ranges_to_nat = args[:source_subnetwork_ip_ranges_to_nat] if args.key?(:source_subnetwork_ip_ranges_to_nat)
|
||||
@subnetworks = args[:subnetworks] if args.key?(:subnetworks)
|
||||
@tcp_established_idle_timeout_sec = args[:tcp_established_idle_timeout_sec] if args.key?(:tcp_established_idle_timeout_sec)
|
||||
@tcp_time_wait_timeout_sec = args[:tcp_time_wait_timeout_sec] if args.key?(:tcp_time_wait_timeout_sec)
|
||||
@tcp_transitory_idle_timeout_sec = args[:tcp_transitory_idle_timeout_sec] if args.key?(:tcp_transitory_idle_timeout_sec)
|
||||
@udp_idle_timeout_sec = args[:udp_idle_timeout_sec] if args.key?(:udp_idle_timeout_sec)
|
||||
end
|
||||
|
@ -29914,6 +29986,79 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
#
|
||||
class RouterNatRule
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The action to be enforced for traffic that matches this rule.
|
||||
# Corresponds to the JSON property `action`
|
||||
# @return [Google::Apis::ComputeAlpha::RouterNatRuleAction]
|
||||
attr_accessor :action
|
||||
|
||||
# An optional description of this rule.
|
||||
# Corresponds to the JSON property `description`
|
||||
# @return [String]
|
||||
attr_accessor :description
|
||||
|
||||
# CEL expression that specifies the match condition that egress traffic from a
|
||||
# VM is evaluated against. If it evaluates to true, the corresponding ?action?
|
||||
# is enforced.
|
||||
# The following examples are valid match expressions:
|
||||
# "inIpRange(destination.ip, '1.1.0.0/16') || inIpRange(destination.ip, '2.2.0.0/
|
||||
# 16')"
|
||||
# "destination.ip == '1.1.0.1' || destination.ip == '8.8.8.8'"
|
||||
# Corresponds to the JSON property `match`
|
||||
# @return [String]
|
||||
attr_accessor :match
|
||||
|
||||
# An integer indicating the priority of a rule in the list. The priority must be
|
||||
# a positive value between 0 and 65000. The priority must be unique among rules
|
||||
# within a NAT.
|
||||
# Corresponds to the JSON property `priority`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :priority
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@action = args[:action] if args.key?(:action)
|
||||
@description = args[:description] if args.key?(:description)
|
||||
@match = args[:match] if args.key?(:match)
|
||||
@priority = args[:priority] if args.key?(:priority)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class RouterNatRuleAction
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A list of URLs of the IP resources used for this NAT rule. These IP addresses
|
||||
# must be valid static external IP addresses assigned to the project.
|
||||
# Corresponds to the JSON property `sourceNatActiveIps`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :source_nat_active_ips
|
||||
|
||||
# A list of URLs of the IP resources to be drained. These IPs must be valid
|
||||
# static external IPs that have been assigned to the NAT. These IPs should be
|
||||
# used for updating/patching a NAT rule only.
|
||||
# Corresponds to the JSON property `sourceNatDrainIps`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :source_nat_drain_ips
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@source_nat_active_ips = args[:source_nat_active_ips] if args.key?(:source_nat_active_ips)
|
||||
@source_nat_drain_ips = args[:source_nat_drain_ips] if args.key?(:source_nat_drain_ips)
|
||||
end
|
||||
end
|
||||
|
||||
# Defines the IP ranges that want to use NAT for a subnetwork.
|
||||
class RouterNatSubnetworkToNat
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -30802,9 +30947,9 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :label_fingerprint
|
||||
|
||||
# Labels to apply to this security policy resource. These can be later modified
|
||||
# by the setLabels method. Each label key/value must comply with RFC1035. Label
|
||||
# values may be empty.
|
||||
# Labels for this resource. These can only be added or modified by the setLabels
|
||||
# method. Each label key/value pair must comply with RFC1035. Label values may
|
||||
# be empty.
|
||||
# Corresponds to the JSON property `labels`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :labels
|
||||
|
@ -31574,6 +31719,246 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Represents a ServiceAttachment resource.
|
||||
# A service attachment represents a service that a producer has exposed. It
|
||||
# encapsulates the load balancer which fronts the service runs and a list of NAT
|
||||
# IP ranges that the producers uses to represent the consumers connecting to the
|
||||
# service.
|
||||
class ServiceAttachment
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `connectionPreference`
|
||||
# @return [String]
|
||||
attr_accessor :connection_preference
|
||||
|
||||
# An array of forwarding rules for all the consumers connected to this service
|
||||
# attachment.
|
||||
# Corresponds to the JSON property `consumerForwardingRules`
|
||||
# @return [Array<Google::Apis::ComputeAlpha::ServiceAttachmentConsumerForwardingRule>]
|
||||
attr_accessor :consumer_forwarding_rules
|
||||
|
||||
# [Output Only] Creation timestamp in RFC3339 text format.
|
||||
# Corresponds to the JSON property `creationTimestamp`
|
||||
# @return [String]
|
||||
attr_accessor :creation_timestamp
|
||||
|
||||
# An optional description of this resource. Provide this property when you
|
||||
# create the resource.
|
||||
# Corresponds to the JSON property `description`
|
||||
# @return [String]
|
||||
attr_accessor :description
|
||||
|
||||
# [Output Only] The unique identifier for the resource type. The server
|
||||
# generates this identifier.
|
||||
# Corresponds to the JSON property `id`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :id
|
||||
|
||||
# [Output Only] Type of the resource. Always compute#serviceAttachment for
|
||||
# service attachments.
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# Name of the resource. Provided by the client when the resource is created. The
|
||||
# name must be 1-63 characters long, and comply with RFC1035. Specifically, the
|
||||
# name must be 1-63 characters long and match the regular expression `[a-z]([-a-
|
||||
# z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter,
|
||||
# and all following characters must be a dash, lowercase letter, or digit,
|
||||
# except the last character, which cannot be a dash.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# An array of IP CIDR ranges where each range is the url of the address resource
|
||||
# which represents the range provided by the service producer to use for NAT in
|
||||
# this service attachment.
|
||||
# Corresponds to the JSON property `natIpCidrRanges`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :nat_ip_cidr_ranges
|
||||
|
||||
# The URL of a forwarding rule with loadBalancingScheme INTERNAL* that is
|
||||
# serving the endpoint identified by this service attachment.
|
||||
# Corresponds to the JSON property `producerForwardingRule`
|
||||
# @return [String]
|
||||
attr_accessor :producer_forwarding_rule
|
||||
|
||||
# [Output Only] URL of the region where the service attachment resides. This
|
||||
# field applies only to the region resource. You must specify this field as part
|
||||
# of the HTTP request URL. It is not settable as a field in the request body.
|
||||
# Corresponds to the JSON property `region`
|
||||
# @return [String]
|
||||
attr_accessor :region
|
||||
|
||||
# [Output Only] Server-defined URL for the resource.
|
||||
# Corresponds to the JSON property `selfLink`
|
||||
# @return [String]
|
||||
attr_accessor :self_link
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@connection_preference = args[:connection_preference] if args.key?(:connection_preference)
|
||||
@consumer_forwarding_rules = args[:consumer_forwarding_rules] if args.key?(:consumer_forwarding_rules)
|
||||
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
|
||||
@description = args[:description] if args.key?(:description)
|
||||
@id = args[:id] if args.key?(:id)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@nat_ip_cidr_ranges = args[:nat_ip_cidr_ranges] if args.key?(:nat_ip_cidr_ranges)
|
||||
@producer_forwarding_rule = args[:producer_forwarding_rule] if args.key?(:producer_forwarding_rule)
|
||||
@region = args[:region] if args.key?(:region)
|
||||
@self_link = args[:self_link] if args.key?(:self_link)
|
||||
end
|
||||
end
|
||||
|
||||
# [Output Only] A consumer forwarding rule connected to this service attachment.
|
||||
class ServiceAttachmentConsumerForwardingRule
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The url of a consumer forwarding rule.
|
||||
# Corresponds to the JSON property `forwardingRule`
|
||||
# @return [String]
|
||||
attr_accessor :forwarding_rule
|
||||
|
||||
# The status of the forwarding rule.
|
||||
# Corresponds to the JSON property `status`
|
||||
# @return [String]
|
||||
attr_accessor :status
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@forwarding_rule = args[:forwarding_rule] if args.key?(:forwarding_rule)
|
||||
@status = args[:status] if args.key?(:status)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class ServiceAttachmentList
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# [Output Only] Unique identifier for the resource; defined by the server.
|
||||
# Corresponds to the JSON property `id`
|
||||
# @return [String]
|
||||
attr_accessor :id
|
||||
|
||||
# A list of ServiceAttachment resources.
|
||||
# Corresponds to the JSON property `items`
|
||||
# @return [Array<Google::Apis::ComputeAlpha::ServiceAttachment>]
|
||||
attr_accessor :items
|
||||
|
||||
# [Output Only] Type of the resource. Always compute#serviceAttachment for
|
||||
# service attachments.
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# [Output Only] This token allows you to get the next page of results for list
|
||||
# requests. If the number of results is larger than maxResults, use the
|
||||
# nextPageToken as a value for the query parameter pageToken in the next list
|
||||
# request. Subsequent list requests will have their own nextPageToken to
|
||||
# continue paging through the results.
|
||||
# Corresponds to the JSON property `nextPageToken`
|
||||
# @return [String]
|
||||
attr_accessor :next_page_token
|
||||
|
||||
# [Output Only] Server-defined URL for this resource.
|
||||
# Corresponds to the JSON property `selfLink`
|
||||
# @return [String]
|
||||
attr_accessor :self_link
|
||||
|
||||
# [Output Only] Informational warning message.
|
||||
# Corresponds to the JSON property `warning`
|
||||
# @return [Google::Apis::ComputeAlpha::ServiceAttachmentList::Warning]
|
||||
attr_accessor :warning
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@id = args[:id] if args.key?(:id)
|
||||
@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)
|
||||
@self_link = args[:self_link] if args.key?(:self_link)
|
||||
@warning = args[:warning] if args.key?(:warning)
|
||||
end
|
||||
|
||||
# [Output Only] Informational warning message.
|
||||
class Warning
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# [Output Only] A warning code, if applicable. For example, Compute Engine
|
||||
# returns NO_RESULTS_ON_PAGE if there are no results in the response.
|
||||
# Corresponds to the JSON property `code`
|
||||
# @return [String]
|
||||
attr_accessor :code
|
||||
|
||||
# [Output Only] Metadata about this warning in key: value format. For example:
|
||||
# "data": [ ` "key": "scope", "value": "zones/us-east1-d" `
|
||||
# Corresponds to the JSON property `data`
|
||||
# @return [Array<Google::Apis::ComputeAlpha::ServiceAttachmentList::Warning::Datum>]
|
||||
attr_accessor :data
|
||||
|
||||
# [Output Only] A human-readable description of the warning code.
|
||||
# Corresponds to the JSON property `message`
|
||||
# @return [String]
|
||||
attr_accessor :message
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@code = args[:code] if args.key?(:code)
|
||||
@data = args[:data] if args.key?(:data)
|
||||
@message = args[:message] if args.key?(:message)
|
||||
end
|
||||
|
||||
#
|
||||
class Datum
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# [Output Only] A key that provides more detail on the warning being returned.
|
||||
# For example, for warnings where there are no results in a list request for a
|
||||
# particular zone, this key might be scope and the key value might be the zone
|
||||
# name. Other examples might be a key indicating a deprecated resource and a
|
||||
# suggested replacement, or a warning about invalid network settings (for
|
||||
# example, if an instance attempts to perform IP forwarding but is not enabled
|
||||
# for IP forwarding).
|
||||
# Corresponds to the JSON property `key`
|
||||
# @return [String]
|
||||
attr_accessor :key
|
||||
|
||||
# [Output Only] A warning data value corresponding to the key.
|
||||
# Corresponds to the JSON property `value`
|
||||
# @return [String]
|
||||
attr_accessor :value
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@key = args[:key] if args.key?(:key)
|
||||
@value = args[:value] if args.key?(:value)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# A set of Shielded Instance options.
|
||||
class ShieldedInstanceConfig
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -36817,9 +37202,9 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :label_fingerprint
|
||||
|
||||
# Labels to apply to this TargetVpnGateway resource. These can be later modified
|
||||
# by the setLabels method. Each label key/value must comply with RFC1035. Label
|
||||
# values may be empty.
|
||||
# Labels for this resource. These can only be added or modified by the setLabels
|
||||
# method. Each label key/value pair must comply with RFC1035. Label values may
|
||||
# be empty.
|
||||
# Corresponds to the JSON property `labels`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :labels
|
||||
|
@ -38619,9 +39004,9 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :label_fingerprint
|
||||
|
||||
# Labels to apply to this VpnGateway resource. These can be later modified by
|
||||
# the setLabels method. Each label key/value must comply with RFC1035. Label
|
||||
# values may be empty.
|
||||
# Labels for this resource. These can only be added or modified by the setLabels
|
||||
# method. Each label key/value pair must comply with RFC1035. Label values may
|
||||
# be empty.
|
||||
# Corresponds to the JSON property `labels`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :labels
|
||||
|
@ -38652,7 +39037,7 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :self_link
|
||||
|
||||
# [Output Only] A list of interfaces on this VPN gateway.
|
||||
# A list of interfaces on this VPN gateway.
|
||||
# Corresponds to the JSON property `vpnInterfaces`
|
||||
# @return [Array<Google::Apis::ComputeAlpha::VpnGatewayVpnGatewayInterface>]
|
||||
attr_accessor :vpn_interfaces
|
||||
|
@ -39050,7 +39435,7 @@ module Google
|
|||
# @return [Fixnum]
|
||||
attr_accessor :id
|
||||
|
||||
# The external IP address for this VPN gateway interface.
|
||||
# [Output Only] The external IP address for this VPN gateway interface.
|
||||
# Corresponds to the JSON property `ipAddress`
|
||||
# @return [String]
|
||||
attr_accessor :ip_address
|
||||
|
@ -39227,9 +39612,9 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :label_fingerprint
|
||||
|
||||
# Labels to apply to this VpnTunnel. These can be later modified by the
|
||||
# setLabels method. Each label key/value pair must comply with RFC1035. Label
|
||||
# values may be empty.
|
||||
# Labels for this resource. These can only be added or modified by the setLabels
|
||||
# method. Each label key/value pair must comply with RFC1035. Label values may
|
||||
# be empty.
|
||||
# Corresponds to the JSON property `labels`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :labels
|
||||
|
|
|
@ -2268,6 +2268,12 @@ module Google
|
|||
|
||||
class MachineType
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
class Accelerator
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
@ -3922,6 +3928,18 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class RouterNatRule
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class RouterNatRuleAction
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class RouterNatSubnetworkToNat
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -4138,6 +4156,36 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ServiceAttachment
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ServiceAttachmentConsumerForwardingRule
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ServiceAttachmentList
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
class Warning
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
class Datum
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ShieldedInstanceConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -5643,6 +5691,7 @@ module Google
|
|||
|
||||
collection :local_ssds, as: 'localSsds', class: Google::Apis::ComputeAlpha::AllocationSpecificSkuAllocationAllocatedInstancePropertiesReservedDisk, decorator: Google::Apis::ComputeAlpha::AllocationSpecificSkuAllocationAllocatedInstancePropertiesReservedDisk::Representation
|
||||
|
||||
property :location_hint, as: 'locationHint'
|
||||
property :long_term_release, as: 'longTermRelease'
|
||||
property :machine_type, as: 'machineType'
|
||||
property :min_cpu_platform, as: 'minCpuPlatform'
|
||||
|
@ -9699,6 +9748,8 @@ module Google
|
|||
class MachineType
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :accelerators, as: 'accelerators', class: Google::Apis::ComputeAlpha::MachineType::Accelerator, decorator: Google::Apis::ComputeAlpha::MachineType::Accelerator::Representation
|
||||
|
||||
property :creation_timestamp, as: 'creationTimestamp'
|
||||
property :deprecated, as: 'deprecated', class: Google::Apis::ComputeAlpha::DeprecationStatus, decorator: Google::Apis::ComputeAlpha::DeprecationStatus::Representation
|
||||
|
||||
|
@ -9715,6 +9766,14 @@ module Google
|
|||
property :self_link_with_id, as: 'selfLinkWithId'
|
||||
property :zone, as: 'zone'
|
||||
end
|
||||
|
||||
class Accelerator
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :guest_accelerator_count, as: 'guestAcceleratorCount'
|
||||
property :guest_accelerator_type, as: 'guestAcceleratorType'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
class MachineTypeAggregatedList
|
||||
|
@ -10329,6 +10388,7 @@ module Google
|
|||
property :fingerprint, :base64 => true, as: 'fingerprint'
|
||||
property :id, :numeric_string => true, as: 'id'
|
||||
property :kind, as: 'kind'
|
||||
property :location_hint, as: 'locationHint'
|
||||
property :maintenance_policy, as: 'maintenancePolicy'
|
||||
property :maintenance_window, as: 'maintenanceWindow', class: Google::Apis::ComputeAlpha::NodeGroupMaintenanceWindow, decorator: Google::Apis::ComputeAlpha::NodeGroupMaintenanceWindow::Representation
|
||||
|
||||
|
@ -12653,6 +12713,7 @@ module Google
|
|||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :drain_nat_ips, as: 'drainNatIps'
|
||||
property :enable_endpoint_independent_mapping, as: 'enableEndpointIndependentMapping'
|
||||
property :icmp_idle_timeout_sec, as: 'icmpIdleTimeoutSec'
|
||||
property :log_config, as: 'logConfig', class: Google::Apis::ComputeAlpha::RouterNatLogConfig, decorator: Google::Apis::ComputeAlpha::RouterNatLogConfig::Representation
|
||||
|
||||
|
@ -12660,10 +12721,13 @@ module Google
|
|||
property :name, as: 'name'
|
||||
property :nat_ip_allocate_option, as: 'natIpAllocateOption'
|
||||
collection :nat_ips, as: 'natIps'
|
||||
collection :rules, as: 'rules', class: Google::Apis::ComputeAlpha::RouterNatRule, decorator: Google::Apis::ComputeAlpha::RouterNatRule::Representation
|
||||
|
||||
property :source_subnetwork_ip_ranges_to_nat, as: 'sourceSubnetworkIpRangesToNat'
|
||||
collection :subnetworks, as: 'subnetworks', class: Google::Apis::ComputeAlpha::RouterNatSubnetworkToNat, decorator: Google::Apis::ComputeAlpha::RouterNatSubnetworkToNat::Representation
|
||||
|
||||
property :tcp_established_idle_timeout_sec, as: 'tcpEstablishedIdleTimeoutSec'
|
||||
property :tcp_time_wait_timeout_sec, as: 'tcpTimeWaitTimeoutSec'
|
||||
property :tcp_transitory_idle_timeout_sec, as: 'tcpTransitoryIdleTimeoutSec'
|
||||
property :udp_idle_timeout_sec, as: 'udpIdleTimeoutSec'
|
||||
end
|
||||
|
@ -12677,6 +12741,25 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class RouterNatRule
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :action, as: 'action', class: Google::Apis::ComputeAlpha::RouterNatRuleAction, decorator: Google::Apis::ComputeAlpha::RouterNatRuleAction::Representation
|
||||
|
||||
property :description, as: 'description'
|
||||
property :match, as: 'match'
|
||||
property :priority, as: 'priority'
|
||||
end
|
||||
end
|
||||
|
||||
class RouterNatRuleAction
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :source_nat_active_ips, as: 'sourceNatActiveIps'
|
||||
collection :source_nat_drain_ips, as: 'sourceNatDrainIps'
|
||||
end
|
||||
end
|
||||
|
||||
class RouterNatSubnetworkToNat
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -13087,6 +13170,64 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class ServiceAttachment
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :connection_preference, as: 'connectionPreference'
|
||||
collection :consumer_forwarding_rules, as: 'consumerForwardingRules', class: Google::Apis::ComputeAlpha::ServiceAttachmentConsumerForwardingRule, decorator: Google::Apis::ComputeAlpha::ServiceAttachmentConsumerForwardingRule::Representation
|
||||
|
||||
property :creation_timestamp, as: 'creationTimestamp'
|
||||
property :description, as: 'description'
|
||||
property :id, :numeric_string => true, as: 'id'
|
||||
property :kind, as: 'kind'
|
||||
property :name, as: 'name'
|
||||
collection :nat_ip_cidr_ranges, as: 'natIpCidrRanges'
|
||||
property :producer_forwarding_rule, as: 'producerForwardingRule'
|
||||
property :region, as: 'region'
|
||||
property :self_link, as: 'selfLink'
|
||||
end
|
||||
end
|
||||
|
||||
class ServiceAttachmentConsumerForwardingRule
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :forwarding_rule, as: 'forwardingRule'
|
||||
property :status, as: 'status'
|
||||
end
|
||||
end
|
||||
|
||||
class ServiceAttachmentList
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :id, as: 'id'
|
||||
collection :items, as: 'items', class: Google::Apis::ComputeAlpha::ServiceAttachment, decorator: Google::Apis::ComputeAlpha::ServiceAttachment::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
property :self_link, as: 'selfLink'
|
||||
property :warning, as: 'warning', class: Google::Apis::ComputeAlpha::ServiceAttachmentList::Warning, decorator: Google::Apis::ComputeAlpha::ServiceAttachmentList::Warning::Representation
|
||||
|
||||
end
|
||||
|
||||
class Warning
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :code, as: 'code'
|
||||
collection :data, as: 'data', class: Google::Apis::ComputeAlpha::ServiceAttachmentList::Warning::Datum, decorator: Google::Apis::ComputeAlpha::ServiceAttachmentList::Warning::Datum::Representation
|
||||
|
||||
property :message, as: 'message'
|
||||
end
|
||||
|
||||
class Datum
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :key, as: 'key'
|
||||
property :value, as: 'value'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
class ShieldedInstanceConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
|
|
@ -1921,6 +1921,8 @@ module Google
|
|||
end
|
||||
|
||||
# Gets the most recent health check results for this BackendService.
|
||||
# Example request body:
|
||||
# ` "group": "/zones/us-east1-b/instanceGroups/lb-backend-example" `
|
||||
# @param [String] project
|
||||
# @param [String] backend_service
|
||||
# Name of the BackendService resource to which the queried instance belongs.
|
||||
|
@ -16897,7 +16899,7 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Patch the node group.
|
||||
# Updates the specified node group.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] zone
|
||||
|
@ -29354,6 +29356,354 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Deletes the specified ServiceAttachment in the given scope
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] region
|
||||
# Name of the region of this request.
|
||||
# @param [String] service_attachment
|
||||
# Name of the ServiceAttachment resource to delete.
|
||||
# @param [String] request_id
|
||||
# An optional request ID to identify requests. Specify a unique request ID so
|
||||
# that if you must retry your request, the server will know to ignore the
|
||||
# request if it has already been completed.
|
||||
# For example, consider a situation where you make an initial request and the
|
||||
# request times out. If you make the request again with the same request ID, the
|
||||
# server can check if original operation with the same request ID was received,
|
||||
# and if so, will ignore the second request. This prevents clients from
|
||||
# accidentally creating duplicate commitments.
|
||||
# The request ID must be a valid UUID with the exception that zero UUID is not
|
||||
# supported (00000000-0000-0000-0000-000000000000).
|
||||
# @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::ComputeAlpha::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ComputeAlpha::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def delete_service_attachment(project, region, service_attachment, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, '{project}/regions/{region}/serviceAttachments/{serviceAttachment}', options)
|
||||
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
||||
command.response_class = Google::Apis::ComputeAlpha::Operation
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.params['region'] = region unless region.nil?
|
||||
command.params['serviceAttachment'] = service_attachment unless service_attachment.nil?
|
||||
command.query['requestId'] = request_id unless request_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Returns the specified ServiceAttachment resource in the given scope.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] region
|
||||
# Name of the region of this request.
|
||||
# @param [String] service_attachment
|
||||
# Name of the ServiceAttachment resource to return.
|
||||
# @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::ComputeAlpha::ServiceAttachment] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ComputeAlpha::ServiceAttachment]
|
||||
#
|
||||
# @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_service_attachment(project, region, service_attachment, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, '{project}/regions/{region}/serviceAttachments/{serviceAttachment}', options)
|
||||
command.response_representation = Google::Apis::ComputeAlpha::ServiceAttachment::Representation
|
||||
command.response_class = Google::Apis::ComputeAlpha::ServiceAttachment
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.params['region'] = region unless region.nil?
|
||||
command.params['serviceAttachment'] = service_attachment unless service_attachment.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 the access control policy for a resource. May be empty if no such policy
|
||||
# or resource exists.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] region
|
||||
# The name of the region for this request.
|
||||
# @param [String] resource
|
||||
# Name or id of the resource for this request.
|
||||
# @param [Fixnum] options_requested_policy_version
|
||||
# Requested IAM Policy version.
|
||||
# @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::ComputeAlpha::Policy] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ComputeAlpha::Policy]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_service_attachment_iam_policy(project, region, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, '{project}/regions/{region}/serviceAttachments/{resource}/getIamPolicy', options)
|
||||
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
||||
command.response_class = Google::Apis::ComputeAlpha::Policy
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.params['region'] = region unless region.nil?
|
||||
command.params['resource'] = resource unless resource.nil?
|
||||
command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Creates a ServiceAttachment in the specified project in the given scope using
|
||||
# the parameters that are included in the request.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] region
|
||||
# Name of the region of this request.
|
||||
# @param [Google::Apis::ComputeAlpha::ServiceAttachment] service_attachment_object
|
||||
# @param [String] request_id
|
||||
# An optional request ID to identify requests. Specify a unique request ID so
|
||||
# that if you must retry your request, the server will know to ignore the
|
||||
# request if it has already been completed.
|
||||
# For example, consider a situation where you make an initial request and the
|
||||
# request times out. If you make the request again with the same request ID, the
|
||||
# server can check if original operation with the same request ID was received,
|
||||
# and if so, will ignore the second request. This prevents clients from
|
||||
# accidentally creating duplicate commitments.
|
||||
# The request ID must be a valid UUID with the exception that zero UUID is not
|
||||
# supported (00000000-0000-0000-0000-000000000000).
|
||||
# @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::ComputeAlpha::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ComputeAlpha::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def insert_service_attachment(project, region, service_attachment_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, '{project}/regions/{region}/serviceAttachments', options)
|
||||
command.request_representation = Google::Apis::ComputeAlpha::ServiceAttachment::Representation
|
||||
command.request_object = service_attachment_object
|
||||
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
||||
command.response_class = Google::Apis::ComputeAlpha::Operation
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.params['region'] = region unless region.nil?
|
||||
command.query['requestId'] = request_id unless request_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists the ServiceAttachments for a project in the given scope.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] region
|
||||
# Name of the region of this request.
|
||||
# @param [String] filter
|
||||
# A filter expression that filters resources listed in the response. The
|
||||
# expression must specify the field name, a comparison operator, and the value
|
||||
# that you want to use for filtering. The value must be a string, a number, or a
|
||||
# boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
|
||||
# For example, if you are filtering Compute Engine instances, you can exclude
|
||||
# instances named `example-instance` by specifying `name != example-instance`.
|
||||
# You can also filter nested fields. For example, you could specify `scheduling.
|
||||
# automaticRestart = false` to include instances only if they are not scheduled
|
||||
# for automatic restarts. You can use filtering on nested fields to filter based
|
||||
# on resource labels.
|
||||
# To filter on multiple expressions, provide each separate expression within
|
||||
# parentheses. For example: ``` (scheduling.automaticRestart = true) (
|
||||
# cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
|
||||
# expression. However, you can include `AND` and `OR` expressions explicitly.
|
||||
# For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
|
||||
# Broadwell") AND (scheduling.automaticRestart = true) ```
|
||||
# @param [Fixnum] max_results
|
||||
# The maximum number of results per page that should be returned. If the number
|
||||
# of available results is larger than `maxResults`, Compute Engine returns a `
|
||||
# nextPageToken` that can be used to get the next page of results in subsequent
|
||||
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
||||
# @param [String] order_by
|
||||
# Sorts list results by a certain order. By default, results are returned in
|
||||
# alphanumerical order based on the resource name.
|
||||
# You can also sort results in descending order based on the creation timestamp
|
||||
# using `orderBy="creationTimestamp desc"`. This sorts results based on the `
|
||||
# creationTimestamp` field in reverse chronological order (newest result first).
|
||||
# Use this to sort resources like operations so that the newest operation is
|
||||
# returned first.
|
||||
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
||||
# @param [String] page_token
|
||||
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
||||
# by a previous list request to get the next page of results.
|
||||
# @param [Boolean] return_partial_success
|
||||
# Opt-in for partial success behavior which provides partial results in case of
|
||||
# failure. The default value is false and the logic is the same as today.
|
||||
# @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::ComputeAlpha::ServiceAttachmentList] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ComputeAlpha::ServiceAttachmentList]
|
||||
#
|
||||
# @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_service_attachments(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, '{project}/regions/{region}/serviceAttachments', options)
|
||||
command.response_representation = Google::Apis::ComputeAlpha::ServiceAttachmentList::Representation
|
||||
command.response_class = Google::Apis::ComputeAlpha::ServiceAttachmentList
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.params['region'] = region unless region.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['maxResults'] = max_results unless max_results.nil?
|
||||
command.query['orderBy'] = order_by unless order_by.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.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
|
||||
|
||||
# Sets the access control policy on the specified resource. Replaces any
|
||||
# existing policy.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] region
|
||||
# The name of the region for this request.
|
||||
# @param [String] resource
|
||||
# Name or id of the resource for this request.
|
||||
# @param [Google::Apis::ComputeAlpha::RegionSetPolicyRequest] region_set_policy_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
||||
# characters.
|
||||
# @param [String] user_ip
|
||||
# Deprecated. Please use quotaUser instead.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ComputeAlpha::Policy]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def set_service_attachment_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, '{project}/regions/{region}/serviceAttachments/{resource}/setIamPolicy', options)
|
||||
command.request_representation = Google::Apis::ComputeAlpha::RegionSetPolicyRequest::Representation
|
||||
command.request_object = region_set_policy_request_object
|
||||
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
||||
command.response_class = Google::Apis::ComputeAlpha::Policy
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.params['region'] = region unless region.nil?
|
||||
command.params['resource'] = resource unless resource.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
|
||||
|
||||
# Returns permissions that a caller has on the specified resource.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] region
|
||||
# The name of the region for this request.
|
||||
# @param [String] resource
|
||||
# Name or id of the resource for this request.
|
||||
# @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
||||
# characters.
|
||||
# @param [String] user_ip
|
||||
# Deprecated. Please use quotaUser instead.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
|
||||
#
|
||||
# @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_service_attachment_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, '{project}/regions/{region}/serviceAttachments/{resource}/testIamPermissions', options)
|
||||
command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
|
||||
command.request_object = test_permissions_request_object
|
||||
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
|
||||
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.params['region'] = region unless region.nil?
|
||||
command.params['resource'] = resource unless resource.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
|
||||
|
||||
# Deletes the specified Snapshot resource. Keep in mind that deleting a single
|
||||
# snapshot might not necessarily delete all the data on that snapshot. If any
|
||||
# data on the snapshot that is marked for deletion is needed for subsequent
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/compute/docs/reference/latest/
|
||||
module ComputeBeta
|
||||
VERSION = 'Beta'
|
||||
REVISION = '20200311'
|
||||
REVISION = '20200331'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -596,9 +596,9 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :label_fingerprint
|
||||
|
||||
# Labels to apply to this Address resource. These can be later modified by the
|
||||
# setLabels method. Each label key/value must comply with RFC1035. Label values
|
||||
# may be empty.
|
||||
# Labels for this resource. These can only be added or modified by the setLabels
|
||||
# method. Each label key/value pair must comply with RFC1035. Label values may
|
||||
# be empty.
|
||||
# Corresponds to the JSON property `labels`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :labels
|
||||
|
@ -6330,9 +6330,9 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :label_fingerprint
|
||||
|
||||
# Labels to apply to this ExternalVpnGateway resource. These can be later
|
||||
# modified by the setLabels method. Each label key/value must comply with
|
||||
# RFC1035. Label values may be empty.
|
||||
# Labels for this resource. These can only be added or modified by the setLabels
|
||||
# method. Each label key/value pair must comply with RFC1035. Label values may
|
||||
# be empty.
|
||||
# Corresponds to the JSON property `labels`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :labels
|
||||
|
@ -7149,7 +7149,7 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :label_fingerprint
|
||||
|
||||
# Labels to apply to this resource. These can be later modified by the setLabels
|
||||
# Labels for this resource. These can only be added or modified by the setLabels
|
||||
# method. Each label key/value pair must comply with RFC1035. Label values may
|
||||
# be empty.
|
||||
# Corresponds to the JSON property `labels`
|
||||
|
@ -11129,7 +11129,10 @@ module Google
|
|||
# @return [Array<Google::Apis::ComputeBeta::NamedPort>]
|
||||
attr_accessor :named_ports
|
||||
|
||||
# The URL of the network to which all instances in the instance group belong.
|
||||
# [Output Only] The URL of the network to which all instances in the instance
|
||||
# group belong. If your instance has multiple network interfaces, then the
|
||||
# network and subnetwork fields only refer to the network and subnet used by
|
||||
# your primary interface (nic0).
|
||||
# Corresponds to the JSON property `network`
|
||||
# @return [String]
|
||||
attr_accessor :network
|
||||
|
@ -11151,7 +11154,9 @@ module Google
|
|||
attr_accessor :size
|
||||
|
||||
# [Output Only] The URL of the subnetwork to which all instances in the instance
|
||||
# group belong.
|
||||
# group belong. If your instance has multiple network interfaces, then the
|
||||
# network and subnetwork fields only refer to the network and subnet used by
|
||||
# your primary interface (nic0).
|
||||
# Corresponds to the JSON property `subnetwork`
|
||||
# @return [String]
|
||||
attr_accessor :subnetwork
|
||||
|
@ -14317,9 +14322,9 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :label_fingerprint
|
||||
|
||||
# Labels to apply to this Interconnect resource. These can be later modified by
|
||||
# the setLabels method. Each label key/value must comply with RFC1035. Label
|
||||
# values may be empty.
|
||||
# Labels for this resource. These can only be added or modified by the setLabels
|
||||
# method. Each label key/value pair must comply with RFC1035. Label values may
|
||||
# be empty.
|
||||
# Corresponds to the JSON property `labels`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :labels
|
||||
|
@ -14557,9 +14562,9 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :label_fingerprint
|
||||
|
||||
# Labels to apply to this InterconnectAttachment resource. These can be later
|
||||
# modified by the setLabels method. Each label key/value must comply with
|
||||
# RFC1035. Label values may be empty.
|
||||
# Labels for this resource. These can only be added or modified by the setLabels
|
||||
# method. Each label key/value pair must comply with RFC1035. Label values may
|
||||
# be empty.
|
||||
# Corresponds to the JSON property `labels`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :labels
|
||||
|
@ -27287,9 +27292,9 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :label_fingerprint
|
||||
|
||||
# Labels to apply to this security policy resource. These can be later modified
|
||||
# by the setLabels method. Each label key/value must comply with RFC1035. Label
|
||||
# values may be empty.
|
||||
# Labels for this resource. These can only be added or modified by the setLabels
|
||||
# method. Each label key/value pair must comply with RFC1035. Label values may
|
||||
# be empty.
|
||||
# Corresponds to the JSON property `labels`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :labels
|
||||
|
@ -32742,9 +32747,9 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :label_fingerprint
|
||||
|
||||
# Labels to apply to this TargetVpnGateway resource. These can be later modified
|
||||
# by the setLabels method. Each label key/value must comply with RFC1035. Label
|
||||
# values may be empty.
|
||||
# Labels for this resource. These can only be added or modified by the setLabels
|
||||
# method. Each label key/value pair must comply with RFC1035. Label values may
|
||||
# be empty.
|
||||
# Corresponds to the JSON property `labels`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :labels
|
||||
|
@ -34320,9 +34325,9 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :label_fingerprint
|
||||
|
||||
# Labels to apply to this VpnGateway resource. These can be later modified by
|
||||
# the setLabels method. Each label key/value must comply with RFC1035. Label
|
||||
# values may be empty.
|
||||
# Labels for this resource. These can only be added or modified by the setLabels
|
||||
# method. Each label key/value pair must comply with RFC1035. Label values may
|
||||
# be empty.
|
||||
# Corresponds to the JSON property `labels`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :labels
|
||||
|
@ -34353,7 +34358,7 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :self_link
|
||||
|
||||
# [Output Only] A list of interfaces on this VPN gateway.
|
||||
# A list of interfaces on this VPN gateway.
|
||||
# Corresponds to the JSON property `vpnInterfaces`
|
||||
# @return [Array<Google::Apis::ComputeBeta::VpnGatewayVpnGatewayInterface>]
|
||||
attr_accessor :vpn_interfaces
|
||||
|
@ -34745,7 +34750,7 @@ module Google
|
|||
# @return [Fixnum]
|
||||
attr_accessor :id
|
||||
|
||||
# The external IP address for this VPN gateway interface.
|
||||
# [Output Only] The external IP address for this VPN gateway interface.
|
||||
# Corresponds to the JSON property `ipAddress`
|
||||
# @return [String]
|
||||
attr_accessor :ip_address
|
||||
|
@ -34922,9 +34927,9 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :label_fingerprint
|
||||
|
||||
# Labels to apply to this VpnTunnel. These can be later modified by the
|
||||
# setLabels method. Each label key/value pair must comply with RFC1035. Label
|
||||
# values may be empty.
|
||||
# Labels for this resource. These can only be added or modified by the setLabels
|
||||
# method. Each label key/value pair must comply with RFC1035. Label values may
|
||||
# be empty.
|
||||
# Corresponds to the JSON property `labels`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :labels
|
||||
|
|
|
@ -1770,6 +1770,8 @@ module Google
|
|||
end
|
||||
|
||||
# Gets the most recent health check results for this BackendService.
|
||||
# Example request body:
|
||||
# ` "group": "/zones/us-east1-b/instanceGroups/lb-backend-example" `
|
||||
# @param [String] project
|
||||
# @param [String] backend_service
|
||||
# Name of the BackendService resource to which the queried instance belongs.
|
||||
|
@ -15588,7 +15590,7 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Patch the node group.
|
||||
# Updates the specified node group.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] zone
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue