Autogenerated update (2019-02-07)

Update:
- admin_directory_v1
- dlp_v2
- firebasehosting_v1beta1
- iam_v1
- speech_v1
- speech_v1p1beta1
- storagetransfer_v1
This commit is contained in:
Google APIs 2019-02-07 00:36:43 +00:00
parent 06127c2cba
commit 900cf07a0a
23 changed files with 251 additions and 125 deletions

View File

@ -2726,6 +2726,7 @@
"/admin:directory_v1/Asps/items/item": item "/admin:directory_v1/Asps/items/item": item
"/admin:directory_v1/Asps/kind": kind "/admin:directory_v1/Asps/kind": kind
"/admin:directory_v1/Building": building "/admin:directory_v1/Building": building
"/admin:directory_v1/Building/address": address
"/admin:directory_v1/Building/buildingId": building_id "/admin:directory_v1/Building/buildingId": building_id
"/admin:directory_v1/Building/buildingName": building_name "/admin:directory_v1/Building/buildingName": building_name
"/admin:directory_v1/Building/coordinates": coordinates "/admin:directory_v1/Building/coordinates": coordinates
@ -2734,6 +2735,15 @@
"/admin:directory_v1/Building/floorNames": floor_names "/admin:directory_v1/Building/floorNames": floor_names
"/admin:directory_v1/Building/floorNames/floor_name": floor_name "/admin:directory_v1/Building/floorNames/floor_name": floor_name
"/admin:directory_v1/Building/kind": kind "/admin:directory_v1/Building/kind": kind
"/admin:directory_v1/BuildingAddress": building_address
"/admin:directory_v1/BuildingAddress/addressLines": address_lines
"/admin:directory_v1/BuildingAddress/addressLines/address_line": address_line
"/admin:directory_v1/BuildingAddress/administrativeArea": administrative_area
"/admin:directory_v1/BuildingAddress/languageCode": language_code
"/admin:directory_v1/BuildingAddress/locality": locality
"/admin:directory_v1/BuildingAddress/postalCode": postal_code
"/admin:directory_v1/BuildingAddress/regionCode": region_code
"/admin:directory_v1/BuildingAddress/sublocality": sublocality
"/admin:directory_v1/BuildingCoordinates": building_coordinates "/admin:directory_v1/BuildingCoordinates": building_coordinates
"/admin:directory_v1/BuildingCoordinates/latitude": latitude "/admin:directory_v1/BuildingCoordinates/latitude": latitude
"/admin:directory_v1/BuildingCoordinates/longitude": longitude "/admin:directory_v1/BuildingCoordinates/longitude": longitude
@ -3497,6 +3507,7 @@
"/admin:directory_v1/directory.resources.buildings.get/buildingId": building_id "/admin:directory_v1/directory.resources.buildings.get/buildingId": building_id
"/admin:directory_v1/directory.resources.buildings.get/customer": customer "/admin:directory_v1/directory.resources.buildings.get/customer": customer
"/admin:directory_v1/directory.resources.buildings.insert": insert_resource_building "/admin:directory_v1/directory.resources.buildings.insert": insert_resource_building
"/admin:directory_v1/directory.resources.buildings.insert/coordinatesSource": coordinates_source
"/admin:directory_v1/directory.resources.buildings.insert/customer": customer "/admin:directory_v1/directory.resources.buildings.insert/customer": customer
"/admin:directory_v1/directory.resources.buildings.list": list_resource_buildings "/admin:directory_v1/directory.resources.buildings.list": list_resource_buildings
"/admin:directory_v1/directory.resources.buildings.list/customer": customer "/admin:directory_v1/directory.resources.buildings.list/customer": customer
@ -3504,9 +3515,11 @@
"/admin:directory_v1/directory.resources.buildings.list/pageToken": page_token "/admin:directory_v1/directory.resources.buildings.list/pageToken": page_token
"/admin:directory_v1/directory.resources.buildings.patch": patch_resource_building "/admin:directory_v1/directory.resources.buildings.patch": patch_resource_building
"/admin:directory_v1/directory.resources.buildings.patch/buildingId": building_id "/admin:directory_v1/directory.resources.buildings.patch/buildingId": building_id
"/admin:directory_v1/directory.resources.buildings.patch/coordinatesSource": coordinates_source
"/admin:directory_v1/directory.resources.buildings.patch/customer": customer "/admin:directory_v1/directory.resources.buildings.patch/customer": customer
"/admin:directory_v1/directory.resources.buildings.update": update_resource_building "/admin:directory_v1/directory.resources.buildings.update": update_resource_building
"/admin:directory_v1/directory.resources.buildings.update/buildingId": building_id "/admin:directory_v1/directory.resources.buildings.update/buildingId": building_id
"/admin:directory_v1/directory.resources.buildings.update/coordinatesSource": coordinates_source
"/admin:directory_v1/directory.resources.buildings.update/customer": customer "/admin:directory_v1/directory.resources.buildings.update/customer": customer
"/admin:directory_v1/directory.resources.calendars.delete": delete_calendar_resource "/admin:directory_v1/directory.resources.calendars.delete": delete_calendar_resource
"/admin:directory_v1/directory.resources.calendars.delete/calendarResourceId": calendar_resource_id "/admin:directory_v1/directory.resources.calendars.delete/calendarResourceId": calendar_resource_id
@ -66687,6 +66700,7 @@
"/dlp:v2/GooglePrivacyDlpV2InfoType": google_privacy_dlp_v2_info_type "/dlp:v2/GooglePrivacyDlpV2InfoType": google_privacy_dlp_v2_info_type
"/dlp:v2/GooglePrivacyDlpV2InfoType/name": name "/dlp:v2/GooglePrivacyDlpV2InfoType/name": name
"/dlp:v2/GooglePrivacyDlpV2InfoTypeDescription": google_privacy_dlp_v2_info_type_description "/dlp:v2/GooglePrivacyDlpV2InfoTypeDescription": google_privacy_dlp_v2_info_type_description
"/dlp:v2/GooglePrivacyDlpV2InfoTypeDescription/description": description
"/dlp:v2/GooglePrivacyDlpV2InfoTypeDescription/displayName": display_name "/dlp:v2/GooglePrivacyDlpV2InfoTypeDescription/displayName": display_name
"/dlp:v2/GooglePrivacyDlpV2InfoTypeDescription/name": name "/dlp:v2/GooglePrivacyDlpV2InfoTypeDescription/name": name
"/dlp:v2/GooglePrivacyDlpV2InfoTypeDescription/supportedBy": supported_by "/dlp:v2/GooglePrivacyDlpV2InfoTypeDescription/supportedBy": supported_by
@ -72294,6 +72308,9 @@
"/firebasehosting:v1beta1/CertHttpChallenge": cert_http_challenge "/firebasehosting:v1beta1/CertHttpChallenge": cert_http_challenge
"/firebasehosting:v1beta1/CertHttpChallenge/path": path "/firebasehosting:v1beta1/CertHttpChallenge/path": path
"/firebasehosting:v1beta1/CertHttpChallenge/token": token "/firebasehosting:v1beta1/CertHttpChallenge/token": token
"/firebasehosting:v1beta1/CloudRunRewrite": cloud_run_rewrite
"/firebasehosting:v1beta1/CloudRunRewrite/region": region
"/firebasehosting:v1beta1/CloudRunRewrite/serviceId": service_id
"/firebasehosting:v1beta1/Domain": domain "/firebasehosting:v1beta1/Domain": domain
"/firebasehosting:v1beta1/Domain/domainName": domain_name "/firebasehosting:v1beta1/Domain/domainName": domain_name
"/firebasehosting:v1beta1/Domain/domainRedirect": domain_redirect "/firebasehosting:v1beta1/Domain/domainRedirect": domain_redirect
@ -72356,6 +72373,7 @@
"/firebasehosting:v1beta1/Rewrite/function": function "/firebasehosting:v1beta1/Rewrite/function": function
"/firebasehosting:v1beta1/Rewrite/glob": glob "/firebasehosting:v1beta1/Rewrite/glob": glob
"/firebasehosting:v1beta1/Rewrite/path": path "/firebasehosting:v1beta1/Rewrite/path": path
"/firebasehosting:v1beta1/Rewrite/run": run
"/firebasehosting:v1beta1/ServingConfig": serving_config "/firebasehosting:v1beta1/ServingConfig": serving_config
"/firebasehosting:v1beta1/ServingConfig/appAssociation": app_association "/firebasehosting:v1beta1/ServingConfig/appAssociation": app_association
"/firebasehosting:v1beta1/ServingConfig/cleanUrls": clean_urls "/firebasehosting:v1beta1/ServingConfig/cleanUrls": clean_urls

