Autogenerated update (2018-12-08)

Update:
- alertcenter_v1beta1
- bigquery_v2
- compute_alpha
- compute_beta
- compute_v1
- container_v1beta1
- firestore_v1
This commit is contained in:
Google APIs 2018-12-08 00:36:43 +00:00
parent 42f94aee71
commit 2be58afd60
29 changed files with 9554 additions and 297 deletions

File diff suppressed because it is too large Load Diff

View File

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

View File

@ -825,6 +825,27 @@ module Google
@serial_number = args[:serial_number] if args.key?(:serial_number)
end
end
# A request to undelete a specific alert that was marked for deletion.
class UndeleteAlertRequest
include Google::Apis::Core::Hashable
# Optional. The unique identifier of the G Suite organization account of the
# customer the alert is associated with.
# Inferred from the caller identity if not provided.
# Corresponds to the JSON property `customerId`
# @return [String]
attr_accessor :customer_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@customer_id = args[:customer_id] if args.key?(:customer_id)
end
end
end
end
end

View File

@ -160,6 +160,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class UndeleteAlertRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AccountWarning
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -390,6 +396,13 @@ module Google
property :serial_number, as: 'serialNumber'
end
end
class UndeleteAlertRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :customer_id, as: 'customerId'
end
end
end
end
end

View File

@ -178,6 +178,43 @@ module Google
execute_or_queue_command(command, &block)
end
# Restores, or "undeletes", an alert that was marked for deletion within the
# past 30 days. Attempting to undelete an alert which was marked for deletion
# over 30 days ago (which has been removed from the Alert Center database) or
# a nonexistent alert returns a `NOT_FOUND` error. Attempting to
# undelete an alert which has not been marked for deletion has no effect.
# @param [String] alert_id
# Required. The identifier of the alert to undelete.
# @param [Google::Apis::AlertcenterV1beta1::UndeleteAlertRequest] undelete_alert_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::AlertcenterV1beta1::Alert] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AlertcenterV1beta1::Alert]
#
# @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 undelete_alert(alert_id, undelete_alert_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/alerts/{alertId}:undelete', options)
command.request_representation = Google::Apis::AlertcenterV1beta1::UndeleteAlertRequest::Representation
command.request_object = undelete_alert_request_object
command.response_representation = Google::Apis::AlertcenterV1beta1::Alert::Representation
command.response_class = Google::Apis::AlertcenterV1beta1::Alert
command.params['alertId'] = alert_id unless alert_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates new feedback for an alert.
# @param [String] alert_id
# Required. The identifier of the alert this feedback belongs to.

View File

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

View File

@ -415,7 +415,7 @@ module Google
attr_accessor :last_modified_time
# The geographic location where the dataset should reside. The default value is
# US. See details at https://cloud.google.com/bigquery/docs/dataset-locations.
# US. See details at https://cloud.google.com/bigquery/docs/locations.
# Corresponds to the JSON property `location`
# @return [String]
attr_accessor :location
@ -581,7 +581,7 @@ module Google
# @return [Hash<String,String>]
attr_accessor :labels
# [Experimental] The geographic location where the data resides.
# The geographic location where the data resides.
# Corresponds to the JSON property `location`
# @return [String]
attr_accessor :location
@ -1164,7 +1164,8 @@ module Google
include Google::Apis::Core::Hashable
# [Beta] [Optional] Range of a sheet to query from. Only used when non-empty.
# Typical format: !:
# Typical format: sheet_name!top_left_cell_id:bottom_right_cell_id For example:
# sheet1!A1:B20
# Corresponds to the JSON property `range`
# @return [String]
attr_accessor :range
@ -1601,7 +1602,7 @@ module Google
# @return [String]
attr_accessor :quote
# [Experimental] Range partitioning specification for this table. Only one of
# [TrustedTester] Range partitioning specification for this table. Only one of
# timePartitioning and rangePartitioning should be specified.
# Corresponds to the JSON property `rangePartitioning`
# @return [Google::Apis::BigqueryV2::RangePartitioning]
@ -1826,7 +1827,7 @@ module Google
# @return [Array<Google::Apis::BigqueryV2::QueryParameter>]
attr_accessor :query_parameters
# [Experimental] Range partitioning specification for this table. Only one of
# [TrustedTester] Range partitioning specification for this table. Only one of
# timePartitioning and rangePartitioning should be specified.
# Corresponds to the JSON property `rangePartitioning`
# @return [Google::Apis::BigqueryV2::RangePartitioning]
@ -2310,6 +2311,15 @@ module Google
# @return [Fixnum]
attr_accessor :total_bytes_processed
# [Output-only] For dry-run jobs, totalBytesProcessed is an estimate and this
# field specifies the accuracy of the estimate. Possible values can be: UNKNOWN:
# accuracy of the estimate is unknown. PRECISE: estimate is precise. LOWER_BOUND:
# estimate is lower bound of what the query would cost. UPPER_BOUND: estiamte
# is upper bound of what the query would cost.
# Corresponds to the JSON property `totalBytesProcessedAccuracy`
# @return [String]
attr_accessor :total_bytes_processed_accuracy
# [Output-only] Total number of partitions processed from all partitioned tables
# referenced in the job.
# Corresponds to the JSON property `totalPartitionsProcessed`
@ -2350,6 +2360,7 @@ module Google
@timeline = args[:timeline] if args.key?(:timeline)
@total_bytes_billed = args[:total_bytes_billed] if args.key?(:total_bytes_billed)
@total_bytes_processed = args[:total_bytes_processed] if args.key?(:total_bytes_processed)
@total_bytes_processed_accuracy = args[:total_bytes_processed_accuracy] if args.key?(:total_bytes_processed_accuracy)
@total_partitions_processed = args[:total_partitions_processed] if args.key?(:total_partitions_processed)
@total_slot_ms = args[:total_slot_ms] if args.key?(:total_slot_ms)
@undeclared_query_parameters = args[:undeclared_query_parameters] if args.key?(:undeclared_query_parameters)
@ -2485,6 +2496,32 @@ module Google
end
end
#
class MaterializedViewDefinition
include Google::Apis::Core::Hashable
# [Output-only] [TrustedTester] The time when this materialized view was last
# modified, in milliseconds since the epoch.
# Corresponds to the JSON property `lastRefreshTime`
# @return [Fixnum]
attr_accessor :last_refresh_time
# [Required] A query whose result is persisted.
# Corresponds to the JSON property `query`
# @return [String]
attr_accessor :query
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@last_refresh_time = args[:last_refresh_time] if args.key?(:last_refresh_time)
@query = args[:query] if args.key?(:query)
end
end
#
class ModelDefinition
include Google::Apis::Core::Hashable
@ -2805,8 +2842,8 @@ module Google
# @return [String]
attr_accessor :kind
# The geographic location where the job should run. Required except for US and
# EU.
# The geographic location where the job should run. See details at https://cloud.
# google.com/bigquery/docs/locations#specifying_your_location.
# Corresponds to the JSON property `location`
# @return [String]
attr_accessor :location
@ -3036,14 +3073,14 @@ module Google
class RangePartitioning
include Google::Apis::Core::Hashable
# [Experimental] [Required] The table is partitioned by this field. The field
# [TrustedTester] [Required] The table is partitioned by this field. The field
# must be a top-level NULLABLE/REQUIRED field. The only supported type is
# INTEGER/INT64.
# Corresponds to the JSON property `field`
# @return [String]
attr_accessor :field
# [Experimental] [Required] Defines the ranges for range partitioning.
# [TrustedTester] [Required] Defines the ranges for range partitioning.
# Corresponds to the JSON property `range`
# @return [Google::Apis::BigqueryV2::RangePartitioning::Range]
attr_accessor :range
@ -3058,21 +3095,21 @@ module Google
@range = args[:range] if args.key?(:range)
end
# [Experimental] [Required] Defines the ranges for range partitioning.
# [TrustedTester] [Required] Defines the ranges for range partitioning.
class Range
include Google::Apis::Core::Hashable
# [Experimental] [Required] The end of range partitioning, exclusive.
# [TrustedTester] [Required] The end of range partitioning, exclusive.
# Corresponds to the JSON property `end`
# @return [Fixnum]
attr_accessor :end
# [Experimental] [Required] The width of each interval.
# [TrustedTester] [Required] The width of each interval.
# Corresponds to the JSON property `interval`
# @return [Fixnum]
attr_accessor :interval
# [Experimental] [Required] The start of range partitioning, inclusive.
# [TrustedTester] [Required] The start of range partitioning, inclusive.
# Corresponds to the JSON property `start`
# @return [Fixnum]
attr_accessor :start
@ -3128,7 +3165,7 @@ module Google
class Table
include Google::Apis::Core::Hashable
# [Experimental] Clustering specification for the table. Must be specified with
# [Beta] Clustering specification for the table. Must be specified with
# partitioning, data in the table will be first partitioned and subsequently
# clustered.
# Corresponds to the JSON property `clustering`
@ -3211,6 +3248,11 @@ module Google
# @return [String]
attr_accessor :location
# [Optional] Materialized view definition.
# Corresponds to the JSON property `materializedView`
# @return [Google::Apis::BigqueryV2::MaterializedViewDefinition]
attr_accessor :materialized_view
# [Output-only, Beta] Present iff this table represents a ML model. Describes
# the training information for the model, and it is required to run 'PREDICT'
# queries.
@ -3230,7 +3272,7 @@ module Google
# @return [Fixnum]
attr_accessor :num_long_term_bytes
# [Output-only] [Experimental] The physical size of this table in bytes,
# [Output-only] [TrustedTester] The physical size of this table in bytes,
# excluding any data in the streaming buffer. This includes compression and
# storage used for time travel.
# Corresponds to the JSON property `numPhysicalBytes`
@ -3243,14 +3285,14 @@ module Google
# @return [Fixnum]
attr_accessor :num_rows
# [Experimental] Range partitioning specification for this table. Only one of
# [TrustedTester] Range partitioning specification for this table. Only one of
# timePartitioning and rangePartitioning should be specified.
# Corresponds to the JSON property `rangePartitioning`
# @return [Google::Apis::BigqueryV2::RangePartitioning]
attr_accessor :range_partitioning
# [Experimental] [Optional] If set to true, queries over this table require a
# partition filter that can be used for partition elimination to be specified.
# [Beta] [Optional] If set to true, queries over this table require a partition
# filter that can be used for partition elimination to be specified.
# Corresponds to the JSON property `requirePartitionFilter`
# @return [Boolean]
attr_accessor :require_partition_filter
@ -3285,7 +3327,8 @@ module Google
attr_accessor :time_partitioning
# [Output-only] Describes the table type. The following values are supported:
# TABLE: A normal BigQuery table. VIEW: A virtual table defined by a SQL query.
# TABLE: A normal BigQuery table. VIEW: A virtual table defined by a SQL query. [
# TrustedTester] MATERIALIZED_VIEW: SQL query whose result is persisted.
# EXTERNAL: A table that references data stored in an external storage system,
# such as Google Cloud Storage. The default value is TABLE.
# Corresponds to the JSON property `type`
@ -3316,6 +3359,7 @@ module Google
@labels = args[:labels] if args.key?(:labels)
@last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time)
@location = args[:location] if args.key?(:location)
@materialized_view = args[:materialized_view] if args.key?(:materialized_view)
@model = args[:model] if args.key?(:model)
@num_bytes = args[:num_bytes] if args.key?(:num_bytes)
@num_long_term_bytes = args[:num_long_term_bytes] if args.key?(:num_long_term_bytes)
@ -3382,12 +3426,11 @@ module Google
attr_accessor :skip_invalid_rows
alias_method :skip_invalid_rows?, :skip_invalid_rows
# [Experimental] If specified, treats the destination table as a base template,
# and inserts the rows into an instance table named "`destination``
# templateSuffix`". BigQuery will manage creation of the instance table, using
# the schema of the base template table. See https://cloud.google.com/bigquery/
# streaming-data-into-bigquery#template-tables for considerations when working
# with templates tables.
# If specified, treats the destination table as a base template, and inserts the
# rows into an instance table named "`destination``templateSuffix`". BigQuery
# will manage creation of the instance table, using the schema of the base
# template table. See https://cloud.google.com/bigquery/streaming-data-into-
# bigquery#template-tables for considerations when working with templates tables.
# Corresponds to the JSON property `templateSuffix`
# @return [String]
attr_accessor :template_suffix

View File

@ -244,6 +244,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class MaterializedViewDefinition
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ModelDefinition
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -951,6 +957,7 @@ module Google
property :total_bytes_billed, :numeric_string => true, as: 'totalBytesBilled'
property :total_bytes_processed, :numeric_string => true, as: 'totalBytesProcessed'
property :total_bytes_processed_accuracy, as: 'totalBytesProcessedAccuracy'
property :total_partitions_processed, :numeric_string => true, as: 'totalPartitionsProcessed'
property :total_slot_ms, :numeric_string => true, as: 'totalSlotMs'
collection :undeclared_query_parameters, as: 'undeclaredQueryParameters', class: Google::Apis::BigqueryV2::QueryParameter, decorator: Google::Apis::BigqueryV2::QueryParameter::Representation
@ -995,6 +1002,14 @@ module Google
end
end
class MaterializedViewDefinition
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :last_refresh_time, :numeric_string => true, as: 'lastRefreshTime'
property :query, as: 'query'
end
end
class ModelDefinition
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1186,6 +1201,8 @@ module Google
hash :labels, as: 'labels'
property :last_modified_time, :numeric_string => true, as: 'lastModifiedTime'
property :location, as: 'location'
property :materialized_view, as: 'materializedView', class: Google::Apis::BigqueryV2::MaterializedViewDefinition, decorator: Google::Apis::BigqueryV2::MaterializedViewDefinition::Representation
property :model, as: 'model', class: Google::Apis::BigqueryV2::ModelDefinition, decorator: Google::Apis::BigqueryV2::ModelDefinition::Representation
property :num_bytes, :numeric_string => true, as: 'numBytes'

View File

