Autogenerated update (2017-09-19)
Update: - adexperiencereport_v1 - androiddeviceprovisioning_v1 - androidmanagement_v1 - bigquerydatatransfer_v1 - genomics_v1 - genomics_v1alpha2 - storage_v1
This commit is contained in:
parent
61857c16bb
commit
3a1ff08fe6
|
@ -54673,12 +54673,14 @@
|
||||||
"/storage:v1/storage.buckets.insert/predefinedDefaultObjectAcl": predefined_default_object_acl
|
"/storage:v1/storage.buckets.insert/predefinedDefaultObjectAcl": predefined_default_object_acl
|
||||||
"/storage:v1/storage.buckets.insert/project": project
|
"/storage:v1/storage.buckets.insert/project": project
|
||||||
"/storage:v1/storage.buckets.insert/projection": projection
|
"/storage:v1/storage.buckets.insert/projection": projection
|
||||||
|
"/storage:v1/storage.buckets.insert/userProject": user_project
|
||||||
"/storage:v1/storage.buckets.list": list_buckets
|
"/storage:v1/storage.buckets.list": list_buckets
|
||||||
"/storage:v1/storage.buckets.list/maxResults": max_results
|
"/storage:v1/storage.buckets.list/maxResults": max_results
|
||||||
"/storage:v1/storage.buckets.list/pageToken": page_token
|
"/storage:v1/storage.buckets.list/pageToken": page_token
|
||||||
"/storage:v1/storage.buckets.list/prefix": prefix
|
"/storage:v1/storage.buckets.list/prefix": prefix
|
||||||
"/storage:v1/storage.buckets.list/project": project
|
"/storage:v1/storage.buckets.list/project": project
|
||||||
"/storage:v1/storage.buckets.list/projection": projection
|
"/storage:v1/storage.buckets.list/projection": projection
|
||||||
|
"/storage:v1/storage.buckets.list/userProject": user_project
|
||||||
"/storage:v1/storage.buckets.patch": patch_bucket
|
"/storage:v1/storage.buckets.patch": patch_bucket
|
||||||
"/storage:v1/storage.buckets.patch/bucket": bucket
|
"/storage:v1/storage.buckets.patch/bucket": bucket
|
||||||
"/storage:v1/storage.buckets.patch/ifMetagenerationMatch": if_metageneration_match
|
"/storage:v1/storage.buckets.patch/ifMetagenerationMatch": if_metageneration_match
|
||||||
|
@ -54909,6 +54911,7 @@
|
||||||
"/storage:v1/storage.objects.watchAll/versions": versions
|
"/storage:v1/storage.objects.watchAll/versions": versions
|
||||||
"/storage:v1/storage.projects.serviceAccount.get": get_project_service_account
|
"/storage:v1/storage.projects.serviceAccount.get": get_project_service_account
|
||||||
"/storage:v1/storage.projects.serviceAccount.get/projectId": project_id
|
"/storage:v1/storage.projects.serviceAccount.get/projectId": project_id
|
||||||
|
"/storage:v1/storage.projects.serviceAccount.get/userProject": user_project
|
||||||
"/storage:v1/userIp": user_ip
|
"/storage:v1/userIp": user_ip
|
||||||
"/storage:v1beta1/Bucket": bucket
|
"/storage:v1beta1/Bucket": bucket
|
||||||
"/storage:v1beta1/Bucket/acl": acl
|
"/storage:v1beta1/Bucket/acl": acl
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://developers.google.com/ad-experience-report/
|
# @see https://developers.google.com/ad-experience-report/
|
||||||
module AdexperiencereportV1
|
module AdexperiencereportV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20170819'
|
REVISION = '20170918'
|
||||||
|
|
||||||
# Test scope for access to the Zoo service
|
# Test scope for access to the Zoo service
|
||||||
AUTH_XAPI_ZOO = 'https://www.googleapis.com/auth/xapi.zoo'
|
AUTH_XAPI_ZOO = 'https://www.googleapis.com/auth/xapi.zoo'
|
||||||
|
|
|
@ -26,11 +26,6 @@ module Google
|
||||||
class PlatformSummary
|
class PlatformSummary
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# The status of the site reviewed for abusive ads.
|
|
||||||
# Corresponds to the JSON property `abusiveStatus`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :abusive_status
|
|
||||||
|
|
||||||
# The status of the site reviewed for the Better Ads Standards.
|
# The status of the site reviewed for the Better Ads Standards.
|
||||||
# Corresponds to the JSON property `betterAdsStatus`
|
# Corresponds to the JSON property `betterAdsStatus`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
|
@ -73,7 +68,6 @@ module Google
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@abusive_status = args[:abusive_status] if args.key?(:abusive_status)
|
|
||||||
@better_ads_status = args[:better_ads_status] if args.key?(:better_ads_status)
|
@better_ads_status = args[:better_ads_status] if args.key?(:better_ads_status)
|
||||||
@enforcement_time = args[:enforcement_time] if args.key?(:enforcement_time)
|
@enforcement_time = args[:enforcement_time] if args.key?(:enforcement_time)
|
||||||
@filter_status = args[:filter_status] if args.key?(:filter_status)
|
@filter_status = args[:filter_status] if args.key?(:filter_status)
|
||||||
|
|
|
@ -43,7 +43,6 @@ module Google
|
||||||
class PlatformSummary
|
class PlatformSummary
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :abusive_status, as: 'abusiveStatus'
|
|
||||||
property :better_ads_status, as: 'betterAdsStatus'
|
property :better_ads_status, as: 'betterAdsStatus'
|
||||||
property :enforcement_time, as: 'enforcementTime'
|
property :enforcement_time, as: 'enforcementTime'
|
||||||
property :filter_status, as: 'filterStatus'
|
property :filter_status, as: 'filterStatus'
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://developers.google.com/zero-touch/
|
# @see https://developers.google.com/zero-touch/
|
||||||
module AndroiddeviceprovisioningV1
|
module AndroiddeviceprovisioningV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20170909'
|
REVISION = '20170916'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -98,36 +98,38 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Company
|
# A customer resource in the zero-touch enrollment API.
|
||||||
class Company
|
class Company
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# Admin emails.
|
# Input only. Optional. Email address of customer's users in the admin role.
|
||||||
# Admins are able to operate on the portal.
|
# Each email address must be associated with a Google Account.
|
||||||
# This field is a write-only field at creation time.
|
|
||||||
# Corresponds to the JSON property `adminEmails`
|
# Corresponds to the JSON property `adminEmails`
|
||||||
# @return [Array<String>]
|
# @return [Array<String>]
|
||||||
attr_accessor :admin_emails
|
attr_accessor :admin_emails
|
||||||
|
|
||||||
# Company ID.
|
# Output only. The ID of the company. Assigned by the server.
|
||||||
# Corresponds to the JSON property `companyId`
|
# Corresponds to the JSON property `companyId`
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :company_id
|
attr_accessor :company_id
|
||||||
|
|
||||||
# Company name.
|
# Required. The name of the company. For example _XYZ Corp_. Characters
|
||||||
|
# allowed are: Latin letters, numerals, hyphens, and spaces. Displayed to the
|
||||||
|
# customer's employees in the zero-touch enrollment portal.
|
||||||
# Corresponds to the JSON property `companyName`
|
# Corresponds to the JSON property `companyName`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :company_name
|
attr_accessor :company_name
|
||||||
|
|
||||||
# The API resource name of the company in the format
|
# Output only. The API resource name of the company in the format
|
||||||
# `partners/[PARTNER_ID]/customers/[CUSTOMER_ID]`.
|
# `partners/[PARTNER_ID]/customers/[CUSTOMER_ID]`. Assigned by the server.
|
||||||
# Corresponds to the JSON property `name`
|
# Corresponds to the JSON property `name`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :name
|
attr_accessor :name
|
||||||
|
|
||||||
# Owner emails.
|
# Input only. Email address of customer's users in the owner role. At least
|
||||||
# Owners are able to operate on the portal, and modify admins or other
|
# one `owner_email` is required. Each email address must be associated with a
|
||||||
# owners. This field is a write-only field at creation time.
|
# Google Account. Owners share the same access as admins but can also add,
|
||||||
|
# delete, and edit your organization's portal users.
|
||||||
# Corresponds to the JSON property `ownerEmails`
|
# Corresponds to the JSON property `ownerEmails`
|
||||||
# @return [Array<String>]
|
# @return [Array<String>]
|
||||||
attr_accessor :owner_emails
|
attr_accessor :owner_emails
|
||||||
|
@ -150,7 +152,7 @@ module Google
|
||||||
class CreateCustomerRequest
|
class CreateCustomerRequest
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# Company
|
# A customer resource in the zero-touch enrollment API.
|
||||||
# Corresponds to the JSON property `customer`
|
# Corresponds to the JSON property `customer`
|
||||||
# @return [Google::Apis::AndroiddeviceprovisioningV1::Company]
|
# @return [Google::Apis::AndroiddeviceprovisioningV1::Company]
|
||||||
attr_accessor :customer
|
attr_accessor :customer
|
||||||
|
|
|
@ -80,11 +80,13 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# A customer for zero-touch enrollment will be created.
|
# Creates a customer for zero-touch enrollment. After the method returns
|
||||||
# After a Customer is created, their admins and owners will be able to manage
|
# successfully, admin and owner roles can manage devices and EMM configs
|
||||||
# devices on partner.android.com/zerotouch or via their API.
|
# by calling API methods or using their zero-touch enrollment portal. The API
|
||||||
|
# doesn't notify the customer that they have access.
|
||||||
# @param [String] parent
|
# @param [String] parent
|
||||||
# The parent resource in format `partners/[PARTNER_ID]'.
|
# Required. The parent resource ID in format `partners/[PARTNER_ID]` that
|
||||||
|
# identifies the reseller.
|
||||||
# @param [Google::Apis::AndroiddeviceprovisioningV1::CreateCustomerRequest] create_customer_request_object
|
# @param [Google::Apis::AndroiddeviceprovisioningV1::CreateCustomerRequest] create_customer_request_object
|
||||||
# @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.
|
||||||
|
@ -115,7 +117,7 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# List the customers that are enrolled to the reseller identified by the
|
# Lists the customers that are enrolled to the reseller identified by the
|
||||||
# `partnerId` argument. This list includes customers that the reseller
|
# `partnerId` argument. This list includes customers that the reseller
|
||||||
# created and customers that enrolled themselves using the portal.
|
# created and customers that enrolled themselves using the portal.
|
||||||
# @param [Fixnum] partner_id
|
# @param [Fixnum] partner_id
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://developers.google.com/android/management
|
# @see https://developers.google.com/android/management
|
||||||
module AndroidmanagementV1
|
module AndroidmanagementV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20170905'
|
REVISION = '20170911'
|
||||||
|
|
||||||
# Manage Android devices and apps for your customers
|
# Manage Android devices and apps for your customers
|
||||||
AUTH_ANDROIDMANAGEMENT = 'https://www.googleapis.com/auth/androidmanagement'
|
AUTH_ANDROIDMANAGEMENT = 'https://www.googleapis.com/auth/androidmanagement'
|
||||||
|
|
|
@ -1193,9 +1193,7 @@ module Google
|
||||||
attr_accessor :non_compliance_reason
|
attr_accessor :non_compliance_reason
|
||||||
|
|
||||||
# The package name indicating which application is out of compliance. If not set,
|
# The package name indicating which application is out of compliance. If not set,
|
||||||
# then this condition matches any package name. If this field is set, then
|
# then this condition matches any package name.
|
||||||
# setting_name must be unset or set to applications; otherwise, the condition
|
|
||||||
# would never be satisfied.
|
|
||||||
# Corresponds to the JSON property `packageName`
|
# Corresponds to the JSON property `packageName`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :package_name
|
attr_accessor :package_name
|
||||||
|
@ -1577,12 +1575,13 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :name
|
attr_accessor :name
|
||||||
|
|
||||||
# Flag to specify if network escape hatch is enabled. If this flag has been
|
# Whether the network escape hatch is enabled. If a network connection can't be
|
||||||
# enabled then upon device boot if device has no network connection, then an
|
# made at boot time, the escape hatch prompts the user to temporarily connect to
|
||||||
# activity will be shown that allows the user to temporarily connect to a
|
# a network in order to refresh the device policy. After applying policy, the
|
||||||
# network to fetch the latest policy. The launched activity will time out if no
|
# temporary network will be forgotten and the device will continue booting. This
|
||||||
# network has been connected for a given while and will return to the previous
|
# prevents being unable to connect to a network if there is no suitable network
|
||||||
# activity that was shown.
|
# in the last policy and the device boots into an app in lock task mode, or the
|
||||||
|
# user is otherwise unable to reach device settings.
|
||||||
# Corresponds to the JSON property `networkEscapeHatchEnabled`
|
# Corresponds to the JSON property `networkEscapeHatchEnabled`
|
||||||
# @return [Boolean]
|
# @return [Boolean]
|
||||||
attr_accessor :network_escape_hatch_enabled
|
attr_accessor :network_escape_hatch_enabled
|
||||||
|
|
|
@ -50,7 +50,7 @@ module Google
|
||||||
|
|
||||||
def initialize
|
def initialize
|
||||||
super('https://www.googleapis.com/', 'androidpublisher/v2/applications/')
|
super('https://www.googleapis.com/', 'androidpublisher/v2/applications/')
|
||||||
@batch_path = 'batch'
|
@batch_path = 'batch/androidpublisher/v2'
|
||||||
end
|
end
|
||||||
|
|
||||||
# Commits/applies the changes made in this edit back to the app.
|
# Commits/applies the changes made in this edit back to the app.
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://cloud.google.com/bigquery/
|
# @see https://cloud.google.com/bigquery/
|
||||||
module BigquerydatatransferV1
|
module BigquerydatatransferV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20170912'
|
REVISION = '20170917'
|
||||||
|
|
||||||
# View and manage your data in Google BigQuery
|
# View and manage your data in Google BigQuery
|
||||||
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
|
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
|
||||||
|
|
|
@ -525,12 +525,14 @@ module Google
|
||||||
class ScheduleTransferRunsRequest
|
class ScheduleTransferRunsRequest
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# End time of the range of transfer runs.
|
# End time of the range of transfer runs. For example,
|
||||||
|
# `"2017-05-30T00:00:00+00:00"`.
|
||||||
# Corresponds to the JSON property `endTime`
|
# Corresponds to the JSON property `endTime`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :end_time
|
attr_accessor :end_time
|
||||||
|
|
||||||
# Start time of the range of transfer runs.
|
# Start time of the range of transfer runs. For example,
|
||||||
|
# `"2017-05-25T00:00:00+00:00"`.
|
||||||
# Corresponds to the JSON property `startTime`
|
# Corresponds to the JSON property `startTime`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :start_time
|
attr_accessor :start_time
|
||||||
|
|
|
@ -50,7 +50,7 @@ module Google
|
||||||
|
|
||||||
def initialize
|
def initialize
|
||||||
super('https://www.googleapis.com/', 'deploymentmanager/v2/projects/')
|
super('https://www.googleapis.com/', 'deploymentmanager/v2/projects/')
|
||||||
@batch_path = 'batch'
|
@batch_path = 'batch/deploymentmanager/v2'
|
||||||
end
|
end
|
||||||
|
|
||||||
# Cancels and removes the preview currently associated with the deployment.
|
# Cancels and removes the preview currently associated with the deployment.
|
||||||
|
|
|
@ -50,7 +50,7 @@ module Google
|
||||||
|
|
||||||
def initialize
|
def initialize
|
||||||
super('https://www.googleapis.com/', 'dns/v1/projects/')
|
super('https://www.googleapis.com/', 'dns/v1/projects/')
|
||||||
@batch_path = 'batch'
|
@batch_path = 'batch/dns/v1'
|
||||||
end
|
end
|
||||||
|
|
||||||
# Atomically update the ResourceRecordSet collection.
|
# Atomically update the ResourceRecordSet collection.
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/genomics
|
# @see https://cloud.google.com/genomics
|
||||||
module GenomicsV1
|
module GenomicsV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20170824'
|
REVISION = '20170916'
|
||||||
|
|
||||||
# View and manage your data in Google BigQuery
|
# View and manage your data in Google BigQuery
|
||||||
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
|
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
|
||||||
|
|
|
@ -1262,7 +1262,7 @@ module Google
|
||||||
|
|
||||||
# If importing ReadGroupSets, an ImportReadGroupSetsResponse is returned. If
|
# If importing ReadGroupSets, an ImportReadGroupSetsResponse is returned. If
|
||||||
# importing Variants, an ImportVariantsResponse is returned. For pipelines and
|
# importing Variants, an ImportVariantsResponse is returned. For pipelines and
|
||||||
# exports, an empty response is returned.
|
# exports, an Empty response is returned.
|
||||||
# Corresponds to the JSON property `response`
|
# Corresponds to the JSON property `response`
|
||||||
# @return [Hash<String,Object>]
|
# @return [Hash<String,Object>]
|
||||||
attr_accessor :response
|
attr_accessor :response
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/genomics
|
# @see https://cloud.google.com/genomics
|
||||||
module GenomicsV1alpha2
|
module GenomicsV1alpha2
|
||||||
VERSION = 'V1alpha2'
|
VERSION = 'V1alpha2'
|
||||||
REVISION = '20170824'
|
REVISION = '20170916'
|
||||||
|
|
||||||
# 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'
|
||||||
|
|
|
@ -478,7 +478,7 @@ module Google
|
||||||
|
|
||||||
# If importing ReadGroupSets, an ImportReadGroupSetsResponse is returned. If
|
# If importing ReadGroupSets, an ImportReadGroupSetsResponse is returned. If
|
||||||
# importing Variants, an ImportVariantsResponse is returned. For pipelines and
|
# importing Variants, an ImportVariantsResponse is returned. For pipelines and
|
||||||
# exports, an empty response is returned.
|
# exports, an Empty response is returned.
|
||||||
# Corresponds to the JSON property `response`
|
# Corresponds to the JSON property `response`
|
||||||
# @return [Hash<String,Object>]
|
# @return [Hash<String,Object>]
|
||||||
attr_accessor :response
|
attr_accessor :response
|
||||||
|
|
|
@ -51,7 +51,7 @@ module Google
|
||||||
|
|
||||||
def initialize
|
def initialize
|
||||||
super('https://www.googleapis.com/', 'sql/v1beta4/')
|
super('https://www.googleapis.com/', 'sql/v1beta4/')
|
||||||
@batch_path = 'batch'
|
@batch_path = 'batch/sqladmin/v1beta4'
|
||||||
end
|
end
|
||||||
|
|
||||||
# Deletes the backup taken by a backup run.
|
# Deletes the backup taken by a backup run.
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/storage/docs/json_api/
|
# @see https://developers.google.com/storage/docs/json_api/
|
||||||
module StorageV1
|
module StorageV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20170824'
|
REVISION = '20170915'
|
||||||
|
|
||||||
# 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'
|
||||||
|
|
|
@ -447,6 +447,8 @@ module Google
|
||||||
# @param [String] projection
|
# @param [String] projection
|
||||||
# Set of properties to return. Defaults to noAcl, unless the bucket resource
|
# Set of properties to return. Defaults to noAcl, unless the bucket resource
|
||||||
# specifies acl or defaultObjectAcl properties, when it defaults to full.
|
# specifies acl or defaultObjectAcl properties, when it defaults to full.
|
||||||
|
# @param [String] user_project
|
||||||
|
# The project to be billed for this request, for Requester Pays buckets.
|
||||||
# @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
|
||||||
|
@ -468,7 +470,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 insert_bucket(project, bucket_object = nil, predefined_acl: nil, predefined_default_object_acl: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def insert_bucket(project, bucket_object = nil, predefined_acl: nil, predefined_default_object_acl: nil, projection: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
command = make_simple_command(:post, 'b', options)
|
command = make_simple_command(:post, 'b', options)
|
||||||
command.request_representation = Google::Apis::StorageV1::Bucket::Representation
|
command.request_representation = Google::Apis::StorageV1::Bucket::Representation
|
||||||
command.request_object = bucket_object
|
command.request_object = bucket_object
|
||||||
|
@ -478,6 +480,7 @@ module Google
|
||||||
command.query['predefinedDefaultObjectAcl'] = predefined_default_object_acl unless predefined_default_object_acl.nil?
|
command.query['predefinedDefaultObjectAcl'] = predefined_default_object_acl unless predefined_default_object_acl.nil?
|
||||||
command.query['project'] = project unless project.nil?
|
command.query['project'] = project unless project.nil?
|
||||||
command.query['projection'] = projection unless projection.nil?
|
command.query['projection'] = projection unless projection.nil?
|
||||||
|
command.query['userProject'] = user_project unless user_project.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?
|
||||||
|
@ -497,6 +500,8 @@ module Google
|
||||||
# Filter results to buckets whose names begin with this prefix.
|
# Filter results to buckets whose names begin with this prefix.
|
||||||
# @param [String] projection
|
# @param [String] projection
|
||||||
# Set of properties to return. Defaults to noAcl.
|
# Set of properties to return. Defaults to noAcl.
|
||||||
|
# @param [String] user_project
|
||||||
|
# The project to be billed for this request, for Requester Pays buckets.
|
||||||
# @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
|
||||||
|
@ -518,7 +523,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 list_buckets(project, max_results: nil, page_token: nil, prefix: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_buckets(project, max_results: nil, page_token: nil, prefix: nil, projection: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
command = make_simple_command(:get, 'b', options)
|
command = make_simple_command(:get, 'b', options)
|
||||||
command.response_representation = Google::Apis::StorageV1::Buckets::Representation
|
command.response_representation = Google::Apis::StorageV1::Buckets::Representation
|
||||||
command.response_class = Google::Apis::StorageV1::Buckets
|
command.response_class = Google::Apis::StorageV1::Buckets
|
||||||
|
@ -527,6 +532,7 @@ module Google
|
||||||
command.query['prefix'] = prefix unless prefix.nil?
|
command.query['prefix'] = prefix unless prefix.nil?
|
||||||
command.query['project'] = project unless project.nil?
|
command.query['project'] = project unless project.nil?
|
||||||
command.query['projection'] = projection unless projection.nil?
|
command.query['projection'] = projection unless projection.nil?
|
||||||
|
command.query['userProject'] = user_project unless user_project.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?
|
||||||
|
@ -2011,7 +2017,7 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Patches an object's metadata.
|
# Updates an object's metadata. This method supports patch semantics.
|
||||||
# @param [String] bucket
|
# @param [String] bucket
|
||||||
# Name of the bucket in which the object resides.
|
# Name of the bucket in which the object resides.
|
||||||
# @param [String] object
|
# @param [String] object
|
||||||
|
@ -2051,8 +2057,6 @@ module Google
|
||||||
# @param [String] user_ip
|
# @param [String] user_ip
|
||||||
# IP address of the site where the request originates. Use this if you want to
|
# IP address of the site where the request originates. Use this if you want to
|
||||||
# enforce per-user limits.
|
# enforce per-user limits.
|
||||||
# @param [IO, String] download_dest
|
|
||||||
# IO stream or filename to receive content download
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
# @param [Google::Apis::RequestOptions] options
|
||||||
# Request-specific options
|
# Request-specific options
|
||||||
#
|
#
|
||||||
|
@ -2065,13 +2069,8 @@ 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_object(bucket, object, object_object = nil, generation: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, predefined_acl: nil, projection: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
|
def patch_object(bucket, object, object_object = nil, generation: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, predefined_acl: nil, projection: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
if download_dest.nil?
|
command = make_simple_command(:patch, 'b/{bucket}/o/{object}', options)
|
||||||
command = make_simple_command(:patch, 'b/{bucket}/o/{object}', options)
|
|
||||||
else
|
|
||||||
command = make_download_command(:patch, 'b/{bucket}/o/{object}', options)
|
|
||||||
command.download_dest = download_dest
|
|
||||||
end
|
|
||||||
command.request_representation = Google::Apis::StorageV1::Object::Representation
|
command.request_representation = Google::Apis::StorageV1::Object::Representation
|
||||||
command.request_object = object_object
|
command.request_object = object_object
|
||||||
command.response_representation = Google::Apis::StorageV1::Object::Representation
|
command.response_representation = Google::Apis::StorageV1::Object::Representation
|
||||||
|
@ -2465,6 +2464,8 @@ module Google
|
||||||
# Get the email address of this project's Google Cloud Storage service account.
|
# Get the email address of this project's Google Cloud Storage service account.
|
||||||
# @param [String] project_id
|
# @param [String] project_id
|
||||||
# Project ID
|
# Project ID
|
||||||
|
# @param [String] user_project
|
||||||
|
# The project to be billed for this request, for Requester Pays buckets.
|
||||||
# @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
|
||||||
|
@ -2486,11 +2487,12 @@ 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 get_project_service_account(project_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_project_service_account(project_id, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
command = make_simple_command(:get, 'projects/{projectId}/serviceAccount', options)
|
command = make_simple_command(:get, 'projects/{projectId}/serviceAccount', options)
|
||||||
command.response_representation = Google::Apis::StorageV1::ServiceAccount::Representation
|
command.response_representation = Google::Apis::StorageV1::ServiceAccount::Representation
|
||||||
command.response_class = Google::Apis::StorageV1::ServiceAccount
|
command.response_class = Google::Apis::StorageV1::ServiceAccount
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
|
command.query['userProject'] = user_project unless user_project.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?
|
||||||
|
|
|
@ -51,7 +51,7 @@ module Google
|
||||||
|
|
||||||
def initialize
|
def initialize
|
||||||
super('https://www.googleapis.com/', 'youtube/v3/')
|
super('https://www.googleapis.com/', 'youtube/v3/')
|
||||||
@batch_path = 'batch'
|
@batch_path = 'batch/youtube/v3'
|
||||||
end
|
end
|
||||||
|
|
||||||
# Posts a bulletin for a specific channel. (The user submitting the request must
|
# Posts a bulletin for a specific channel. (The user submitting the request must
|
||||||
|
|
Loading…
Reference in New Issue