View File

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

View File

@ -254,6 +254,11 @@ module Google
class Building class Building
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# JSON template for the postal address of a building in Directory API.
# Corresponds to the JSON property `address`
# @return [Google::Apis::AdminDirectoryV1::BuildingAddress]
attr_accessor :address
# Unique identifier for the building. The maximum length is 100 characters. # Unique identifier for the building. The maximum length is 100 characters.
# Corresponds to the JSON property `buildingId` # Corresponds to the JSON property `buildingId`
# @return [String] # @return [String]
@ -298,6 +303,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@address = args[:address] if args.key?(:address)
@building_id = args[:building_id] if args.key?(:building_id) @building_id = args[:building_id] if args.key?(:building_id)
@building_name = args[:building_name] if args.key?(:building_name) @building_name = args[:building_name] if args.key?(:building_name)
@coordinates = args[:coordinates] if args.key?(:coordinates) @coordinates = args[:coordinates] if args.key?(:coordinates)
@ -308,6 +314,98 @@ module Google
end end
end end
# JSON template for the postal address of a building in Directory API.
class BuildingAddress
include Google::Apis::Core::Hashable
# Unstructured address lines describing the lower levels of an address. Because
# values in addressLines do not have type information and may sometimes contain
# multiple values in a single field (e.g. "Austin, TX"), it is important that
# the line order is clear. The order of address lines should be "envelope order"
# for the country/region of the address. In places where this can vary (e.g.
# Japan), address_language is used to make it explicit (e.g. "ja" for large-to-
# small ordering and "ja-Latn" or "en" for small-to-large). This way, the most
# specific line of an address can be selected based on the language. The minimum
# permitted structural representation of an address consists of a regionCode
# with all remaining information placed in the addressLines. It would be
# possible to format such an address very approximately without geocoding, but
# no semantic reasoning could be made about any of the address components until
# it was at least partially resolved. Creating an address only containing a
# regionCode and addressLines, and then geocoding is the recommended way to
# handle completely unstructured addresses (as opposed to guessing which parts
# of the address should be localities or administrative areas).
# Corresponds to the JSON property `addressLines`
# @return [Array<String>]
attr_accessor :address_lines
# Optional. Highest administrative subdivision which is used for postal
# addresses of a country or region. For example, this can be a state, a province,
# an oblast, or a prefecture. Specifically, for Spain this is the province and
# not the autonomous community (e.g. "Barcelona" and not "Catalonia"). Many
# countries don't use an administrative area in postal addresses. E.g. in
# Switzerland this should be left unpopulated.
# Corresponds to the JSON property `administrativeArea`
# @return [String]
attr_accessor :administrative_area
# Optional. BCP-47 language code of the contents of this address (if known).
# This is often the UI language of the input form or is expected to match one of
# the languages used in the address' country/region, or their transliterated
# equivalents. This can affect formatting in certain countries, but is not
# critical to the correctness of the data and will never affect any validation
# or other non-formatting related operations. If this value is not known, it
# should be omitted (rather than specifying a possibly incorrect default).
# Examples: "zh-Hant", "ja", "ja-Latn", "en".
# Corresponds to the JSON property `languageCode`
# @return [String]
attr_accessor :language_code
# Optional. Generally refers to the city/town portion of the address. Examples:
# US city, IT comune, UK post town. In regions of the world where localities are
# not well defined or do not fit into this structure well, leave locality empty
# and use addressLines.
# Corresponds to the JSON property `locality`
# @return [String]
attr_accessor :locality
# Optional. Postal code of the address. Not all countries use or require postal
# codes to be present, but where they are used, they may trigger additional
# validation with other parts of the address (e.g. state/zip validation in the U.
# S.A.).
# Corresponds to the JSON property `postalCode`
# @return [String]
attr_accessor :postal_code
# Required. CLDR region code of the country/region of the address. This is never
# inferred and it is up to the user to ensure the value is correct. See http://
# cldr.unicode.org/ and http://www.unicode.org/cldr/charts/30/supplemental/
# territory_information.html
# Corresponds to the JSON property `regionCode`
# @return [String]
attr_accessor :region_code
# Optional. Sublocality of the address. For example, this can be neighborhoods,
# boroughs, districts.
# Corresponds to the JSON property `sublocality`
# @return [String]
attr_accessor :sublocality
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@address_lines = args[:address_lines] if args.key?(:address_lines)
@administrative_area = args[:administrative_area] if args.key?(:administrative_area)
@language_code = args[:language_code] if args.key?(:language_code)
@locality = args[:locality] if args.key?(:locality)
@postal_code = args[:postal_code] if args.key?(:postal_code)
@region_code = args[:region_code] if args.key?(:region_code)
@sublocality = args[:sublocality] if args.key?(:sublocality)
end
end
# JSON template for coordinates of a building in Directory API. # JSON template for coordinates of a building in Directory API.
class BuildingCoordinates class BuildingCoordinates
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -58,6 +58,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class BuildingAddress
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BuildingCoordinates class BuildingCoordinates
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -592,6 +598,8 @@ module Google
class Building class Building
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :address, as: 'address', class: Google::Apis::AdminDirectoryV1::BuildingAddress, decorator: Google::Apis::AdminDirectoryV1::BuildingAddress::Representation
property :building_id, as: 'buildingId' property :building_id, as: 'buildingId'
property :building_name, as: 'buildingName' property :building_name, as: 'buildingName'
property :coordinates, as: 'coordinates', class: Google::Apis::AdminDirectoryV1::BuildingCoordinates, decorator: Google::Apis::AdminDirectoryV1::BuildingCoordinates::Representation property :coordinates, as: 'coordinates', class: Google::Apis::AdminDirectoryV1::BuildingCoordinates, decorator: Google::Apis::AdminDirectoryV1::BuildingCoordinates::Representation
@ -603,6 +611,19 @@ module Google
end end
end end
class BuildingAddress
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :address_lines, as: 'addressLines'
property :administrative_area, as: 'administrativeArea'
property :language_code, as: 'languageCode'
property :locality, as: 'locality'
property :postal_code, as: 'postalCode'
property :region_code, as: 'regionCode'
property :sublocality, as: 'sublocality'
end
end
class BuildingCoordinates class BuildingCoordinates
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -2183,6 +2183,8 @@ module Google
# The unique ID for the customer's G Suite account. As an account administrator, # The unique ID for the customer's G Suite account. As an account administrator,
# you can also use the my_customer alias to represent your account's customer ID. # you can also use the my_customer alias to represent your account's customer ID.
# @param [Google::Apis::AdminDirectoryV1::Building] building_object # @param [Google::Apis::AdminDirectoryV1::Building] building_object
# @param [String] coordinates_source
# Source from which Building.coordinates are derived.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -2202,13 +2204,14 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @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::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def insert_resource_building(customer, building_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def insert_resource_building(customer, building_object = nil, coordinates_source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'customer/{customer}/resources/buildings', options) command = make_simple_command(:post, 'customer/{customer}/resources/buildings', options)
command.request_representation = Google::Apis::AdminDirectoryV1::Building::Representation command.request_representation = Google::Apis::AdminDirectoryV1::Building::Representation
command.request_object = building_object command.request_object = building_object
command.response_representation = Google::Apis::AdminDirectoryV1::Building::Representation command.response_representation = Google::Apis::AdminDirectoryV1::Building::Representation
command.response_class = Google::Apis::AdminDirectoryV1::Building command.response_class = Google::Apis::AdminDirectoryV1::Building
command.params['customer'] = customer unless customer.nil? command.params['customer'] = customer unless customer.nil?
command.query['coordinatesSource'] = coordinates_source unless coordinates_source.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil? command.query['userIp'] = user_ip unless user_ip.nil?
@ -2262,6 +2265,8 @@ module Google
# @param [String] building_id # @param [String] building_id
# The ID of the building to update. # The ID of the building to update.
# @param [Google::Apis::AdminDirectoryV1::Building] building_object # @param [Google::Apis::AdminDirectoryV1::Building] building_object
# @param [String] coordinates_source
# Source from which Building.coordinates are derived.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -2281,7 +2286,7 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @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::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_resource_building(customer, building_id, building_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def patch_resource_building(customer, building_id, building_object = nil, coordinates_source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, 'customer/{customer}/resources/buildings/{buildingId}', options) command = make_simple_command(:patch, 'customer/{customer}/resources/buildings/{buildingId}', options)
command.request_representation = Google::Apis::AdminDirectoryV1::Building::Representation command.request_representation = Google::Apis::AdminDirectoryV1::Building::Representation
command.request_object = building_object command.request_object = building_object
@ -2289,6 +2294,7 @@ module Google
command.response_class = Google::Apis::AdminDirectoryV1::Building command.response_class = Google::Apis::AdminDirectoryV1::Building
command.params['customer'] = customer unless customer.nil? command.params['customer'] = customer unless customer.nil?
command.params['buildingId'] = building_id unless building_id.nil? command.params['buildingId'] = building_id unless building_id.nil?
command.query['coordinatesSource'] = coordinates_source unless coordinates_source.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil? command.query['userIp'] = user_ip unless user_ip.nil?
@ -2302,6 +2308,8 @@ module Google
# @param [String] building_id # @param [String] building_id
# The ID of the building to update. # The ID of the building to update.
# @param [Google::Apis::AdminDirectoryV1::Building] building_object # @param [Google::Apis::AdminDirectoryV1::Building] building_object
# @param [String] coordinates_source
# Source from which Building.coordinates are derived.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -2321,7 +2329,7 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @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::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def update_resource_building(customer, building_id, building_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def update_resource_building(customer, building_id, building_object = nil, coordinates_source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, 'customer/{customer}/resources/buildings/{buildingId}', options) command = make_simple_command(:put, 'customer/{customer}/resources/buildings/{buildingId}', options)
command.request_representation = Google::Apis::AdminDirectoryV1::Building::Representation command.request_representation = Google::Apis::AdminDirectoryV1::Building::Representation
command.request_object = building_object command.request_object = building_object
@ -2329,6 +2337,7 @@ module Google
command.response_class = Google::Apis::AdminDirectoryV1::Building command.response_class = Google::Apis::AdminDirectoryV1::Building
command.params['customer'] = customer unless customer.nil? command.params['customer'] = customer unless customer.nil?
command.params['buildingId'] = building_id unless building_id.nil? command.params['buildingId'] = building_id unless building_id.nil?
command.query['coordinatesSource'] = coordinates_source unless coordinates_source.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil? command.query['userIp'] = user_ip unless user_ip.nil?

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/dlp/docs/ # @see https://cloud.google.com/dlp/docs/
module DlpV2 module DlpV2
VERSION = 'V2' VERSION = 'V2'
REVISION = '20190129' REVISION = '20190205'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -2589,6 +2589,12 @@ module Google
class GooglePrivacyDlpV2InfoTypeDescription class GooglePrivacyDlpV2InfoTypeDescription
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Description of the infotype. Translated when language is provided in the
# request.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Human readable form of the infoType name. # Human readable form of the infoType name.
# Corresponds to the JSON property `displayName` # Corresponds to the JSON property `displayName`
# @return [String] # @return [String]
@ -2610,6 +2616,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@description = args[:description] if args.key?(:description)
@display_name = args[:display_name] if args.key?(:display_name) @display_name = args[:display_name] if args.key?(:display_name)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@supported_by = args[:supported_by] if args.key?(:supported_by) @supported_by = args[:supported_by] if args.key?(:supported_by)