@ -304,9 +304,8 @@ module Google
# @param [String] job_id
# [Required] Job ID of the job to cancel
# @param [String] location
# [Experimental] The geographic location of the job. Required except for US and
# EU. See details at https://cloud.google.com/bigquery/docs/dataset-locations#
# specifying_your_location.
# The geographic location of the job. Required except for US and EU. See details
# at https://cloud.google.com/bigquery/docs/locations#specifying_your_location.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -347,9 +346,8 @@ module Google
# @param [String] job_id
# [Required] Job ID of the requested job
# @param [String] location
# [Experimental] The geographic location of the job. Required except for US and
# EU. See details at https://cloud.google.com/bigquery/docs/dataset-locations#
# specifying_your_location.
# The geographic location of the job. Required except for US and EU. See details
# at https://cloud.google.com/bigquery/docs/locations#specifying_your_location.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -388,9 +386,9 @@ module Google
# @param [String] job_id
# [Required] Job ID of the query job
# @param [String] location
# [Experimental] The geographic location where the job should run. Required
# except for US and EU. See details at https://cloud.google.com/bigquery/docs/
# dataset-locations#specifying_your_location.
# The geographic location where the job should run. Required except for US and
# EU. See details at https://cloud.google.com/bigquery/docs/locations#
# specifying_your_location.
# @param [Fixnum] max_results
# Maximum number of results to read
# @param [String] page_token

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/compute/docs/reference/latest/
module ComputeAlpha
VERSION = 'Alpha'
REVISION = '20181022'
REVISION = '20181128'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -584,7 +584,8 @@ module Google
# essentially a hash of the labels set used for optimistic locking. The
# fingerprint is initially generated by Compute Engine and changes after every
# request to modify or update labels. You must always provide an up-to-date
# fingerprint hash in order to update or change labels.
# fingerprint hash in order to update or change labels, otherwise the request
# will fail with error 412 conditionNotMet.
# To see the latest fingerprint, make a get() request to retrieve an Address.
# Corresponds to the JSON property `labelFingerprint`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
@ -615,7 +616,11 @@ module Google
attr_accessor :network
# This signifies the networking tier used for configuring this Address and can
# only take the following values: PREMIUM , STANDARD.
# only take the following values: PREMIUM, STANDARD. Global forwarding rules can
# only be Premium Tier. Regional forwarding rules can be either Premium or
# Standard Tier. Standard Tier addresses applied to regional forwarding rules
# can be used with any external load balancer. Regional forwarding rules in
# Premium Tier can only be used with a Network load balancer.
# If this field is not specified, it is assumed to be PREMIUM.
# Corresponds to the JSON property `networkTier`
# @return [String]
@ -1102,7 +1107,7 @@ module Google
# @return [Google::Apis::ComputeAlpha::AllocationSpecificSkuAllocation]
attr_accessor :specific_allocation
# Indicates whether the allocation can be consumed by VMs with ?any allocation?
# Indicates whether the allocation can be consumed by VMs with "any allocation"
# defined. If the field is set, then only VMs that target the allocation by name
# using --allocation-affinity can consume this allocation.
# Corresponds to the JSON property `specificAllocationRequired`
@ -2597,8 +2602,7 @@ module Google
attr_accessor :utilization_target
# Defines how target utilization value is expressed for a Stackdriver Monitoring
# metric. Either GAUGE, DELTA_PER_SECOND, or DELTA_PER_MINUTE. If not specified,
# the default is GAUGE.
# metric. Either GAUGE, DELTA_PER_SECOND, or DELTA_PER_MINUTE.
# Corresponds to the JSON property `utilizationTargetType`
# @return [String]
attr_accessor :utilization_target_type
@ -2922,7 +2926,7 @@ module Google
# considered fresh. After this time period, the response will be revalidated
# before being served. Defaults to 1hr (3600s). When serving responses to signed
# URL requests, Cloud CDN will internally behave as though all responses from
# this backend had a ?Cache-Control: public, max-age=[TTL]? header, regardless
# this backend had a "Cache-Control: public, max-age=[TTL]" header, regardless
# of any existing Cache-Control header. The actual headers served in responses
# will not be altered.
# Corresponds to the JSON property `signedUrlCacheMaxAgeSec`
@ -3132,7 +3136,8 @@ module Google
# Fingerprint of this resource. A hash of the contents stored in this object.
# This field is used in optimistic locking. This field will be ignored when
# inserting a BackendService. An up-to-date fingerprint must be provided in
# order to update the BackendService.
# order to update the BackendService, otherwise the request will fail with error
# 412 conditionNotMet.
# To see the latest fingerprint, make a get() request to retrieve a
# BackendService.
# Corresponds to the JSON property `fingerprint`
@ -3175,6 +3180,12 @@ module Google
# @return [String]
attr_accessor :load_balancing_scheme
# The available logging options for the load balancer traffic served by this
# backend service.
# Corresponds to the JSON property `logConfig`
# @return [Google::Apis::ComputeAlpha::BackendServiceLogConfig]
attr_accessor :log_config
# 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-
@ -3266,6 +3277,7 @@ module Google
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@load_balancing_scheme = args[:load_balancing_scheme] if args.key?(:load_balancing_scheme)
@log_config = args[:log_config] if args.key?(:log_config)
@name = args[:name] if args.key?(:name)
@port = args[:port] if args.key?(:port)
@port_name = args[:port_name] if args.key?(:port_name)
@ -3442,7 +3454,7 @@ module Google
# considered fresh. After this time period, the response will be revalidated
# before being served. Defaults to 1hr (3600s). When serving responses to signed
# URL requests, Cloud CDN will internally behave as though all responses from
# this backend had a ?Cache-Control: public, max-age=[TTL]? header, regardless
# this backend had a "Cache-Control: public, max-age=[TTL]" header, regardless
# of any existing Cache-Control header. The actual headers served in responses
# will not be altered.
# Corresponds to the JSON property `signedUrlCacheMaxAgeSec`
@ -3769,6 +3781,38 @@ module Google
end
end
# The available logging options for the load balancer traffic served by this
# backend service.
class BackendServiceLogConfig
include Google::Apis::Core::Hashable
# This field denotes whether to enable logging for the load balancer traffic
# served by this backend service.
# Corresponds to the JSON property `enable`
# @return [Boolean]
attr_accessor :enable
alias_method :enable?, :enable
# This field can only be specified if logging is enabled for this backend
# service. The value of the field must be in [0, 1]. This configures the
# sampling rate of requests to the load balancer where 1.0 means all logged
# requests are reported and 0.0 means no logged requests are reported. The
# default value is 1.0.
# Corresponds to the JSON property `sampleRate`
# @return [Float]
attr_accessor :sample_rate
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@enable = args[:enable] if args.key?(:enable)
@sample_rate = args[:sample_rate] if args.key?(:sample_rate)
end
end
#
class BackendServiceReference
include Google::Apis::Core::Hashable
@ -4700,7 +4744,8 @@ module Google
# a hash of the labels set used for optimistic locking. The fingerprint is
# initially generated by Compute Engine and changes after every request to
# modify or update labels. You must always provide an up-to-date fingerprint
# hash in order to update or change labels.
# hash in order to update or change labels, otherwise the request will fail with
# error 412 conditionNotMet.
# To see the latest fingerprint, make a get() request to retrieve a disk.
# Corresponds to the JSON property `labelFingerprint`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
@ -4749,10 +4794,9 @@ module Google
attr_accessor :options
# Physical block size of the persistent disk, in bytes. If not present in a
# request, a default value is used. Initially only 4096 is supported, but other
# powers of two may be added. If an unsupported value is requested, the error
# message will list the supported values, but even a supported value may be
# allowed for only some projects.
# request, a default value is used. Currently supported sizes are 4096 and 16384,
# other sizes may be added in the future. If an unsupported value is requested,
# the error message will list the supported values for the caller's project.
# Corresponds to the JSON property `physicalBlockSizeBytes`
# @return [Fixnum]
attr_accessor :physical_block_size_bytes
@ -5798,6 +5842,26 @@ module Google
end
end
# A set of Display Device options
class DisplayDevice
include Google::Apis::Core::Hashable
# Defines whether the instance has Display enabled.
# Corresponds to the JSON property `enableDisplay`
# @return [Boolean]
attr_accessor :enable_display
alias_method :enable_display?, :enable_display
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@enable_display = args[:enable_display] if args.key?(:enable_display)
end
end
#
class DistributionPolicy
include Google::Apis::Core::Hashable
@ -6094,8 +6158,9 @@ module Google
attr_accessor :disabled
alias_method :disabled?, :disabled
# This field denotes whether to enable logging for a particular firewall rule.
# If logging is enabled, logs will be exported to Stackdriver.
# Deprecated in favor of enable in LogConfig. This field denotes whether to
# enable logging for a particular firewall rule. If logging is enabled, logs
# will be exported to Stackdriver.
# Corresponds to the JSON property `enableLogging`
# @return [Boolean]
attr_accessor :enable_logging
@ -6112,6 +6177,11 @@ module Google
# @return [String]
attr_accessor :kind
# The available logging options for a firewall rule.
# Corresponds to the JSON property `logConfig`
# @return [Google::Apis::ComputeAlpha::FirewallLogConfig]
attr_accessor :log_config
# 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-
@ -6222,6 +6292,7 @@ module Google
@enable_logging = args[:enable_logging] if args.key?(:enable_logging)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@log_config = args[:log_config] if args.key?(:log_config)
@name = args[:name] if args.key?(:name)
@network = args[:network] if args.key?(:network)
@priority = args[:priority] if args.key?(:priority)
@ -6414,6 +6485,26 @@ module Google
end
end
# The available logging options for a firewall rule.
class FirewallLogConfig
include Google::Apis::Core::Hashable
# This field denotes whether to enable logging for a particular firewall rule.
# Corresponds to the JSON property `enable`
# @return [Boolean]
attr_accessor :enable
alias_method :enable?, :enable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@enable = args[:enable] if args.key?(:enable)
end
end
# Encapsulates numeric value that can be either absolute or relative.
class FixedOrPercent
include Google::Apis::Core::Hashable
@ -6574,7 +6665,8 @@ module Google
# essentially a hash of the labels set used for optimistic locking. The
# fingerprint is initially generated by Compute Engine and changes after every
# request to modify or update labels. You must always provide an up-to-date
# fingerprint hash in order to update or change labels.
# fingerprint hash in order to update or change labels, otherwise the request
# will fail with error 412 conditionNotMet.
# To see the latest fingerprint, make a get() request to retrieve a
# ForwardingRule.
# Corresponds to the JSON property `labelFingerprint`
@ -6647,9 +6739,9 @@ module Google
# This field is used along with the backend_service field for internal load
# balancing.
# When the load balancing scheme is INTERNAL, a single port or a comma separated
# list of ports can be configured. Only packets addressed to these ports will be
# forwarded to the backends configured with this forwarding rule.
# When the load balancing scheme is INTERNAL, a list of ports can be configured,
# for example, ['80'], ['8000','9000'] etc. Only packets addressed to these
# ports will be forwarded to the backends configured with this forwarding rule.
# You may specify a maximum of up to 5 ports.
# Corresponds to the JSON property `ports`
# @return [Array<String>]
@ -7093,8 +7185,9 @@ module Google
# The fingerprint of the previous set of labels for this resource, used to
# detect conflicts. The fingerprint is initially generated by Compute Engine and
# changes after every request to modify or update labels. You must always
# provide an up-to-date fingerprint hash when updating or changing labels. Make
# a get() request to the resource to get the latest fingerprint.
# provide an up-to-date fingerprint hash when updating or changing labels,
# otherwise the request will fail with error 412 conditionNotMet. Make a get()
# request to the resource to get the latest fingerprint.
# Corresponds to the JSON property `labelFingerprint`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
@ -7126,7 +7219,7 @@ module Google
class GlobalSetPolicyRequest
include Google::Apis::Core::Hashable
# Flatten Policy to create a backwacd compatible wire-format. Deprecated. Use '
# Flatten Policy to create a backward compatible wire-format. Deprecated. Use '
# policy' to specify bindings.
# Corresponds to the JSON property `bindings`
# @return [Array<Google::Apis::ComputeAlpha::Binding>]
@ -8646,7 +8739,8 @@ module Google
# a hash of the labels used for optimistic locking. The fingerprint is initially
# generated by Compute Engine and changes after every request to modify or
# update labels. You must always provide an up-to-date fingerprint hash in order
# to update or change labels.
# to update or change labels, otherwise the request will fail with error 412
# conditionNotMet.
# To see the latest fingerprint, make a get() request to retrieve an image.
# Corresponds to the JSON property `labelFingerprint`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
@ -9005,6 +9099,11 @@ module Google
# @return [Array<Google::Apis::ComputeAlpha::AttachedDisk>]
attr_accessor :disks
# A set of Display Device options
# Corresponds to the JSON property `displayDevice`
# @return [Google::Apis::ComputeAlpha::DisplayDevice]
attr_accessor :display_device
# A list of the type and count of accelerator cards attached to the instance.
# Corresponds to the JSON property `guestAccelerators`
# @return [Array<Google::Apis::ComputeAlpha::AcceleratorConfig>]
@ -9184,6 +9283,7 @@ module Google
@deletion_protection = args[:deletion_protection] if args.key?(:deletion_protection)
@description = args[:description] if args.key?(:description)
@disks = args[:disks] if args.key?(:disks)
@display_device = args[:display_device] if args.key?(:display_device)
@guest_accelerators = args[:guest_accelerators] if args.key?(:guest_accelerators)
@hostname = args[:hostname] if args.key?(:hostname)
@id = args[:id] if args.key?(:id)
@ -9727,7 +9827,8 @@ module Google
# Fingerprint of this resource. This field may be used in optimistic locking. It
# will be ignored when inserting an InstanceGroupManager. An up-to-date
# fingerprint must be provided in order to update the InstanceGroupManager.
# fingerprint must be provided in order to update the InstanceGroupManager,
# otherwise the request will fail with error 412 conditionNotMet.
# To see the latest fingerprint, make a get() request to retrieve an
# InstanceGroupManager.
# Corresponds to the JSON property `fingerprint`
@ -10482,6 +10583,25 @@ module Google
end
end
# InstanceGroupManagers.createInstances
class InstanceGroupManagersCreateInstancesRequest
include Google::Apis::Core::Hashable
# [Required] List of specifications of per-instance configs.
# Corresponds to the JSON property `instances`
# @return [Array<Google::Apis::ComputeAlpha::PerInstanceConfig>]
attr_accessor :instances
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@instances = args[:instances] if args.key?(:instances)
end
end
#
class InstanceGroupManagersDeleteInstancesRequest
include Google::Apis::Core::Hashable
@ -10512,6 +10632,12 @@ module Google
# @return [Array<String>]
attr_accessor :instances
# The list of instance names for which we want to delete per-instance configs on
# this managed instance group.
# Corresponds to the JSON property `names`
# @return [Array<String>]
attr_accessor :names
def initialize(**args)
update!(**args)
end
@ -10519,6 +10645,7 @@ module Google
# Update properties of this object
def update!(**args)
@instances = args[:instances] if args.key?(:instances)
@names = args[:names] if args.key?(:names)
end
end
@ -11176,7 +11303,8 @@ module Google
# named ports settings concurrently. Obtain the fingerprint with the
# instanceGroups.get method. Then, include the fingerprint in your request to
# ensure that you do not overwrite changes that were applied from another
# concurrent request.
# concurrent request. A request with an incorrect fingerprint will fail with
# error 412 conditionNotMet.
# Corresponds to the JSON property `fingerprint`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
@ -12217,7 +12345,8 @@ module Google
# essentially a hash of the labels set used for optimistic locking. The
# fingerprint is initially generated by Compute Engine and changes after every
# request to modify or update labels. You must always provide an up-to-date
# fingerprint hash in order to update or change labels.
# fingerprint hash in order to update or change labels, otherwise the request
# will fail with error 412 conditionNotMet.
# To see the latest fingerprint, make a get() request to retrieve an
# Interconnect.
# Corresponds to the JSON property `labelFingerprint`
@ -12346,7 +12475,7 @@ module Google
# Provisioned bandwidth capacity for the interconnectAttachment. Can be set by
# the partner to update the customer's provisioned bandwidth. Output only for
# for PARTNER type, mutable for PARTNER_PROVIDER, not available for DEDICATED.
# PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED.
# Corresponds to the JSON property `bandwidth`
# @return [String]
attr_accessor :bandwidth
@ -12422,7 +12551,8 @@ module Google
# which is essentially a hash of the labels set used for optimistic locking. The
# fingerprint is initially generated by Compute Engine and changes after every
# request to modify or update labels. You must always provide an up-to-date
# fingerprint hash in order to update or change labels.
# fingerprint hash in order to update or change labels, otherwise the request
# will fail with error 412 conditionNotMet.
# To see the latest fingerprint, make a get() request to retrieve an
# InterconnectAttachment.
# Corresponds to the JSON property `labelFingerprint`
@ -12488,7 +12618,7 @@ module Google
# @return [String]
attr_accessor :region
# URL of the cloud router to be used for dynamic routing. This router must be in
# URL of the Cloud Router to be used for dynamic routing. This router must be in
# the same region as this InterconnectAttachment. The InterconnectAttachment
# will automatically connect the Interconnect to the network & region within
# which the Cloud Router is configured.
@ -12511,9 +12641,8 @@ module Google
# @return [String]
attr_accessor :type
# Available only for DEDICATED and PARTNER_PROVIDER. Desired VLAN tag for this
# attachment, in the range 2-4094. This field refers to 802.1q VLAN tag, also
# known as IEEE 802.1Q Only specified at creation time.
# The IEEE 802.1Q VLAN tag for this attachment, in the range 2-4094. Only
# specified at creation time.
# Corresponds to the JSON property `vlanTag8021q`
# @return [Fixnum]
attr_accessor :vlan_tag8021q
@ -12797,7 +12926,7 @@ module Google
include Google::Apis::Core::Hashable
# Plain text name of the Interconnect this attachment is connected to, as
# displayed in the Partner?s portal. For instance ?Chicago 1?. This value may be
# displayed in the Partner?s portal. For instance "Chicago 1". This value may be
# validated to match approved Partner values.
# Corresponds to the JSON property `interconnectName`
# @return [String]
@ -13074,7 +13203,10 @@ module Google
# @return [String]
attr_accessor :state
# Value of the current optical power, read in dBm.
# Value of the current optical power, read in dBm. Take a known good optical
# value, give it a 10% margin and trigger warnings relative to that value. In
# general, a -7dBm warning and a -11dBm alarm are good optical value estimates
# for most links.
# Corresponds to the JSON property `value`
# @return [Float]
attr_accessor :value
@ -15077,6 +15209,16 @@ module Google
# @return [Google::Apis::ComputeAlpha::ManagedInstanceOverride]
attr_accessor :override
# Preserved state for a given instance.
# Corresponds to the JSON property `preservedStateFromConfig`
# @return [Google::Apis::ComputeAlpha::PreservedState]
attr_accessor :preserved_state_from_config
# Preserved state for a given instance.
# Corresponds to the JSON property `preservedStateFromPolicy`
# @return [Google::Apis::ComputeAlpha::PreservedState]
attr_accessor :preserved_state_from_policy
# [Output Only] Tag describing the version.
# Corresponds to the JSON property `tag`
# @return [String]
@ -15101,6 +15243,8 @@ module Google
@instance_template = args[:instance_template] if args.key?(:instance_template)
@last_attempt = args[:last_attempt] if args.key?(:last_attempt)
@override = args[:override] if args.key?(:override)
@preserved_state_from_config = args[:preserved_state_from_config] if args.key?(:preserved_state_from_config)
@preserved_state_from_policy = args[:preserved_state_from_policy] if args.key?(:preserved_state_from_policy)
@tag = args[:tag] if args.key?(:tag)
@version = args[:version] if args.key?(:version)
end
@ -15336,7 +15480,8 @@ module Google
# metadata's contents and used for optimistic locking. The fingerprint is
# initially generated by Compute Engine and changes after every request to
# modify or update metadata. You must always provide an up-to-date fingerprint
# hash in order to update or change metadata.
# hash in order to update or change metadata, otherwise the request will fail
# with error 412 conditionNotMet.
# To see the latest fingerprint, make a get() request to retrieve the resource.
# Corresponds to the JSON property `fingerprint`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
@ -16286,7 +16431,8 @@ module Google
# Fingerprint hash of contents stored in this network interface. This field will
# be ignored when inserting an Instance or adding a NetworkInterface. An up-to-
# date fingerprint must be provided in order to update the NetworkInterface.
# date fingerprint must be provided in order to update the NetworkInterface,
# otherwise the request will fail with error 412 conditionNotMet.
# Corresponds to the JSON property `fingerprint`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
@ -16481,10 +16627,17 @@ module Google
class NetworkPeering
include Google::Apis::Core::Hashable
# Whether full mesh connectivity is created and managed automatically. When it
# is set to true, Google Compute Engine will automatically create and manage the
# routes between two networks when the state is ACTIVE. Otherwise, user needs to
# create routes manually to route packets to peer network.
# Whether Cloud Routers in this network can automatically advertise subnets from
# the peer network.
# Corresponds to the JSON property `advertisePeerSubnetsViaRouters`
# @return [Boolean]
attr_accessor :advertise_peer_subnets_via_routers
alias_method :advertise_peer_subnets_via_routers?, :advertise_peer_subnets_via_routers
# Indicates whether full mesh connectivity is created and managed automatically.
# When it is set to true, Google Compute Engine will automatically create and
# manage the routes between two networks when the state is ACTIVE. Otherwise,
# user needs to create routes manually to route packets to peer network.
# Corresponds to the JSON property `autoCreateRoutes`
# @return [Boolean]
attr_accessor :auto_create_routes
@ -16545,6 +16698,7 @@ module Google
# Update properties of this object
def update!(**args)
@advertise_peer_subnets_via_routers = args[:advertise_peer_subnets_via_routers] if args.key?(:advertise_peer_subnets_via_routers)
@auto_create_routes = args[:auto_create_routes] if args.key?(:auto_create_routes)
@exchange_subnet_routes = args[:exchange_subnet_routes] if args.key?(:exchange_subnet_routes)
@export_custom_routes = args[:export_custom_routes] if args.key?(:export_custom_routes)
@ -16590,13 +16744,15 @@ module Google
attr_accessor :auto_create_routes
alias_method :auto_create_routes?, :auto_create_routes
# Whether to export the custom routes to peer network.
# This field will be deprecated soon. Prefer using export_custom_routes in
# network_peering instead. Whether to export the custom routes to peer network.
# Corresponds to the JSON property `exportCustomRoutes`
# @return [Boolean]
attr_accessor :export_custom_routes
alias_method :export_custom_routes?, :export_custom_routes
# Whether to import the custom routes from peer network.
# This field will be deprecated soon. Prefer using import_custom_routes in
# network_peering instead. Whether to import the custom routes from peer network.
# Corresponds to the JSON property `importCustomRoutes`
# @return [Boolean]
attr_accessor :import_custom_routes
@ -16681,6 +16837,11 @@ module Google
class NodeGroup
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `autoscalingPolicy`
# @return [Google::Apis::ComputeAlpha::NodeGroupAutoscalingPolicy]
attr_accessor :autoscaling_policy
# [Output Only] Creation timestamp in RFC3339 text format.
# Corresponds to the JSON property `creationTimestamp`
# @return [String]
@ -16747,6 +16908,7 @@ module Google
# Update properties of this object
def update!(**args)
@autoscaling_policy = args[:autoscaling_policy] if args.key?(:autoscaling_policy)
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@description = args[:description] if args.key?(:description)
@id = args[:id] if args.key?(:id)
@ -16878,6 +17040,31 @@ module Google
end
end
#
class NodeGroupAutoscalingPolicy
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `maxSize`
# @return [Fixnum]
attr_accessor :max_size
#
# Corresponds to the JSON property `minSize`
# @return [Fixnum]
attr_accessor :min_size
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@max_size = args[:max_size] if args.key?(:max_size)
@min_size = args[:min_size] if args.key?(:min_size)
end
end
# Contains a list of nodeGroups.
class NodeGroupList
include Google::Apis::Core::Hashable
@ -18924,11 +19111,26 @@ module Google
# @return [String]
attr_accessor :instance
# The name of the per-instance config and the corresponding instance. Serves as
# a merge key during UpdatePerInstanceConfigs operation, i.e. if per-instance
# config with the same name exists then it will be updated, otherwise a new one
# will be created for the VM instance with the same name. An attempt to create a
# per-instance config for a VM instance that either doesn't exist or is not part
# of the group will result in a failure.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Overrides of stateful properties for a given instance
# Corresponds to the JSON property `override`
# @return [Google::Apis::ComputeAlpha::ManagedInstanceOverride]
attr_accessor :override
# Preserved state for a given instance.
# Corresponds to the JSON property `preservedState`
# @return [Google::Apis::ComputeAlpha::PreservedState]
attr_accessor :preserved_state
def initialize(**args)
update!(**args)
end
@ -18937,7 +19139,9 @@ module Google
def update!(**args)
@fingerprint = args[:fingerprint] if args.key?(:fingerprint)
@instance = args[:instance] if args.key?(:instance)
@name = args[:name] if args.key?(:name)
@override = args[:override] if args.key?(:override)
@preserved_state = args[:preserved_state] if args.key?(:preserved_state)
end
end
@ -19042,6 +19246,69 @@ module Google
end
end
# Preserved state for a given instance.
class PreservedState
include Google::Apis::Core::Hashable
# Preserved disks defined for this instance. This map is keyed with the device
# names of the disks.
# Corresponds to the JSON property `disks`
# @return [Hash<String,Google::Apis::ComputeAlpha::PreservedStatePreservedDisk>]
attr_accessor :disks
# Preserved metadata defined for this instance.
# Corresponds to the JSON property `metadata`
# @return [Hash<String,String>]
attr_accessor :metadata
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@disks = args[:disks] if args.key?(:disks)
@metadata = args[:metadata] if args.key?(:metadata)
end
end
#
class PreservedStatePreservedDisk
include Google::Apis::Core::Hashable
# These stateful disks will never be deleted during autohealing, update,
# instance recreate operations. This flag is used to configure if the disk
# should be deleted after it is no longer used by the group, e.g. when the given
# instance or the whole MIG is deleted. Note: disks attached in READ_ONLY mode
# cannot be auto-deleted.
# Corresponds to the JSON property `autoDelete`
# @return [String]
attr_accessor :auto_delete
# The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not
# specified, the default is to attach the disk in READ_WRITE mode.
# Corresponds to the JSON property `mode`
# @return [String]
attr_accessor :mode
# The URL of the disk resource that is stateful and should be attached to the VM
# instance.
# Corresponds to the JSON property `source`
# @return [String]
attr_accessor :source
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@auto_delete = args[:auto_delete] if args.key?(:auto_delete)
@mode = args[:mode] if args.key?(:mode)
@source = args[:source] if args.key?(:source)
end
end
# A Project resource. For an overview of projects, see Cloud Platform Resource
# Hierarchy. (== resource_for v1.projects ==) (== resource_for beta.projects ==)
class Project
@ -19840,6 +20107,12 @@ module Google
# @return [Array<String>]
attr_accessor :instances
# The list of instance names for which we want to delete per-instance configs on
# this managed instance group.
# Corresponds to the JSON property `names`
# @return [Array<String>]
attr_accessor :names
def initialize(**args)
update!(**args)
end
@ -19847,6 +20120,7 @@ module Google
# Update properties of this object
def update!(**args)
@instances = args[:instances] if args.key?(:instances)
@names = args[:names] if args.key?(:names)
end
end
@ -21186,7 +21460,7 @@ module Google
# @return [String]
attr_accessor :duration
# Time within the window to start the operations. It must be in format "HH:MM?,
# Time within the window to start the operations. It must be in format "HH:MM",
# where HH : [00-23] and MM : [00-00] GMT.
# Corresponds to the JSON property `startTime`
# @return [String]
@ -21219,7 +21493,7 @@ module Google
# @return [Fixnum]
attr_accessor :hours_in_cycle
# Time within the window to start the operations. It must be in format "HH:MM?,
# Time within the window to start the operations. It must be in format "HH:MM",
# where HH : [00-23] and MM : [00-00] GMT.
# Corresponds to the JSON property `startTime`
# @return [String]
@ -21436,7 +21710,7 @@ module Google
# @return [String]
attr_accessor :duration
# Time within the window to start the operations. It must be in format "HH:MM?,
# Time within the window to start the operations. It must be in format "HH:MM",
# where HH : [00-23] and MM : [00-00] GMT.
# Corresponds to the JSON property `startTime`
# @return [String]
@ -22122,11 +22396,12 @@ module Google
# @return [String]
attr_accessor :ip_address
# [Output Only] Type of how the resource/configuration of the BGP peer is
# managed. MANAGED_BY_USER is the default value; MANAGED_BY_ATTACHMENT
# represents an BGP peer that is automatically created for PARTNER
# interconnectAttachment, Google will automatically create/delete this type of
# BGP peer when the PARTNER interconnectAttachment is created/deleted.
# [Output Only] The resource that configures and manages this BGP peer.
# MANAGED_BY_USER is the default value and can be managed by you or other users;
# MANAGED_BY_ATTACHMENT is a BGP peer that is configured and managed by Cloud
# Interconnect, specifically by an InterconnectAttachment of type PARTNER.
# Google will automatically create, update, and delete this type of BGP peer
# when the PARTNER InterconnectAttachment is created, updated, or deleted.
# Corresponds to the JSON property `managementType`
# @return [String]
attr_accessor :management_type
@ -22193,12 +22468,12 @@ module Google
# @return [String]
attr_accessor :linked_vpn_tunnel
# [Output Only] Type of how the resource/configuration of the interface is
# managed. MANAGED_BY_USER is the default value; MANAGED_BY_ATTACHMENT
# represents an interface that is automatically created for PARTNER type
# interconnectAttachment, Google will automatically create/update/delete this
# type of interface when the PARTNER interconnectAttachment is created/
# provisioned/deleted.
# [Output Only] The resource that configures and manages this interface.
# MANAGED_BY_USER is the default value and can be managed by you or other users;
# MANAGED_BY_ATTACHMENT is an interface that is configured and managed by Cloud
# Interconnect, specifically by an InterconnectAttachment of type PARTNER.
# Google will automatically create, update, and delete this type of interface
# when the PARTNER InterconnectAttachment is created, updated, or deleted.
# Corresponds to the JSON property `managementType`
# @return [String]
attr_accessor :management_type
@ -23241,7 +23516,8 @@ module Google
# metadata's contents and used for optimistic locking. The fingerprint is
# initially generated by Compute Engine and changes after every request to
# modify or update metadata. You must always provide an up-to-date fingerprint
# hash in order to update or change metadata.
# hash in order to update or change metadata, otherwise the request will fail
# with error 412 conditionNotMet.
# To see the latest fingerprint, make get() request to the security policy.
# Corresponds to the JSON property `fingerprint`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
@ -23537,8 +23813,9 @@ module Google
alias_method :preview?, :preview
# An integer indicating the priority of a rule in the list. The priority must be
# a positive value between 0 and 2147483647. Rules are evaluated in the
# increasing order of priority.
# a positive value between 0 and 2147483647. Rules are evaluated from highest to
# lowest priority where 0 is the highest priority and 2147483647 is the lowest
# prority.
# Corresponds to the JSON property `priority`
# @return [Fixnum]
attr_accessor :priority
@ -23835,12 +24112,12 @@ module Google
class ShieldedVmIdentityEntry
include Google::Apis::Core::Hashable
#
# A PEM-encoded X.509 certificate. This field can be empty.
# Corresponds to the JSON property `ekCert`
# @return [String]
attr_accessor :ek_cert
#
# A PEM-encoded public key.
# Corresponds to the JSON property `ekPub`
# @return [String]
attr_accessor :ek_pub
@ -23960,7 +24237,8 @@ module Google
# essentially a hash of the labels set used for optimistic locking. The
# fingerprint is initially generated by Compute Engine and changes after every
# request to modify or update labels. You must always provide an up-to-date
# fingerprint hash in order to update or change labels.
# fingerprint hash in order to update or change labels, otherwise the request
# will fail with error 412 conditionNotMet.
# To see the latest fingerprint, make a get() request to retrieve a snapshot.
# Corresponds to the JSON property `labelFingerprint`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
@ -24999,7 +25277,8 @@ module Google
# Fingerprint of this resource. A hash of the contents stored in this object.
# This field is used in optimistic locking. This field will be ignored when
# inserting a SslPolicy. An up-to-date fingerprint must be provided in order to
# update the SslPolicy.
# update the SslPolicy, otherwise the request will fail with error 412
# conditionNotMet.
# To see the latest fingerprint, make a get() request to retrieve an SslPolicy.
# Corresponds to the JSON property `fingerprint`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
@ -25167,6 +25446,11 @@ module Google
# @return [Google::Apis::ComputeAlpha::StatefulPolicyPreservedResources]
attr_accessor :preserved_resources
# Configuration of preserved resources.
# Corresponds to the JSON property `preservedState`
# @return [Google::Apis::ComputeAlpha::StatefulPolicyPreservedState]
attr_accessor :preserved_state
def initialize(**args)
update!(**args)
end
@ -25174,6 +25458,7 @@ module Google
# Update properties of this object
def update!(**args)
@preserved_resources = args[:preserved_resources] if args.key?(:preserved_resources)
@preserved_state = args[:preserved_state] if args.key?(:preserved_state)
end
end
@ -25216,6 +25501,49 @@ module Google
end
end
# Configuration of preserved resources.
class StatefulPolicyPreservedState
include Google::Apis::Core::Hashable
# Disks created on the instances that will be preserved on instance delete,
# resize down, etc. This map is keyed with the device names of the disks.
# Corresponds to the JSON property `disks`
# @return [Hash<String,Google::Apis::ComputeAlpha::StatefulPolicyPreservedStateDiskDevice>]
attr_accessor :disks
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@disks = args[:disks] if args.key?(:disks)
end
end
#
class StatefulPolicyPreservedStateDiskDevice
include Google::Apis::Core::Hashable
# These stateful disks will never be deleted during autohealing, update or VM
# instance recreate operations. This flag is used to configure if the disk
# should be deleted after it is no longer used by the group, e.g. when the given
# instance or the whole group is deleted. Note: disks attached in READ_ONLY mode
# cannot be auto-deleted.
# Corresponds to the JSON property `autoDelete`
# @return [String]
attr_accessor :auto_delete
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@auto_delete = args[:auto_delete] if args.key?(:auto_delete)
end
end
# A Subnetwork resource. (== resource_for beta.subnetworks ==) (== resource_for
# v1.subnetworks ==)
class Subnetwork
@ -25275,7 +25603,8 @@ module Google
# Fingerprint of this resource. A hash of the contents stored in this object.
# This field is used in optimistic locking. This field will be ignored when
# inserting a Subnetwork. An up-to-date fingerprint must be provided in order to
# update the Subnetwork.
# update the Subnetwork, otherwise the request will fail with error 412
# conditionNotMet.
# To see the latest fingerprint, make a get() request to retrieve a Subnetwork.
# Corresponds to the JSON property `fingerprint`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
@ -25323,6 +25652,11 @@ module Google
# @return [String]
attr_accessor :kind
# The available logging options for this subnetwork.
# Corresponds to the JSON property `logConfig`
# @return [Google::Apis::ComputeAlpha::SubnetworkLogConfig]
attr_accessor :log_config
# Can only be specified if VPC flow logging for this subnetwork is enabled.
# Configures whether metadata fields should be added to the reported VPC flow
# logs. Default is INCLUDE_ALL_METADATA.
@ -25375,7 +25709,8 @@ module Google
# INTERNAL_HTTPS_LOAD_BALANCER. The value can be set to ACTIVE or BACKUP. An
# ACTIVE subnetwork is one that is currently being used for Internal HTTP(S)
# Load Balancing. A BACKUP subnetwork is one that is ready to be promoted to
# ACTIVE or is currently draining.
# ACTIVE or is currently draining. This field can be updated with a patch
# request.
# Corresponds to the JSON property `role`
# @return [String]
attr_accessor :role
@ -25383,7 +25718,7 @@ module Google
# An array of configurations for secondary IP ranges for VM instances contained
# in this subnetwork. The primary IP of such VM must belong to the primary
# ipCidrRange of the subnetwork. The alias IPs may belong to either primary or
# secondary ranges.
# secondary ranges. This field can be updated with a patch request.
# Corresponds to the JSON property `secondaryIpRanges`
# @return [Array<Google::Apis::ComputeAlpha::SubnetworkSecondaryRange>]
attr_accessor :secondary_ip_ranges
@ -25422,6 +25757,7 @@ module Google
@ip_cidr_range = args[:ip_cidr_range] if args.key?(:ip_cidr_range)
@ipv6_cidr_range = args[:ipv6_cidr_range] if args.key?(:ipv6_cidr_range)
@kind = args[:kind] if args.key?(:kind)
@log_config = args[:log_config] if args.key?(:log_config)
@metadata = args[:metadata] if args.key?(:metadata)
@name = args[:name] if args.key?(:name)
@network = args[:network] if args.key?(:network)
@ -25671,6 +26007,55 @@ module Google
end
end
# The available logging options for this subnetwork.
class SubnetworkLogConfig
include Google::Apis::Core::Hashable
# Can only be specified if VPC flow logging for this subnetwork is enabled.
# Toggles the aggregation interval for collecting flow logs. Increasing the
# interval time will reduce the amount of generated flow logs for long lasting
# connections. Default is an interval of 5 seconds per connection.
# Corresponds to the JSON property `aggregationInterval`
# @return [String]
attr_accessor :aggregation_interval
# Whether to enable flow logging for this subnetwork. If this field is not
# explicitly set, it will not appear in get listings. If not set the default
# behavior is to disable flow logging.
# Corresponds to the JSON property `enable`
# @return [Boolean]
attr_accessor :enable
alias_method :enable?, :enable
# Can only be specified if VPC flow logging for this subnetwork is enabled. The
# value of the field must be in [0, 1]. Set the sampling rate of VPC flow logs
# within the subnetwork where 1.0 means all collected logs are reported and 0.0
# means no logs are reported. Default is 0.5 which means half of all collected
# logs are reported.
# Corresponds to the JSON property `flowSampling`
# @return [Float]
attr_accessor :flow_sampling
# Can only be specified if VPC flow logging for this subnetwork is enabled.
# Configures whether metadata fields should be added to the reported VPC flow
# logs. Default is INCLUDE_ALL_METADATA.
# Corresponds to the JSON property `metadata`
# @return [String]
attr_accessor :metadata
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@aggregation_interval = args[:aggregation_interval] if args.key?(:aggregation_interval)
@enable = args[:enable] if args.key?(:enable)
@flow_sampling = args[:flow_sampling] if args.key?(:flow_sampling)
@metadata = args[:metadata] if args.key?(:metadata)
end
end
# Represents a secondary IP range of a subnetwork.
class SubnetworkSecondaryRange
include Google::Apis::Core::Hashable
@ -28330,7 +28715,8 @@ module Google
# essentially a hash of the labels set used for optimistic locking. The
# fingerprint is initially generated by Compute Engine and changes after every
# request to modify or update labels. You must always provide an up-to-date
# fingerprint hash in order to update or change labels.
# fingerprint hash in order to update or change labels, otherwise the request
# will fail with error 412 conditionNotMet.
# To see the latest fingerprint, make a get() request to retrieve a
# TargetVpnGateway.
# Corresponds to the JSON property `labelFingerprint`
@ -28880,7 +29266,8 @@ module Google
# Fingerprint of this resource. A hash of the contents stored in this object.
# This field is used in optimistic locking. This field will be ignored when
# inserting a UrlMap. An up-to-date fingerprint must be provided in order to
# update the UrlMap.
# update the UrlMap, otherwise the request will fail with error 412
# conditionNotMet.
# To see the latest fingerprint, make a get() request to retrieve a UrlMap.
# Corresponds to the JSON property `fingerprint`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
@ -29852,7 +30239,8 @@ module Google
# essentially a hash of the labels set used for optimistic locking. The
# fingerprint is initially generated by Compute Engine and changes after every
# request to modify or update labels. You must always provide an up-to-date
# fingerprint hash in order to update or change labels.
# fingerprint hash in order to update or change labels, otherwise the request
# will fail with error 412 conditionNotMet.
# To see the latest fingerprint, make a get() request to retrieve an VpnGateway.
# Corresponds to the JSON property `labelFingerprint`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
@ -30309,7 +30697,8 @@ module Google
# essentially a hash of the labels set used for optimistic locking. The
# fingerprint is initially generated by Compute Engine and changes after every
# request to modify or update labels. You must always provide an up-to-date
# fingerprint hash in order to update or change labels.
# fingerprint hash in order to update or change labels, otherwise the request
# will fail with error 412 conditionNotMet.
# To see the latest fingerprint, make a get() request to retrieve a VpnTunnel.
# Corresponds to the JSON property `labelFingerprint`
# NOTE: Values are automatically base64 encoded/decoded in the client library.

