Autogenerated update (2019-12-17)

Update:
- datacatalog_v1beta1
- docs_v1
- firebase_v1beta1
- remotebuildexecution_v1
- securitycenter_v1
- spanner_v1
- sql_v1beta4
This commit is contained in:
Google APIs 2019-12-17 00:37:11 +00:00
parent 5616b64afc
commit 10b70fa899
20 changed files with 474 additions and 34 deletions

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/data-catalog/docs/
module DatacatalogV1beta1
VERSION = 'V1beta1'
REVISION = '20191205'
REVISION = '20191211'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -758,13 +758,8 @@ module Google
# Denotes one policy tag in a taxonomy (e.g. ssn). Policy Tags can be defined
# in a hierarchy. For example, consider the following hierachy:
# Geolocation
# |
# ------------------------------------
# | | |
# LatLong City ZipCode
# PolicyTag "Geolocation" contains three child policy tags: "LatLong",
# "City", and "ZipCode".
# Geolocation -> (LatLong, City, ZipCode). PolicyTag "Geolocation"
# contains three child policy tags: "LatLong", "City", and "ZipCode".
class GoogleCloudDatacatalogV1beta1PolicyTag
include Google::Apis::Core::Hashable

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/docs/
module DocsV1
VERSION = 'V1'
REVISION = '20191106'
REVISION = '20191216'
# View and manage your Google Docs documents
AUTH_DOCUMENTS = 'https://www.googleapis.com/auth/documents'

View File