View File

@ -1744,6 +1744,7 @@ module Google
class GooglePrivacyDlpV2InfoTypeDescription class GooglePrivacyDlpV2InfoTypeDescription
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :display_name, as: 'displayName' property :display_name, as: 'displayName'
property :name, as: 'name' property :name, as: 'name'
collection :supported_by, as: 'supportedBy' collection :supported_by, as: 'supportedBy'

View File

@ -27,7 +27,7 @@ module Google
# @see https://firebase.google.com/docs/hosting/ # @see https://firebase.google.com/docs/hosting/
module FirebasehostingV1beta1 module FirebasehostingV1beta1
VERSION = 'V1beta1' VERSION = 'V1beta1'
REVISION = '20190114' REVISION = '20190205'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -102,6 +102,36 @@ module Google
end end
end end
# A configured rewrite that will direct any requests to a Cloud Run service. If
# the Cloud Run service does not exist when setting or updating your Firebase
# Hosting configuration then the request will fail. Any errors from the Cloud
# Run service (including when the service has been deleted) will be passed back
# down to the end user.
class CloudRunRewrite
include Google::Apis::Core::Hashable
# Optional. The region where the Cloud Run service is hosted. Defaults to
# `us-central1` if not supplied.
# Corresponds to the JSON property `region`
# @return [String]
attr_accessor :region
# Required. User supplied ID of the Cloud Run service.
# Corresponds to the JSON property `serviceId`
# @return [String]
attr_accessor :service_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@region = args[:region] if args.key?(:region)
@service_id = args[:service_id] if args.key?(:service_id)
end
end
# The intended behavior and status information of a domain. # The intended behavior and status information of a domain.
class Domain class Domain
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -553,6 +583,15 @@ module Google
# @return [String] # @return [String]
attr_accessor :path attr_accessor :path
# A configured rewrite that will direct any requests to a Cloud Run service. If
# the Cloud Run service does not exist when setting or updating your Firebase
# Hosting configuration then the request will fail. Any errors from the Cloud
# Run service (including when the service has been deleted) will be passed back
# down to the end user.
# Corresponds to the JSON property `run`
# @return [Google::Apis::FirebasehostingV1beta1::CloudRunRewrite]
attr_accessor :run
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -563,6 +602,7 @@ module Google
@function = args[:function] if args.key?(:function) @function = args[:function] if args.key?(:function)
@glob = args[:glob] if args.key?(:glob) @glob = args[:glob] if args.key?(:glob)
@path = args[:path] if args.key?(:path) @path = args[:path] if args.key?(:path)
@run = args[:run] if args.key?(:run)
end end
end end