View File

@ -502,6 +502,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class BackendServiceLogConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BackendServiceReference
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -784,6 +790,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class DisplayDevice
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DistributionPolicy
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -862,6 +874,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class FirewallLogConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class FixedOrPercent
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1312,6 +1330,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class InstanceGroupManagersCreateInstancesRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InstanceGroupManagersDeleteInstancesRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -2260,6 +2284,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class NodeGroupAutoscalingPolicy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class NodeGroupList
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -2578,6 +2608,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class PreservedState
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PreservedStatePreservedDisk
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Project
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -3502,6 +3544,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class StatefulPolicyPreservedState
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class StatefulPolicyPreservedStateDiskDevice
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Subnetwork
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -3544,6 +3598,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class SubnetworkLogConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SubnetworkSecondaryRange
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -5159,6 +5219,8 @@ module Google
property :id, :numeric_string => true, as: 'id'
property :kind, as: 'kind'
property :load_balancing_scheme, as: 'loadBalancingScheme'
property :log_config, as: 'logConfig', class: Google::Apis::ComputeAlpha::BackendServiceLogConfig, decorator: Google::Apis::ComputeAlpha::BackendServiceLogConfig::Representation
property :name, as: 'name'
property :port, as: 'port'
property :port_name, as: 'portName'
@ -5302,6 +5364,14 @@ module Google
end
end
class BackendServiceLogConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :enable, as: 'enable'
property :sample_rate, as: 'sampleRate'
end
end
class BackendServiceReference
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -5812,6 +5882,13 @@ module Google
end
end
class DisplayDevice
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :enable_display, as: 'enableDisplay'
end
end
class DistributionPolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -5895,6 +5972,8 @@ module Google
property :enable_logging, as: 'enableLogging'
property :id, :numeric_string => true, as: 'id'
property :kind, as: 'kind'
property :log_config, as: 'logConfig', class: Google::Apis::ComputeAlpha::FirewallLogConfig, decorator: Google::Apis::ComputeAlpha::FirewallLogConfig::Representation
property :name, as: 'name'
property :network, as: 'network'
property :priority, as: 'priority'
@ -5955,6 +6034,13 @@ module Google
end
end
class FirewallLogConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :enable, as: 'enable'
end
end
class FixedOrPercent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -6547,6 +6633,8 @@ module Google
property :description, as: 'description'
collection :disks, as: 'disks', class: Google::Apis::ComputeAlpha::AttachedDisk, decorator: Google::Apis::ComputeAlpha::AttachedDisk::Representation
property :display_device, as: 'displayDevice', class: Google::Apis::ComputeAlpha::DisplayDevice, decorator: Google::Apis::ComputeAlpha::DisplayDevice::Representation
collection :guest_accelerators, as: 'guestAccelerators', class: Google::Apis::ComputeAlpha::AcceleratorConfig, decorator: Google::Apis::ComputeAlpha::AcceleratorConfig::Representation
property :hostname, as: 'hostname'
@ -6896,6 +6984,14 @@ module Google
end
end
class InstanceGroupManagersCreateInstancesRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :instances, as: 'instances', class: Google::Apis::ComputeAlpha::PerInstanceConfig, decorator: Google::Apis::ComputeAlpha::PerInstanceConfig::Representation
end
end
class InstanceGroupManagersDeleteInstancesRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -6907,6 +7003,7 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :instances, as: 'instances'
collection :names, as: 'names'
end
end
@ -8109,6 +8206,10 @@ module Google
property :override, as: 'override', class: Google::Apis::ComputeAlpha::ManagedInstanceOverride, decorator: Google::Apis::ComputeAlpha::ManagedInstanceOverride::Representation
property :preserved_state_from_config, as: 'preservedStateFromConfig', class: Google::Apis::ComputeAlpha::PreservedState, decorator: Google::Apis::ComputeAlpha::PreservedState::Representation
property :preserved_state_from_policy, as: 'preservedStateFromPolicy', class: Google::Apis::ComputeAlpha::PreservedState, decorator: Google::Apis::ComputeAlpha::PreservedState::Representation
property :tag, as: 'tag'
property :version, as: 'version', class: Google::Apis::ComputeAlpha::ManagedInstanceVersion, decorator: Google::Apis::ComputeAlpha::ManagedInstanceVersion::Representation
@ -8481,6 +8582,7 @@ module Google
class NetworkPeering
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :advertise_peer_subnets_via_routers, as: 'advertisePeerSubnetsViaRouters'
property :auto_create_routes, as: 'autoCreateRoutes'
property :exchange_subnet_routes, as: 'exchangeSubnetRoutes'
property :export_custom_routes, as: 'exportCustomRoutes'
@ -8530,6 +8632,8 @@ module Google
class NodeGroup
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :autoscaling_policy, as: 'autoscalingPolicy', class: Google::Apis::ComputeAlpha::NodeGroupAutoscalingPolicy, decorator: Google::Apis::ComputeAlpha::NodeGroupAutoscalingPolicy::Representation
property :creation_timestamp, as: 'creationTimestamp'
property :description, as: 'description'
property :id, :numeric_string => true, as: 'id'
@ -8575,6 +8679,14 @@ module Google
end
end
class NodeGroupAutoscalingPolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :max_size, as: 'maxSize'
property :min_size, as: 'minSize'
end
end
class NodeGroupList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -9115,8 +9227,11 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :fingerprint, :base64 => true, as: 'fingerprint'
property :instance, as: 'instance'
property :name, as: 'name'
property :override, as: 'override', class: Google::Apis::ComputeAlpha::ManagedInstanceOverride, decorator: Google::Apis::ComputeAlpha::ManagedInstanceOverride::Representation
property :preserved_state, as: 'preservedState', class: Google::Apis::ComputeAlpha::PreservedState, decorator: Google::Apis::ComputeAlpha::PreservedState::Representation
end
end
@ -9143,6 +9258,24 @@ module Google
end
end
class PreservedState
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :disks, as: 'disks', class: Google::Apis::ComputeAlpha::PreservedStatePreservedDisk, decorator: Google::Apis::ComputeAlpha::PreservedStatePreservedDisk::Representation
hash :metadata, as: 'metadata'
end
end
class PreservedStatePreservedDisk
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :auto_delete, as: 'autoDelete'
property :mode, as: 'mode'
property :source, as: 'source'
end
end
class Project
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -9370,6 +9503,7 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :instances, as: 'instances'
collection :names, as: 'names'
end
end
@ -10757,6 +10891,8 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :preserved_resources, as: 'preservedResources', class: Google::Apis::ComputeAlpha::StatefulPolicyPreservedResources, decorator: Google::Apis::ComputeAlpha::StatefulPolicyPreservedResources::Representation
property :preserved_state, as: 'preservedState', class: Google::Apis::ComputeAlpha::StatefulPolicyPreservedState, decorator: Google::Apis::ComputeAlpha::StatefulPolicyPreservedState::Representation
end
end
@ -10775,6 +10911,21 @@ module Google
end
end
class StatefulPolicyPreservedState
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :disks, as: 'disks', class: Google::Apis::ComputeAlpha::StatefulPolicyPreservedStateDiskDevice, decorator: Google::Apis::ComputeAlpha::StatefulPolicyPreservedStateDiskDevice::Representation
end
end
class StatefulPolicyPreservedStateDiskDevice
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :auto_delete, as: 'autoDelete'
end
end
class Subnetwork
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -10791,6 +10942,8 @@ module Google
property :ip_cidr_range, as: 'ipCidrRange'
property :ipv6_cidr_range, as: 'ipv6CidrRange'
property :kind, as: 'kind'
property :log_config, as: 'logConfig', class: Google::Apis::ComputeAlpha::SubnetworkLogConfig, decorator: Google::Apis::ComputeAlpha::SubnetworkLogConfig::Representation
property :metadata, as: 'metadata'
property :name, as: 'name'
property :network, as: 'network'
@ -10869,6 +11022,16 @@ module Google
end
end
class SubnetworkLogConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :aggregation_interval, as: 'aggregationInterval'
property :enable, as: 'enable'
property :flow_sampling, as: 'flowSampling'
property :metadata, as: 'metadata'
end
end
class SubnetworkSecondaryRange
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -529,7 +529,7 @@ module Google
# @param [String] region
# The region for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeAlpha::RegionSetLabelsRequest] region_set_labels_request_object
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
@ -2283,7 +2283,7 @@ module Google
end
# Returns the specified BackendService resource. Gets a list of available
# backend services by making a list() request.
# backend services.
# @param [String] project
# Project ID for this request.
# @param [String] backend_service
@ -3470,7 +3470,7 @@ module Google
# @param [String] zone
# The name of the zone for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeAlpha::ZoneSetLabelsRequest] zone_set_labels_request_object
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
@ -4260,7 +4260,7 @@ module Google
# @param [String] region
# The region for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeAlpha::RegionSetLabelsRequest] region_set_labels_request_object
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
@ -4615,7 +4615,7 @@ module Google
# @param [String] project
# Project ID for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeAlpha::GlobalSetLabelsRequest] global_set_labels_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -4953,7 +4953,7 @@ module Google
# @param [String] project
# Project ID for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeAlpha::GlobalSetLabelsRequest] global_set_labels_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -7025,7 +7025,7 @@ module Google
# @param [String] project
# Project ID for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeAlpha::GlobalSetLabelsRequest] global_set_labels_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -7279,6 +7279,65 @@ module Google
execute_or_queue_command(command, &block)
end
# Creates instances with per-instance configs in this managed instance group.
# Instances are created using the current instance template. The create
# instances operation is marked DONE if the createInstances request is
# successful. The underlying actions take additional time. You must separately
# verify the status of the creating or actions with the listmanagedinstances
# method.
# @param [String] project
# Project ID for this request.
# @param [String] zone
# The name of the zone where the managed instance group is located. It should
# conform to RFC1035.
# @param [String] instance_group_manager
# The name of the managed instance group. It should conform to RFC1035.
# @param [Google::Apis::ComputeAlpha::InstanceGroupManagersCreateInstancesRequest] instance_group_managers_create_instances_request_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.
# 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 create_instance_group_manager_instances(project, zone, instance_group_manager, instance_group_managers_create_instances_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/createInstances', options)
command.request_representation = Google::Apis::ComputeAlpha::InstanceGroupManagersCreateInstancesRequest::Representation
command.request_object = instance_group_managers_create_instances_request_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['zone'] = zone unless zone.nil?
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.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
# Deletes the specified managed instance group and all of the instances in that
# group. Note that the instance group must not belong to a backend service. Read
# Deleting an instance group for more information.
@ -8029,7 +8088,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Modifies the autohealing policies.
# Modifies the autohealing policies. [Deprecated] This method is deprecated.
# Please use Patch instead.
# @param [String] project
# Project ID for this request.
# @param [String] zone
@ -9624,9 +9684,10 @@ module Google
# @param [String] zone
# The name of the zone for this request.
# @param [String] instance
# Instance name.
# Instance name for this request.
# @param [String] device_name
# Disk device name to detach.
# The device name of the disk to detach. Make a get() request on the instance to
# view currently attached disks and device names.
# @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
@ -10273,7 +10334,7 @@ module Google
# @param [String] zone
# The name of the zone for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Boolean] deletion_protection
# Whether the resource should be protected against deletion.
# @param [String] request_id
@ -10327,11 +10388,12 @@ module Google
# @param [String] zone
# The name of the zone for this request.
# @param [String] instance
# The instance name.
# The instance name for this request.
# @param [Boolean] auto_delete
# Whether to auto-delete the disk when the instance is deleted.
# @param [String] device_name
# The device name of the disk to modify.
# The device name of the disk to modify. Make a get() request on the instance to
# view currently attached disks and device names.
# @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
@ -10702,7 +10764,7 @@ module Google
# @param [String] zone
# The name of the zone for this request.
# @param [String] instance
# Instance name.
# Instance name for this request.
# @param [Google::Apis::ComputeAlpha::Scheduling] scheduling_object
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
@ -11282,6 +11344,62 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates the Display config for a VM instance. You can only use this method on
# a stopped VM instance. This method supports PATCH semantics and uses the JSON
# merge patch format and processing rules.
# @param [String] project
# Project ID for this request.
# @param [String] zone
# The name of the zone for this request.
# @param [String] instance
# Name of the instance scoping this request.
# @param [Google::Apis::ComputeAlpha::DisplayDevice] display_device_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 update_instance_display_device(project, zone, instance, display_device_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, '{project}/zones/{zone}/instances/{instance}/updateDisplayDevice', options)
command.request_representation = Google::Apis::ComputeAlpha::DisplayDevice::Representation
command.request_object = display_device_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['zone'] = zone unless zone.nil?
command.params['instance'] = instance unless instance.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
# Updates an instance's network interface. This method follows PATCH semantics.
# @param [String] project
# Project ID for this request.
@ -11829,7 +11947,7 @@ module Google
# @param [String] region
# The region for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeAlpha::RegionSetLabelsRequest] region_set_labels_request_object
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
@ -12443,7 +12561,7 @@ module Google
# @param [String] project
# Project ID for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeAlpha::GlobalSetLabelsRequest] global_set_labels_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -14795,7 +14913,7 @@ module Google
# @param [String] zone
# The name of the zone for this request.
# @param [String] node_group
# Name of the NodeGroup resource to delete.
# Name of the NodeGroup resource.
# @param [Google::Apis::ComputeAlpha::NodeGroupsAddNodesRequest] node_groups_add_nodes_request_object
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
@ -16045,6 +16163,519 @@ module Google
execute_or_queue_command(command, &block)
end
# Inserts an association for the specified security policy.
# @param [String] security_policy
# Name of the security policy to update.
# @param [Google::Apis::ComputeAlpha::SecurityPolicyAssociation] security_policy_association_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 add_organization_security_policy_association(security_policy, security_policy_association_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'locations/global/securityPolicies/{securityPolicy}/addAssociation', options)
command.request_representation = Google::Apis::ComputeAlpha::SecurityPolicyAssociation::Representation
command.request_object = security_policy_association_object
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
command.response_class = Google::Apis::ComputeAlpha::Operation
command.params['securityPolicy'] = security_policy unless security_policy.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
# Inserts a rule into a security policy.
# @param [String] security_policy
# Name of the security policy to update.
# @param [Google::Apis::ComputeAlpha::SecurityPolicyRule] security_policy_rule_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 add_organization_security_policy_rule(security_policy, security_policy_rule_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'locations/global/securityPolicies/{securityPolicy}/addRule', options)
command.request_representation = Google::Apis::ComputeAlpha::SecurityPolicyRule::Representation
command.request_object = security_policy_rule_object
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
command.response_class = Google::Apis::ComputeAlpha::Operation
command.params['securityPolicy'] = security_policy unless security_policy.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
# Deletes the specified policy.
# @param [String] security_policy
# Name of the security policy 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_organization_security_policy(security_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, 'locations/global/securityPolicies/{securityPolicy}', options)
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
command.response_class = Google::Apis::ComputeAlpha::Operation
command.params['securityPolicy'] = security_policy unless security_policy.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
# List all of the ordered rules present in a single specified policy.
# @param [String] security_policy
# Name of the security policy to get.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeAlpha::SecurityPolicy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeAlpha::SecurityPolicy]
#
# @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_organization_security_policy(security_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'locations/global/securityPolicies/{securityPolicy}', options)
command.response_representation = Google::Apis::ComputeAlpha::SecurityPolicy::Representation
command.response_class = Google::Apis::ComputeAlpha::SecurityPolicy
command.params['securityPolicy'] = security_policy unless security_policy.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 an association with the specified name.
# @param [String] security_policy
# Name of the security policy to which the queried rule belongs.
# @param [String] name
# The name of the association to get from the security policy.
# @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::SecurityPolicyAssociation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeAlpha::SecurityPolicyAssociation]
#
# @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_organization_security_policy_association(security_policy, name: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'locations/global/securityPolicies/{securityPolicy}/getAssociation', options)
command.response_representation = Google::Apis::ComputeAlpha::SecurityPolicyAssociation::Representation
command.response_class = Google::Apis::ComputeAlpha::SecurityPolicyAssociation
command.params['securityPolicy'] = security_policy unless security_policy.nil?
command.query['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Gets a rule at the specified priority.
# @param [String] security_policy
# Name of the security policy to which the queried rule belongs.
# @param [Fixnum] priority
# The priority of the rule to get from the security policy.
# @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::SecurityPolicyRule] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeAlpha::SecurityPolicyRule]
#
# @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_organization_security_policy_rule(security_policy, priority: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'locations/global/securityPolicies/{securityPolicy}/getRule', options)
command.response_representation = Google::Apis::ComputeAlpha::SecurityPolicyRule::Representation
command.response_class = Google::Apis::ComputeAlpha::SecurityPolicyRule
command.params['securityPolicy'] = security_policy unless security_policy.nil?
command.query['priority'] = priority unless priority.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 new policy in the specified project using the data included in the
# request.
# @param [Google::Apis::ComputeAlpha::SecurityPolicy] security_policy_object
# @param [String] parent_id
# Parent ID for this request.
# @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_organization_security_policy(security_policy_object = nil, parent_id: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'locations/global/securityPolicies', options)
command.request_representation = Google::Apis::ComputeAlpha::SecurityPolicy::Representation
command.request_object = security_policy_object
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
command.response_class = Google::Apis::ComputeAlpha::Operation
command.query['parentId'] = parent_id unless parent_id.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
# List all the policies that have been configured for the specified project.
# @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 [String] parent_id
# Parent ID for this request.
# @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::SecurityPolicyList] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeAlpha::SecurityPolicyList]
#
# @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_organization_security_policies(filter: nil, max_results: nil, order_by: nil, page_token: nil, parent_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'locations/global/securityPolicies', options)
command.response_representation = Google::Apis::ComputeAlpha::SecurityPolicyList::Representation
command.response_class = Google::Apis::ComputeAlpha::SecurityPolicyList
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['parentId'] = parent_id unless parent_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
# Patches a rule at the specified priority.
# @param [String] security_policy
# Name of the security policy to update.
# @param [Google::Apis::ComputeAlpha::SecurityPolicyRule] security_policy_rule_object
# @param [Fixnum] priority
# The priority of the rule to patch.
# @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 patch_organization_security_policy_rule(security_policy, security_policy_rule_object = nil, priority: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'locations/global/securityPolicies/{securityPolicy}/patchRule', options)
command.request_representation = Google::Apis::ComputeAlpha::SecurityPolicyRule::Representation
command.request_object = security_policy_rule_object
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
command.response_class = Google::Apis::ComputeAlpha::Operation
command.params['securityPolicy'] = security_policy unless security_policy.nil?
command.query['priority'] = priority unless priority.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
# Removes an association for the specified security policy.
# @param [String] security_policy
# Name of the security policy to update.
# @param [String] name
# Name for the attachment that will be removed.
# @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 remove_organization_security_policy_association(security_policy, name: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'locations/global/securityPolicies/{securityPolicy}/removeAssociation', options)
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
command.response_class = Google::Apis::ComputeAlpha::Operation
command.params['securityPolicy'] = security_policy unless security_policy.nil?
command.query['name'] = name unless name.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
# Deletes a rule at the specified priority.
# @param [String] security_policy
# Name of the security policy to update.
# @param [Fixnum] priority
# The priority of the rule to remove from the security policy.
# @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 remove_organization_security_policy_rule(security_policy, priority: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'locations/global/securityPolicies/{securityPolicy}/removeRule', options)
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
command.response_class = Google::Apis::ComputeAlpha::Operation
command.params['securityPolicy'] = security_policy unless security_policy.nil?
command.query['priority'] = priority unless priority.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
# Disable this project as a shared VPC host project.
# @param [String] project
# Project ID for this request.
@ -18367,7 +18998,7 @@ module Google
# @param [String] region
# The region for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeAlpha::RegionSetLabelsRequest] region_set_labels_request_object
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
@ -19604,7 +20235,7 @@ module Google
end
# Modifies the autohealing policy for the instances in this managed instance
# group.
# group. [Deprecated] This method is deprecated. Please use Patch instead.
# @param [String] project
# Project ID for this request.
# @param [String] region
@ -23642,7 +24273,7 @@ module Google
# @param [String] project
# Project ID for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeAlpha::GlobalSetLabelsRequest] global_set_labels_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -23720,7 +24351,7 @@ module Google
# 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
# snapshots, the data will be moved to the next corresponding snapshot.
# For more information, see Deleting snaphots.
# For more information, see Deleting snapshots.
# @param [String] project
# Project ID for this request.
# @param [String] snapshot
@ -23959,7 +24590,7 @@ module Google
# @param [String] project
# Project ID for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeAlpha::GlobalSetLabelsRequest] global_set_labels_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -25174,10 +25805,9 @@ module Google
end
# Patches the specified subnetwork with the data included in the request. Only
# the following fields within the subnetwork resource can be specified in the
# request: secondary_ip_range, allow_subnet_cidr_routes_overlap and role. It is
# also mandatory to specify the current fingeprint of the subnetwork resource
# being patched.
# certain fields can up updated with a patch request as indicated in the field
# descriptions. You must specify the current fingeprint of the subnetwork
# resource being patched.
# @param [String] project
# Project ID for this request.
# @param [String] region
@ -28347,7 +28977,7 @@ module Google
# @param [String] region
# The region for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeAlpha::RegionSetLabelsRequest] region_set_labels_request_object
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
@ -29244,7 +29874,7 @@ module Google
# @param [String] region
# The region for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeAlpha::RegionSetLabelsRequest] region_set_labels_request_object
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
@ -29630,7 +30260,7 @@ module Google
# @param [String] region
# The region for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeAlpha::RegionSetLabelsRequest] region_set_labels_request_object
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/compute/docs/reference/latest/
module ComputeBeta
VERSION = 'Beta'
REVISION = '20181022'
REVISION = '20181128'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

File diff suppressed because it is too large Load Diff

View File

@ -160,6 +160,90 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Allocation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AllocationAffinity
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AllocationAggregatedList
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 AllocationList
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 AllocationSpecificSkuAllocation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AllocationSpecificSkuAllocationAllocatedInstanceProperties
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AllocationSpecificSkuAllocationAllocatedInstancePropertiesAllocatedDisk
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AllocationsScopedList
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 AttachedDisk
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -658,6 +742,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class DisplayDevice
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DistributionPolicy
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -670,6 +760,30 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ExchangedPeeringRoute
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ExchangedPeeringRoutesList
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 Expr
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -712,6 +826,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class FirewallLogConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class FixedOrPercent
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1894,6 +2014,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class NetworksUpdatePeeringRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class NodeGroup
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -3966,6 +4092,153 @@ module Google
end
end
class Allocation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :creation_timestamp, as: 'creationTimestamp'
property :description, as: 'description'
property :id, :numeric_string => true, as: 'id'
property :kind, as: 'kind'
property :name, as: 'name'
property :self_link, as: 'selfLink'
property :specific_allocation, as: 'specificAllocation', class: Google::Apis::ComputeBeta::AllocationSpecificSkuAllocation, decorator: Google::Apis::ComputeBeta::AllocationSpecificSkuAllocation::Representation
property :specific_allocation_required, as: 'specificAllocationRequired'
property :zone, as: 'zone'
end
end
class AllocationAffinity
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :consume_allocation_type, as: 'consumeAllocationType'
property :key, as: 'key'
collection :values, as: 'values'
end
end
class AllocationAggregatedList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
hash :items, as: 'items', class: Google::Apis::ComputeBeta::AllocationsScopedList, decorator: Google::Apis::ComputeBeta::AllocationsScopedList::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :self_link, as: 'selfLink'
property :warning, as: 'warning', class: Google::Apis::ComputeBeta::AllocationAggregatedList::Warning, decorator: Google::Apis::ComputeBeta::AllocationAggregatedList::Warning::Representation
end
class Warning
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :data, as: 'data', class: Google::Apis::ComputeBeta::AllocationAggregatedList::Warning::Datum, decorator: Google::Apis::ComputeBeta::AllocationAggregatedList::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 AllocationList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
collection :items, as: 'items', class: Google::Apis::ComputeBeta::Allocation, decorator: Google::Apis::ComputeBeta::Allocation::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :self_link, as: 'selfLink'
property :warning, as: 'warning', class: Google::Apis::ComputeBeta::AllocationList::Warning, decorator: Google::Apis::ComputeBeta::AllocationList::Warning::Representation
end
class Warning
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :data, as: 'data', class: Google::Apis::ComputeBeta::AllocationList::Warning::Datum, decorator: Google::Apis::ComputeBeta::AllocationList::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 AllocationSpecificSkuAllocation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :count, :numeric_string => true, as: 'count'
property :in_use_count, :numeric_string => true, as: 'inUseCount'
property :instance_properties, as: 'instanceProperties', class: Google::Apis::ComputeBeta::AllocationSpecificSkuAllocationAllocatedInstanceProperties, decorator: Google::Apis::ComputeBeta::AllocationSpecificSkuAllocationAllocatedInstanceProperties::Representation
end
end
class AllocationSpecificSkuAllocationAllocatedInstanceProperties
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :guest_accelerators, as: 'guestAccelerators', class: Google::Apis::ComputeBeta::AcceleratorConfig, decorator: Google::Apis::ComputeBeta::AcceleratorConfig::Representation
collection :local_ssds, as: 'localSsds', class: Google::Apis::ComputeBeta::AllocationSpecificSkuAllocationAllocatedInstancePropertiesAllocatedDisk, decorator: Google::Apis::ComputeBeta::AllocationSpecificSkuAllocationAllocatedInstancePropertiesAllocatedDisk::Representation
property :machine_type, as: 'machineType'
property :min_cpu_platform, as: 'minCpuPlatform'
end
end
class AllocationSpecificSkuAllocationAllocatedInstancePropertiesAllocatedDisk
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb'
property :interface, as: 'interface'
end
end
class AllocationsScopedList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :allocations, as: 'allocations', class: Google::Apis::ComputeBeta::Allocation, decorator: Google::Apis::ComputeBeta::Allocation::Representation
property :warning, as: 'warning', class: Google::Apis::ComputeBeta::AllocationsScopedList::Warning, decorator: Google::Apis::ComputeBeta::AllocationsScopedList::Warning::Representation
end
class Warning
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :data, as: 'data', class: Google::Apis::ComputeBeta::AllocationsScopedList::Warning::Datum, decorator: Google::Apis::ComputeBeta::AllocationsScopedList::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 AttachedDisk
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -4453,6 +4726,8 @@ module Google
class Commitment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :allocations, as: 'allocations', class: Google::Apis::ComputeBeta::Allocation, decorator: Google::Apis::ComputeBeta::Allocation::Representation
property :creation_timestamp, as: 'creationTimestamp'
property :description, as: 'description'
property :end_timestamp, as: 'endTimestamp'
@ -4630,6 +4905,7 @@ module Google
collection :licenses, as: 'licenses'
property :name, as: 'name'
property :options, as: 'options'
property :physical_block_size_bytes, :numeric_string => true, as: 'physicalBlockSizeBytes'
property :region, as: 'region'
collection :replica_zones, as: 'replicaZones'
collection :resource_policies, as: 'resourcePolicies'
@ -4892,6 +5168,13 @@ module Google
end
end
class DisplayDevice
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :enable_display, as: 'enableDisplay'
end
end
class DistributionPolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -4907,6 +5190,49 @@ module Google
end
end
class ExchangedPeeringRoute
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :dest_range, as: 'destRange'
property :imported, as: 'imported'
property :next_hop_region, as: 'nextHopRegion'
property :priority, as: 'priority'
property :type, as: 'type'
end
end
class ExchangedPeeringRoutesList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
collection :items, as: 'items', class: Google::Apis::ComputeBeta::ExchangedPeeringRoute, decorator: Google::Apis::ComputeBeta::ExchangedPeeringRoute::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :self_link, as: 'selfLink'
property :warning, as: 'warning', class: Google::Apis::ComputeBeta::ExchangedPeeringRoutesList::Warning, decorator: Google::Apis::ComputeBeta::ExchangedPeeringRoutesList::Warning::Representation
end
class Warning
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :data, as: 'data', class: Google::Apis::ComputeBeta::ExchangedPeeringRoutesList::Warning::Datum, decorator: Google::Apis::ComputeBeta::ExchangedPeeringRoutesList::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 Expr
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -4932,6 +5258,8 @@ module Google
property :enable_logging, as: 'enableLogging'
property :id, :numeric_string => true, as: 'id'
property :kind, as: 'kind'
property :log_config, as: 'logConfig', class: Google::Apis::ComputeBeta::FirewallLogConfig, decorator: Google::Apis::ComputeBeta::FirewallLogConfig::Representation
property :name, as: 'name'
property :network, as: 'network'
property :priority, as: 'priority'
@ -4992,6 +5320,13 @@ module Google
end
end
class FirewallLogConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :enable, as: 'enable'
end
end
class FixedOrPercent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -5509,6 +5844,8 @@ module Google
class Instance
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :allocation_affinity, as: 'allocationAffinity', class: Google::Apis::ComputeBeta::AllocationAffinity, decorator: Google::Apis::ComputeBeta::AllocationAffinity::Representation
property :can_ip_forward, as: 'canIpForward'
property :cpu_platform, as: 'cpuPlatform'
property :creation_timestamp, as: 'creationTimestamp'
@ -5516,6 +5853,8 @@ module Google
property :description, as: 'description'
collection :disks, as: 'disks', class: Google::Apis::ComputeBeta::AttachedDisk, decorator: Google::Apis::ComputeBeta::AttachedDisk::Representation
property :display_device, as: 'displayDevice', class: Google::Apis::ComputeBeta::DisplayDevice, decorator: Google::Apis::ComputeBeta::DisplayDevice::Representation
collection :guest_accelerators, as: 'guestAccelerators', class: Google::Apis::ComputeBeta::AcceleratorConfig, decorator: Google::Apis::ComputeBeta::AcceleratorConfig::Representation
property :hostname, as: 'hostname'
@ -6085,6 +6424,8 @@ module Google
class InstanceProperties
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :allocation_affinity, as: 'allocationAffinity', class: Google::Apis::ComputeBeta::AllocationAffinity, decorator: Google::Apis::ComputeBeta::AllocationAffinity::Representation
property :can_ip_forward, as: 'canIpForward'
property :description, as: 'description'
collection :disks, as: 'disks', class: Google::Apis::ComputeBeta::AttachedDisk, decorator: Google::Apis::ComputeBeta::AttachedDisk::Representation
@ -6544,6 +6885,7 @@ module Google
collection :region_infos, as: 'regionInfos', class: Google::Apis::ComputeBeta::InterconnectLocationRegionInfo, decorator: Google::Apis::ComputeBeta::InterconnectLocationRegionInfo::Representation
property :self_link, as: 'selfLink'
property :status, as: 'status'
end
end
@ -7178,6 +7520,9 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :auto_create_routes, as: 'autoCreateRoutes'
property :exchange_subnet_routes, as: 'exchangeSubnetRoutes'
property :export_custom_routes, as: 'exportCustomRoutes'
property :import_custom_routes, as: 'importCustomRoutes'
property :name, as: 'name'
property :network, as: 'network'
property :state, as: 'state'
@ -7197,6 +7542,8 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :auto_create_routes, as: 'autoCreateRoutes'
property :name, as: 'name'
property :network_peering, as: 'networkPeering', class: Google::Apis::ComputeBeta::NetworkPeering, decorator: Google::Apis::ComputeBeta::NetworkPeering::Representation
property :peer_network, as: 'peerNetwork'
end
end
@ -7208,6 +7555,14 @@ module Google
end
end
class NetworksUpdatePeeringRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :network_peering, as: 'networkPeering', class: Google::Apis::ComputeBeta::NetworkPeering, decorator: Google::Apis::ComputeBeta::NetworkPeering::Representation
end
end
class NodeGroup
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -529,7 +529,7 @@ module Google
# @param [String] region
# The region for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::RegionSetLabelsRequest] region_set_labels_request_object
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
@ -619,6 +619,418 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves an aggregated list of allocations.
# @param [String] project
# Project ID for 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 [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::ComputeBeta::AllocationAggregatedList] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::AllocationAggregatedList]
#
# @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 aggregated_allocation_list(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/aggregated/allocations', options)
command.response_representation = Google::Apis::ComputeBeta::AllocationAggregatedList::Representation
command.response_class = Google::Apis::ComputeBeta::AllocationAggregatedList
command.params['project'] = project unless project.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['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 allocation.
# @param [String] project
# Project ID for this request.
# @param [String] zone
# Name of the zone for this request.
# @param [String] allocation
# Name of the allocation 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::ComputeBeta::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::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_allocation(project, zone, allocation, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, '{project}/zones/{zone}/allocations/{allocation}', options)
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
command.response_class = Google::Apis::ComputeBeta::Operation
command.params['project'] = project unless project.nil?
command.params['zone'] = zone unless zone.nil?
command.params['allocation'] = allocation unless allocation.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
# Retrieves all information of the specified allocation.
# @param [String] project
# Project ID for this request.
# @param [String] zone
# Name of the zone for this request.
# @param [String] allocation
# Name of the allocation to retrieve.
# @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::ComputeBeta::Allocation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::Allocation]
#
# @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_allocation(project, zone, allocation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/zones/{zone}/allocations/{allocation}', options)
command.response_representation = Google::Apis::ComputeBeta::Allocation::Representation
command.response_class = Google::Apis::ComputeBeta::Allocation
command.params['project'] = project unless project.nil?
command.params['zone'] = zone unless zone.nil?
command.params['allocation'] = allocation unless allocation.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] zone
# The name of the zone for this request.
# @param [String] resource
# Name or id of the resource for this request.
# @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::ComputeBeta::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::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_allocation_iam_policy(project, zone, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/zones/{zone}/allocations/{resource}/getIamPolicy', options)
command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
command.response_class = Google::Apis::ComputeBeta::Policy
command.params['project'] = project unless project.nil?
command.params['zone'] = zone unless zone.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
# Creates a new allocation.
# @param [String] project
# Project ID for this request.
# @param [String] zone
# Name of the zone for this request.
# @param [Google::Apis::ComputeBeta::Allocation] allocation_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::ComputeBeta::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::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_allocation(project, zone, allocation_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/zones/{zone}/allocations', options)
command.request_representation = Google::Apis::ComputeBeta::Allocation::Representation
command.request_object = allocation_object
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
command.response_class = Google::Apis::ComputeBeta::Operation
command.params['project'] = project unless project.nil?
command.params['zone'] = zone unless zone.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
# A list all the allocations that have been configured for the specified project
# in specified zone.
# @param [String] project
# Project ID for this request.
# @param [String] zone
# Name of the zone for 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 [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::ComputeBeta::AllocationList] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::AllocationList]
#
# @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_allocations(project, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/zones/{zone}/allocations', options)
command.response_representation = Google::Apis::ComputeBeta::AllocationList::Representation
command.response_class = Google::Apis::ComputeBeta::AllocationList
command.params['project'] = project unless project.nil?
command.params['zone'] = zone unless zone.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['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] zone
# The name of the zone for this request.
# @param [String] resource
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::ZoneSetPolicyRequest] zone_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::ComputeBeta::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::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_allocation_iam_policy(project, zone, resource, zone_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/zones/{zone}/allocations/{resource}/setIamPolicy', options)
command.request_representation = Google::Apis::ComputeBeta::ZoneSetPolicyRequest::Representation
command.request_object = zone_set_policy_request_object
command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
command.response_class = Google::Apis::ComputeBeta::Policy
command.params['project'] = project unless project.nil?
command.params['zone'] = zone unless zone.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] zone
# The name of the zone for this request.
# @param [String] resource
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::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::ComputeBeta::TestPermissionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::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_allocation_iam_permissions(project, zone, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/zones/{zone}/allocations/{resource}/testIamPermissions', options)
command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
command.request_object = test_permissions_request_object
command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
command.params['project'] = project unless project.nil?
command.params['zone'] = zone unless zone.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
# Retrieves an aggregated list of autoscalers.
# @param [String] project
# Project ID for this request.
@ -1701,7 +2113,7 @@ module Google
end
# Returns the specified BackendService resource. Gets a list of available
# backend services by making a list() request.
# backend services.
# @param [String] project
# Project ID for this request.
# @param [String] backend_service
@ -2888,7 +3300,7 @@ module Google
# @param [String] zone
# The name of the zone for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::ZoneSetLabelsRequest] zone_set_labels_request_object
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
@ -3622,7 +4034,7 @@ module Google
# @param [String] region
# The region for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::RegionSetLabelsRequest] region_set_labels_request_object
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
@ -3977,7 +4389,7 @@ module Google
# @param [String] project
# Project ID for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::GlobalSetLabelsRequest] global_set_labels_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -4262,7 +4674,7 @@ module Google
# @param [String] project
# Project ID for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::GlobalSetLabelsRequest] global_set_labels_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -6033,7 +6445,7 @@ module Google
# @param [String] project
# Project ID for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::GlobalSetLabelsRequest] global_set_labels_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -6872,7 +7284,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Modifies the autohealing policies.
# Modifies the autohealing policies. [Deprecated] This method is deprecated.
# Please use Patch instead.
# @param [String] project
# Project ID for this request.
# @param [String] zone
@ -8354,9 +8767,10 @@ module Google
# @param [String] zone
# The name of the zone for this request.
# @param [String] instance
# Instance name.
# Instance name for this request.
# @param [String] device_name
# Disk device name to detach.
# The device name of the disk to detach. Make a get() request on the instance to
# view currently attached disks and device names.
# @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
@ -8940,7 +9354,7 @@ module Google
# @param [String] zone
# The name of the zone for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Boolean] deletion_protection
# Whether the resource should be protected against deletion.
# @param [String] request_id
@ -8994,11 +9408,12 @@ module Google
# @param [String] zone
# The name of the zone for this request.
# @param [String] instance
# The instance name.
# The instance name for this request.
# @param [Boolean] auto_delete
# Whether to auto-delete the disk when the instance is deleted.
# @param [String] device_name
# The device name of the disk to modify.
# The device name of the disk to modify. Make a get() request on the instance to
# view currently attached disks and device names.
# @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
@ -9369,7 +9784,7 @@ module Google
# @param [String] zone
# The name of the zone for this request.
# @param [String] instance
# Instance name.
# Instance name for this request.
# @param [Google::Apis::ComputeBeta::Scheduling] scheduling_object
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
@ -9945,6 +10360,62 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates the Display config for a VM instance. You can only use this method on
# a stopped VM instance. This method supports PATCH semantics and uses the JSON
# merge patch format and processing rules.
# @param [String] project
# Project ID for this request.
# @param [String] zone
# The name of the zone for this request.
# @param [String] instance
# Name of the instance scoping this request.
# @param [Google::Apis::ComputeBeta::DisplayDevice] display_device_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::ComputeBeta::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::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 update_instance_display_device(project, zone, instance, display_device_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, '{project}/zones/{zone}/instances/{instance}/updateDisplayDevice', options)
command.request_representation = Google::Apis::ComputeBeta::DisplayDevice::Representation
command.request_object = display_device_object
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
command.response_class = Google::Apis::ComputeBeta::Operation
command.params['project'] = project unless project.nil?
command.params['zone'] = zone unless zone.nil?
command.params['instance'] = instance unless instance.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
# Updates an instance's network interface. This method follows PATCH semantics.
# @param [String] project
# Project ID for this request.
@ -10409,7 +10880,7 @@ module Google
# @param [String] region
# The region for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::RegionSetLabelsRequest] region_set_labels_request_object
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
@ -10907,7 +11378,7 @@ module Google
# @param [String] project
# Project ID for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::GlobalSetLabelsRequest] global_set_labels_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -11225,6 +11696,46 @@ module Google
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] resource
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::GlobalSetPolicyRequest] global_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::ComputeBeta::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::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_license_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/global/licenses/{resource}/setIamPolicy', options)
command.request_representation = Google::Apis::ComputeBeta::GlobalSetPolicyRequest::Representation
command.request_object = global_set_policy_request_object
command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
command.response_class = Google::Apis::ComputeBeta::Policy
command.params['project'] = project unless project.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
# Retrieves an aggregated list of machine types.
# @param [String] project
# Project ID for this request.
@ -12199,6 +12710,90 @@ module Google
execute_or_queue_command(command, &block)
end
# Lists the peering routes exchanged over peering connection.
# @param [String] project
# Project ID for this request.
# @param [String] network
# Name of the network for this request.
# @param [String] direction
# The direction of the exchanged routes.
# @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 [String] peering_name
# The response will show routes exchanged over the given peering connection.
# @param [String] region
# The region of the request. The response will include all subnet routes, static
# routes and dynamic routes in the region.
# @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::ComputeBeta::ExchangedPeeringRoutesList] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::ExchangedPeeringRoutesList]
#
# @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_network_peering_routes(project, network, direction: nil, filter: nil, max_results: nil, order_by: nil, page_token: nil, peering_name: nil, region: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/global/networks/{network}/listPeeringRoutes', options)
command.response_representation = Google::Apis::ComputeBeta::ExchangedPeeringRoutesList::Representation
command.response_class = Google::Apis::ComputeBeta::ExchangedPeeringRoutesList
command.params['project'] = project unless project.nil?
command.params['network'] = network unless network.nil?
command.query['direction'] = direction unless direction.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['peeringName'] = peering_name unless peering_name.nil?
command.query['region'] = region unless region.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
# Patches the specified network with the data included in the request. Only the
# following fields can be modified: routingConfig.routingMode.
# @param [String] project
@ -12389,13 +12984,66 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates the specified network peering with the data included in the request
# Only the following fields can be modified: NetworkPeering.export_custom_routes,
# and NetworkPeering.import_custom_routes
# @param [String] project
# Project ID for this request.
# @param [String] network
# Name of the network resource which the updated peering is belonging to.
# @param [Google::Apis::ComputeBeta::NetworksUpdatePeeringRequest] networks_update_peering_request_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::ComputeBeta::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::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 update_network_peering(project, network, networks_update_peering_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, '{project}/global/networks/{network}/updatePeering', options)
command.request_representation = Google::Apis::ComputeBeta::NetworksUpdatePeeringRequest::Representation
command.request_object = networks_update_peering_request_object
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
command.response_class = Google::Apis::ComputeBeta::Operation
command.params['project'] = project unless project.nil?
command.params['network'] = network unless network.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
# Adds specified number of nodes to the node group.
# @param [String] project
# Project ID for this request.
# @param [String] zone
# The name of the zone for this request.
# @param [String] node_group
# Name of the NodeGroup resource to delete.
# Name of the NodeGroup resource.
# @param [Google::Apis::ComputeBeta::NodeGroupsAddNodesRequest] node_groups_add_nodes_request_object
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
@ -15873,7 +16521,7 @@ module Google
# @param [String] region
# The region for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::RegionSetLabelsRequest] region_set_labels_request_object
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
@ -16579,7 +17227,7 @@ module Google
end
# Modifies the autohealing policy for the instances in this managed instance
# group.
# group. [Deprecated] This method is deprecated. Please use Patch instead.
# @param [String] project
# Project ID for this request.
# @param [String] region
@ -19066,7 +19714,7 @@ module Google
# @param [String] project
# Project ID for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::GlobalSetLabelsRequest] global_set_labels_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -19144,7 +19792,7 @@ module Google
# 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
# snapshots, the data will be moved to the next corresponding snapshot.
# For more information, see Deleting snaphots.
# For more information, see Deleting snapshots.
# @param [String] project
# Project ID for this request.
# @param [String] snapshot
@ -19383,7 +20031,7 @@ module Google
# @param [String] project
# Project ID for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::GlobalSetLabelsRequest] global_set_labels_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -20526,10 +21174,9 @@ module Google
end
# Patches the specified subnetwork with the data included in the request. Only
# the following fields within the subnetwork resource can be specified in the
# request: secondary_ip_range, allow_subnet_cidr_routes_overlap and role. It is
# also mandatory to specify the current fingeprint of the subnetwork resource
# being patched.
# certain fields can up updated with a patch request as indicated in the field
# descriptions. You must specify the current fingeprint of the subnetwork
# resource being patched.
# @param [String] project
# Project ID for this request.
# @param [String] region
@ -23507,7 +24154,7 @@ module Google
# @param [String] region
# The region for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::RegionSetLabelsRequest] region_set_labels_request_object
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
@ -24333,7 +24980,7 @@ module Google
# @param [String] region
# The region for this request.
# @param [String] resource
# Name of the resource for this request.
# Name or id of the resource for this request.
# @param [Google::Apis::ComputeBeta::RegionSetLabelsRequest] region_set_labels_request_object
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/compute/docs/reference/latest/
module ComputeV1
VERSION = 'V1'
REVISION = '20181022'
REVISION = '20181128'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

