Autogenerated update (2020-08-27)

Update:
- androidenterprise_v1
- appsmarket_v2
- content_v2_1
- dlp_v2
- drive_v2
- drive_v3
- genomics_v2alpha1
- groupsmigration_v1
- osconfig_v1
- osconfig_v1beta
This commit is contained in:
Google APIs 2020-08-27 00:39:26 +00:00
parent f06309c6ba
commit 5874aa5aa4
28 changed files with 11470 additions and 32 deletions

View File

@ -53963,6 +53963,8 @@
"/content:v2.1/Product/shippingLength": shipping_length "/content:v2.1/Product/shippingLength": shipping_length
"/content:v2.1/Product/shippingWeight": shipping_weight "/content:v2.1/Product/shippingWeight": shipping_weight
"/content:v2.1/Product/shippingWidth": shipping_width "/content:v2.1/Product/shippingWidth": shipping_width
"/content:v2.1/Product/shoppingAdsExcludedCountries": shopping_ads_excluded_countries
"/content:v2.1/Product/shoppingAdsExcludedCountries/shopping_ads_excluded_country": shopping_ads_excluded_country
"/content:v2.1/Product/sizeSystem": size_system "/content:v2.1/Product/sizeSystem": size_system
"/content:v2.1/Product/sizeType": size_type "/content:v2.1/Product/sizeType": size_type
"/content:v2.1/Product/sizes": sizes "/content:v2.1/Product/sizes": sizes
@ -54012,15 +54014,23 @@
"/content:v2.1/ProductStatus/productId": product_id "/content:v2.1/ProductStatus/productId": product_id
"/content:v2.1/ProductStatus/title": title "/content:v2.1/ProductStatus/title": title
"/content:v2.1/ProductStatusDestinationStatus": product_status_destination_status "/content:v2.1/ProductStatusDestinationStatus": product_status_destination_status
"/content:v2.1/ProductStatusDestinationStatus/approvedCountries": approved_countries
"/content:v2.1/ProductStatusDestinationStatus/approvedCountries/approved_country": approved_country
"/content:v2.1/ProductStatusDestinationStatus/approvedCountrys": approved_countrys "/content:v2.1/ProductStatusDestinationStatus/approvedCountrys": approved_countrys
"/content:v2.1/ProductStatusDestinationStatus/approvedCountrys/approved_country": approved_country "/content:v2.1/ProductStatusDestinationStatus/approvedCountrys/approved_country": approved_country
"/content:v2.1/ProductStatusDestinationStatus/destination": destination "/content:v2.1/ProductStatusDestinationStatus/destination": destination
"/content:v2.1/ProductStatusDestinationStatus/disapprovedCountries": disapproved_countries
"/content:v2.1/ProductStatusDestinationStatus/disapprovedCountries/disapproved_country": disapproved_country
"/content:v2.1/ProductStatusDestinationStatus/disapprovedCountrys": disapproved_countrys "/content:v2.1/ProductStatusDestinationStatus/disapprovedCountrys": disapproved_countrys
"/content:v2.1/ProductStatusDestinationStatus/disapprovedCountrys/disapproved_country": disapproved_country "/content:v2.1/ProductStatusDestinationStatus/disapprovedCountrys/disapproved_country": disapproved_country
"/content:v2.1/ProductStatusDestinationStatus/pendingCountries": pending_countries
"/content:v2.1/ProductStatusDestinationStatus/pendingCountries/pending_country": pending_country
"/content:v2.1/ProductStatusDestinationStatus/pendingCountrys": pending_countrys "/content:v2.1/ProductStatusDestinationStatus/pendingCountrys": pending_countrys
"/content:v2.1/ProductStatusDestinationStatus/pendingCountrys/pending_country": pending_country "/content:v2.1/ProductStatusDestinationStatus/pendingCountrys/pending_country": pending_country
"/content:v2.1/ProductStatusDestinationStatus/status": status "/content:v2.1/ProductStatusDestinationStatus/status": status
"/content:v2.1/ProductStatusItemLevelIssue": product_status_item_level_issue "/content:v2.1/ProductStatusItemLevelIssue": product_status_item_level_issue
"/content:v2.1/ProductStatusItemLevelIssue/applicableCountries": applicable_countries
"/content:v2.1/ProductStatusItemLevelIssue/applicableCountries/applicable_country": applicable_country
"/content:v2.1/ProductStatusItemLevelIssue/applicableCountrys": applicable_countrys "/content:v2.1/ProductStatusItemLevelIssue/applicableCountrys": applicable_countrys
"/content:v2.1/ProductStatusItemLevelIssue/applicableCountrys/applicable_country": applicable_country "/content:v2.1/ProductStatusItemLevelIssue/applicableCountrys/applicable_country": applicable_country
"/content:v2.1/ProductStatusItemLevelIssue/attributeName": attribute_name "/content:v2.1/ProductStatusItemLevelIssue/attributeName": attribute_name
@ -93113,10 +93123,12 @@
"/drive:v2/drive.files.copy/timedTextTrackName": timed_text_track_name "/drive:v2/drive.files.copy/timedTextTrackName": timed_text_track_name
"/drive:v2/drive.files.copy/visibility": visibility "/drive:v2/drive.files.copy/visibility": visibility
"/drive:v2/drive.files.delete": delete_file "/drive:v2/drive.files.delete": delete_file
"/drive:v2/drive.files.delete/enforceSingleParent": enforce_single_parent
"/drive:v2/drive.files.delete/fileId": file_id "/drive:v2/drive.files.delete/fileId": file_id
"/drive:v2/drive.files.delete/supportsAllDrives": supports_all_drives "/drive:v2/drive.files.delete/supportsAllDrives": supports_all_drives
"/drive:v2/drive.files.delete/supportsTeamDrives": supports_team_drives "/drive:v2/drive.files.delete/supportsTeamDrives": supports_team_drives
"/drive:v2/drive.files.emptyTrash": empty_trash "/drive:v2/drive.files.emptyTrash": empty_trash
"/drive:v2/drive.files.emptyTrash/enforceSingleParent": enforce_single_parent
"/drive:v2/drive.files.export": export_file "/drive:v2/drive.files.export": export_file
"/drive:v2/drive.files.export/fileId": file_id "/drive:v2/drive.files.export/fileId": file_id
"/drive:v2/drive.files.export/mimeType": mime_type "/drive:v2/drive.files.export/mimeType": mime_type
@ -93860,10 +93872,12 @@
"/drive:v3/drive.files.create/supportsTeamDrives": supports_team_drives "/drive:v3/drive.files.create/supportsTeamDrives": supports_team_drives
"/drive:v3/drive.files.create/useContentAsIndexableText": use_content_as_indexable_text "/drive:v3/drive.files.create/useContentAsIndexableText": use_content_as_indexable_text
"/drive:v3/drive.files.delete": delete_file "/drive:v3/drive.files.delete": delete_file
"/drive:v3/drive.files.delete/enforceSingleParent": enforce_single_parent
"/drive:v3/drive.files.delete/fileId": file_id "/drive:v3/drive.files.delete/fileId": file_id
"/drive:v3/drive.files.delete/supportsAllDrives": supports_all_drives "/drive:v3/drive.files.delete/supportsAllDrives": supports_all_drives
"/drive:v3/drive.files.delete/supportsTeamDrives": supports_team_drives "/drive:v3/drive.files.delete/supportsTeamDrives": supports_team_drives
"/drive:v3/drive.files.emptyTrash": empty_file_trash "/drive:v3/drive.files.emptyTrash": empty_file_trash
"/drive:v3/drive.files.emptyTrash/enforceSingleParent": enforce_single_parent
"/drive:v3/drive.files.export": export_file "/drive:v3/drive.files.export": export_file
"/drive:v3/drive.files.export/fileId": file_id "/drive:v3/drive.files.export/fileId": file_id
"/drive:v3/drive.files.export/mimeType": mime_type "/drive:v3/drive.files.export/mimeType": mime_type

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/android/work/play/emm-api # @see https://developers.google.com/android/work/play/emm-api
module AndroidenterpriseV1 module AndroidenterpriseV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200801' REVISION = '20200825'
# Manage corporate Android devices # Manage corporate Android devices
AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise' AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise'

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/apps-marketplace # @see https://developers.google.com/apps-marketplace
module AppsmarketV2 module AppsmarketV2
VERSION = 'V2' VERSION = 'V2'
REVISION = '20200817' REVISION = '20200824'
# View your installed application's licensing information # View your installed application's licensing information
AUTH_APPSMARKETPLACE_LICENSE = 'https://www.googleapis.com/auth/appsmarketplace.license' AUTH_APPSMARKETPLACE_LICENSE = 'https://www.googleapis.com/auth/appsmarketplace.license'

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/shopping-content # @see https://developers.google.com/shopping-content
module ContentV2_1 module ContentV2_1
VERSION = 'V2_1' VERSION = 'V2_1'
REVISION = '20200805' REVISION = '20200821'
# Manage your product listings and accounts for Google Shopping # Manage your product listings and accounts for Google Shopping
AUTH_CONTENT = 'https://www.googleapis.com/auth/content' AUTH_CONTENT = 'https://www.googleapis.com/auth/content'