View File

@ -40,6 +40,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class CloudRunRewrite
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Domain class Domain
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -166,6 +172,14 @@ module Google
end end
end end
class CloudRunRewrite
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :region, as: 'region'
property :service_id, as: 'serviceId'
end
end
class Domain class Domain
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -290,6 +304,8 @@ module Google
property :function, as: 'function' property :function, as: 'function'
property :glob, as: 'glob' property :glob, as: 'glob'
property :path, as: 'path' property :path, as: 'path'
property :run, as: 'run', class: Google::Apis::FirebasehostingV1beta1::CloudRunRewrite, decorator: Google::Apis::FirebasehostingV1beta1::CloudRunRewrite::Representation
end end
end end

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/iam/ # @see https://cloud.google.com/iam/
module IamV1 module IamV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20190131' REVISION = '20190201'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -695,43 +695,6 @@ module Google
end end
end end
# The patch service account request.
class PatchServiceAccountRequest
include Google::Apis::Core::Hashable
# A service account in the Identity and Access Management API.
# To create a service account, specify the `project_id` and the `account_id`
# for the account. The `account_id` is unique within the project, and is used
# to generate the service account email address and a stable
# `unique_id`.
# If the account already exists, the account's resource name is returned
# in the format of projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT`. The caller
# can use the name in other methods to access the account.
# All other methods can identify the service account using the format
# `projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT``.
# Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
# the account. The `ACCOUNT` value can be the `email` address or the
# `unique_id` of the service account.
# Corresponds to the JSON property `serviceAccount`
# @return [Google::Apis::IamV1::ServiceAccount]
attr_accessor :service_account
#
# Corresponds to the JSON property `updateMask`
# @return [String]
attr_accessor :update_mask
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@service_account = args[:service_account] if args.key?(:service_account)
@update_mask = args[:update_mask] if args.key?(:update_mask)
end
end
# A permission which can be included by a role. # A permission which can be included by a role.
class Permission class Permission
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -124,12 +124,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class PatchServiceAccountRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Permission class Permission
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -406,15 +400,6 @@ module Google
end end
end end
class PatchServiceAccountRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :service_account, as: 'serviceAccount', class: Google::Apis::IamV1::ServiceAccount, decorator: Google::Apis::IamV1::ServiceAccount::Representation
property :update_mask, as: 'updateMask'
end
end
class Permission class Permission
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -792,50 +792,6 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Patches a ServiceAccount.
# Currently, only the following fields are updatable:
# `display_name` and `description`.
# Only fields specified in the request are garaunteed to be returned in
# the response. Other fields in the response may be empty.
# Note: The field mask is required.
# @param [String] name
# The resource name of the service account in the following format:
# `projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT``.
# Requests using `-` as a wildcard for the `PROJECT_ID` will infer the
# project from the `account` and the `ACCOUNT` value can be the `email`
# address or the `unique_id` of the service account.
# In responses the resource name will always be in the format
# `projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT``.
# @param [Google::Apis::IamV1::PatchServiceAccountRequest] patch_service_account_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::IamV1::ServiceAccount] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::IamV1::ServiceAccount]
#
# @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_service_account(name, patch_service_account_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1/{+name}', options)
command.request_representation = Google::Apis::IamV1::PatchServiceAccountRequest::Representation
command.request_object = patch_service_account_request_object
command.response_representation = Google::Apis::IamV1::ServiceAccount::Representation
command.response_class = Google::Apis::IamV1::ServiceAccount
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Sets the IAM access control policy for a # Sets the IAM access control policy for a
# ServiceAccount. # ServiceAccount.
# @param [String] resource # @param [String] resource
@ -871,6 +827,10 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# **Note**: This method is in the process of being deprecated. Call the
# [`signBlob()`](/iam/credentials/reference/rest/v1/projects.serviceAccounts/
# signBlob)
# method of the Cloud IAM Service Account Credentials API instead.
# Signs a blob using a service account's system-managed private key. # Signs a blob using a service account's system-managed private key.
# @param [String] name # @param [String] name
# The resource name of the service account in the following format: # The resource name of the service account in the following format:
@ -908,6 +868,10 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# **Note**: This method is in the process of being deprecated. Call the
# [`signJwt()`](/iam/credentials/reference/rest/v1/projects.serviceAccounts/
# signJwt)
# method of the Cloud IAM Service Account Credentials API instead.
# Signs a JWT using a service account's system-managed private key. # Signs a JWT using a service account's system-managed private key.
# If no expiry time (`exp`) is provided in the `SignJwtRequest`, IAM sets an # If no expiry time (`exp`) is provided in the `SignJwtRequest`, IAM sets an
# an expiry time of one hour by default. If you request an expiry time of # an expiry time of one hour by default. If you request an expiry time of