File diff suppressed because it is too large Load Diff

View File

@ -172,6 +172,24 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class AuditConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AuditLogConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AuthorizationLoggingOptions
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Autoscaler
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -376,6 +394,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Binding
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CacheInvalidationRule
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -448,6 +472,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Condition
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ConnectionDraining
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -622,6 +652,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Expr
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Firewall
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -658,6 +694,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class FirewallLogConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ForwardingRule
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -724,6 +766,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GlobalSetPolicyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GuestOsFeature
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1444,6 +1492,30 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class LogConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LogConfigCloudAuditOptions
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LogConfigCounterOptions
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LogConfigDataAccessOptions
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MachineType
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1930,6 +2002,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Policy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Project
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -2152,6 +2230,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class RegionSetPolicyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ResourceCommitment
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -2326,6 +2410,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Rule
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SslHealthCheck
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -3208,6 +3298,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ZoneSetPolicyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AcceleratorConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -3348,7 +3444,10 @@ module Google
property :ip_version, as: 'ipVersion'
property :kind, as: 'kind'
property :name, as: 'name'
property :network, as: 'network'
property :network_tier, as: 'networkTier'
property :prefix_length, as: 'prefixLength'
property :purpose, as: 'purpose'
property :region, as: 'region'
property :self_link, as: 'selfLink'
property :status, as: 'status'
@ -3493,6 +3592,31 @@ module Google
end
end
class AuditConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::ComputeV1::AuditLogConfig, decorator: Google::Apis::ComputeV1::AuditLogConfig::Representation
collection :exempted_members, as: 'exemptedMembers'
property :service, as: 'service'
end
end
class AuditLogConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :exempted_members, as: 'exemptedMembers'
property :log_type, as: 'logType'
end
end
class AuthorizationLoggingOptions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :permission_type, as: 'permissionType'
end
end
class Autoscaler
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -3875,6 +3999,16 @@ module Google
end
end
class Binding
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :condition, as: 'condition', class: Google::Apis::ComputeV1::Expr, decorator: Google::Apis::ComputeV1::Expr::Representation
collection :members, as: 'members'
property :role, as: 'role'
end
end
class CacheInvalidationRule
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -4006,6 +4140,18 @@ module Google
end
end
class Condition
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :iam, as: 'iam'
property :op, as: 'op'
property :svc, as: 'svc'
property :sys, as: 'sys'
property :value, as: 'value'
collection :values, as: 'values'
end
end
class ConnectionDraining
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -4061,6 +4207,7 @@ module Google
collection :licenses, as: 'licenses'
property :name, as: 'name'
property :options, as: 'options'
property :physical_block_size_bytes, :numeric_string => true, as: 'physicalBlockSizeBytes'
property :region, as: 'region'
collection :replica_zones, as: 'replicaZones'
property :self_link, as: 'selfLink'
@ -4322,6 +4469,16 @@ module Google
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 Firewall
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -4336,6 +4493,8 @@ module Google
property :disabled, as: 'disabled'
property :id, :numeric_string => true, as: 'id'
property :kind, as: 'kind'
property :log_config, as: 'logConfig', class: Google::Apis::ComputeV1::FirewallLogConfig, decorator: Google::Apis::ComputeV1::FirewallLogConfig::Representation
property :name, as: 'name'
property :network, as: 'network'
property :priority, as: 'priority'
@ -4396,6 +4555,13 @@ module Google
end
end
class FirewallLogConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :enable, as: 'enable'
end
end
class ForwardingRule
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -4520,6 +4686,17 @@ module Google
end
end
class GlobalSetPolicyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :bindings, as: 'bindings', class: Google::Apis::ComputeV1::Binding, decorator: Google::Apis::ComputeV1::Binding::Representation
property :etag, :base64 => true, as: 'etag'
property :policy, as: 'policy', class: Google::Apis::ComputeV1::Policy, decorator: Google::Apis::ComputeV1::Policy::Representation
end
end
class GuestOsFeature
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -5904,6 +6081,42 @@ module Google
end
end
class LogConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :cloud_audit, as: 'cloudAudit', class: Google::Apis::ComputeV1::LogConfigCloudAuditOptions, decorator: Google::Apis::ComputeV1::LogConfigCloudAuditOptions::Representation
property :counter, as: 'counter', class: Google::Apis::ComputeV1::LogConfigCounterOptions, decorator: Google::Apis::ComputeV1::LogConfigCounterOptions::Representation
property :data_access, as: 'dataAccess', class: Google::Apis::ComputeV1::LogConfigDataAccessOptions, decorator: Google::Apis::ComputeV1::LogConfigDataAccessOptions::Representation
end
end
class LogConfigCloudAuditOptions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :authorization_logging_options, as: 'authorizationLoggingOptions', class: Google::Apis::ComputeV1::AuthorizationLoggingOptions, decorator: Google::Apis::ComputeV1::AuthorizationLoggingOptions::Representation
property :log_name, as: 'logName'
end
end
class LogConfigCounterOptions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :field, as: 'field'
property :metric, as: 'metric'
end
end
class LogConfigDataAccessOptions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :log_mode, as: 'logMode'
end
end
class MachineType
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -6770,6 +6983,21 @@ module Google
end
end
class Policy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :audit_configs, as: 'auditConfigs', class: Google::Apis::ComputeV1::AuditConfig, decorator: Google::Apis::ComputeV1::AuditConfig::Representation
collection :bindings, as: 'bindings', class: Google::Apis::ComputeV1::Binding, decorator: Google::Apis::ComputeV1::Binding::Representation
property :etag, :base64 => true, as: 'etag'
property :iam_owned, as: 'iamOwned'
collection :rules, as: 'rules', class: Google::Apis::ComputeV1::Rule, decorator: Google::Apis::ComputeV1::Rule::Representation
property :version, as: 'version'
end
end
class Project
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -7137,6 +7365,17 @@ module Google
end
end
class RegionSetPolicyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :bindings, as: 'bindings', class: Google::Apis::ComputeV1::Binding, decorator: Google::Apis::ComputeV1::Binding::Representation
property :etag, :base64 => true, as: 'etag'
property :policy, as: 'policy', class: Google::Apis::ComputeV1::Policy, decorator: Google::Apis::ComputeV1::Policy::Representation
end
end
class ResourceCommitment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -7474,6 +7713,21 @@ module Google
end
end
class Rule
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :action, as: 'action'
collection :conditions, as: 'conditions', class: Google::Apis::ComputeV1::Condition, decorator: Google::Apis::ComputeV1::Condition::Representation
property :description, as: 'description'
collection :ins, as: 'ins'
collection :log_configs, as: 'logConfigs', class: Google::Apis::ComputeV1::LogConfig, decorator: Google::Apis::ComputeV1::LogConfig::Representation
collection :not_ins, as: 'notIns'
collection :permissions, as: 'permissions'
end
end
class SslHealthCheck
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -9014,6 +9268,17 @@ module Google
hash :labels, as: 'labels'
end
end
class ZoneSetPolicyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :bindings, as: 'bindings', class: Google::Apis::ComputeV1::Binding, decorator: Google::Apis::ComputeV1::Binding::Representation
property :etag, :base64 => true, as: 'etag'
property :policy, as: 'policy', class: Google::Apis::ComputeV1::Policy, decorator: Google::Apis::ComputeV1::Policy::Representation
end
end
end
end
end