View File

@ -8970,6 +8970,13 @@ module Google
# @return [Google::Apis::ContentV2_1::ProductShippingDimension] # @return [Google::Apis::ContentV2_1::ProductShippingDimension]
attr_accessor :shipping_width attr_accessor :shipping_width
# List of country codes (ISO 3166-1 alpha-2) to exclude the offer from Shopping
# Ads destination. Countries from this list are removed from countries
# configured in MC feed settings.
# Corresponds to the JSON property `shoppingAdsExcludedCountries`
# @return [Array<String>]
attr_accessor :shopping_ads_excluded_countries
# System in which the size is specified. Recommended for apparel items. # System in which the size is specified. Recommended for apparel items.
# Corresponds to the JSON property `sizeSystem` # Corresponds to the JSON property `sizeSystem`
# @return [String] # @return [String]
@ -9112,6 +9119,7 @@ module Google
@shipping_length = args[:shipping_length] if args.key?(:shipping_length) @shipping_length = args[:shipping_length] if args.key?(:shipping_length)
@shipping_weight = args[:shipping_weight] if args.key?(:shipping_weight) @shipping_weight = args[:shipping_weight] if args.key?(:shipping_weight)
@shipping_width = args[:shipping_width] if args.key?(:shipping_width) @shipping_width = args[:shipping_width] if args.key?(:shipping_width)
@shopping_ads_excluded_countries = args[:shopping_ads_excluded_countries] if args.key?(:shopping_ads_excluded_countries)
@size_system = args[:size_system] if args.key?(:size_system) @size_system = args[:size_system] if args.key?(:size_system)
@size_type = args[:size_type] if args.key?(:size_type) @size_type = args[:size_type] if args.key?(:size_type)
@sizes = args[:sizes] if args.key?(:sizes) @sizes = args[:sizes] if args.key?(:sizes)
@ -9372,9 +9380,9 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# List of country codes (ISO 3166-1 alpha-2) where the offer is approved. # List of country codes (ISO 3166-1 alpha-2) where the offer is approved.
# Corresponds to the JSON property `approvedCountrys` # Corresponds to the JSON property `approvedCountries`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :approved_countrys attr_accessor :approved_countries
# The name of the destination # The name of the destination
# Corresponds to the JSON property `destination` # Corresponds to the JSON property `destination`
@ -9382,14 +9390,14 @@ module Google
attr_accessor :destination attr_accessor :destination
# List of country codes (ISO 3166-1 alpha-2) where the offer is disapproved. # List of country codes (ISO 3166-1 alpha-2) where the offer is disapproved.
# Corresponds to the JSON property `disapprovedCountrys` # Corresponds to the JSON property `disapprovedCountries`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :disapproved_countrys attr_accessor :disapproved_countries
# List of country codes (ISO 3166-1 alpha-2) where the offer is pending approval. # List of country codes (ISO 3166-1 alpha-2) where the offer is pending approval.
# Corresponds to the JSON property `pendingCountrys` # Corresponds to the JSON property `pendingCountries`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :pending_countrys attr_accessor :pending_countries
# Destination approval status in `targetCountry` of the offer. # Destination approval status in `targetCountry` of the offer.
# Corresponds to the JSON property `status` # Corresponds to the JSON property `status`
@ -9402,10 +9410,10 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@approved_countrys = args[:approved_countrys] if args.key?(:approved_countrys) @approved_countries = args[:approved_countries] if args.key?(:approved_countries)
@destination = args[:destination] if args.key?(:destination) @destination = args[:destination] if args.key?(:destination)
@disapproved_countrys = args[:disapproved_countrys] if args.key?(:disapproved_countrys) @disapproved_countries = args[:disapproved_countries] if args.key?(:disapproved_countries)
@pending_countrys = args[:pending_countrys] if args.key?(:pending_countrys) @pending_countries = args[:pending_countries] if args.key?(:pending_countries)
@status = args[:status] if args.key?(:status) @status = args[:status] if args.key?(:status)
end end
end end
@ -9415,9 +9423,9 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# List of country codes (ISO 3166-1 alpha-2) where issue applies to the offer. # List of country codes (ISO 3166-1 alpha-2) where issue applies to the offer.
# Corresponds to the JSON property `applicableCountrys` # Corresponds to the JSON property `applicableCountries`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :applicable_countrys attr_accessor :applicable_countries
# The attribute's name, if the issue is caused by a single attribute. # The attribute's name, if the issue is caused by a single attribute.
# Corresponds to the JSON property `attributeName` # Corresponds to the JSON property `attributeName`
@ -9465,7 +9473,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@applicable_countrys = args[:applicable_countrys] if args.key?(:applicable_countrys) @applicable_countries = args[:applicable_countries] if args.key?(:applicable_countries)
@attribute_name = args[:attribute_name] if args.key?(:attribute_name) @attribute_name = args[:attribute_name] if args.key?(:attribute_name)
@code = args[:code] if args.key?(:code) @code = args[:code] if args.key?(:code)
@description = args[:description] if args.key?(:description) @description = args[:description] if args.key?(:description)