@ -975,6 +975,16 @@ module Google
# @return [Google::Apis::DocsV1::Dimension]
attr_accessor :margin_bottom
# A magnitude in a single direction in the specified units.
# Corresponds to the JSON property `marginFooter`
# @return [Google::Apis::DocsV1::Dimension]
attr_accessor :margin_footer
# A magnitude in a single direction in the specified units.
# Corresponds to the JSON property `marginHeader`
# @return [Google::Apis::DocsV1::Dimension]
attr_accessor :margin_header
# A magnitude in a single direction in the specified units.
# Corresponds to the JSON property `marginLeft`
# @return [Google::Apis::DocsV1::Dimension]
@ -1000,6 +1010,22 @@ module Google
# @return [Google::Apis::DocsV1::Size]
attr_accessor :page_size
# Indicates whether DocumentStyle
# margin_header,
# SectionStyle
# margin_header and
# DocumentStyle
# margin_footer,
# SectionStyle
# margin_footer are
# respected. When false, the default values in the Docs editor for header and
# footer margin are used.
# This property is read-only.
# Corresponds to the JSON property `useCustomHeaderFooterMargins`
# @return [Boolean]
attr_accessor :use_custom_header_footer_margins
alias_method :use_custom_header_footer_margins?, :use_custom_header_footer_margins
# Indicates whether to use the even page header / footer IDs for the even
# pages.
# This property is read-only.
@ -1030,11 +1056,14 @@ module Google
@first_page_footer_id = args[:first_page_footer_id] if args.key?(:first_page_footer_id)
@first_page_header_id = args[:first_page_header_id] if args.key?(:first_page_header_id)
@margin_bottom = args[:margin_bottom] if args.key?(:margin_bottom)
@margin_footer = args[:margin_footer] if args.key?(:margin_footer)
@margin_header = args[:margin_header] if args.key?(:margin_header)
@margin_left = args[:margin_left] if args.key?(:margin_left)
@margin_right = args[:margin_right] if args.key?(:margin_right)
@margin_top = args[:margin_top] if args.key?(:margin_top)
@page_number_start = args[:page_number_start] if args.key?(:page_number_start)
@page_size = args[:page_size] if args.key?(:page_size)
@use_custom_header_footer_margins = args[:use_custom_header_footer_margins] if args.key?(:use_custom_header_footer_margins)
@use_even_page_header_footer = args[:use_even_page_header_footer] if args.key?(:use_even_page_header_footer)
@use_first_page_header_footer = args[:use_first_page_header_footer] if args.key?(:use_first_page_header_footer)
end
@ -2103,6 +2132,39 @@ module Google
end
end
# Inserts a section break at the given location.
# A newline character will be inserted before the section break.
class InsertSectionBreakRequest
include Google::Apis::Core::Hashable
# Location at the end of a body, header, footer or footnote. The location is
# immediately before the last newline in the document segment.
# Corresponds to the JSON property `endOfSegmentLocation`
# @return [Google::Apis::DocsV1::EndOfSegmentLocation]
attr_accessor :end_of_segment_location
# A particular location in the document.
# Corresponds to the JSON property `location`
# @return [Google::Apis::DocsV1::Location]
attr_accessor :location
# The type of section to insert.
# Corresponds to the JSON property `sectionType`
# @return [String]
attr_accessor :section_type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@end_of_segment_location = args[:end_of_segment_location] if args.key?(:end_of_segment_location)
@location = args[:location] if args.key?(:location)
@section_type = args[:section_type] if args.key?(:section_type)
end
end
# Inserts an empty column into a table.
class InsertTableColumnRequest
include Google::Apis::Core::Hashable
@ -3917,6 +3979,12 @@ module Google
# @return [Google::Apis::DocsV1::InsertPageBreakRequest]
attr_accessor :insert_page_break
# Inserts a section break at the given location.
# A newline character will be inserted before the section break.
# Corresponds to the JSON property `insertSectionBreak`
# @return [Google::Apis::DocsV1::InsertSectionBreakRequest]
attr_accessor :insert_section_break
# Inserts a table at the specified location.
# A newline character will be inserted before the inserted table.
# Corresponds to the JSON property `insertTable`
@ -3986,6 +4054,11 @@ module Google
# @return [Google::Apis::DocsV1::UpdateParagraphStyleRequest]
attr_accessor :update_paragraph_style
# Updates the SectionStyle.
# Corresponds to the JSON property `updateSectionStyle`
# @return [Google::Apis::DocsV1::UpdateSectionStyleRequest]
attr_accessor :update_section_style
# Updates the style of a range of table cells.
# Corresponds to the JSON property `updateTableCellStyle`
# @return [Google::Apis::DocsV1::UpdateTableCellStyleRequest]
@ -4027,6 +4100,7 @@ module Google
@delete_table_row = args[:delete_table_row] if args.key?(:delete_table_row)
@insert_inline_image = args[:insert_inline_image] if args.key?(:insert_inline_image)
@insert_page_break = args[:insert_page_break] if args.key?(:insert_page_break)
@insert_section_break = args[:insert_section_break] if args.key?(:insert_section_break)
@insert_table = args[:insert_table] if args.key?(:insert_table)
@insert_table_column = args[:insert_table_column] if args.key?(:insert_table_column)
@insert_table_row = args[:insert_table_row] if args.key?(:insert_table_row)
@ -4038,6 +4112,7 @@ module Google
@unmerge_table_cells = args[:unmerge_table_cells] if args.key?(:unmerge_table_cells)
@update_document_style = args[:update_document_style] if args.key?(:update_document_style)
@update_paragraph_style = args[:update_paragraph_style] if args.key?(:update_paragraph_style)
@update_section_style = args[:update_section_style] if args.key?(:update_section_style)
@update_table_cell_style = args[:update_table_cell_style] if args.key?(:update_table_cell_style)
@update_table_column_properties = args[:update_table_column_properties] if args.key?(:update_table_column_properties)
@update_table_row_style = args[:update_table_row_style] if args.key?(:update_table_row_style)
@ -4213,6 +4288,41 @@ module Google
# @return [String]
attr_accessor :content_direction
# A magnitude in a single direction in the specified units.
# Corresponds to the JSON property `marginBottom`
# @return [Google::Apis::DocsV1::Dimension]
attr_accessor :margin_bottom
# A magnitude in a single direction in the specified units.
# Corresponds to the JSON property `marginFooter`
# @return [Google::Apis::DocsV1::Dimension]
attr_accessor :margin_footer
# A magnitude in a single direction in the specified units.
# Corresponds to the JSON property `marginHeader`
# @return [Google::Apis::DocsV1::Dimension]
attr_accessor :margin_header
# A magnitude in a single direction in the specified units.
# Corresponds to the JSON property `marginLeft`
# @return [Google::Apis::DocsV1::Dimension]
attr_accessor :margin_left
# A magnitude in a single direction in the specified units.
# Corresponds to the JSON property `marginRight`
# @return [Google::Apis::DocsV1::Dimension]
attr_accessor :margin_right
# A magnitude in a single direction in the specified units.
# Corresponds to the JSON property `marginTop`
# @return [Google::Apis::DocsV1::Dimension]
attr_accessor :margin_top
# Output only. The type of section.
# Corresponds to the JSON property `sectionType`
# @return [String]
attr_accessor :section_type
def initialize(**args)
update!(**args)
end
@ -4222,6 +4332,13 @@ module Google
@column_properties = args[:column_properties] if args.key?(:column_properties)
@column_separator_style = args[:column_separator_style] if args.key?(:column_separator_style)
@content_direction = args[:content_direction] if args.key?(:content_direction)
@margin_bottom = args[:margin_bottom] if args.key?(:margin_bottom)
@margin_footer = args[:margin_footer] if args.key?(:margin_footer)
@margin_header = args[:margin_header] if args.key?(:margin_header)
@margin_left = args[:margin_left] if args.key?(:margin_left)
@margin_right = args[:margin_right] if args.key?(:margin_right)
@margin_top = args[:margin_top] if args.key?(:margin_top)
@section_type = args[:section_type] if args.key?(:section_type)
end
end
@ -5759,6 +5876,41 @@ module Google
end
end
# Updates the SectionStyle.
class UpdateSectionStyleRequest
include Google::Apis::Core::Hashable
# The fields that should be updated.
# At least one field must be specified. The root `section_style` is
# implied and must not be specified. A single `"*"` can be used as
# short-hand for listing every field.
# For example to update the left margin, set `fields` to `"margin_left"`.
# Corresponds to the JSON property `fields`
# @return [String]
attr_accessor :fields
# Specifies a contiguous range of text.
# Corresponds to the JSON property `range`
# @return [Google::Apis::DocsV1::Range]
attr_accessor :range
# The styling that applies to a section.
# Corresponds to the JSON property `sectionStyle`
# @return [Google::Apis::DocsV1::SectionStyle]
attr_accessor :section_style
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@fields = args[:fields] if args.key?(:fields)
@range = args[:range] if args.key?(:range)
@section_style = args[:section_style] if args.key?(:section_style)
end
end
# Updates the style of a range of table cells.
class UpdateTableCellStyleRequest
include Google::Apis::Core::Hashable