File diff suppressed because it is too large Load Diff

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/container-engine/
module ContainerV1beta1
VERSION = 'V1beta1'
REVISION = '20181109'
REVISION = '20181113'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -53,6 +53,11 @@ module Google
class AddonsConfig
include Google::Apis::Core::Hashable
# Configuration options for the Cloud Run feature.
# Corresponds to the JSON property `cloudRunConfig`
# @return [Google::Apis::ContainerV1beta1::CloudRunConfig]
attr_accessor :cloud_run_config
# Configuration options for the horizontal pod autoscaling feature, which
# increases or decreases the number of replica pods a replication controller
# has based on the resource usage of the existing pods.
@ -66,6 +71,11 @@ module Google
# @return [Google::Apis::ContainerV1beta1::HttpLoadBalancing]
attr_accessor :http_load_balancing
# Configuration options for Istio addon.
# Corresponds to the JSON property `istioConfig`
# @return [Google::Apis::ContainerV1beta1::IstioConfig]
attr_accessor :istio_config
# Configuration for the Kubernetes Dashboard.
# Corresponds to the JSON property `kubernetesDashboard`
# @return [Google::Apis::ContainerV1beta1::KubernetesDashboard]
@ -84,8 +94,10 @@ module Google
# Update properties of this object
def update!(**args)
@cloud_run_config = args[:cloud_run_config] if args.key?(:cloud_run_config)
@horizontal_pod_autoscaling = args[:horizontal_pod_autoscaling] if args.key?(:horizontal_pod_autoscaling)
@http_load_balancing = args[:http_load_balancing] if args.key?(:http_load_balancing)
@istio_config = args[:istio_config] if args.key?(:istio_config)
@kubernetes_dashboard = args[:kubernetes_dashboard] if args.key?(:kubernetes_dashboard)
@network_policy_config = args[:network_policy_config] if args.key?(:network_policy_config)
end
@ -120,6 +132,25 @@ module Google
end
end
# Parameters for using BigQuery as the destination of resource usage export.
class BigQueryDestination
include Google::Apis::Core::Hashable
# The ID of a BigQuery Dataset.
# Corresponds to the JSON property `datasetId`
# @return [String]
attr_accessor :dataset_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@dataset_id = args[:dataset_id] if args.key?(:dataset_id)
end
end
# Configuration for Binary Authorization.
class BinaryAuthorization
include Google::Apis::Core::Hashable
@ -229,6 +260,26 @@ module Google
end
end
# Configuration options for the Cloud Run feature.
class CloudRunConfig
include Google::Apis::Core::Hashable
# Whether Cloud Run addon is enabled for this cluster.
# Corresponds to the JSON property `disabled`
# @return [Boolean]
attr_accessor :disabled
alias_method :disabled?, :disabled
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@disabled = args[:disabled] if args.key?(:disabled)
end
end
# A Google Kubernetes Engine cluster.
class Cluster
include Google::Apis::Core::Hashable
@ -518,6 +569,11 @@ module Google
# @return [Hash<String,String>]
attr_accessor :resource_labels
# Configuration for exporting cluster resource usages.
# Corresponds to the JSON property `resourceUsageExportConfig`
# @return [Google::Apis::ContainerV1beta1::ResourceUsageExportConfig]
attr_accessor :resource_usage_export_config
# [Output only] Server-defined URL for the resource.
# Corresponds to the JSON property `selfLink`
# @return [String]
@ -619,6 +675,7 @@ module Google
@private_cluster = args[:private_cluster] if args.key?(:private_cluster)
@private_cluster_config = args[:private_cluster_config] if args.key?(:private_cluster_config)
@resource_labels = args[:resource_labels] if args.key?(:resource_labels)
@resource_usage_export_config = args[:resource_usage_export_config] if args.key?(:resource_usage_export_config)
@self_link = args[:self_link] if args.key?(:self_link)
@services_ipv4_cidr = args[:services_ipv4_cidr] if args.key?(:services_ipv4_cidr)
@status = args[:status] if args.key?(:status)
@ -774,6 +831,11 @@ module Google
# @return [Google::Apis::ContainerV1beta1::PodSecurityPolicyConfig]
attr_accessor :desired_pod_security_policy_config
# Configuration for exporting cluster resource usages.
# Corresponds to the JSON property `desiredResourceUsageExportConfig`
# @return [Google::Apis::ContainerV1beta1::ResourceUsageExportConfig]
attr_accessor :desired_resource_usage_export_config
# VerticalPodAutoscaling contains global, per-cluster information
# required by Vertical Pod Autoscaler to automatically adjust
# the resources of pods controlled by it.
@ -800,6 +862,7 @@ module Google
@desired_node_pool_id = args[:desired_node_pool_id] if args.key?(:desired_node_pool_id)
@desired_node_version = args[:desired_node_version] if args.key?(:desired_node_version)
@desired_pod_security_policy_config = args[:desired_pod_security_policy_config] if args.key?(:desired_pod_security_policy_config)
@desired_resource_usage_export_config = args[:desired_resource_usage_export_config] if args.key?(:desired_resource_usage_export_config)
@desired_vertical_pod_autoscaling = args[:desired_vertical_pod_autoscaling] if args.key?(:desired_vertical_pod_autoscaling)
end
end
@ -1196,6 +1259,32 @@ module Google
end
end
# Configuration options for Istio addon.
class IstioConfig
include Google::Apis::Core::Hashable
# The specified Istio auth mode, either none, or mutual TLS.
# Corresponds to the JSON property `auth`
# @return [String]
attr_accessor :auth
# Whether Istio is enabled for this cluster.
# Corresponds to the JSON property `disabled`
# @return [Boolean]
attr_accessor :disabled
alias_method :disabled?, :disabled
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@auth = args[:auth] if args.key?(:auth)
@disabled = args[:disabled] if args.key?(:disabled)
end
end
# Configuration for the Kubernetes Dashboard.
class KubernetesDashboard
include Google::Apis::Core::Hashable
@ -1381,9 +1470,7 @@ module Google
# @return [String]
attr_accessor :name
# Recommended is a bool combining the drain state of the location (ie- has
# the region been drained manually?), and the stockout status of any zone
# according to Zone Advisor. This will be internal only for use by pantheon.
# Whether the location is recomended for GKE cluster scheduling.
# Corresponds to the JSON property `recommended`
# @return [Boolean]
attr_accessor :recommended
@ -2302,6 +2389,33 @@ module Google
end
end
# Configuration for exporting cluster resource usages.
class ResourceUsageExportConfig
include Google::Apis::Core::Hashable
# Parameters for using BigQuery as the destination of resource usage export.
# Corresponds to the JSON property `bigqueryDestination`
# @return [Google::Apis::ContainerV1beta1::BigQueryDestination]
attr_accessor :bigquery_destination
# Whether to enable network egress metering for this cluster. If enabled, a
# daemonset will be created in the cluster to meter network egress traffic.
# Corresponds to the JSON property `enableNetworkEgressMetering`
# @return [Boolean]
attr_accessor :enable_network_egress_metering
alias_method :enable_network_egress_metering?, :enable_network_egress_metering
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@bigquery_destination = args[:bigquery_destination] if args.key?(:bigquery_destination)
@enable_network_egress_metering = args[:enable_network_egress_metering] if args.key?(:enable_network_egress_metering)
end
end
# RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed
# NodePool upgrade. This will be an no-op if the last upgrade successfully
# completed.