View File

@ -18,14 +18,14 @@ require 'google/apis/speech_v1/representations.rb'
module Google module Google
module Apis module Apis
# Cloud Speech API # Cloud Speech-to-Text API
# #
# Converts audio to text by applying powerful neural network models. # Converts audio to text by applying powerful neural network models.
# #
# @see https://cloud.google.com/speech-to-text/docs/quickstart-protocol # @see https://cloud.google.com/speech-to-text/docs/quickstart-protocol
module SpeechV1 module SpeechV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20190114' REVISION = '20190201'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -382,8 +382,8 @@ module Google
# 16000 is optimal. For best results, set the sampling rate of the audio # 16000 is optimal. For best results, set the sampling rate of the audio
# source to 16000 Hz. If that's not possible, use the native sample rate of # source to 16000 Hz. If that's not possible, use the native sample rate of
# the audio source (instead of re-sampling). # the audio source (instead of re-sampling).
# This field is optional for `FLAC` and `WAV` audio files and required # This field is optional for `FLAC`, `WAV`. and 'MP3' audio files, and is
# for all other audio formats. For details, see AudioEncoding. # required for all other audio formats. For details, see AudioEncoding.
# Corresponds to the JSON property `sampleRateHertz` # Corresponds to the JSON property `sampleRateHertz`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :sample_rate_hertz attr_accessor :sample_rate_hertz