View File

@ -334,6 +334,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class InsertSectionBreakRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InsertTableColumnRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -826,6 +832,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class UpdateSectionStyleRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UpdateTableCellStyleRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1136,6 +1148,10 @@ module Google
property :first_page_header_id, as: 'firstPageHeaderId'
property :margin_bottom, as: 'marginBottom', class: Google::Apis::DocsV1::Dimension, decorator: Google::Apis::DocsV1::Dimension::Representation
property :margin_footer, as: 'marginFooter', class: Google::Apis::DocsV1::Dimension, decorator: Google::Apis::DocsV1::Dimension::Representation
property :margin_header, as: 'marginHeader', class: Google::Apis::DocsV1::Dimension, decorator: Google::Apis::DocsV1::Dimension::Representation
property :margin_left, as: 'marginLeft', class: Google::Apis::DocsV1::Dimension, decorator: Google::Apis::DocsV1::Dimension::Representation
property :margin_right, as: 'marginRight', class: Google::Apis::DocsV1::Dimension, decorator: Google::Apis::DocsV1::Dimension::Representation
@ -1145,6 +1161,7 @@ module Google
property :page_number_start, as: 'pageNumberStart'
property :page_size, as: 'pageSize', class: Google::Apis::DocsV1::Size, decorator: Google::Apis::DocsV1::Size::Representation
property :use_custom_header_footer_margins, as: 'useCustomHeaderFooterMargins'
property :use_even_page_header_footer, as: 'useEvenPageHeaderFooter'
property :use_first_page_header_footer, as: 'useFirstPageHeaderFooter'
end
@ -1430,6 +1447,17 @@ module Google
end
end
class InsertSectionBreakRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :end_of_segment_location, as: 'endOfSegmentLocation', class: Google::Apis::DocsV1::EndOfSegmentLocation, decorator: Google::Apis::DocsV1::EndOfSegmentLocation::Representation
property :location, as: 'location', class: Google::Apis::DocsV1::Location, decorator: Google::Apis::DocsV1::Location::Representation
property :section_type, as: 'sectionType'
end
end
class InsertTableColumnRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1901,6 +1929,8 @@ module Google
property :insert_page_break, as: 'insertPageBreak', class: Google::Apis::DocsV1::InsertPageBreakRequest, decorator: Google::Apis::DocsV1::InsertPageBreakRequest::Representation
property :insert_section_break, as: 'insertSectionBreak', class: Google::Apis::DocsV1::InsertSectionBreakRequest, decorator: Google::Apis::DocsV1::InsertSectionBreakRequest::Representation
property :insert_table, as: 'insertTable', class: Google::Apis::DocsV1::InsertTableRequest, decorator: Google::Apis::DocsV1::InsertTableRequest::Representation
property :insert_table_column, as: 'insertTableColumn', class: Google::Apis::DocsV1::InsertTableColumnRequest, decorator: Google::Apis::DocsV1::InsertTableColumnRequest::Representation
@ -1923,6 +1953,8 @@ module Google
property :update_paragraph_style, as: 'updateParagraphStyle', class: Google::Apis::DocsV1::UpdateParagraphStyleRequest, decorator: Google::Apis::DocsV1::UpdateParagraphStyleRequest::Representation
property :update_section_style, as: 'updateSectionStyle', class: Google::Apis::DocsV1::UpdateSectionStyleRequest, decorator: Google::Apis::DocsV1::UpdateSectionStyleRequest::Representation
property :update_table_cell_style, as: 'updateTableCellStyle', class: Google::Apis::DocsV1::UpdateTableCellStyleRequest, decorator: Google::Apis::DocsV1::UpdateTableCellStyleRequest::Representation
property :update_table_column_properties, as: 'updateTableColumnProperties', class: Google::Apis::DocsV1::UpdateTableColumnPropertiesRequest, decorator: Google::Apis::DocsV1::UpdateTableColumnPropertiesRequest::Representation
@ -1988,6 +2020,19 @@ module Google
property :column_separator_style, as: 'columnSeparatorStyle'
property :content_direction, as: 'contentDirection'
property :margin_bottom, as: 'marginBottom', class: Google::Apis::DocsV1::Dimension, decorator: Google::Apis::DocsV1::Dimension::Representation
property :margin_footer, as: 'marginFooter', class: Google::Apis::DocsV1::Dimension, decorator: Google::Apis::DocsV1::Dimension::Representation
property :margin_header, as: 'marginHeader', class: Google::Apis::DocsV1::Dimension, decorator: Google::Apis::DocsV1::Dimension::Representation
property :margin_left, as: 'marginLeft', class: Google::Apis::DocsV1::Dimension, decorator: Google::Apis::DocsV1::Dimension::Representation
property :margin_right, as: 'marginRight', class: Google::Apis::DocsV1::Dimension, decorator: Google::Apis::DocsV1::Dimension::Representation
property :margin_top, as: 'marginTop', class: Google::Apis::DocsV1::Dimension, decorator: Google::Apis::DocsV1::Dimension::Representation
property :section_type, as: 'sectionType'
end
end
@ -2417,6 +2462,17 @@ module Google
end
end
class UpdateSectionStyleRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :fields, as: 'fields'
property :range, as: 'range', class: Google::Apis::DocsV1::Range, decorator: Google::Apis::DocsV1::Range::Representation
property :section_style, as: 'sectionStyle', class: Google::Apis::DocsV1::SectionStyle, decorator: Google::Apis::DocsV1::SectionStyle::Representation
end
end
class UpdateTableCellStyleRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

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