View File

@ -40,6 +40,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class BigQueryDestination
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BinaryAuthorization
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -64,6 +70,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class CloudRunConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Cluster
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -130,6 +142,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class IstioConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class KubernetesDashboard
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -292,6 +310,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ResourceUsageExportConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RollbackNodePoolUpgradeRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -441,10 +465,14 @@ module Google
class AddonsConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :cloud_run_config, as: 'cloudRunConfig', class: Google::Apis::ContainerV1beta1::CloudRunConfig, decorator: Google::Apis::ContainerV1beta1::CloudRunConfig::Representation
property :horizontal_pod_autoscaling, as: 'horizontalPodAutoscaling', class: Google::Apis::ContainerV1beta1::HorizontalPodAutoscaling, decorator: Google::Apis::ContainerV1beta1::HorizontalPodAutoscaling::Representation
property :http_load_balancing, as: 'httpLoadBalancing', class: Google::Apis::ContainerV1beta1::HttpLoadBalancing, decorator: Google::Apis::ContainerV1beta1::HttpLoadBalancing::Representation
property :istio_config, as: 'istioConfig', class: Google::Apis::ContainerV1beta1::IstioConfig, decorator: Google::Apis::ContainerV1beta1::IstioConfig::Representation
property :kubernetes_dashboard, as: 'kubernetesDashboard', class: Google::Apis::ContainerV1beta1::KubernetesDashboard, decorator: Google::Apis::ContainerV1beta1::KubernetesDashboard::Representation
property :network_policy_config, as: 'networkPolicyConfig', class: Google::Apis::ContainerV1beta1::NetworkPolicyConfig, decorator: Google::Apis::ContainerV1beta1::NetworkPolicyConfig::Representation
@ -460,6 +488,13 @@ module Google
end
end
class BigQueryDestination
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :dataset_id, as: 'datasetId'
end
end
class BinaryAuthorization
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -492,6 +527,13 @@ module Google
end
end
class CloudRunConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :disabled, as: 'disabled'
end
end
class Cluster
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -551,6 +593,8 @@ module Google
property :private_cluster_config, as: 'privateClusterConfig', class: Google::Apis::ContainerV1beta1::PrivateClusterConfig, decorator: Google::Apis::ContainerV1beta1::PrivateClusterConfig::Representation
hash :resource_labels, as: 'resourceLabels'
property :resource_usage_export_config, as: 'resourceUsageExportConfig', class: Google::Apis::ContainerV1beta1::ResourceUsageExportConfig, decorator: Google::Apis::ContainerV1beta1::ResourceUsageExportConfig::Representation
property :self_link, as: 'selfLink'
property :services_ipv4_cidr, as: 'servicesIpv4Cidr'
property :status, as: 'status'
@ -594,6 +638,8 @@ module Google
property :desired_node_version, as: 'desiredNodeVersion'
property :desired_pod_security_policy_config, as: 'desiredPodSecurityPolicyConfig', class: Google::Apis::ContainerV1beta1::PodSecurityPolicyConfig, decorator: Google::Apis::ContainerV1beta1::PodSecurityPolicyConfig::Representation
property :desired_resource_usage_export_config, as: 'desiredResourceUsageExportConfig', class: Google::Apis::ContainerV1beta1::ResourceUsageExportConfig, decorator: Google::Apis::ContainerV1beta1::ResourceUsageExportConfig::Representation
property :desired_vertical_pod_autoscaling, as: 'desiredVerticalPodAutoscaling', class: Google::Apis::ContainerV1beta1::VerticalPodAutoscaling, decorator: Google::Apis::ContainerV1beta1::VerticalPodAutoscaling::Representation
end
@ -679,6 +725,14 @@ module Google
end
end
class IstioConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :auth, as: 'auth'
property :disabled, as: 'disabled'
end
end
class KubernetesDashboard
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -962,6 +1016,15 @@ module Google
end
end
class ResourceUsageExportConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :bigquery_destination, as: 'bigqueryDestination', class: Google::Apis::ContainerV1beta1::BigQueryDestination, decorator: Google::Apis::ContainerV1beta1::BigQueryDestination::Representation
property :enable_network_egress_metering, as: 'enableNetworkEgressMetering'
end
end
class RollbackNodePoolUpgradeRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -136,7 +136,7 @@ module Google
execute_or_queue_command(command, &block)
end
#
# Used to fetch locations that offer GKE.
# @param [String] parent
# Contains the name of the resource requested.
# Specified in the format 'projects/*'.