View File

@ -20,7 +20,7 @@ require 'google/apis/errors'
module Google module Google
module Apis module Apis
module SpeechV1 module SpeechV1
# Cloud Speech API # Cloud Speech-to-Text API
# #
# Converts audio to text by applying powerful neural network models. # Converts audio to text by applying powerful neural network models.
# #

View File

@ -18,14 +18,14 @@ require 'google/apis/speech_v1p1beta1/representations.rb'
module Google module Google
module Apis module Apis
# Cloud Speech API # Cloud Speech-to-Text API
# #
# Converts audio to text by applying powerful neural network models. # Converts audio to text by applying powerful neural network models.
# #
# @see https://cloud.google.com/speech-to-text/docs/quickstart-protocol # @see https://cloud.google.com/speech-to-text/docs/quickstart-protocol
module SpeechV1p1beta1 module SpeechV1p1beta1
VERSION = 'V1p1beta1' VERSION = 'V1p1beta1'
REVISION = '20190114' REVISION = '20190201'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -454,8 +454,8 @@ module Google
# 16000 is optimal. For best results, set the sampling rate of the audio # 16000 is optimal. For best results, set the sampling rate of the audio
# source to 16000 Hz. If that's not possible, use the native sample rate of # source to 16000 Hz. If that's not possible, use the native sample rate of
# the audio source (instead of re-sampling). # the audio source (instead of re-sampling).
# This field is optional for `FLAC` and `WAV` audio files and required # This field is optional for `FLAC`, `WAV`. and 'MP3' audio files, and is
# for all other audio formats. For details, see AudioEncoding. # required for all other audio formats. For details, see AudioEncoding.
# Corresponds to the JSON property `sampleRateHertz` # Corresponds to the JSON property `sampleRateHertz`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :sample_rate_hertz attr_accessor :sample_rate_hertz