View File

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

View File

@ -2092,7 +2092,7 @@ module Google
# Required. Disk Type to use for the worker.
# See [Storage
# options](https://cloud.google.com/compute/docs/disks/#introduction).
# Currently only `pd-standard` is supported.
# Currently only `pd-standard` and `pd-ssd` are supported.
# Corresponds to the JSON property `diskType`
# @return [String]
attr_accessor :disk_type

View File

@ -26,7 +26,7 @@ module Google
# @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview
module SecuritycenterV1
VERSION = 'V1'
REVISION = '20191204'
REVISION = '20191213'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1408,6 +1408,11 @@ module Google
class SecurityCenterProperties
include Google::Apis::Core::Hashable
# The user defined display name for this resource.
# Corresponds to the JSON property `resourceDisplayName`
# @return [String]
attr_accessor :resource_display_name
# The full resource name of the GCP resource this asset
# represents. This field is immutable after create time. See:
# https://cloud.google.com/apis/design/resource_names#full_resource_name
@ -1426,12 +1431,22 @@ module Google
# @return [String]
attr_accessor :resource_parent
# The user defined display name for the parent of this resource.
# Corresponds to the JSON property `resourceParentDisplayName`
# @return [String]
attr_accessor :resource_parent_display_name
# The full resource name of the project the resource belongs to. See:
# https://cloud.google.com/apis/design/resource_names#full_resource_name
# Corresponds to the JSON property `resourceProject`
# @return [String]
attr_accessor :resource_project
# The user defined display name for the project of this resource.
# Corresponds to the JSON property `resourceProjectDisplayName`
# @return [String]
attr_accessor :resource_project_display_name
# The type of the GCP resource. Examples include: APPLICATION,
# PROJECT, and ORGANIZATION. This is a case insensitive field defined by
# Cloud SCC and/or the producer of the resource and is immutable
@ -1446,10 +1461,13 @@ module Google
# Update properties of this object
def update!(**args)
@resource_display_name = args[:resource_display_name] if args.key?(:resource_display_name)
@resource_name = args[:resource_name] if args.key?(:resource_name)
@resource_owners = args[:resource_owners] if args.key?(:resource_owners)
@resource_parent = args[:resource_parent] if args.key?(:resource_parent)
@resource_parent_display_name = args[:resource_parent_display_name] if args.key?(:resource_parent_display_name)
@resource_project = args[:resource_project] if args.key?(:resource_project)
@resource_project_display_name = args[:resource_project_display_name] if args.key?(:resource_project_display_name)
@resource_type = args[:resource_type] if args.key?(:resource_type)
end
end