View File

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

File diff suppressed because it is too large Load Diff

View File

@ -22,12 +22,144 @@ module Google
module Apis
module FirestoreV1
class ArrayValue
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BatchGetDocumentsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BatchGetDocumentsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BeginTransactionRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BeginTransactionResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CollectionSelector
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CommitRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CommitResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CompositeFilter
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Cursor
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Document
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DocumentChange
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DocumentDelete
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DocumentMask
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DocumentRemove
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DocumentTransform
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DocumentsTarget
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Empty
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ExistenceFilter
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class FieldFilter
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class FieldReference
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class FieldTransform
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Filter
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleFirestoreAdminV1ExportDocumentsMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -142,30 +274,389 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class LatLng
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListCollectionIdsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListCollectionIdsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListDocumentsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListLocationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListenRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListenResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Location
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MapValue
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Order
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Precondition
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Projection
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class QueryTarget
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ReadOnly
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ReadWrite
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RollbackRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RunQueryRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RunQueryResponse
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 StructuredQuery
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Target
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TargetChange
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TransactionOptions
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UnaryFilter
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Value
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Write
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class WriteRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class WriteResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class WriteResult
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ArrayValue
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :values, as: 'values', class: Google::Apis::FirestoreV1::Value, decorator: Google::Apis::FirestoreV1::Value::Representation
end
end
class BatchGetDocumentsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :documents, as: 'documents'
property :mask, as: 'mask', class: Google::Apis::FirestoreV1::DocumentMask, decorator: Google::Apis::FirestoreV1::DocumentMask::Representation
property :new_transaction, as: 'newTransaction', class: Google::Apis::FirestoreV1::TransactionOptions, decorator: Google::Apis::FirestoreV1::TransactionOptions::Representation
property :read_time, as: 'readTime'
property :transaction, :base64 => true, as: 'transaction'
end
end
class BatchGetDocumentsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :found, as: 'found', class: Google::Apis::FirestoreV1::Document, decorator: Google::Apis::FirestoreV1::Document::Representation
property :missing, as: 'missing'
property :read_time, as: 'readTime'
property :transaction, :base64 => true, as: 'transaction'
end
end
class BeginTransactionRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :options, as: 'options', class: Google::Apis::FirestoreV1::TransactionOptions, decorator: Google::Apis::FirestoreV1::TransactionOptions::Representation
end
end
class BeginTransactionResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :transaction, :base64 => true, as: 'transaction'
end
end
class CollectionSelector
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :all_descendants, as: 'allDescendants'
property :collection_id, as: 'collectionId'
end
end
class CommitRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :transaction, :base64 => true, as: 'transaction'
collection :writes, as: 'writes', class: Google::Apis::FirestoreV1::Write, decorator: Google::Apis::FirestoreV1::Write::Representation
end
end
class CommitResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :commit_time, as: 'commitTime'
collection :write_results, as: 'writeResults', class: Google::Apis::FirestoreV1::WriteResult, decorator: Google::Apis::FirestoreV1::WriteResult::Representation
end
end
class CompositeFilter
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :filters, as: 'filters', class: Google::Apis::FirestoreV1::Filter, decorator: Google::Apis::FirestoreV1::Filter::Representation
property :op, as: 'op'
end
end
class Cursor
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :before, as: 'before'
collection :values, as: 'values', class: Google::Apis::FirestoreV1::Value, decorator: Google::Apis::FirestoreV1::Value::Representation
end
end
class Document
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
hash :fields, as: 'fields', class: Google::Apis::FirestoreV1::Value, decorator: Google::Apis::FirestoreV1::Value::Representation
property :name, as: 'name'
property :update_time, as: 'updateTime'
end
end
class DocumentChange
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :document, as: 'document', class: Google::Apis::FirestoreV1::Document, decorator: Google::Apis::FirestoreV1::Document::Representation
collection :removed_target_ids, as: 'removedTargetIds'
collection :target_ids, as: 'targetIds'
end
end
class DocumentDelete
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :document, as: 'document'
property :read_time, as: 'readTime'
collection :removed_target_ids, as: 'removedTargetIds'
end
end
class DocumentMask
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :field_paths, as: 'fieldPaths'
end
end
class DocumentRemove
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :document, as: 'document'
property :read_time, as: 'readTime'
collection :removed_target_ids, as: 'removedTargetIds'
end
end
class DocumentTransform
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :document, as: 'document'
collection :field_transforms, as: 'fieldTransforms', class: Google::Apis::FirestoreV1::FieldTransform, decorator: Google::Apis::FirestoreV1::FieldTransform::Representation
end
end
class DocumentsTarget
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :documents, as: 'documents'
end
end
class Empty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class ExistenceFilter
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :count, as: 'count'
property :target_id, as: 'targetId'
end
end
class FieldFilter
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :field, as: 'field', class: Google::Apis::FirestoreV1::FieldReference, decorator: Google::Apis::FirestoreV1::FieldReference::Representation
property :op, as: 'op'
property :value, as: 'value', class: Google::Apis::FirestoreV1::Value, decorator: Google::Apis::FirestoreV1::Value::Representation
end
end
class FieldReference
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :field_path, as: 'fieldPath'
end
end
class FieldTransform
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :append_missing_elements, as: 'appendMissingElements', class: Google::Apis::FirestoreV1::ArrayValue, decorator: Google::Apis::FirestoreV1::ArrayValue::Representation
property :field_path, as: 'fieldPath'
property :remove_all_from_array, as: 'removeAllFromArray', class: Google::Apis::FirestoreV1::ArrayValue, decorator: Google::Apis::FirestoreV1::ArrayValue::Representation
property :set_to_server_value, as: 'setToServerValue'
end
end
class Filter
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :composite_filter, as: 'compositeFilter', class: Google::Apis::FirestoreV1::CompositeFilter, decorator: Google::Apis::FirestoreV1::CompositeFilter::Representation
property :field_filter, as: 'fieldFilter', class: Google::Apis::FirestoreV1::FieldFilter, decorator: Google::Apis::FirestoreV1::FieldFilter::Representation
property :unary_filter, as: 'unaryFilter', class: Google::Apis::FirestoreV1::UnaryFilter, decorator: Google::Apis::FirestoreV1::UnaryFilter::Representation
end
end
class GoogleFirestoreAdminV1ExportDocumentsMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -357,6 +848,39 @@ module Google
end
end
class LatLng
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :latitude, as: 'latitude'
property :longitude, as: 'longitude'
end
end
class ListCollectionIdsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :page_size, as: 'pageSize'
property :page_token, as: 'pageToken'
end
end
class ListCollectionIdsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :collection_ids, as: 'collectionIds'
property :next_page_token, as: 'nextPageToken'
end
end
class ListDocumentsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :documents, as: 'documents', class: Google::Apis::FirestoreV1::Document, decorator: Google::Apis::FirestoreV1::Document::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class ListLocationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -366,6 +890,32 @@ module Google
end
end
class ListenRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :add_target, as: 'addTarget', class: Google::Apis::FirestoreV1::Target, decorator: Google::Apis::FirestoreV1::Target::Representation
hash :labels, as: 'labels'
property :remove_target, as: 'removeTarget'
end
end
class ListenResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :document_change, as: 'documentChange', class: Google::Apis::FirestoreV1::DocumentChange, decorator: Google::Apis::FirestoreV1::DocumentChange::Representation
property :document_delete, as: 'documentDelete', class: Google::Apis::FirestoreV1::DocumentDelete, decorator: Google::Apis::FirestoreV1::DocumentDelete::Representation
property :document_remove, as: 'documentRemove', class: Google::Apis::FirestoreV1::DocumentRemove, decorator: Google::Apis::FirestoreV1::DocumentRemove::Representation
property :filter, as: 'filter', class: Google::Apis::FirestoreV1::ExistenceFilter, decorator: Google::Apis::FirestoreV1::ExistenceFilter::Representation
property :target_change, as: 'targetChange', class: Google::Apis::FirestoreV1::TargetChange, decorator: Google::Apis::FirestoreV1::TargetChange::Representation
end
end
class Location
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -377,6 +927,92 @@ module Google
end
end
class MapValue
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :fields, as: 'fields', class: Google::Apis::FirestoreV1::Value, decorator: Google::Apis::FirestoreV1::Value::Representation
end
end
class Order
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :direction, as: 'direction'
property :field, as: 'field', class: Google::Apis::FirestoreV1::FieldReference, decorator: Google::Apis::FirestoreV1::FieldReference::Representation
end
end
class Precondition
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :exists, as: 'exists'
property :update_time, as: 'updateTime'
end
end
class Projection
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :fields, as: 'fields', class: Google::Apis::FirestoreV1::FieldReference, decorator: Google::Apis::FirestoreV1::FieldReference::Representation
end
end
class QueryTarget
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :parent, as: 'parent'
property :structured_query, as: 'structuredQuery', class: Google::Apis::FirestoreV1::StructuredQuery, decorator: Google::Apis::FirestoreV1::StructuredQuery::Representation
end
end
class ReadOnly
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :read_time, as: 'readTime'
end
end
class ReadWrite
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :retry_transaction, :base64 => true, as: 'retryTransaction'
end
end
class RollbackRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :transaction, :base64 => true, as: 'transaction'
end
end
class RunQueryRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :new_transaction, as: 'newTransaction', class: Google::Apis::FirestoreV1::TransactionOptions, decorator: Google::Apis::FirestoreV1::TransactionOptions::Representation
property :read_time, as: 'readTime'
property :structured_query, as: 'structuredQuery', class: Google::Apis::FirestoreV1::StructuredQuery, decorator: Google::Apis::FirestoreV1::StructuredQuery::Representation
property :transaction, :base64 => true, as: 'transaction'
end
end
class RunQueryResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :document, as: 'document', class: Google::Apis::FirestoreV1::Document, decorator: Google::Apis::FirestoreV1::Document::Representation
property :read_time, as: 'readTime'
property :skipped_results, as: 'skippedResults'
property :transaction, :base64 => true, as: 'transaction'
end
end
class Status
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -385,6 +1021,137 @@ module Google
property :message, as: 'message'
end
end
class StructuredQuery
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :end_at, as: 'endAt', class: Google::Apis::FirestoreV1::Cursor, decorator: Google::Apis::FirestoreV1::Cursor::Representation
collection :from, as: 'from', class: Google::Apis::FirestoreV1::CollectionSelector, decorator: Google::Apis::FirestoreV1::CollectionSelector::Representation
property :limit, as: 'limit'
property :offset, as: 'offset'
collection :order_by, as: 'orderBy', class: Google::Apis::FirestoreV1::Order, decorator: Google::Apis::FirestoreV1::Order::Representation
property :select, as: 'select', class: Google::Apis::FirestoreV1::Projection, decorator: Google::Apis::FirestoreV1::Projection::Representation
property :start_at, as: 'startAt', class: Google::Apis::FirestoreV1::Cursor, decorator: Google::Apis::FirestoreV1::Cursor::Representation
property :where, as: 'where', class: Google::Apis::FirestoreV1::Filter, decorator: Google::Apis::FirestoreV1::Filter::Representation
end
end
class Target
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :documents, as: 'documents', class: Google::Apis::FirestoreV1::DocumentsTarget, decorator: Google::Apis::FirestoreV1::DocumentsTarget::Representation
property :once, as: 'once'
property :query, as: 'query', class: Google::Apis::FirestoreV1::QueryTarget, decorator: Google::Apis::FirestoreV1::QueryTarget::Representation
property :read_time, as: 'readTime'
property :resume_token, :base64 => true, as: 'resumeToken'
property :target_id, as: 'targetId'
end
end
class TargetChange
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :cause, as: 'cause', class: Google::Apis::FirestoreV1::Status, decorator: Google::Apis::FirestoreV1::Status::Representation
property :read_time, as: 'readTime'
property :resume_token, :base64 => true, as: 'resumeToken'
property :target_change_type, as: 'targetChangeType'
collection :target_ids, as: 'targetIds'
end
end
class TransactionOptions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :read_only, as: 'readOnly', class: Google::Apis::FirestoreV1::ReadOnly, decorator: Google::Apis::FirestoreV1::ReadOnly::Representation
property :read_write, as: 'readWrite', class: Google::Apis::FirestoreV1::ReadWrite, decorator: Google::Apis::FirestoreV1::ReadWrite::Representation
end
end
class UnaryFilter
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :field, as: 'field', class: Google::Apis::FirestoreV1::FieldReference, decorator: Google::Apis::FirestoreV1::FieldReference::Representation
property :op, as: 'op'
end
end
class Value
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :array_value, as: 'arrayValue', class: Google::Apis::FirestoreV1::ArrayValue, decorator: Google::Apis::FirestoreV1::ArrayValue::Representation
property :boolean_value, as: 'booleanValue'
property :bytes_value, :base64 => true, as: 'bytesValue'
property :double_value, as: 'doubleValue'
property :geo_point_value, as: 'geoPointValue', class: Google::Apis::FirestoreV1::LatLng, decorator: Google::Apis::FirestoreV1::LatLng::Representation
property :integer_value, :numeric_string => true, as: 'integerValue'
property :map_value, as: 'mapValue', class: Google::Apis::FirestoreV1::MapValue, decorator: Google::Apis::FirestoreV1::MapValue::Representation
property :null_value, as: 'nullValue'
property :reference_value, as: 'referenceValue'
property :string_value, as: 'stringValue'
property :timestamp_value, as: 'timestampValue'
end
end
class Write
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :current_document, as: 'currentDocument', class: Google::Apis::FirestoreV1::Precondition, decorator: Google::Apis::FirestoreV1::Precondition::Representation
property :delete, as: 'delete'
property :transform, as: 'transform', class: Google::Apis::FirestoreV1::DocumentTransform, decorator: Google::Apis::FirestoreV1::DocumentTransform::Representation
property :update, as: 'update', class: Google::Apis::FirestoreV1::Document, decorator: Google::Apis::FirestoreV1::Document::Representation
property :update_mask, as: 'updateMask', class: Google::Apis::FirestoreV1::DocumentMask, decorator: Google::Apis::FirestoreV1::DocumentMask::Representation
end
end
class WriteRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :labels, as: 'labels'
property :stream_id, as: 'streamId'
property :stream_token, :base64 => true, as: 'streamToken'
collection :writes, as: 'writes', class: Google::Apis::FirestoreV1::Write, decorator: Google::Apis::FirestoreV1::Write::Representation
end
end
class WriteResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :commit_time, as: 'commitTime'
property :stream_id, as: 'streamId'
property :stream_token, :base64 => true, as: 'streamToken'
collection :write_results, as: 'writeResults', class: Google::Apis::FirestoreV1::WriteResult, decorator: Google::Apis::FirestoreV1::WriteResult::Representation
end
end
class WriteResult
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :transform_results, as: 'transformResults', class: Google::Apis::FirestoreV1::Value, decorator: Google::Apis::FirestoreV1::Value::Representation
property :update_time, as: 'updateTime'
end
end
end
end
end