View File

@ -20,7 +20,7 @@ require 'google/apis/errors'
module Google module Google
module Apis module Apis
module SpeechV1p1beta1 module SpeechV1p1beta1
# Cloud Speech API # Cloud Speech-to-Text API
# #
# Converts audio to text by applying powerful neural network models. # Converts audio to text by applying powerful neural network models.
# #

View File

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

View File

@ -23,8 +23,9 @@ module Google
module StoragetransferV1 module StoragetransferV1
# AWS access key (see # AWS access key (see
# [AWS Security Credentials](http://docs.aws.amazon.com/general/latest/gr/aws- # [AWS Security
# security-credentials.html)). # Credentials](http://docs.aws.amazon.com/general/latest/gr/aws-security-
# credentials.html)).
class AwsAccessKey class AwsAccessKey
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -57,15 +58,17 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# AWS access key (see # AWS access key (see
# [AWS Security Credentials](http://docs.aws.amazon.com/general/latest/gr/aws- # [AWS Security
# security-credentials.html)). # Credentials](http://docs.aws.amazon.com/general/latest/gr/aws-security-
# credentials.html)).
# Corresponds to the JSON property `awsAccessKey` # Corresponds to the JSON property `awsAccessKey`
# @return [Google::Apis::StoragetransferV1::AwsAccessKey] # @return [Google::Apis::StoragetransferV1::AwsAccessKey]
attr_accessor :aws_access_key attr_accessor :aws_access_key
# S3 Bucket name (see # S3 Bucket name (see
# [Creating a bucket](http://docs.aws.amazon.com/AmazonS3/latest/dev/create- # [Creating a
# bucket-get-location-example.html)). # bucket](http://docs.aws.amazon.com/AmazonS3/latest/dev/create-bucket-get-
# location-example.html)).
# Required. # Required.
# Corresponds to the JSON property `bucketName` # Corresponds to the JSON property `bucketName`
# @return [String] # @return [String]
@ -363,9 +366,10 @@ module Google
# If `includePrefixes` is specified, objects that satisfy the object # If `includePrefixes` is specified, objects that satisfy the object
# conditions must have names that start with one of the `includePrefixes` # conditions must have names that start with one of the `includePrefixes`
# and that do not start with any of the `excludePrefixes`. If `includePrefixes` # and that do not start with any of the `excludePrefixes`. If
# is not specified, all objects except those that have names starting with # `includePrefixes` is not specified, all objects except those that have
# one of the `excludePrefixes` must satisfy the object conditions. # names starting with one of the `excludePrefixes` must satisfy the object
# conditions.
# Requirements: # Requirements:
# * Each include-prefix and exclude-prefix can contain any sequence of # * Each include-prefix and exclude-prefix can contain any sequence of
# Unicode characters, of max length 1024 bytes when UTF8-encoded, and # Unicode characters, of max length 1024 bytes when UTF8-encoded, and
@ -851,7 +855,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# The ID of the Google Cloud Platform Console project that owns the job. # The ID of the Google Cloud Platform Project that owns the job.
# Corresponds to the JSON property `projectId` # Corresponds to the JSON property `projectId`
# @return [String] # @return [String]
attr_accessor :project_id attr_accessor :project_id
@ -918,7 +922,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# The ID of the Google Cloud Platform Console project that owns the operation. # The ID of the Google Cloud Platform Project that owns the operation.
# Required. # Required.
# Corresponds to the JSON property `projectId` # Corresponds to the JSON property `projectId`
# @return [String] # @return [String]