View File

@ -534,10 +534,13 @@ module Google
class SecurityCenterProperties
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :resource_display_name, as: 'resourceDisplayName'
property :resource_name, as: 'resourceName'
collection :resource_owners, as: 'resourceOwners'
property :resource_parent, as: 'resourceParent'
property :resource_parent_display_name, as: 'resourceParentDisplayName'
property :resource_project, as: 'resourceProject'
property :resource_project_display_name, as: 'resourceProjectDisplayName'
property :resource_type, as: 'resourceType'
end
end

View File

@ -221,9 +221,12 @@ module Google
# * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
# * security_marks.marks: `=`, `:`
# * security_center_properties.resource_name: `=`, `:`
# * security_center_properties.resource_display_name: `=`, `:`
# * security_center_properties.resource_type: `=`, `:`
# * security_center_properties.resource_parent: `=`, `:`
# * security_center_properties.resource_parent_display_name: `=`, `:`
# * security_center_properties.resource_project: `=`, `:`
# * security_center_properties.resource_project_display_name: `=`, `:`
# * security_center_properties.resource_owners: `=`, `:`
# For example, `resource_properties.size = 100` is a valid filter string.
# @param [String] order_by
@ -241,8 +244,11 @@ module Google
# resource_properties
# security_marks.marks
# security_center_properties.resource_name
# security_center_properties.resource_display_name
# security_center_properties.resource_parent
# security_center_properties.resource_parent_display_name
# security_center_properties.resource_project
# security_center_properties.resource_project_display_name
# security_center_properties.resource_type
# @param [Fixnum] page_size
# The maximum number of results to return in a single response. Default is

View File

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

View File

@ -882,7 +882,8 @@ module Google
class ExecuteBatchDmlRequest
include Google::Apis::Core::Hashable
# A per-transaction sequence number used to identify this request. This field
# Required. A per-transaction sequence number used to identify this request.
# This field
# makes each request idempotent such that if the request is received multiple
# times, at most one will succeed.
# The sequence number must be monotonically increasing within the
@ -893,7 +894,8 @@ module Google
# @return [Fixnum]
attr_accessor :seqno
# The list of statements to execute in this batch. Statements are executed
# Required. The list of statements to execute in this batch. Statements are
# executed
# serially, such that the effects of statement `i` are visible to statement
# `i+1`. Each statement must be a DML statement. Execution stops at the
# first failed statement; the remaining statements are not executed.
@ -1231,6 +1233,18 @@ module Google
# @return [String]
attr_accessor :display_name
# Output only. The endpoint URIs based on the instance config.
# For example, instances located in a specific cloud region (or multi region)
# such as nam3, would have a nam3 specific endpoint URI.
# This URI is to be used implictly by SDK clients, with fallback to default
# URI. These endpoints are intended to optimize the network routing between
# the client and the instance's serving resources.
# If multiple endpoints are present, client may establish connections using
# any of the given URIs.
# Corresponds to the JSON property `endpointUris`
# @return [Array<String>]
attr_accessor :endpoint_uris
# Cloud Labels are a flexible and lightweight mechanism for organizing cloud
# resources into groups that reflect a customer's organizational needs and
# deployment strategies. Cloud Labels can be used to filter collections of
@ -1261,8 +1275,9 @@ module Google
# @return [String]
attr_accessor :name
# Required. The number of nodes allocated to this instance. This may be zero
# in API responses for instances that are not yet in state `READY`.
# The number of nodes allocated to this instance. This
# may be zero in API responses for instances that are not yet in state
# `READY`.
# See [the
# documentation](https://cloud.google.com/spanner/docs/instances#node_count)
# for more information about nodes.
@ -1287,6 +1302,7 @@ module Google
def update!(**args)
@config = args[:config] if args.key?(:config)
@display_name = args[:display_name] if args.key?(:display_name)
@endpoint_uris = args[:endpoint_uris] if args.key?(:endpoint_uris)
@labels = args[:labels] if args.key?(:labels)
@name = args[:name] if args.key?(:name)
@node_count = args[:node_count] if args.key?(:node_count)
@ -1921,7 +1937,8 @@ module Google
# @return [Google::Apis::SpannerV1::PartitionOptions]
attr_accessor :partition_options
# The query request to generate partitions for. The request will fail if
# Required. The query request to generate partitions for. The request will fail
# if
# the query is not root partitionable. The query plan of a root
# partitionable query has a single distributed union operator. A distributed
# union operator conceptually divides one or more tables into multiple
@ -2194,8 +2211,8 @@ module Google
# ensure that their change will be applied to the same version of the policy.
# If no `etag` is provided in the call to `setIamPolicy`, then the existing
# policy is overwritten. Due to blind-set semantics of an etag-less policy,
# 'setIamPolicy' will not fail even if either of incoming or stored policy
# does not meet the version requirements.
# 'setIamPolicy' will not fail even if the incoming policy version does not
# meet the requirements for modifying the stored policy.
# Corresponds to the JSON property `etag`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
@ -2206,11 +2223,12 @@ module Google
# rejected.
# Operations affecting conditional bindings must specify version 3. This can
# be either setting a conditional policy, modifying a conditional binding,
# or removing a conditional binding from the stored conditional policy.
# or removing a binding (conditional or unconditional) from the stored
# conditional policy.
# Operations on non-conditional policies may specify any valid value or
# leave the field unset.
# If no etag is provided in the call to `setIamPolicy`, any version
# compliance checks on the incoming and/or stored policy is skipped.
# If no etag is provided in the call to `setIamPolicy`, version compliance
# checks against the stored policy is skipped.
# Corresponds to the JSON property `version`
# @return [Fixnum]
attr_accessor :version
@ -2339,7 +2357,7 @@ module Google
class ReadRequest
include Google::Apis::Core::Hashable
# The columns of table to be returned for each row matching
# Required. The columns of table to be returned for each row matching
# this request.
# Corresponds to the JSON property `columns`
# @return [Array<String>]
@ -3738,7 +3756,7 @@ module Google
# @return [String]
attr_accessor :operation_id
# DDL statements to be applied to the database.
# Required. DDL statements to be applied to the database.
# Corresponds to the JSON property `statements`
# @return [Array<String>]
attr_accessor :statements

View File

@ -647,6 +647,7 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :config, as: 'config'
property :display_name, as: 'displayName'
collection :endpoint_uris, as: 'endpointUris'
hash :labels, as: 'labels'
property :name, as: 'name'
property :node_count, as: 'nodeCount'

View File

