Autogenerated update (2019-06-29)

Update:
- bigquery_v2
- compute_alpha
- compute_beta
- compute_v1
- fcm_v1
- storage_v1
This commit is contained in:
Google APIs 2019-06-29 00:37:59 +00:00
parent 2445c3a9b0
commit b1be66c646
18 changed files with 147 additions and 66 deletions

View File

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

View File

@ -820,6 +820,11 @@ module Google
# @return [Google::Apis::BigqueryV2::DatasetReference]
attr_accessor :dataset_reference
#
# Corresponds to the JSON property `defaultEncryptionConfiguration`
# @return [Google::Apis::BigqueryV2::EncryptionConfiguration]
attr_accessor :default_encryption_configuration
# [Optional] The default partition expiration for all partitioned tables in the
# dataset, in milliseconds. Once this property is set, all newly-created
# partitioned tables in the dataset will have an expirationMs property in the
@ -912,6 +917,7 @@ module Google
@access = args[:access] if args.key?(:access)
@creation_time = args[:creation_time] if args.key?(:creation_time)
@dataset_reference = args[:dataset_reference] if args.key?(:dataset_reference)
@default_encryption_configuration = args[:default_encryption_configuration] if args.key?(:default_encryption_configuration)
@default_partition_expiration_ms = args[:default_partition_expiration_ms] if args.key?(:default_partition_expiration_ms)
@default_table_expiration_ms = args[:default_table_expiration_ms] if args.key?(:default_table_expiration_ms)
@description = args[:description] if args.key?(:description)
@ -2822,6 +2828,13 @@ module Google
# @return [Array<Google::Apis::BigqueryV2::JobStatistics::ReservationUsage>]
attr_accessor :reservation_usage
# [Output-only] Name of the primary reservation assigned to this job. Note that
# this could be different than reservations reported in the reservation usage
# field if parent reservations were used to execute this job.
# Corresponds to the JSON property `reservation_id`
# @return [String]
attr_accessor :reservation_id
# [Output-only] Start time of this job, in milliseconds since the epoch. This
# field will be present when the job transitions from the PENDING state to
# either RUNNING or DONE.
@ -2856,6 +2869,7 @@ module Google
@query = args[:query] if args.key?(:query)
@quota_deferments = args[:quota_deferments] if args.key?(:quota_deferments)
@reservation_usage = args[:reservation_usage] if args.key?(:reservation_usage)
@reservation_id = args[:reservation_id] if args.key?(:reservation_id)
@start_time = args[:start_time] if args.key?(:start_time)
@total_bytes_processed = args[:total_bytes_processed] if args.key?(:total_bytes_processed)
@total_slot_ms = args[:total_slot_ms] if args.key?(:total_slot_ms)
@ -4137,15 +4151,16 @@ module Google
# For functions, this is the expression in the AS clause.
# If language=SQL, it is the substring inside (but excluding) the
# parentheses. For example, for the function created with the following
# statement
# create function JoinLines(x string, y string) as (concat(x, "\n", y))
# definition_body = r'concat(x, "\n", y)' (\n is not replaced with
# statement:
# `CREATE FUNCTION JoinLines(x string, y string) as (concat(x, "\n", y))`
# The definition_body is `concat(x, "\n", y)` (\n is not replaced with
# linebreak).
# If language=JAVASCRIPT, it is the evaluated string in the AS clause.
# For example, for the function created with the following statement
# CREATE FUNCTION f() RETURNS STRING LANGUAGE js AS 'return "\n";\n'
# definition_body = 'return "\n";\n' (both \n are replaced with
# linebreaks).
# For example, for the function created with the following statement:
# `CREATE FUNCTION f() RETURNS STRING LANGUAGE js AS 'return "\n";\n'`
# The definition_body is
# `return "\n";\n`
# Note that both \n are replaced with linebreaks.
# Corresponds to the JSON property `definitionBody`
# @return [String]
attr_accessor :definition_body

View File

@ -807,6 +807,8 @@ module Google
property :creation_time, :numeric_string => true, as: 'creationTime'
property :dataset_reference, as: 'datasetReference', class: Google::Apis::BigqueryV2::DatasetReference, decorator: Google::Apis::BigqueryV2::DatasetReference::Representation
property :default_encryption_configuration, as: 'defaultEncryptionConfiguration', class: Google::Apis::BigqueryV2::EncryptionConfiguration, decorator: Google::Apis::BigqueryV2::EncryptionConfiguration::Representation
property :default_partition_expiration_ms, :numeric_string => true, as: 'defaultPartitionExpirationMs'
property :default_table_expiration_ms, :numeric_string => true, as: 'defaultTableExpirationMs'
property :description, as: 'description'
@ -1253,6 +1255,7 @@ module Google
collection :quota_deferments, as: 'quotaDeferments'
collection :reservation_usage, as: 'reservationUsage', class: Google::Apis::BigqueryV2::JobStatistics::ReservationUsage, decorator: Google::Apis::BigqueryV2::JobStatistics::ReservationUsage::Representation
property :reservation_id, as: 'reservation_id'
property :start_time, :numeric_string => true, as: 'startTime'
property :total_bytes_processed, :numeric_string => true, as: 'totalBytesProcessed'
property :total_slot_ms, :numeric_string => true, as: 'totalSlotMs'

View File

@ -660,7 +660,8 @@ module Google
# @param [String] dataset_id
# Dataset ID of the models to list.
# @param [Fixnum] max_results
# The maximum number of results per page.
# The maximum number of results to return in a single response page.
# Leverage the page tokens to iterate through the entire collection.
# @param [String] page_token
# Page token, returned by a previous call to request the next page of
# results
@ -935,7 +936,8 @@ module Google
# @param [String] dataset_id
# Dataset ID of the routines to list
# @param [Fixnum] max_results
# The maximum number of results per page.
# The maximum number of results to return in a single response page.
# Leverage the page tokens to iterate through the entire collection.
# @param [String] page_token
# Page token, returned by a previous call, to request the next page of
# results

View File

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

View File

@ -11025,8 +11025,7 @@ module Google
# @return [Fixnum]
attr_accessor :preserved_state_size_gb
# ReservationAffinity is the configuration of desired reservation which this
# instance could take capacity from.
# Specifies the reservations that this instance can consume from.
# Corresponds to the JSON property `reservationAffinity`
# @return [Google::Apis::ComputeAlpha::ReservationAffinity]
attr_accessor :reservation_affinity
@ -11179,7 +11178,7 @@ module Google
# @return [String]
attr_accessor :id
# A list of InstancesScopedList resources.
# An object that contains a list of instances scoped by zone.
# Corresponds to the JSON property `items`
# @return [Hash<String,Google::Apis::ComputeAlpha::InstancesScopedList>]
attr_accessor :items
@ -13759,8 +13758,7 @@ module Google
# @return [Array<Google::Apis::ComputeAlpha::NetworkInterface>]
attr_accessor :network_interfaces
# ReservationAffinity is the configuration of desired reservation which this
# instance could take capacity from.
# Specifies the reservations that this instance can consume from.
# Corresponds to the JSON property `reservationAffinity`
# @return [Google::Apis::ComputeAlpha::ReservationAffinity]
attr_accessor :reservation_affinity
@ -25254,7 +25252,10 @@ module Google
end
end
# Reservation resource NextID: 13
# Represents a reservation resource. A reservation ensures that capacity is held
# in a specific zone even if the reserved VMs are not running. For more
# information, read Reserving zonal resources. (== resource_for beta.
# reservations ==) (== resource_for v1.reservations ==) (== NextID: 13 ==)
class Reservation
include Google::Apis::Core::Hashable
@ -25313,9 +25314,9 @@ module Google
# @return [Google::Apis::ComputeAlpha::AllocationSpecificSkuReservation]
attr_accessor :specific_reservation
# Indicates whether the reservation can be consumed by VMs with "any reservation"
# defined. If the field is set, then only VMs that target the reservation by
# name using --reservation-affinity can consume this reservation.
# Indicates whether the reservation can be consumed by VMs with affinity for "
# any" reservation. If the field is set, then only VMs that target the
# reservation by name can consume from this reservation.
# Corresponds to the JSON property `specificReservationRequired`
# @return [Boolean]
attr_accessor :specific_reservation_required
@ -25353,8 +25354,7 @@ module Google
end
end
# ReservationAffinity is the configuration of desired reservation which this
# instance could take capacity from.
# Specifies the reservations that this instance can consume from.
class ReservationAffinity
include Google::Apis::Core::Hashable
@ -25365,12 +25365,14 @@ module Google
# @return [String]
attr_accessor :consume_reservation_type
# Corresponds to the label key of reservation resource.
# Corresponds to the label key of a reservation resource. To target a
# SPECIFIC_RESERVATION by name, specify googleapis.com/reservation-name as the
# key and specify the name of your reservation as its value.
# Corresponds to the JSON property `key`
# @return [String]
attr_accessor :key
# Corresponds to the label values of reservation resource.
# Corresponds to the label values of a reservation resource.
# Corresponds to the JSON property `values`
# @return [Array<String>]
attr_accessor :values

View File

@ -47,7 +47,7 @@ module Google
attr_accessor :user_ip
def initialize
super('https://www.googleapis.com/', 'compute/alpha/projects/')
super('https://compute.googleapis.com/', 'compute/alpha/projects/')
@batch_path = 'batch/compute/alpha'
end
@ -24827,7 +24827,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Creates a new reservation.
# Creates a new reservation. For more information, read Reserving zonal
# resources.
# @param [String] project
# Project ID for this request.
# @param [String] zone

View File

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

View File

@ -9725,8 +9725,7 @@ module Google
# @return [Array<Google::Apis::ComputeBeta::NetworkInterface>]
attr_accessor :network_interfaces
# ReservationAffinity is the configuration of desired reservation which this
# instance could take capacity from.
# Specifies the reservations that this instance can consume from.
# Corresponds to the JSON property `reservationAffinity`
# @return [Google::Apis::ComputeBeta::ReservationAffinity]
attr_accessor :reservation_affinity
@ -9852,7 +9851,7 @@ module Google
# @return [String]
attr_accessor :id
# A list of InstancesScopedList resources.
# An object that contains a list of instances scoped by zone.
# Corresponds to the JSON property `items`
# @return [Hash<String,Google::Apis::ComputeBeta::InstancesScopedList>]
attr_accessor :items
@ -12050,8 +12049,7 @@ module Google
# @return [Array<Google::Apis::ComputeBeta::NetworkInterface>]
attr_accessor :network_interfaces
# ReservationAffinity is the configuration of desired reservation which this
# instance could take capacity from.
# Specifies the reservations that this instance can consume from.
# Corresponds to the JSON property `reservationAffinity`
# @return [Google::Apis::ComputeBeta::ReservationAffinity]
attr_accessor :reservation_affinity
@ -20726,7 +20724,10 @@ module Google
end
end
# Reservation resource NextID: 13
# Represents a reservation resource. A reservation ensures that capacity is held
# in a specific zone even if the reserved VMs are not running. For more
# information, read Reserving zonal resources. (== resource_for beta.
# reservations ==) (== resource_for v1.reservations ==) (== NextID: 13 ==)
class Reservation
include Google::Apis::Core::Hashable
@ -20780,9 +20781,9 @@ module Google
# @return [Google::Apis::ComputeBeta::AllocationSpecificSkuReservation]
attr_accessor :specific_reservation
# Indicates whether the reservation can be consumed by VMs with "any reservation"
# defined. If the field is set, then only VMs that target the reservation by
# name using --reservation-affinity can consume this reservation.
# Indicates whether the reservation can be consumed by VMs with affinity for "
# any" reservation. If the field is set, then only VMs that target the
# reservation by name can consume from this reservation.
# Corresponds to the JSON property `specificReservationRequired`
# @return [Boolean]
attr_accessor :specific_reservation_required
@ -20819,8 +20820,7 @@ module Google
end
end
# ReservationAffinity is the configuration of desired reservation which this
# instance could take capacity from.
# Specifies the reservations that this instance can consume from.
class ReservationAffinity
include Google::Apis::Core::Hashable
@ -20831,12 +20831,14 @@ module Google
# @return [String]
attr_accessor :consume_reservation_type
# Corresponds to the label key of reservation resource.
# Corresponds to the label key of a reservation resource. To target a
# SPECIFIC_RESERVATION by name, specify googleapis.com/reservation-name as the
# key and specify the name of your reservation as its value.
# Corresponds to the JSON property `key`
# @return [String]
attr_accessor :key
# Corresponds to the label values of reservation resource.
# Corresponds to the label values of a reservation resource.
# Corresponds to the JSON property `values`
# @return [Array<String>]
attr_accessor :values

View File

@ -20235,7 +20235,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Creates a new reservation.
# Creates a new reservation. For more information, read Reserving zonal
# resources.
# @param [String] project
# Project ID for this request.
# @param [String] zone

View File

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

View File

@ -7858,8 +7858,7 @@ module Google
# @return [Array<Google::Apis::ComputeV1::NetworkInterface>]
attr_accessor :network_interfaces
# ReservationAffinity is the configuration of desired reservation which this
# instance could take capacity from.
# Specifies the reservations that this instance can consume from.
# Corresponds to the JSON property `reservationAffinity`
# @return [Google::Apis::ComputeV1::ReservationAffinity]
attr_accessor :reservation_affinity
@ -7971,7 +7970,7 @@ module Google
# @return [String]
attr_accessor :id
# A list of InstancesScopedList resources.
# An object that contains a list of instances scoped by zone.
# Corresponds to the JSON property `items`
# @return [Hash<String,Google::Apis::ComputeV1::InstancesScopedList>]
attr_accessor :items
@ -9927,8 +9926,7 @@ module Google
# @return [Array<Google::Apis::ComputeV1::NetworkInterface>]
attr_accessor :network_interfaces
# ReservationAffinity is the configuration of desired reservation which this
# instance could take capacity from.
# Specifies the reservations that this instance can consume from.
# Corresponds to the JSON property `reservationAffinity`
# @return [Google::Apis::ComputeV1::ReservationAffinity]
attr_accessor :reservation_affinity
@ -18032,7 +18030,10 @@ module Google
end
end
# Reservation resource NextID: 13
# Represents a reservation resource. A reservation ensures that capacity is held
# in a specific zone even if the reserved VMs are not running. For more
# information, read Reserving zonal resources. (== resource_for beta.
# reservations ==) (== resource_for v1.reservations ==) (== NextID: 13 ==)
class Reservation
include Google::Apis::Core::Hashable
@ -18086,9 +18087,9 @@ module Google
# @return [Google::Apis::ComputeV1::AllocationSpecificSkuReservation]
attr_accessor :specific_reservation
# Indicates whether the reservation can be consumed by VMs with "any reservation"
# defined. If the field is set, then only VMs that target the reservation by
# name using --reservation-affinity can consume this reservation.
# Indicates whether the reservation can be consumed by VMs with affinity for "
# any" reservation. If the field is set, then only VMs that target the
# reservation by name can consume from this reservation.
# Corresponds to the JSON property `specificReservationRequired`
# @return [Boolean]
attr_accessor :specific_reservation_required
@ -18125,8 +18126,7 @@ module Google
end
end
# ReservationAffinity is the configuration of desired reservation which this
# instance could take capacity from.
# Specifies the reservations that this instance can consume from.
class ReservationAffinity
include Google::Apis::Core::Hashable
@ -18137,12 +18137,14 @@ module Google
# @return [String]
attr_accessor :consume_reservation_type
# Corresponds to the label key of reservation resource.
# Corresponds to the label key of a reservation resource. To target a
# SPECIFIC_RESERVATION by name, specify googleapis.com/reservation-name as the
# key and specify the name of your reservation as its value.
# Corresponds to the JSON property `key`
# @return [String]
attr_accessor :key
# Corresponds to the label values of reservation resource.
# Corresponds to the label values of a reservation resource.
# Corresponds to the JSON property `values`
# @return [Array<String>]
attr_accessor :values

View File

@ -16294,7 +16294,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Creates a new reservation.
# Creates a new reservation. For more information, read Reserving zonal
# resources.
# @param [String] project
# Project ID for this request.
# @param [String] zone

View File

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

View File

@ -98,7 +98,7 @@ module Google
class AndroidFcmOptions
include Google::Apis::Core::Hashable
# Label that the message's analytics data will be associated with.
# Label associated with the message's analytics data.
# Corresponds to the JSON property `analyticsLabel`
# @return [String]
attr_accessor :analytics_label
@ -268,7 +268,7 @@ module Google
class ApnsFcmOptions
include Google::Apis::Core::Hashable
# Label that the message's analytics data will be associated with.
# Label associated with the message's analytics data.
# Corresponds to the JSON property `analyticsLabel`
# @return [String]
attr_accessor :analytics_label
@ -287,7 +287,7 @@ module Google
class FcmOptions
include Google::Apis::Core::Hashable
# Label that the message's analytics data will be associated with.
# Label associated with the message's analytics data.
# Corresponds to the JSON property `analyticsLabel`
# @return [String]
attr_accessor :analytics_label

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/storage/docs/json_api/
module StorageV1
VERSION = 'V1'
REVISION = '20190620'
REVISION = '20190624'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -312,6 +312,11 @@ module Google
# @return [Google::Apis::StorageV1::Bucket::IamConfiguration::BucketPolicyOnly]
attr_accessor :bucket_policy_only
# The bucket's uniform bucket-level access configuration.
# Corresponds to the JSON property `uniformBucketLevelAccess`
# @return [Google::Apis::StorageV1::Bucket::IamConfiguration::UniformBucketLevelAccess]
attr_accessor :uniform_bucket_level_access
def initialize(**args)
update!(**args)
end
@ -319,22 +324,52 @@ module Google
# Update properties of this object
def update!(**args)
@bucket_policy_only = args[:bucket_policy_only] if args.key?(:bucket_policy_only)
@uniform_bucket_level_access = args[:uniform_bucket_level_access] if args.key?(:uniform_bucket_level_access)
end
# The bucket's Bucket Policy Only configuration.
class BucketPolicyOnly
include Google::Apis::Core::Hashable
# If set, access checks only use bucket-level IAM policies or above.
# If set, access is controlled only by bucket-level or above IAM policies.
# Corresponds to the JSON property `enabled`
# @return [Boolean]
attr_accessor :enabled
alias_method :enabled?, :enabled
# The deadline time for changing iamConfiguration.bucketPolicyOnly.enabled from
# true to false in RFC 3339 format. iamConfiguration.bucketPolicyOnly.enabled
# may be changed from true to false until the locked time, after which the field
# is immutable.
# The deadline for changing iamConfiguration.bucketPolicyOnly.enabled from true
# to false in RFC 3339 format. iamConfiguration.bucketPolicyOnly.enabled may be
# changed from true to false until the locked time, after which the field is
# immutable.
# Corresponds to the JSON property `lockedTime`
# @return [DateTime]
attr_accessor :locked_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@enabled = args[:enabled] if args.key?(:enabled)
@locked_time = args[:locked_time] if args.key?(:locked_time)
end
end
# The bucket's uniform bucket-level access configuration.
class UniformBucketLevelAccess
include Google::Apis::Core::Hashable
# If set, access is controlled only by bucket-level or above IAM policies.
# Corresponds to the JSON property `enabled`
# @return [Boolean]
attr_accessor :enabled
alias_method :enabled?, :enabled
# The deadline for changing iamConfiguration.uniformBucketLevelAccess.enabled
# from true to false in RFC 3339 format. iamConfiguration.
# uniformBucketLevelAccess.enabled may be changed from true to false until the
# locked time, after which the field is immutable.
# Corresponds to the JSON property `lockedTime`
# @return [DateTime]
attr_accessor :locked_time

View File

@ -52,6 +52,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class UniformBucketLevelAccess
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
@ -342,6 +348,8 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :bucket_policy_only, as: 'bucketPolicyOnly', class: Google::Apis::StorageV1::Bucket::IamConfiguration::BucketPolicyOnly, decorator: Google::Apis::StorageV1::Bucket::IamConfiguration::BucketPolicyOnly::Representation
property :uniform_bucket_level_access, as: 'uniformBucketLevelAccess', class: Google::Apis::StorageV1::Bucket::IamConfiguration::UniformBucketLevelAccess, decorator: Google::Apis::StorageV1::Bucket::IamConfiguration::UniformBucketLevelAccess::Representation
end
class BucketPolicyOnly
@ -352,6 +360,15 @@ module Google
end
end
class UniformBucketLevelAccess
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :enabled, as: 'enabled'
property :locked_time, as: 'lockedTime', type: DateTime
end
end
end
class Lifecycle