View File

@ -4154,6 +4154,7 @@ module Google
property :shipping_width, as: 'shippingWidth', class: Google::Apis::ContentV2_1::ProductShippingDimension, decorator: Google::Apis::ContentV2_1::ProductShippingDimension::Representation property :shipping_width, as: 'shippingWidth', class: Google::Apis::ContentV2_1::ProductShippingDimension, decorator: Google::Apis::ContentV2_1::ProductShippingDimension::Representation
collection :shopping_ads_excluded_countries, as: 'shoppingAdsExcludedCountries'
property :size_system, as: 'sizeSystem' property :size_system, as: 'sizeSystem'
property :size_type, as: 'sizeType' property :size_type, as: 'sizeType'
collection :sizes, as: 'sizes' collection :sizes, as: 'sizes'
@ -4244,10 +4245,10 @@ module Google
class ProductStatusDestinationStatus class ProductStatusDestinationStatus
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
collection :approved_countrys, as: 'approvedCountrys' collection :approved_countries, as: 'approvedCountries'
property :destination, as: 'destination' property :destination, as: 'destination'
collection :disapproved_countrys, as: 'disapprovedCountrys' collection :disapproved_countries, as: 'disapprovedCountries'
collection :pending_countrys, as: 'pendingCountrys' collection :pending_countries, as: 'pendingCountries'
property :status, as: 'status' property :status, as: 'status'
end end
end end
@ -4255,7 +4256,7 @@ module Google
class ProductStatusItemLevelIssue class ProductStatusItemLevelIssue
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
collection :applicable_countrys, as: 'applicableCountrys' collection :applicable_countries, as: 'applicableCountries'
property :attribute_name, as: 'attributeName' property :attribute_name, as: 'attributeName'
property :code, as: 'code' property :code, as: 'code'
property :description, as: 'description' property :description, as: 'description'

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 = '20200809' REVISION = '20200821'
# 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

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/drive/ # @see https://developers.google.com/drive/
module DriveV2 module DriveV2
VERSION = 'V2' VERSION = 'V2'
REVISION = '20200811' REVISION = '20200813'
# See, edit, create, and delete all of your Google Drive files # See, edit, create, and delete all of your Google Drive files
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive' AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'

View File