@ -221,6 +221,12 @@ module Google
# @param [String] name
# Required. The name of the requested instance. Values are of the form
# `projects/<project>/instances/<instance>`.
# @param [String] field_mask
# If field_mask is present, specifies the subset of [][google.spanner.admin.
# instance.v1.Instance] fields that
# should be returned.
# If absent, all [][google.spanner.admin.instance.v1.Instance] fields are
# returned.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -238,11 +244,12 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_instance(name, fields: nil, quota_user: nil, options: nil, &block)
def get_project_instance(name, field_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::SpannerV1::Instance::Representation
command.response_class = Google::Apis::SpannerV1::Instance
command.params['name'] = name unless name.nil?
command.query['fieldMask'] = field_mask unless field_mask.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/cloud-sql/
module SqlV1beta4
VERSION = 'V1beta4'
REVISION = '20191029'
REVISION = '20191205'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -38,7 +38,7 @@ module Google
# @return [String]
attr_accessor :kind
# An optional label to identify this entry.
# Optional. A label to identify this entry.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
@ -454,7 +454,6 @@ module Google
end
# A Cloud SQL instance resource.
# If you change this, also change SqlDatabaseInstance
class DatabaseInstance
include Google::Apis::Core::Hashable
@ -1798,6 +1797,22 @@ module Google
class OnPremisesConfiguration
include Google::Apis::Core::Hashable
# PEM representation of the trusted CA's x509 certificate.
# Corresponds to the JSON property `caCertificate`
# @return [String]
attr_accessor :ca_certificate
# PEM representation of the slave's x509 certificate.
# Corresponds to the JSON property `clientCertificate`
# @return [String]
attr_accessor :client_certificate
# PEM representation of the slave's private key. The corresponsing public key
# is encoded in the client's certificate.
# Corresponds to the JSON property `clientKey`
# @return [String]
attr_accessor :client_key
# The host and port of the on-premises instance in host:port format
# Corresponds to the JSON property `hostPort`
# @return [String]
@ -1814,6 +1829,9 @@ module Google
# Update properties of this object
def update!(**args)
@ca_certificate = args[:ca_certificate] if args.key?(:ca_certificate)
@client_certificate = args[:client_certificate] if args.key?(:client_certificate)
@client_key = args[:client_key] if args.key?(:client_key)
@host_port = args[:host_port] if args.key?(:host_port)
@kind = args[:kind] if args.key?(:kind)
end
@ -1889,7 +1907,8 @@ module Google
attr_accessor :start_time
# The status of an operation. Valid values are <code>PENDING</code>,
# <code>RUNNING</code>, <code>DONE</code>, <code>UNKNOWN</code>.
# <code>RUNNING</code>, <code>DONE</code>,
# <code>SQL_OPERATION_STATUS_UNSPECIFIED</code>.
# Corresponds to the JSON property `status`
# @return [String]
attr_accessor :status
@ -2063,6 +2082,32 @@ module Google
end
end
#
class Reschedule
include Google::Apis::Core::Hashable
# Required. The type of the reschedule.
# Corresponds to the JSON property `rescheduleType`
# @return [String]
attr_accessor :reschedule_type
# Optional. Timestamp when the maintenance shall be rescheduled to if
# reschedule_type=SPECIFIC_TIME.
# Corresponds to the JSON property `scheduleTime`
# @return [String]
attr_accessor :schedule_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@reschedule_type = args[:reschedule_type] if args.key?(:reschedule_type)
@schedule_time = args[:schedule_time] if args.key?(:schedule_time)
end
end
# Database instance restore from backup context.
# Backup context contains source instance id and project id.
class RestoreBackupContext
@ -2305,16 +2350,41 @@ module Google
end
end
# Reschedule options for maintenance windows.
class SqlInstancesRescheduleMaintenanceRequestBody
include Google::Apis::Core::Hashable
# Required. The type of the reschedule the user wants.
# Corresponds to the JSON property `reschedule`
# @return [Google::Apis::SqlV1beta4::Reschedule]
attr_accessor :reschedule
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@reschedule = args[:reschedule] if args.key?(:reschedule)
end
end
# Any scheduled maintenancce for this instance.
class SqlScheduledMaintenance
include Google::Apis::Core::Hashable
# If the scheduled maintenance can be deferred.
#
# Corresponds to the JSON property `canDefer`
# @return [Boolean]
attr_accessor :can_defer
alias_method :can_defer?, :can_defer
# If the scheduled maintenance can be rescheduled.
# Corresponds to the JSON property `canReschedule`
# @return [Boolean]
attr_accessor :can_reschedule
alias_method :can_reschedule?, :can_reschedule
# The start time of any upcoming scheduled maintenance for this instance.
# Corresponds to the JSON property `startTime`
# @return [String]
@ -2327,6 +2397,7 @@ module Google
# Update properties of this object
def update!(**args)
@can_defer = args[:can_defer] if args.key?(:can_defer)
@can_reschedule = args[:can_reschedule] if args.key?(:can_reschedule)
@start_time = args[:start_time] if args.key?(:start_time)
end
end

View File

@ -316,6 +316,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Reschedule
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RestoreBackupContext
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -334,6 +340,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class SqlInstancesRescheduleMaintenanceRequestBody
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SqlScheduledMaintenance
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -884,6 +896,9 @@ module Google
class OnPremisesConfiguration
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :ca_certificate, as: 'caCertificate'
property :client_certificate, as: 'clientCertificate'
property :client_key, as: 'clientKey'
property :host_port, as: 'hostPort'
property :kind, as: 'kind'
end
@ -951,6 +966,14 @@ module Google
end
end
class Reschedule
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :reschedule_type, as: 'rescheduleType'
property :schedule_time, as: 'scheduleTime'
end
end
class RestoreBackupContext
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1000,10 +1023,19 @@ module Google
end
end
class SqlInstancesRescheduleMaintenanceRequestBody
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :reschedule, as: 'reschedule', class: Google::Apis::SqlV1beta4::Reschedule, decorator: Google::Apis::SqlV1beta4::Reschedule::Representation
end
end
class SqlScheduledMaintenance
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :can_defer, as: 'canDefer'
property :can_reschedule, as: 'canReschedule'
property :start_time, as: 'startTime'
end
end

View File

@ -1422,6 +1422,88 @@ module Google
execute_or_queue_command(command, &block)
end
# Reschedules the maintenance on the given instance.
# @param [String] project
# ID of the project that contains the instance.
# @param [String] instance
# Cloud SQL instance ID. This does not include the project ID.
# @param [Google::Apis::SqlV1beta4::SqlInstancesRescheduleMaintenanceRequestBody] sql_instances_reschedule_maintenance_request_body_object
# @param [String] parent
# The parent resource where Cloud SQL reshedule this database instance's
# maintenance. Format:
# projects/`project`/locations/`location`/instances/`instance`
# @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::SqlV1beta4::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SqlV1beta4::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 reschedule_project_instance_maintenance(project, instance, sql_instances_reschedule_maintenance_request_body_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/rescheduleMaintenance', options)
command.request_representation = Google::Apis::SqlV1beta4::SqlInstancesRescheduleMaintenanceRequestBody::Representation
command.request_object = sql_instances_reschedule_maintenance_request_body_object
command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
command.response_class = Google::Apis::SqlV1beta4::Operation
command.params['project'] = project unless project.nil?
command.params['instance'] = instance unless instance.nil?
command.query['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
# Reschedules the maintenance on the given instance.
# @param [String] parent
# The parent resource where Cloud SQL reshedule this database instance's
# maintenance. Format:
# projects/`project`/locations/`location`/instances/`instance`
# @param [Google::Apis::SqlV1beta4::SqlInstancesRescheduleMaintenanceRequestBody] sql_instances_reschedule_maintenance_request_body_object
# @param [String] instance
# Cloud SQL instance ID. This does not include the project ID.
# @param [String] project
# ID of the project that contains the instance.
# @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::SqlV1beta4::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SqlV1beta4::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 reschedule_project_location_instance_maintenance(parent, sql_instances_reschedule_maintenance_request_body_object = nil, instance: nil, project: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'sql/v1beta4/{+parent}/rescheduleMaintenance', options)
command.request_representation = Google::Apis::SqlV1beta4::SqlInstancesRescheduleMaintenanceRequestBody::Representation
command.request_object = sql_instances_reschedule_maintenance_request_body_object
command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
command.response_class = Google::Apis::SqlV1beta4::Operation
command.params['parent'] = parent unless parent.nil?
command.query['instance'] = instance unless instance.nil?
command.query['project'] = project unless project.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Generates a short-lived X509 certificate containing the provided public key
# and signed by a private key specific to the target instance. Users may use
# the certificate to authenticate as themselves when connecting to the
@ -1788,8 +1870,7 @@ module Google
# Database instance ID. This does not include the project ID.
# @param [Google::Apis::SqlV1beta4::User] user_object
# @param [String] host
# Host of the user in the instance. For a MySQL instance, it's required; For
# a PostgreSQL instance, it's optional.
# Optional. Host of the user in the instance.
# @param [String] name
# Name of the user in the instance.
# @param [String] resource_name