View File

@ -425,6 +425,532 @@ module Google
execute_or_queue_command(command, &block)
end
# Gets multiple documents.
# Documents returned by this method are not guaranteed to be returned in the
# same order that they were requested.
# @param [String] database
# The database name. In the format:
# `projects/`project_id`/databases/`database_id``.
# @param [Google::Apis::FirestoreV1::BatchGetDocumentsRequest] batch_get_documents_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::FirestoreV1::BatchGetDocumentsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::FirestoreV1::BatchGetDocumentsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def batch_get_documents(database, batch_get_documents_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+database}/documents:batchGet', options)
command.request_representation = Google::Apis::FirestoreV1::BatchGetDocumentsRequest::Representation
command.request_object = batch_get_documents_request_object
command.response_representation = Google::Apis::FirestoreV1::BatchGetDocumentsResponse::Representation
command.response_class = Google::Apis::FirestoreV1::BatchGetDocumentsResponse
command.params['database'] = database unless database.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Starts a new transaction.
# @param [String] database
# The database name. In the format:
# `projects/`project_id`/databases/`database_id``.
# @param [Google::Apis::FirestoreV1::BeginTransactionRequest] begin_transaction_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::FirestoreV1::BeginTransactionResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::FirestoreV1::BeginTransactionResponse]
#
# @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 begin_document_transaction(database, begin_transaction_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+database}/documents:beginTransaction', options)
command.request_representation = Google::Apis::FirestoreV1::BeginTransactionRequest::Representation
command.request_object = begin_transaction_request_object
command.response_representation = Google::Apis::FirestoreV1::BeginTransactionResponse::Representation
command.response_class = Google::Apis::FirestoreV1::BeginTransactionResponse
command.params['database'] = database unless database.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Commits a transaction, while optionally updating documents.
# @param [String] database
# The database name. In the format:
# `projects/`project_id`/databases/`database_id``.
# @param [Google::Apis::FirestoreV1::CommitRequest] commit_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::FirestoreV1::CommitResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::FirestoreV1::CommitResponse]
#
# @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 commit_document(database, commit_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+database}/documents:commit', options)
command.request_representation = Google::Apis::FirestoreV1::CommitRequest::Representation
command.request_object = commit_request_object
command.response_representation = Google::Apis::FirestoreV1::CommitResponse::Representation
command.response_class = Google::Apis::FirestoreV1::CommitResponse
command.params['database'] = database unless database.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates a new document.
# @param [String] parent
# The parent resource. For example:
# `projects/`project_id`/databases/`database_id`/documents` or
# `projects/`project_id`/databases/`database_id`/documents/chatrooms/`
# chatroom_id``
# @param [String] collection_id
# The collection ID, relative to `parent`, to list. For example: `chatrooms`.
# @param [Google::Apis::FirestoreV1::Document] document_object
# @param [String] document_id
# The client-assigned document ID to use for this document.
# Optional. If not specified, an ID will be assigned by the service.
# @param [Array<String>, String] mask_field_paths
# The list of field paths in the mask. See Document.fields for a field
# path syntax reference.
# @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::FirestoreV1::Document] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::FirestoreV1::Document]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_project_database_document_document(parent, collection_id, document_object = nil, document_id: nil, mask_field_paths: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+parent}/{collectionId}', options)
command.request_representation = Google::Apis::FirestoreV1::Document::Representation
command.request_object = document_object
command.response_representation = Google::Apis::FirestoreV1::Document::Representation
command.response_class = Google::Apis::FirestoreV1::Document
command.params['parent'] = parent unless parent.nil?
command.params['collectionId'] = collection_id unless collection_id.nil?
command.query['documentId'] = document_id unless document_id.nil?
command.query['mask.fieldPaths'] = mask_field_paths unless mask_field_paths.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Deletes a document.
# @param [String] name
# The resource name of the Document to delete. In the format:
# `projects/`project_id`/databases/`database_id`/documents/`document_path``.
# @param [Boolean] current_document_exists
# When set to `true`, the target document must exist.
# When set to `false`, the target document must not exist.
# @param [String] current_document_update_time
# When set, the target document must exist and have been last updated at
# that time.
# @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::FirestoreV1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::FirestoreV1::Empty]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_project_database_document(name, current_document_exists: nil, current_document_update_time: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1/{+name}', options)
command.response_representation = Google::Apis::FirestoreV1::Empty::Representation
command.response_class = Google::Apis::FirestoreV1::Empty
command.params['name'] = name unless name.nil?
command.query['currentDocument.exists'] = current_document_exists unless current_document_exists.nil?
command.query['currentDocument.updateTime'] = current_document_update_time unless current_document_update_time.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets a single document.
# @param [String] name
# The resource name of the Document to get. In the format:
# `projects/`project_id`/databases/`database_id`/documents/`document_path``.
# @param [Array<String>, String] mask_field_paths
# The list of field paths in the mask. See Document.fields for a field
# path syntax reference.
# @param [String] read_time
# Reads the version of the document at the given time.
# This may not be older than 60 seconds.
# @param [String] transaction
# Reads the document in a transaction.
# @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::FirestoreV1::Document] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::FirestoreV1::Document]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_database_document(name, mask_field_paths: nil, read_time: nil, transaction: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::FirestoreV1::Document::Representation
command.response_class = Google::Apis::FirestoreV1::Document
command.params['name'] = name unless name.nil?
command.query['mask.fieldPaths'] = mask_field_paths unless mask_field_paths.nil?
command.query['readTime'] = read_time unless read_time.nil?
command.query['transaction'] = transaction unless transaction.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists documents.
# @param [String] parent
# The parent resource name. In the format:
# `projects/`project_id`/databases/`database_id`/documents` or
# `projects/`project_id`/databases/`database_id`/documents/`document_path``.
# For example:
# `projects/my-project/databases/my-database/documents` or
# `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
# @param [String] collection_id
# The collection ID, relative to `parent`, to list. For example: `chatrooms`
# or `messages`.
# @param [Array<String>, String] mask_field_paths
# The list of field paths in the mask. See Document.fields for a field
# path syntax reference.
# @param [String] order_by
# The order to sort results by. For example: `priority desc, name`.
# @param [Fixnum] page_size
# The maximum number of documents to return.
# @param [String] page_token
# The `next_page_token` value returned from a previous List request, if any.
# @param [String] read_time
# Reads documents as they were at the given time.
# This may not be older than 60 seconds.
# @param [Boolean] show_missing
# If the list should show missing documents. A missing document is a
# document that does not exist but has sub-documents. These documents will
# be returned with a key but will not have fields, Document.create_time,
# or Document.update_time set.
# Requests with `show_missing` may not specify `where` or
# `order_by`.
# @param [String] transaction
# Reads documents in a transaction.
# @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::FirestoreV1::ListDocumentsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::FirestoreV1::ListDocumentsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_database_documents(parent, collection_id, mask_field_paths: nil, order_by: nil, page_size: nil, page_token: nil, read_time: nil, show_missing: nil, transaction: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+parent}/{collectionId}', options)
command.response_representation = Google::Apis::FirestoreV1::ListDocumentsResponse::Representation
command.response_class = Google::Apis::FirestoreV1::ListDocumentsResponse
command.params['parent'] = parent unless parent.nil?
command.params['collectionId'] = collection_id unless collection_id.nil?
command.query['mask.fieldPaths'] = mask_field_paths unless mask_field_paths.nil?
command.query['orderBy'] = order_by unless order_by.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['readTime'] = read_time unless read_time.nil?
command.query['showMissing'] = show_missing unless show_missing.nil?
command.query['transaction'] = transaction unless transaction.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists all the collection IDs underneath a document.
# @param [String] parent
# The parent document. In the format:
# `projects/`project_id`/databases/`database_id`/documents/`document_path``.
# For example:
# `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
# @param [Google::Apis::FirestoreV1::ListCollectionIdsRequest] list_collection_ids_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::FirestoreV1::ListCollectionIdsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::FirestoreV1::ListCollectionIdsResponse]
#
# @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_document_collection_ids(parent, list_collection_ids_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+parent}:listCollectionIds', options)
command.request_representation = Google::Apis::FirestoreV1::ListCollectionIdsRequest::Representation
command.request_object = list_collection_ids_request_object
command.response_representation = Google::Apis::FirestoreV1::ListCollectionIdsResponse::Representation
command.response_class = Google::Apis::FirestoreV1::ListCollectionIdsResponse
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
# Listens to changes.
# @param [String] database
# The database name. In the format:
# `projects/`project_id`/databases/`database_id``.
# @param [Google::Apis::FirestoreV1::ListenRequest] listen_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::FirestoreV1::ListenResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::FirestoreV1::ListenResponse]
#
# @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 listen_document(database, listen_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+database}/documents:listen', options)
command.request_representation = Google::Apis::FirestoreV1::ListenRequest::Representation
command.request_object = listen_request_object
command.response_representation = Google::Apis::FirestoreV1::ListenResponse::Representation
command.response_class = Google::Apis::FirestoreV1::ListenResponse
command.params['database'] = database unless database.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Updates or inserts a document.
# @param [String] name
# The resource name of the document, for example
# `projects/`project_id`/databases/`database_id`/documents/`document_path``.
# @param [Google::Apis::FirestoreV1::Document] document_object
# @param [Boolean] current_document_exists
# When set to `true`, the target document must exist.
# When set to `false`, the target document must not exist.
# @param [String] current_document_update_time
# When set, the target document must exist and have been last updated at
# that time.
# @param [Array<String>, String] mask_field_paths
# The list of field paths in the mask. See Document.fields for a field
# path syntax reference.
# @param [Array<String>, String] update_mask_field_paths
# The list of field paths in the mask. See Document.fields for a field
# path syntax reference.
# @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::FirestoreV1::Document] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::FirestoreV1::Document]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_project_database_document(name, document_object = nil, current_document_exists: nil, current_document_update_time: nil, mask_field_paths: nil, update_mask_field_paths: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1/{+name}', options)
command.request_representation = Google::Apis::FirestoreV1::Document::Representation
command.request_object = document_object
command.response_representation = Google::Apis::FirestoreV1::Document::Representation
command.response_class = Google::Apis::FirestoreV1::Document
command.params['name'] = name unless name.nil?
command.query['currentDocument.exists'] = current_document_exists unless current_document_exists.nil?
command.query['currentDocument.updateTime'] = current_document_update_time unless current_document_update_time.nil?
command.query['mask.fieldPaths'] = mask_field_paths unless mask_field_paths.nil?
command.query['updateMask.fieldPaths'] = update_mask_field_paths unless update_mask_field_paths.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Rolls back a transaction.
# @param [String] database
# The database name. In the format:
# `projects/`project_id`/databases/`database_id``.
# @param [Google::Apis::FirestoreV1::RollbackRequest] rollback_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::FirestoreV1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::FirestoreV1::Empty]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def rollback_document(database, rollback_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+database}/documents:rollback', options)
command.request_representation = Google::Apis::FirestoreV1::RollbackRequest::Representation
command.request_object = rollback_request_object
command.response_representation = Google::Apis::FirestoreV1::Empty::Representation
command.response_class = Google::Apis::FirestoreV1::Empty
command.params['database'] = database unless database.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Runs a query.
# @param [String] parent
# The parent resource name. In the format:
# `projects/`project_id`/databases/`database_id`/documents` or
# `projects/`project_id`/databases/`database_id`/documents/`document_path``.
# For example:
# `projects/my-project/databases/my-database/documents` or
# `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
# @param [Google::Apis::FirestoreV1::RunQueryRequest] run_query_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::FirestoreV1::RunQueryResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::FirestoreV1::RunQueryResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def run_document_query(parent, run_query_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+parent}:runQuery', options)
command.request_representation = Google::Apis::FirestoreV1::RunQueryRequest::Representation
command.request_object = run_query_request_object
command.response_representation = Google::Apis::FirestoreV1::RunQueryResponse::Representation
command.response_class = Google::Apis::FirestoreV1::RunQueryResponse
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
# Streams batches of document updates and deletes, in order.
# @param [String] database
# The database name. In the format:
# `projects/`project_id`/databases/`database_id``.
# This is only required in the first message.
# @param [Google::Apis::FirestoreV1::WriteRequest] write_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::FirestoreV1::WriteResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::FirestoreV1::WriteResponse]
#
# @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 write_document(database, write_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+database}/documents:write', options)
command.request_representation = Google::Apis::FirestoreV1::WriteRequest::Representation
command.request_object = write_request_object
command.response_representation = Google::Apis::FirestoreV1::WriteResponse::Representation
command.response_class = Google::Apis::FirestoreV1::WriteResponse
command.params['database'] = database unless database.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Starts asynchronous cancellation on a long-running operation. The server
# makes a best effort to cancel the operation, but success is not
# guaranteed. If the server doesn't support this method, it returns