@ -1217,6 +1217,11 @@ module Google
# user must own the file or be an organizer on the parent for shared drive files. # user must own the file or be an organizer on the parent for shared drive files.
# @param [String] file_id # @param [String] file_id
# The ID of the file to delete. # The ID of the file to delete.
# @param [Boolean] enforce_single_parent
# Set to true to opt in to API behavior that aims for all items to have exactly
# one parent. This parameter will only take effect if the item is not in a
# shared drive. If an item's last parent is deleted but the item itself is not,
# the item will be placed under its owner's root.
# @param [Boolean] supports_all_drives # @param [Boolean] supports_all_drives
# Whether the requesting application supports both My Drives and shared drives. # Whether the requesting application supports both My Drives and shared drives.
# @param [Boolean] supports_team_drives # @param [Boolean] supports_team_drives
@ -1240,9 +1245,10 @@ 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 delete_file(file_id, supports_all_drives: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def delete_file(file_id, enforce_single_parent: nil, supports_all_drives: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, 'files/{fileId}', options) command = make_simple_command(:delete, 'files/{fileId}', options)
command.params['fileId'] = file_id unless file_id.nil? command.params['fileId'] = file_id unless file_id.nil?
command.query['enforceSingleParent'] = enforce_single_parent unless enforce_single_parent.nil?
command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil? command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil? command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
@ -1252,6 +1258,11 @@ module Google
end end
# Permanently deletes all of the user's trashed files. # Permanently deletes all of the user's trashed files.
# @param [Boolean] enforce_single_parent
# Set to true to opt in to API behavior that aims for all items to have exactly
# one parent. This parameter will only take effect if the item is not in a
# shared drive. If an item's last parent is deleted but the item itself is not,
# the item will be placed under its owner's root.
# @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
@ -1271,8 +1282,9 @@ 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 empty_trash(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def empty_trash(enforce_single_parent: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, 'files/trash', options) command = make_simple_command(:delete, 'files/trash', options)
command.query['enforceSingleParent'] = enforce_single_parent unless enforce_single_parent.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

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/drive/ # @see https://developers.google.com/drive/
module DriveV3 module DriveV3
VERSION = 'V3' VERSION = 'V3'
REVISION = '20200811' REVISION = '20200813'
# See, edit, create, and delete all of your Google Drive files # See, edit, create, and delete all of your Google Drive files
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive' AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'

View File

@ -927,6 +927,11 @@ module Google
# deleted. # deleted.
# @param [String] file_id # @param [String] file_id
# The ID of the file. # The ID of the file.
# @param [Boolean] enforce_single_parent
# Set to true to opt in to API behavior that aims for all items to have exactly
# one parent. This parameter will only take effect if the item is not in a
# shared drive. If an item's last parent is deleted but the item itself is not,
# the item will be placed under its owner's root.
# @param [Boolean] supports_all_drives # @param [Boolean] supports_all_drives
# Whether the requesting application supports both My Drives and shared drives. # Whether the requesting application supports both My Drives and shared drives.
# @param [Boolean] supports_team_drives # @param [Boolean] supports_team_drives
@ -950,9 +955,10 @@ 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 delete_file(file_id, supports_all_drives: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def delete_file(file_id, enforce_single_parent: nil, supports_all_drives: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, 'files/{fileId}', options) command = make_simple_command(:delete, 'files/{fileId}', options)
command.params['fileId'] = file_id unless file_id.nil? command.params['fileId'] = file_id unless file_id.nil?
command.query['enforceSingleParent'] = enforce_single_parent unless enforce_single_parent.nil?
command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil? command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil? command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
@ -962,6 +968,11 @@ module Google
end end
# Permanently deletes all of the user's trashed files. # Permanently deletes all of the user's trashed files.
# @param [Boolean] enforce_single_parent
# Set to true to opt in to API behavior that aims for all items to have exactly
# one parent. This parameter will only take effect if the item is not in a
# shared drive. If an item's last parent is deleted but the item itself is not,
# the item will be placed under its owner's root.
# @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
@ -981,8 +992,9 @@ 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 empty_file_trash(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def empty_file_trash(enforce_single_parent: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, 'files/trash', options) command = make_simple_command(:delete, 'files/trash', options)
command.query['enforceSingleParent'] = enforce_single_parent unless enforce_single_parent.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

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/genomics # @see https://cloud.google.com/genomics
module GenomicsV2alpha1 module GenomicsV2alpha1
VERSION = 'V2alpha1' VERSION = 'V2alpha1'
REVISION = '20200804' REVISION = '20200825'
# 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

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/google-apps/groups-migration/ # @see https://developers.google.com/google-apps/groups-migration/
module GroupsmigrationV1 module GroupsmigrationV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200813' REVISION = '20200820'
# Manage messages in groups on your domain # Manage messages in groups on your domain
AUTH_APPS_GROUPS_MIGRATION = 'https://www.googleapis.com/auth/apps.groups.migration' AUTH_APPS_GROUPS_MIGRATION = 'https://www.googleapis.com/auth/apps.groups.migration'

View File

@ -44,8 +44,8 @@ module Google
attr_accessor :quota_user attr_accessor :quota_user
def initialize def initialize
super('https://www.googleapis.com/', '') super('https://groupsmigration.googleapis.com/', '')
@batch_path = 'batch/groupsmigration/v1' @batch_path = 'batch'
end end
# Inserts a new mail into the archive of the Google group. # Inserts a new mail into the archive of the Google group.

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/ # @see https://cloud.google.com/
module OsconfigV1 module OsconfigV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200807' REVISION = '20200824'
# 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

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/ # @see https://cloud.google.com/
module OsconfigV1beta module OsconfigV1beta
VERSION = 'V1beta' VERSION = 'V1beta'
REVISION = '20200807' REVISION = '20200824'
# 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

@ -0,0 +1,37 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/site_verification_v1/service.rb'
require 'google/apis/site_verification_v1/classes.rb'
require 'google/apis/site_verification_v1/representations.rb'
module Google
module Apis
# Google Site Verification API
#
# Verifies ownership of websites or domains with Google.
#
# @see https://developers.google.com/site-verification/
module SiteVerificationV1
VERSION = 'V1'
REVISION = '20191119'
# Manage the list of sites and domains you control
AUTH_SITEVERIFICATION = 'https://www.googleapis.com/auth/siteverification'
# Manage your new site verifications with Google
AUTH_SITEVERIFICATION_VERIFY_ONLY = 'https://www.googleapis.com/auth/siteverification.verify_only'
end
end
end

View File

@ -0,0 +1,185 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module SiteVerificationV1
#
class GetWebResourceTokenRequest
include Google::Apis::Core::Hashable
# The site for which a verification token will be generated.
# Corresponds to the JSON property `site`
# @return [Google::Apis::SiteVerificationV1::GetWebResourceTokenRequest::Site]
attr_accessor :site
# The verification method that will be used to verify this site. For sites, '
# FILE' or 'META' methods may be used. For domains, only 'DNS' may be used.
# Corresponds to the JSON property `verificationMethod`
# @return [String]
attr_accessor :verification_method
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@site = args[:site] if args.key?(:site)
@verification_method = args[:verification_method] if args.key?(:verification_method)
end
# The site for which a verification token will be generated.
class Site
include Google::Apis::Core::Hashable
# The site identifier. If the type is set to SITE, the identifier is a URL. If
# the type is set to INET_DOMAIN, the site identifier is a domain name.
# Corresponds to the JSON property `identifier`
# @return [String]
attr_accessor :identifier
# The type of resource to be verified. Can be SITE or INET_DOMAIN (domain name).
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@identifier = args[:identifier] if args.key?(:identifier)
@type = args[:type] if args.key?(:type)
end
end
end
#
class GetWebResourceTokenResponse
include Google::Apis::Core::Hashable
# The verification method to use in conjunction with this token. For FILE, the
# token should be placed in the top-level directory of the site, stored inside a
# file of the same name. For META, the token should be placed in the HEAD tag of
# the default page that is loaded for the site. For DNS, the token should be
# placed in a TXT record of the domain.
# Corresponds to the JSON property `method`
# @return [String]
attr_accessor :verification_method
# The verification token. The token must be placed appropriately in order for
# verification to succeed.
# Corresponds to the JSON property `token`
# @return [String]
attr_accessor :token
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@verification_method = args[:verification_method] if args.key?(:verification_method)
@token = args[:token] if args.key?(:token)
end
end
#
class ListWebResourceResponse
include Google::Apis::Core::Hashable
# The list of sites that are owned by the authenticated user.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::SiteVerificationV1::SiteVerificationWebResourceResource>]
attr_accessor :items
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@items = args[:items] if args.key?(:items)
end
end
#
class SiteVerificationWebResourceResource
include Google::Apis::Core::Hashable
# The string used to identify this site. This value should be used in the "id"
# portion of the REST URL for the Get, Update, and Delete operations.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# The email addresses of all verified owners.
# Corresponds to the JSON property `owners`
# @return [Array<String>]
attr_accessor :owners
# The address and type of a site that is verified or will be verified.
# Corresponds to the JSON property `site`
# @return [Google::Apis::SiteVerificationV1::SiteVerificationWebResourceResource::Site]
attr_accessor :site
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@id = args[:id] if args.key?(:id)
@owners = args[:owners] if args.key?(:owners)
@site = args[:site] if args.key?(:site)
end
# The address and type of a site that is verified or will be verified.
class Site
include Google::Apis::Core::Hashable
# The site identifier. If the type is set to SITE, the identifier is a URL. If
# the type is set to INET_DOMAIN, the site identifier is a domain name.
# Corresponds to the JSON property `identifier`
# @return [String]
attr_accessor :identifier
# The site type. Can be SITE or INET_DOMAIN (domain name).
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@identifier = args[:identifier] if args.key?(:identifier)
@type = args[:type] if args.key?(:type)
end
end
end
end
end
end

View File

@ -0,0 +1,113 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module SiteVerificationV1
class GetWebResourceTokenRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
class Site
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class GetWebResourceTokenResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListWebResourceResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SiteVerificationWebResourceResource
class Representation < Google::Apis::Core::JsonRepresentation; end
class Site
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class GetWebResourceTokenRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :site, as: 'site', class: Google::Apis::SiteVerificationV1::GetWebResourceTokenRequest::Site, decorator: Google::Apis::SiteVerificationV1::GetWebResourceTokenRequest::Site::Representation
property :verification_method, as: 'verificationMethod'
end
class Site
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :identifier, as: 'identifier'
property :type, as: 'type'
end
end
end
class GetWebResourceTokenResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :verification_method, as: 'method'
property :token, as: 'token'
end
end
class ListWebResourceResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :items, as: 'items', class: Google::Apis::SiteVerificationV1::SiteVerificationWebResourceResource, decorator: Google::Apis::SiteVerificationV1::SiteVerificationWebResourceResource::Representation
end
end
class SiteVerificationWebResourceResource
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
collection :owners, as: 'owners'
property :site, as: 'site', class: Google::Apis::SiteVerificationV1::SiteVerificationWebResourceResource::Site, decorator: Google::Apis::SiteVerificationV1::SiteVerificationWebResourceResource::Site::Representation
end
class Site
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :identifier, as: 'identifier'
property :type, as: 'type'
end
end
end
end
end
end

View File

@ -0,0 +1,300 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module SiteVerificationV1
# Google Site Verification API
#
# Verifies ownership of websites or domains with Google.
#
# @example
# require 'google/apis/site_verification_v1'
#
# SiteVerification = Google::Apis::SiteVerificationV1 # Alias the module
# service = SiteVerification::SiteVerificationService.new
#
# @see https://developers.google.com/site-verification/
class SiteVerificationService < Google::Apis::Core::BaseService
# @return [String]
# API key. Your API key identifies your project and provides you with API access,
# quota, and reports. Required unless you provide an OAuth 2.0 token.
attr_accessor :key
# @return [String]
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
attr_accessor :quota_user
# @return [String]
# Deprecated. Please use quotaUser instead.
attr_accessor :user_ip
def initialize
super('https://www.googleapis.com/', 'siteVerification/v1/')
@batch_path = 'batch/siteVerification/v1'
end
# Relinquish ownership of a website or domain.
# @param [String] id
# The id of a verified site or domain.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [NilClass] No result returned for this method
# @yieldparam err [StandardError] error object if request failed
#
# @return [void]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_web_resource(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, 'webResource/{id}', options)
command.params['id'] = id unless id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Get the most current data for a website or domain.
# @param [String] id
# The id of a verified site or domain.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::SiteVerificationV1::SiteVerificationWebResourceResource] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SiteVerificationV1::SiteVerificationWebResourceResource]
#
# @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_web_resource(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'webResource/{id}', options)
command.response_representation = Google::Apis::SiteVerificationV1::SiteVerificationWebResourceResource::Representation
command.response_class = Google::Apis::SiteVerificationV1::SiteVerificationWebResourceResource
command.params['id'] = id unless id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Get a verification token for placing on a website or domain.
# @param [Google::Apis::SiteVerificationV1::GetWebResourceTokenRequest] get_web_resource_token_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::SiteVerificationV1::GetWebResourceTokenResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SiteVerificationV1::GetWebResourceTokenResponse]
#
# @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_web_resource_token(get_web_resource_token_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'token', options)
command.request_representation = Google::Apis::SiteVerificationV1::GetWebResourceTokenRequest::Representation
command.request_object = get_web_resource_token_request_object
command.response_representation = Google::Apis::SiteVerificationV1::GetWebResourceTokenResponse::Representation
command.response_class = Google::Apis::SiteVerificationV1::GetWebResourceTokenResponse
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Attempt verification of a website or domain.
# @param [String] verification_method
# The method to use for verifying a site or domain.
# @param [Google::Apis::SiteVerificationV1::SiteVerificationWebResourceResource] site_verification_web_resource_resource_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::SiteVerificationV1::SiteVerificationWebResourceResource] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SiteVerificationV1::SiteVerificationWebResourceResource]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def insert_web_resource(verification_method, site_verification_web_resource_resource_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'webResource', options)
command.request_representation = Google::Apis::SiteVerificationV1::SiteVerificationWebResourceResource::Representation
command.request_object = site_verification_web_resource_resource_object
command.response_representation = Google::Apis::SiteVerificationV1::SiteVerificationWebResourceResource::Representation
command.response_class = Google::Apis::SiteVerificationV1::SiteVerificationWebResourceResource
command.query['verificationMethod'] = verification_method unless verification_method.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Get the list of your verified websites and domains.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::SiteVerificationV1::ListWebResourceResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SiteVerificationV1::ListWebResourceResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_web_resources(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'webResource', options)
command.response_representation = Google::Apis::SiteVerificationV1::ListWebResourceResponse::Representation
command.response_class = Google::Apis::SiteVerificationV1::ListWebResourceResponse
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Modify the list of owners for your website or domain. This method supports
# patch semantics.
# @param [String] id
# The id of a verified site or domain.
# @param [Google::Apis::SiteVerificationV1::SiteVerificationWebResourceResource] site_verification_web_resource_resource_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::SiteVerificationV1::SiteVerificationWebResourceResource] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SiteVerificationV1::SiteVerificationWebResourceResource]
#
# @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_web_resource(id, site_verification_web_resource_resource_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, 'webResource/{id}', options)
command.request_representation = Google::Apis::SiteVerificationV1::SiteVerificationWebResourceResource::Representation
command.request_object = site_verification_web_resource_resource_object
command.response_representation = Google::Apis::SiteVerificationV1::SiteVerificationWebResourceResource::Representation
command.response_class = Google::Apis::SiteVerificationV1::SiteVerificationWebResourceResource
command.params['id'] = id unless id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Modify the list of owners for your website or domain.
# @param [String] id
# The id of a verified site or domain.
# @param [Google::Apis::SiteVerificationV1::SiteVerificationWebResourceResource] site_verification_web_resource_resource_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::SiteVerificationV1::SiteVerificationWebResourceResource] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SiteVerificationV1::SiteVerificationWebResourceResource]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def update_web_resource(id, site_verification_web_resource_resource_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, 'webResource/{id}', options)
command.request_representation = Google::Apis::SiteVerificationV1::SiteVerificationWebResourceResource::Representation
command.request_object = site_verification_web_resource_resource_object
command.response_representation = Google::Apis::SiteVerificationV1::SiteVerificationWebResourceResource::Representation
command.response_class = Google::Apis::SiteVerificationV1::SiteVerificationWebResourceResource
command.params['id'] = id unless id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
protected
def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
end
end
end
end
end

View File

@ -0,0 +1,52 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/tagmanager_v1/service.rb'
require 'google/apis/tagmanager_v1/classes.rb'
require 'google/apis/tagmanager_v1/representations.rb'
module Google
module Apis
# Tag Manager API
#
# This API allows clients to access and modify container and tag configuration.
#
# @see https://developers.google.com/tag-manager
module TagmanagerV1
VERSION = 'V1'
REVISION = '20200826'
# Delete your Google Tag Manager containers
AUTH_TAGMANAGER_DELETE_CONTAINERS = 'https://www.googleapis.com/auth/tagmanager.delete.containers'
# Manage your Google Tag Manager container and its subcomponents, excluding versioning and publishing
AUTH_TAGMANAGER_EDIT_CONTAINERS = 'https://www.googleapis.com/auth/tagmanager.edit.containers'
# Manage your Google Tag Manager container versions
AUTH_TAGMANAGER_EDIT_CONTAINERVERSIONS = 'https://www.googleapis.com/auth/tagmanager.edit.containerversions'
# View and manage your Google Tag Manager accounts
AUTH_TAGMANAGER_MANAGE_ACCOUNTS = 'https://www.googleapis.com/auth/tagmanager.manage.accounts'
# Manage user permissions of your Google Tag Manager account and container
AUTH_TAGMANAGER_MANAGE_USERS = 'https://www.googleapis.com/auth/tagmanager.manage.users'
# Publish your Google Tag Manager container versions
AUTH_TAGMANAGER_PUBLISH = 'https://www.googleapis.com/auth/tagmanager.publish'
# View your Google Tag Manager container and its subcomponents
AUTH_TAGMANAGER_READONLY = 'https://www.googleapis.com/auth/tagmanager.readonly'
end
end
end

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,630 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module TagmanagerV1
class Account
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AccountAccess
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Condition
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Container
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ContainerAccess
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ContainerVersion
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ContainerVersionHeader
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CreateContainerVersionRequestVersionOptions
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CreateContainerVersionResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Environment
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Folder
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class FolderEntities
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListAccountUsersResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListAccountsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListContainerVersionsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListContainersResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListEnvironmentsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListFoldersResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListTagsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListTriggersResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListVariablesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Macro
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Parameter
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PublishContainerVersionResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Rule
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SetupTag
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Tag
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TeardownTag
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Trigger
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UserAccess
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Variable
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Account
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :account_id, as: 'accountId'
property :fingerprint, as: 'fingerprint'
property :name, as: 'name'
property :share_data, as: 'shareData'
end
end
class AccountAccess
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :permission, as: 'permission'
end
end
class Condition
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :parameter, as: 'parameter', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation
property :type, as: 'type'
end
end
class Container
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :account_id, as: 'accountId'
property :container_id, as: 'containerId'
collection :domain_name, as: 'domainName'
collection :enabled_built_in_variable, as: 'enabledBuiltInVariable'
property :fingerprint, as: 'fingerprint'
property :name, as: 'name'
property :notes, as: 'notes'
property :public_id, as: 'publicId'
property :time_zone_country_id, as: 'timeZoneCountryId'
property :time_zone_id, as: 'timeZoneId'
collection :usage_context, as: 'usageContext'
end
end
class ContainerAccess
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :container_id, as: 'containerId'
collection :permission, as: 'permission'
end
end
class ContainerVersion
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :account_id, as: 'accountId'
property :container, as: 'container', class: Google::Apis::TagmanagerV1::Container, decorator: Google::Apis::TagmanagerV1::Container::Representation
property :container_id, as: 'containerId'
property :container_version_id, as: 'containerVersionId'
property :deleted, as: 'deleted'
property :fingerprint, as: 'fingerprint'
collection :folder, as: 'folder', class: Google::Apis::TagmanagerV1::Folder, decorator: Google::Apis::TagmanagerV1::Folder::Representation
collection :macro, as: 'macro', class: Google::Apis::TagmanagerV1::Macro, decorator: Google::Apis::TagmanagerV1::Macro::Representation
property :name, as: 'name'
property :notes, as: 'notes'
collection :rule, as: 'rule', class: Google::Apis::TagmanagerV1::Rule, decorator: Google::Apis::TagmanagerV1::Rule::Representation
collection :tag, as: 'tag', class: Google::Apis::TagmanagerV1::Tag, decorator: Google::Apis::TagmanagerV1::Tag::Representation
collection :trigger, as: 'trigger', class: Google::Apis::TagmanagerV1::Trigger, decorator: Google::Apis::TagmanagerV1::Trigger::Representation
collection :variable, as: 'variable', class: Google::Apis::TagmanagerV1::Variable, decorator: Google::Apis::TagmanagerV1::Variable::Representation
end
end
class ContainerVersionHeader
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :account_id, as: 'accountId'
property :container_id, as: 'containerId'
property :container_version_id, as: 'containerVersionId'
property :deleted, as: 'deleted'
property :name, as: 'name'
property :num_macros, as: 'numMacros'
property :num_rules, as: 'numRules'
property :num_tags, as: 'numTags'
property :num_triggers, as: 'numTriggers'
property :num_variables, as: 'numVariables'
end
end
class CreateContainerVersionRequestVersionOptions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :notes, as: 'notes'
property :quick_preview, as: 'quickPreview'
end
end
class CreateContainerVersionResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :compiler_error, as: 'compilerError'
property :container_version, as: 'containerVersion', class: Google::Apis::TagmanagerV1::ContainerVersion, decorator: Google::Apis::TagmanagerV1::ContainerVersion::Representation
end
end
class Environment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :account_id, as: 'accountId'
property :authorization_code, as: 'authorizationCode'
property :authorization_timestamp_ms, :numeric_string => true, as: 'authorizationTimestampMs'
property :container_id, as: 'containerId'
property :container_version_id, as: 'containerVersionId'
property :description, as: 'description'
property :enable_debug, as: 'enableDebug'
property :environment_id, as: 'environmentId'
property :fingerprint, as: 'fingerprint'
property :name, as: 'name'
property :type, as: 'type'
property :url, as: 'url'
end
end
class Folder
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :account_id, as: 'accountId'
property :container_id, as: 'containerId'
property :fingerprint, as: 'fingerprint'
property :folder_id, as: 'folderId'
property :name, as: 'name'
end
end
class FolderEntities
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :tag, as: 'tag', class: Google::Apis::TagmanagerV1::Tag, decorator: Google::Apis::TagmanagerV1::Tag::Representation
collection :trigger, as: 'trigger', class: Google::Apis::TagmanagerV1::Trigger, decorator: Google::Apis::TagmanagerV1::Trigger::Representation
collection :variable, as: 'variable', class: Google::Apis::TagmanagerV1::Variable, decorator: Google::Apis::TagmanagerV1::Variable::Representation
end
end
class ListAccountUsersResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :user_access, as: 'userAccess', class: Google::Apis::TagmanagerV1::UserAccess, decorator: Google::Apis::TagmanagerV1::UserAccess::Representation
end
end
class ListAccountsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :accounts, as: 'accounts', class: Google::Apis::TagmanagerV1::Account, decorator: Google::Apis::TagmanagerV1::Account::Representation
end
end
class ListContainerVersionsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :container_version, as: 'containerVersion', class: Google::Apis::TagmanagerV1::ContainerVersion, decorator: Google::Apis::TagmanagerV1::ContainerVersion::Representation
collection :container_version_header, as: 'containerVersionHeader', class: Google::Apis::TagmanagerV1::ContainerVersionHeader, decorator: Google::Apis::TagmanagerV1::ContainerVersionHeader::Representation
end
end
class ListContainersResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :containers, as: 'containers', class: Google::Apis::TagmanagerV1::Container, decorator: Google::Apis::TagmanagerV1::Container::Representation
end
end
class ListEnvironmentsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :environments, as: 'environments', class: Google::Apis::TagmanagerV1::Environment, decorator: Google::Apis::TagmanagerV1::Environment::Representation
end
end
class ListFoldersResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :folders, as: 'folders', class: Google::Apis::TagmanagerV1::Folder, decorator: Google::Apis::TagmanagerV1::Folder::Representation
end
end
class ListTagsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :tags, as: 'tags', class: Google::Apis::TagmanagerV1::Tag, decorator: Google::Apis::TagmanagerV1::Tag::Representation
end
end
class ListTriggersResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :triggers, as: 'triggers', class: Google::Apis::TagmanagerV1::Trigger, decorator: Google::Apis::TagmanagerV1::Trigger::Representation
end
end
class ListVariablesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :variables, as: 'variables', class: Google::Apis::TagmanagerV1::Variable, decorator: Google::Apis::TagmanagerV1::Variable::Representation
end
end
class Macro
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :account_id, as: 'accountId'
property :container_id, as: 'containerId'
collection :disabling_rule_id, as: 'disablingRuleId'
collection :enabling_rule_id, as: 'enablingRuleId'
property :fingerprint, as: 'fingerprint'
property :macro_id, as: 'macroId'
property :name, as: 'name'
property :notes, as: 'notes'
collection :parameter, as: 'parameter', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation
property :parent_folder_id, as: 'parentFolderId'
property :schedule_end_ms, :numeric_string => true, as: 'scheduleEndMs'
property :schedule_start_ms, :numeric_string => true, as: 'scheduleStartMs'
property :type, as: 'type'
end
end
class Parameter
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :key, as: 'key'
collection :list, as: 'list', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation
collection :map, as: 'map', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation
property :type, as: 'type'
property :value, as: 'value'
end
end
class PublishContainerVersionResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :compiler_error, as: 'compilerError'
property :container_version, as: 'containerVersion', class: Google::Apis::TagmanagerV1::ContainerVersion, decorator: Google::Apis::TagmanagerV1::ContainerVersion::Representation
end
end
class Rule
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :account_id, as: 'accountId'
collection :condition, as: 'condition', class: Google::Apis::TagmanagerV1::Condition, decorator: Google::Apis::TagmanagerV1::Condition::Representation
property :container_id, as: 'containerId'
property :fingerprint, as: 'fingerprint'
property :name, as: 'name'
property :notes, as: 'notes'
property :rule_id, as: 'ruleId'
end
end
class SetupTag
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :stop_on_setup_failure, as: 'stopOnSetupFailure'
property :tag_name, as: 'tagName'
end
end
class Tag
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :account_id, as: 'accountId'
collection :blocking_rule_id, as: 'blockingRuleId'
collection :blocking_trigger_id, as: 'blockingTriggerId'
property :container_id, as: 'containerId'
property :fingerprint, as: 'fingerprint'
collection :firing_rule_id, as: 'firingRuleId'
collection :firing_trigger_id, as: 'firingTriggerId'
property :live_only, as: 'liveOnly'
property :name, as: 'name'
property :notes, as: 'notes'
collection :parameter, as: 'parameter', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation
property :parent_folder_id, as: 'parentFolderId'
property :paused, as: 'paused'
property :priority, as: 'priority', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation
property :schedule_end_ms, :numeric_string => true, as: 'scheduleEndMs'
property :schedule_start_ms, :numeric_string => true, as: 'scheduleStartMs'
collection :setup_tag, as: 'setupTag', class: Google::Apis::TagmanagerV1::SetupTag, decorator: Google::Apis::TagmanagerV1::SetupTag::Representation
property :tag_firing_option, as: 'tagFiringOption'
property :tag_id, as: 'tagId'
collection :teardown_tag, as: 'teardownTag', class: Google::Apis::TagmanagerV1::TeardownTag, decorator: Google::Apis::TagmanagerV1::TeardownTag::Representation
property :type, as: 'type'
end
end
class TeardownTag
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :stop_teardown_on_failure, as: 'stopTeardownOnFailure'
property :tag_name, as: 'tagName'
end
end
class Trigger
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :account_id, as: 'accountId'
collection :auto_event_filter, as: 'autoEventFilter', class: Google::Apis::TagmanagerV1::Condition, decorator: Google::Apis::TagmanagerV1::Condition::Representation
property :check_validation, as: 'checkValidation', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation
property :container_id, as: 'containerId'
property :continuous_time_min_milliseconds, as: 'continuousTimeMinMilliseconds', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation
collection :custom_event_filter, as: 'customEventFilter', class: Google::Apis::TagmanagerV1::Condition, decorator: Google::Apis::TagmanagerV1::Condition::Representation
property :event_name, as: 'eventName', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation
collection :filter, as: 'filter', class: Google::Apis::TagmanagerV1::Condition, decorator: Google::Apis::TagmanagerV1::Condition::Representation
property :fingerprint, as: 'fingerprint'
property :horizontal_scroll_percentage_list, as: 'horizontalScrollPercentageList', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation
property :interval, as: 'interval', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation
property :interval_seconds, as: 'intervalSeconds', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation
property :limit, as: 'limit', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation
property :max_timer_length_seconds, as: 'maxTimerLengthSeconds', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation
property :name, as: 'name'
collection :parameter, as: 'parameter', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation
property :parent_folder_id, as: 'parentFolderId'
property :selector, as: 'selector', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation
property :total_time_min_milliseconds, as: 'totalTimeMinMilliseconds', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation
property :trigger_id, as: 'triggerId'
property :type, as: 'type'
property :unique_trigger_id, as: 'uniqueTriggerId', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation
property :vertical_scroll_percentage_list, as: 'verticalScrollPercentageList', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation
property :visibility_selector, as: 'visibilitySelector', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation
property :visible_percentage_max, as: 'visiblePercentageMax', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation
property :visible_percentage_min, as: 'visiblePercentageMin', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation
property :wait_for_tags, as: 'waitForTags', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation
property :wait_for_tags_timeout, as: 'waitForTagsTimeout', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation
end
end
class UserAccess
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :account_access, as: 'accountAccess', class: Google::Apis::TagmanagerV1::AccountAccess, decorator: Google::Apis::TagmanagerV1::AccountAccess::Representation
property :account_id, as: 'accountId'
collection :container_access, as: 'containerAccess', class: Google::Apis::TagmanagerV1::ContainerAccess, decorator: Google::Apis::TagmanagerV1::ContainerAccess::Representation
property :email_address, as: 'emailAddress'
property :permission_id, as: 'permissionId'
end
end
class Variable
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :account_id, as: 'accountId'
property :container_id, as: 'containerId'
collection :disabling_trigger_id, as: 'disablingTriggerId'
collection :enabling_trigger_id, as: 'enablingTriggerId'
property :fingerprint, as: 'fingerprint'
property :name, as: 'name'
property :notes, as: 'notes'
collection :parameter, as: 'parameter', class: Google::Apis::TagmanagerV1::Parameter, decorator: Google::Apis::TagmanagerV1::Parameter::Representation
property :parent_folder_id, as: 'parentFolderId'
property :schedule_end_ms, :numeric_string => true, as: 'scheduleEndMs'
property :schedule_start_ms, :numeric_string => true, as: 'scheduleStartMs'
property :type, as: 'type'
property :variable_id, as: 'variableId'
end
end
end
end
end

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,52 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/tagmanager_v2/service.rb'
require 'google/apis/tagmanager_v2/classes.rb'
require 'google/apis/tagmanager_v2/representations.rb'
module Google
module Apis
# Tag Manager API
#
# This API allows clients to access and modify container and tag configuration.
#
# @see https://developers.google.com/tag-manager
module TagmanagerV2
VERSION = 'V2'
REVISION = '20200826'
# Delete your Google Tag Manager containers
AUTH_TAGMANAGER_DELETE_CONTAINERS = 'https://www.googleapis.com/auth/tagmanager.delete.containers'
# Manage your Google Tag Manager container and its subcomponents, excluding versioning and publishing
AUTH_TAGMANAGER_EDIT_CONTAINERS = 'https://www.googleapis.com/auth/tagmanager.edit.containers'
# Manage your Google Tag Manager container versions
AUTH_TAGMANAGER_EDIT_CONTAINERVERSIONS = 'https://www.googleapis.com/auth/tagmanager.edit.containerversions'
# View and manage your Google Tag Manager accounts
AUTH_TAGMANAGER_MANAGE_ACCOUNTS = 'https://www.googleapis.com/auth/tagmanager.manage.accounts'
# Manage user permissions of your Google Tag Manager account and container
AUTH_TAGMANAGER_MANAGE_USERS = 'https://www.googleapis.com/auth/tagmanager.manage.users'
# Publish your Google Tag Manager container versions
AUTH_TAGMANAGER_PUBLISH = 'https://www.googleapis.com/auth/tagmanager.publish'
# View your Google Tag Manager container and its subcomponents
AUTH_TAGMANAGER_READONLY = 'https://www.googleapis.com/auth/tagmanager.readonly'
end
end
end

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff