Autogenerated update (2017-11-01)

Delete:
- playmoviespartner_v1

Update:
- adexchangebuyer2_v2beta1
- androidenterprise_v1
- androidpublisher_v2
- bigquerydatatransfer_v1
- classroom_v1
- cloudbuild_v1
- datastore_v1beta3
- drive_v2
- logging_v2
- script_v1
- storage_v1
- videointelligence_v1beta1
This commit is contained in:
Google APIs 2017-11-01 00:35:09 +00:00
parent c52f7d34f6
commit 02864e27db
36 changed files with 769 additions and 1951 deletions

View File

@ -5761,6 +5761,9 @@
"/androidenterprise:v1/androidenterprise.users.patch": patch_user
"/androidenterprise:v1/androidenterprise.users.patch/enterpriseId": enterprise_id
"/androidenterprise:v1/androidenterprise.users.patch/userId": user_id
"/androidenterprise:v1/androidenterprise.users.revokeDeviceAccess": revoke_user_device_access
"/androidenterprise:v1/androidenterprise.users.revokeDeviceAccess/enterpriseId": enterprise_id
"/androidenterprise:v1/androidenterprise.users.revokeDeviceAccess/userId": user_id
"/androidenterprise:v1/androidenterprise.users.revokeToken": revoke_user_token
"/androidenterprise:v1/androidenterprise.users.revokeToken/enterpriseId": enterprise_id
"/androidenterprise:v1/androidenterprise.users.revokeToken/userId": user_id
@ -12161,6 +12164,7 @@
"/cloudbuild:v1/RepoSource": repo_source
"/cloudbuild:v1/RepoSource/branchName": branch_name
"/cloudbuild:v1/RepoSource/commitSha": commit_sha
"/cloudbuild:v1/RepoSource/dir": dir
"/cloudbuild:v1/RepoSource/projectId": project_id
"/cloudbuild:v1/RepoSource/repoName": repo_name
"/cloudbuild:v1/RepoSource/tagName": tag_name
@ -41177,6 +41181,7 @@
"/drive:v2/TeamDrive/capabilities/canRenameTeamDrive": can_rename_team_drive
"/drive:v2/TeamDrive/capabilities/canShare": can_share
"/drive:v2/TeamDrive/colorRgb": color_rgb
"/drive:v2/TeamDrive/createdDate": created_date
"/drive:v2/TeamDrive/id": id
"/drive:v2/TeamDrive/kind": kind
"/drive:v2/TeamDrive/name": name
@ -41382,10 +41387,12 @@
"/drive:v2/drive.permissions.delete/fileId": file_id
"/drive:v2/drive.permissions.delete/permissionId": permission_id
"/drive:v2/drive.permissions.delete/supportsTeamDrives": supports_team_drives
"/drive:v2/drive.permissions.delete/useDomainAdminAccess": use_domain_admin_access
"/drive:v2/drive.permissions.get": get_permission
"/drive:v2/drive.permissions.get/fileId": file_id
"/drive:v2/drive.permissions.get/permissionId": permission_id
"/drive:v2/drive.permissions.get/supportsTeamDrives": supports_team_drives
"/drive:v2/drive.permissions.get/useDomainAdminAccess": use_domain_admin_access
"/drive:v2/drive.permissions.getIdForEmail": get_permission_id_for_email
"/drive:v2/drive.permissions.getIdForEmail/email": email
"/drive:v2/drive.permissions.insert": insert_permission
@ -41393,23 +41400,27 @@
"/drive:v2/drive.permissions.insert/fileId": file_id
"/drive:v2/drive.permissions.insert/sendNotificationEmails": send_notification_emails
"/drive:v2/drive.permissions.insert/supportsTeamDrives": supports_team_drives
"/drive:v2/drive.permissions.insert/useDomainAdminAccess": use_domain_admin_access
"/drive:v2/drive.permissions.list": list_permissions
"/drive:v2/drive.permissions.list/fileId": file_id
"/drive:v2/drive.permissions.list/maxResults": max_results
"/drive:v2/drive.permissions.list/pageToken": page_token
"/drive:v2/drive.permissions.list/supportsTeamDrives": supports_team_drives
"/drive:v2/drive.permissions.list/useDomainAdminAccess": use_domain_admin_access
"/drive:v2/drive.permissions.patch": patch_permission
"/drive:v2/drive.permissions.patch/fileId": file_id
"/drive:v2/drive.permissions.patch/permissionId": permission_id
"/drive:v2/drive.permissions.patch/removeExpiration": remove_expiration
"/drive:v2/drive.permissions.patch/supportsTeamDrives": supports_team_drives
"/drive:v2/drive.permissions.patch/transferOwnership": transfer_ownership
"/drive:v2/drive.permissions.patch/useDomainAdminAccess": use_domain_admin_access
"/drive:v2/drive.permissions.update": update_permission
"/drive:v2/drive.permissions.update/fileId": file_id
"/drive:v2/drive.permissions.update/permissionId": permission_id
"/drive:v2/drive.permissions.update/removeExpiration": remove_expiration
"/drive:v2/drive.permissions.update/supportsTeamDrives": supports_team_drives
"/drive:v2/drive.permissions.update/transferOwnership": transfer_ownership
"/drive:v2/drive.permissions.update/useDomainAdminAccess": use_domain_admin_access
"/drive:v2/drive.properties.delete": delete_property
"/drive:v2/drive.properties.delete/fileId": file_id
"/drive:v2/drive.properties.delete/propertyKey": property_key
@ -41482,11 +41493,14 @@
"/drive:v2/drive.teamdrives.delete/teamDriveId": team_drive_id
"/drive:v2/drive.teamdrives.get": get_teamdrive
"/drive:v2/drive.teamdrives.get/teamDriveId": team_drive_id
"/drive:v2/drive.teamdrives.get/useDomainAdminAccess": use_domain_admin_access
"/drive:v2/drive.teamdrives.insert": insert_teamdrive
"/drive:v2/drive.teamdrives.insert/requestId": request_id
"/drive:v2/drive.teamdrives.list": list_teamdrives
"/drive:v2/drive.teamdrives.list/maxResults": max_results
"/drive:v2/drive.teamdrives.list/pageToken": page_token
"/drive:v2/drive.teamdrives.list/q": q
"/drive:v2/drive.teamdrives.list/useDomainAdminAccess": use_domain_admin_access
"/drive:v2/drive.teamdrives.update": update_teamdrive
"/drive:v2/drive.teamdrives.update/teamDriveId": team_drive_id
"/drive:v2/fields": fields
@ -46632,6 +46646,7 @@
"/logging:v2/LogEntry/resource": resource
"/logging:v2/LogEntry/severity": severity
"/logging:v2/LogEntry/sourceLocation": source_location
"/logging:v2/LogEntry/spanId": span_id
"/logging:v2/LogEntry/textPayload": text_payload
"/logging:v2/LogEntry/timestamp": timestamp
"/logging:v2/LogEntry/trace": trace
@ -46787,6 +46802,19 @@
"/logging:v2/logging.billingAccounts.sinks.update/updateMask": update_mask
"/logging:v2/logging.entries.list": list_entry_log_entries
"/logging:v2/logging.entries.write": write_entry_log_entries
"/logging:v2/logging.exclusions.create": create_exclusion
"/logging:v2/logging.exclusions.create/parent": parent
"/logging:v2/logging.exclusions.delete": delete_exclusion
"/logging:v2/logging.exclusions.delete/name": name
"/logging:v2/logging.exclusions.get": get_exclusion
"/logging:v2/logging.exclusions.get/name": name
"/logging:v2/logging.exclusions.list": list_exclusions
"/logging:v2/logging.exclusions.list/pageSize": page_size
"/logging:v2/logging.exclusions.list/pageToken": page_token
"/logging:v2/logging.exclusions.list/parent": parent
"/logging:v2/logging.exclusions.patch": patch_exclusion
"/logging:v2/logging.exclusions.patch/name": name
"/logging:v2/logging.exclusions.patch/updateMask": update_mask
"/logging:v2/logging.folders.exclusions.create": create_folder_exclusion
"/logging:v2/logging.folders.exclusions.create/parent": parent
"/logging:v2/logging.folders.exclusions.delete": delete_folder_exclusion
@ -46825,6 +46853,12 @@
"/logging:v2/logging.folders.sinks.update/sinkName": sink_name
"/logging:v2/logging.folders.sinks.update/uniqueWriterIdentity": unique_writer_identity
"/logging:v2/logging.folders.sinks.update/updateMask": update_mask
"/logging:v2/logging.logs.delete": delete_log
"/logging:v2/logging.logs.delete/logName": log_name
"/logging:v2/logging.logs.list": list_logs
"/logging:v2/logging.logs.list/pageSize": page_size
"/logging:v2/logging.logs.list/pageToken": page_token
"/logging:v2/logging.logs.list/parent": parent
"/logging:v2/logging.monitoredResourceDescriptors.list": list_monitored_resource_descriptors
"/logging:v2/logging.monitoredResourceDescriptors.list/pageSize": page_size
"/logging:v2/logging.monitoredResourceDescriptors.list/pageToken": page_token
@ -46916,6 +46950,21 @@
"/logging:v2/logging.projects.sinks.update/sinkName": sink_name
"/logging:v2/logging.projects.sinks.update/uniqueWriterIdentity": unique_writer_identity
"/logging:v2/logging.projects.sinks.update/updateMask": update_mask
"/logging:v2/logging.sinks.create": create_sink
"/logging:v2/logging.sinks.create/parent": parent
"/logging:v2/logging.sinks.create/uniqueWriterIdentity": unique_writer_identity
"/logging:v2/logging.sinks.delete": delete_sink
"/logging:v2/logging.sinks.delete/sinkName": sink_name
"/logging:v2/logging.sinks.get": get_sink
"/logging:v2/logging.sinks.get/sinkName": sink_name
"/logging:v2/logging.sinks.list": list_sinks
"/logging:v2/logging.sinks.list/pageSize": page_size
"/logging:v2/logging.sinks.list/pageToken": page_token
"/logging:v2/logging.sinks.list/parent": parent
"/logging:v2/logging.sinks.update": update_sink
"/logging:v2/logging.sinks.update/sinkName": sink_name
"/logging:v2/logging.sinks.update/uniqueWriterIdentity": unique_writer_identity
"/logging:v2/logging.sinks.update/updateMask": update_mask
"/logging:v2/quotaUser": quota_user
"/logging:v2beta1/BucketOptions": bucket_options
"/logging:v2beta1/BucketOptions/explicitBuckets": explicit_buckets

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/ad-exchange/buyer-rest/reference/rest/
module Adexchangebuyer2V2beta1
VERSION = 'V2beta1'
REVISION = '20171026'
REVISION = '20171030'
# Manage your Ad Exchange buyer account configuration
AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'

View File

@ -1591,71 +1591,9 @@ module Google
# 123: `bidders/123/accounts/123`
# - For an account-level filter set for the child seat buyer account 456
# whose bidder is 123: `bidders/123/accounts/456`
# @param [Google::Apis::Adexchangebuyer2V2beta1::FilterSet] filter_set_object
# @param [Fixnum] account_id
# Account ID of the buyer.
# @param [Fixnum] filter_set_absolute_date_range_end_date_day
# Day of month. Must be from 1 to 31 and valid for the year and month, or 0
# if specifying a year/month where the day is not significant.
# @param [Fixnum] filter_set_absolute_date_range_end_date_month
# Month of year. Must be from 1 to 12.
# @param [Fixnum] filter_set_absolute_date_range_end_date_year
# Year of date. Must be from 1 to 9999, or 0 if specifying a date without
# a year.
# @param [Fixnum] filter_set_absolute_date_range_start_date_day
# Day of month. Must be from 1 to 31 and valid for the year and month, or 0
# if specifying a year/month where the day is not significant.
# @param [Fixnum] filter_set_absolute_date_range_start_date_month
# Month of year. Must be from 1 to 12.
# @param [Fixnum] filter_set_absolute_date_range_start_date_year
# Year of date. Must be from 1 to 9999, or 0 if specifying a date without
# a year.
# @param [String] filter_set_creative_id
# The ID of the creative on which to filter; optional. This field may be set
# only for a filter set that accesses buyer-level troubleshooting data, i.e.
# one whose name matches the `bidders/*/accounts/*/filterSets/*` pattern.
# @param [Fixnum] filter_set_deal_id
# The ID of the deal on which to filter; optional. This field may be set
# only for a filter set that accesses buyer-level troubleshooting data, i.e.
# one whose name matches the `bidders/*/accounts/*/filterSets/*` pattern.
# @param [String] filter_set_environment
# The environment on which to filter; optional.
# @param [Fixnum] filter_set_filter_set_id
# The ID of the filter set; unique within the account of the filter set
# owner.
# The value of this field is ignored in create operations.
# @param [String] filter_set_format
# The format on which to filter; optional.
# @param [String] filter_set_name
# A user-defined name of the filter set. Filter set names must be unique
# globally and match one of the patterns:
# - `bidders/*/filterSets/*` (for accessing bidder-level troubleshooting
# data)
# - `bidders/*/accounts/*/filterSets/*` (for accessing buyer-level
# troubleshooting data)
# This field is required in create operations.
# @param [Array<String>, String] filter_set_platforms
# The list of platforms on which to filter; may be empty. The filters
# represented by multiple platforms are ORed together (i.e. if non-empty,
# results must match any one of the platforms).
# @param [String] filter_set_realtime_time_range_start_timestamp
# The start timestamp of the real-time RTB metrics aggregation.
# @param [Fixnum] filter_set_relative_date_range_duration_days
# The number of days in the requested date range. E.g. for a range spanning
# today, 1. For a range spanning the last 7 days, 7.
# @param [Fixnum] filter_set_relative_date_range_offset_days
# The end date of the filter set, specified as the number of days before
# today. E.g. for a range where the last date is today, 0.
# @param [Array<Fixnum>, Fixnum] filter_set_seller_network_ids
# The list of IDs of the seller (publisher) networks on which to filter;
# may be empty. The filters represented by multiple seller network IDs are
# ORed together (i.e. if non-empty, results must match any one of the
# publisher networks).
# See [seller-network-ids](https://developers.google.com/ad-exchange/rtb/
# downloads/seller-network-ids)
# file for the set of existing seller network IDs.
# @param [String] filter_set_time_series_granularity
# The granularity of time intervals if a time series breakdown is desired;
# optional.
# @param [Boolean] is_transient
# Whether the filter set is transient, or should be persisted indefinitely.
# By default, filter sets are not transient.
@ -1677,30 +1615,14 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_bidder_filter_set(owner_name, account_id: nil, filter_set_absolute_date_range_end_date_day: nil, filter_set_absolute_date_range_end_date_month: nil, filter_set_absolute_date_range_end_date_year: nil, filter_set_absolute_date_range_start_date_day: nil, filter_set_absolute_date_range_start_date_month: nil, filter_set_absolute_date_range_start_date_year: nil, filter_set_creative_id: nil, filter_set_deal_id: nil, filter_set_environment: nil, filter_set_filter_set_id: nil, filter_set_format: nil, filter_set_name: nil, filter_set_platforms: nil, filter_set_realtime_time_range_start_timestamp: nil, filter_set_relative_date_range_duration_days: nil, filter_set_relative_date_range_offset_days: nil, filter_set_seller_network_ids: nil, filter_set_time_series_granularity: nil, is_transient: nil, fields: nil, quota_user: nil, options: nil, &block)
def create_bidder_filter_set(owner_name, filter_set_object = nil, account_id: nil, is_transient: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2beta1/{+ownerName}/filterSets', options)
command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::FilterSet::Representation
command.request_object = filter_set_object
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::FilterSet::Representation
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::FilterSet
command.params['ownerName'] = owner_name unless owner_name.nil?
command.query['accountId'] = account_id unless account_id.nil?
command.query['filterSet.absoluteDateRange.endDate.day'] = filter_set_absolute_date_range_end_date_day unless filter_set_absolute_date_range_end_date_day.nil?
command.query['filterSet.absoluteDateRange.endDate.month'] = filter_set_absolute_date_range_end_date_month unless filter_set_absolute_date_range_end_date_month.nil?
command.query['filterSet.absoluteDateRange.endDate.year'] = filter_set_absolute_date_range_end_date_year unless filter_set_absolute_date_range_end_date_year.nil?
command.query['filterSet.absoluteDateRange.startDate.day'] = filter_set_absolute_date_range_start_date_day unless filter_set_absolute_date_range_start_date_day.nil?
command.query['filterSet.absoluteDateRange.startDate.month'] = filter_set_absolute_date_range_start_date_month unless filter_set_absolute_date_range_start_date_month.nil?
command.query['filterSet.absoluteDateRange.startDate.year'] = filter_set_absolute_date_range_start_date_year unless filter_set_absolute_date_range_start_date_year.nil?
command.query['filterSet.creativeId'] = filter_set_creative_id unless filter_set_creative_id.nil?
command.query['filterSet.dealId'] = filter_set_deal_id unless filter_set_deal_id.nil?
command.query['filterSet.environment'] = filter_set_environment unless filter_set_environment.nil?
command.query['filterSet.filterSetId'] = filter_set_filter_set_id unless filter_set_filter_set_id.nil?
command.query['filterSet.format'] = filter_set_format unless filter_set_format.nil?
command.query['filterSet.name'] = filter_set_name unless filter_set_name.nil?
command.query['filterSet.platforms'] = filter_set_platforms unless filter_set_platforms.nil?
command.query['filterSet.realtimeTimeRange.startTimestamp'] = filter_set_realtime_time_range_start_timestamp unless filter_set_realtime_time_range_start_timestamp.nil?
command.query['filterSet.relativeDateRange.durationDays'] = filter_set_relative_date_range_duration_days unless filter_set_relative_date_range_duration_days.nil?
command.query['filterSet.relativeDateRange.offsetDays'] = filter_set_relative_date_range_offset_days unless filter_set_relative_date_range_offset_days.nil?
command.query['filterSet.sellerNetworkIds'] = filter_set_seller_network_ids unless filter_set_seller_network_ids.nil?
command.query['filterSet.timeSeriesGranularity'] = filter_set_time_series_granularity unless filter_set_time_series_granularity.nil?
command.query['isTransient'] = is_transient unless is_transient.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?

View File

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

View File

@ -3210,6 +3210,45 @@ module Google
execute_or_queue_command(command, &block)
end
# Revokes access to all devices currently provisioned to the user. The user will
# no longer be able to use the managed Play store on any of their managed
# devices.
# This call only works with EMM-managed accounts.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [String] user_id
# The ID of the user.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @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 revoke_user_device_access(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, 'enterprises/{enterpriseId}/users/{userId}/deviceAccess', options)
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['userId'] = user_id unless user_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
# Revokes a previously generated token (activation code) for the user.
# @param [String] enterprise_id
# The ID of the enterprise.

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/android-publisher
module AndroidpublisherV2
VERSION = 'V2'
REVISION = '20170913'
REVISION = '20171030'
# View and manage your Google Play Developer account
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'

View File

@ -876,157 +876,6 @@ module Google
end
end
#
class InAppProductsBatchRequest
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `entrys`
# @return [Array<Google::Apis::AndroidpublisherV2::InAppProductsBatchRequestEntry>]
attr_accessor :entrys
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@entrys = args[:entrys] if args.key?(:entrys)
end
end
#
class InAppProductsBatchRequestEntry
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `batchId`
# @return [Fixnum]
attr_accessor :batch_id
#
# Corresponds to the JSON property `inappproductsinsertrequest`
# @return [Google::Apis::AndroidpublisherV2::InsertInAppProductsRequest]
attr_accessor :inappproductsinsertrequest
#
# Corresponds to the JSON property `inappproductsupdaterequest`
# @return [Google::Apis::AndroidpublisherV2::UpdateInAppProductsRequest]
attr_accessor :inappproductsupdaterequest
#
# Corresponds to the JSON property `methodName`
# @return [String]
attr_accessor :method_name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@batch_id = args[:batch_id] if args.key?(:batch_id)
@inappproductsinsertrequest = args[:inappproductsinsertrequest] if args.key?(:inappproductsinsertrequest)
@inappproductsupdaterequest = args[:inappproductsupdaterequest] if args.key?(:inappproductsupdaterequest)
@method_name = args[:method_name] if args.key?(:method_name)
end
end
#
class InAppProductsBatchResponse
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `entrys`
# @return [Array<Google::Apis::AndroidpublisherV2::InAppProductsBatchResponseEntry>]
attr_accessor :entrys
# Identifies what kind of resource this is. Value: the fixed string "
# androidpublisher#inappproductsBatchResponse".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@entrys = args[:entrys] if args.key?(:entrys)
@kind = args[:kind] if args.key?(:kind)
end
end
#
class InAppProductsBatchResponseEntry
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `batchId`
# @return [Fixnum]
attr_accessor :batch_id
#
# Corresponds to the JSON property `inappproductsinsertresponse`
# @return [Google::Apis::AndroidpublisherV2::InsertInAppProductsResponse]
attr_accessor :inappproductsinsertresponse
#
# Corresponds to the JSON property `inappproductsupdateresponse`
# @return [Google::Apis::AndroidpublisherV2::UpdateInAppProductsResponse]
attr_accessor :inappproductsupdateresponse
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@batch_id = args[:batch_id] if args.key?(:batch_id)
@inappproductsinsertresponse = args[:inappproductsinsertresponse] if args.key?(:inappproductsinsertresponse)
@inappproductsupdateresponse = args[:inappproductsupdateresponse] if args.key?(:inappproductsupdateresponse)
end
end
#
class InsertInAppProductsRequest
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `inappproduct`
# @return [Google::Apis::AndroidpublisherV2::InAppProduct]
attr_accessor :inappproduct
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@inappproduct = args[:inappproduct] if args.key?(:inappproduct)
end
end
#
class InsertInAppProductsResponse
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `inappproduct`
# @return [Google::Apis::AndroidpublisherV2::InAppProduct]
attr_accessor :inappproduct
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@inappproduct = args[:inappproduct] if args.key?(:inappproduct)
end
end
#
class ListInAppProductsResponse
include Google::Apis::Core::Hashable
@ -1065,44 +914,6 @@ module Google
end
end
#
class UpdateInAppProductsRequest
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `inappproduct`
# @return [Google::Apis::AndroidpublisherV2::InAppProduct]
attr_accessor :inappproduct
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@inappproduct = args[:inappproduct] if args.key?(:inappproduct)
end
end
#
class UpdateInAppProductsResponse
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `inappproduct`
# @return [Google::Apis::AndroidpublisherV2::InAppProduct]
attr_accessor :inappproduct
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@inappproduct = args[:inappproduct] if args.key?(:inappproduct)
end
end
#
class Listing
include Google::Apis::Core::Hashable

View File

@ -178,60 +178,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class InAppProductsBatchRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InAppProductsBatchRequestEntry
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InAppProductsBatchResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InAppProductsBatchResponseEntry
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InsertInAppProductsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InsertInAppProductsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListInAppProductsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UpdateInAppProductsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UpdateInAppProductsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Listing
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -640,62 +592,6 @@ module Google
end
end
class InAppProductsBatchRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :entrys, as: 'entrys', class: Google::Apis::AndroidpublisherV2::InAppProductsBatchRequestEntry, decorator: Google::Apis::AndroidpublisherV2::InAppProductsBatchRequestEntry::Representation
end
end
class InAppProductsBatchRequestEntry
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :batch_id, as: 'batchId'
property :inappproductsinsertrequest, as: 'inappproductsinsertrequest', class: Google::Apis::AndroidpublisherV2::InsertInAppProductsRequest, decorator: Google::Apis::AndroidpublisherV2::InsertInAppProductsRequest::Representation
property :inappproductsupdaterequest, as: 'inappproductsupdaterequest', class: Google::Apis::AndroidpublisherV2::UpdateInAppProductsRequest, decorator: Google::Apis::AndroidpublisherV2::UpdateInAppProductsRequest::Representation
property :method_name, as: 'methodName'
end
end
class InAppProductsBatchResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :entrys, as: 'entrys', class: Google::Apis::AndroidpublisherV2::InAppProductsBatchResponseEntry, decorator: Google::Apis::AndroidpublisherV2::InAppProductsBatchResponseEntry::Representation
property :kind, as: 'kind'
end
end
class InAppProductsBatchResponseEntry
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :batch_id, as: 'batchId'
property :inappproductsinsertresponse, as: 'inappproductsinsertresponse', class: Google::Apis::AndroidpublisherV2::InsertInAppProductsResponse, decorator: Google::Apis::AndroidpublisherV2::InsertInAppProductsResponse::Representation
property :inappproductsupdateresponse, as: 'inappproductsupdateresponse', class: Google::Apis::AndroidpublisherV2::UpdateInAppProductsResponse, decorator: Google::Apis::AndroidpublisherV2::UpdateInAppProductsResponse::Representation
end
end
class InsertInAppProductsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :inappproduct, as: 'inappproduct', class: Google::Apis::AndroidpublisherV2::InAppProduct, decorator: Google::Apis::AndroidpublisherV2::InAppProduct::Representation
end
end
class InsertInAppProductsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :inappproduct, as: 'inappproduct', class: Google::Apis::AndroidpublisherV2::InAppProduct, decorator: Google::Apis::AndroidpublisherV2::InAppProduct::Representation
end
end
class ListInAppProductsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -709,22 +605,6 @@ module Google
end
end
class UpdateInAppProductsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :inappproduct, as: 'inappproduct', class: Google::Apis::AndroidpublisherV2::InAppProduct, decorator: Google::Apis::AndroidpublisherV2::InAppProduct::Representation
end
end
class UpdateInAppProductsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :inappproduct, as: 'inappproduct', class: Google::Apis::AndroidpublisherV2::InAppProduct, decorator: Google::Apis::AndroidpublisherV2::InAppProduct::Representation
end
end
class Listing
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -1839,41 +1839,6 @@ module Google
execute_or_queue_command(command, &block)
end
#
# @param [Google::Apis::AndroidpublisherV2::InAppProductsBatchRequest] in_app_products_batch_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidpublisherV2::InAppProductsBatchResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidpublisherV2::InAppProductsBatchResponse]
#
# @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 batch_update_in_app_products(in_app_products_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'inappproducts/batch', options)
command.request_representation = Google::Apis::AndroidpublisherV2::InAppProductsBatchRequest::Representation
command.request_object = in_app_products_batch_request_object
command.response_representation = Google::Apis::AndroidpublisherV2::InAppProductsBatchResponse::Representation
command.response_class = Google::Apis::AndroidpublisherV2::InAppProductsBatchResponse
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
# Delete an in-app product for an app.
# @param [String] package_name
# Unique identifier for the Android app with the in-app product; for example, "

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/bigquery/
module BigquerydatatransferV1
VERSION = 'V1'
REVISION = '20171023'
REVISION = '20171030'
# View and manage your data in Google BigQuery
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'

View File

@ -714,6 +714,7 @@ module Google
end
# Represents a data transfer run.
# Next id: 23
class TransferRun
include Google::Apis::Core::Hashable

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/classroom/
module ClassroomV1
VERSION = 'V1'
REVISION = '20171004'
REVISION = '20171028'
# View and manage announcements in Google Classroom
AUTH_CLASSROOM_ANNOUNCEMENTS = 'https://www.googleapis.com/auth/classroom.announcements'
@ -66,6 +66,9 @@ module Google
# View the profile photos of people in your classes
AUTH_CLASSROOM_PROFILE_PHOTOS = 'https://www.googleapis.com/auth/classroom.profile.photos'
# Receive notifications about your Google Classroom data
AUTH_CLASSROOM_PUSH_NOTIFICATIONS = 'https://www.googleapis.com/auth/classroom.push-notifications'
# Manage your Google Classroom class rosters
AUTH_CLASSROOM_ROSTERS = 'https://www.googleapis.com/auth/classroom.rosters'

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/container-builder/docs/
module CloudbuildV1
VERSION = 'V1'
REVISION = '20171026'
REVISION = '20171031'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -741,6 +741,11 @@ module Google
# @return [String]
attr_accessor :commit_sha
# Directory, relative to the source root, in which to run the build.
# Corresponds to the JSON property `dir`
# @return [String]
attr_accessor :dir
# ID of the project that owns the repo. If omitted, the project ID requesting
# the build is assumed.
# Corresponds to the JSON property `projectId`
@ -765,6 +770,7 @@ module Google
def update!(**args)
@branch_name = args[:branch_name] if args.key?(:branch_name)
@commit_sha = args[:commit_sha] if args.key?(:commit_sha)
@dir = args[:dir] if args.key?(:dir)
@project_id = args[:project_id] if args.key?(:project_id)
@repo_name = args[:repo_name] if args.key?(:repo_name)
@tag_name = args[:tag_name] if args.key?(:tag_name)

View File

@ -333,6 +333,7 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :branch_name, as: 'branchName'
property :commit_sha, as: 'commitSha'
property :dir, as: 'dir'
property :project_id, as: 'projectId'
property :repo_name, as: 'repoName'
property :tag_name, as: 'tagName'

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/datastore/
module DatastoreV1beta3
VERSION = 'V1beta3'
REVISION = '20171010'
REVISION = '20171024'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -736,36 +736,6 @@ module Google
# specified otherwise, this must conform to the
# <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
# standard</a>. Values must be within normalized ranges.
# Example of normalization code in Python:
# def NormalizeLongitude(longitude):
# """Wraps decimal degrees longitude to [-180.0, 180.0]."""
# q, r = divmod(longitude, 360.0)
# if r > 180.0 or (r == 180.0 and q <= -1.0):
# return r - 360.0
# return r
# def NormalizeLatLng(latitude, longitude):
# """Wraps decimal degrees latitude and longitude to
# [-90.0, 90.0] and [-180.0, 180.0], respectively."""
# r = latitude % 360.0
# if r <= 90.0:
# return r, NormalizeLongitude(longitude)
# elif r >= 270.0:
# return r - 360, NormalizeLongitude(longitude)
# else:
# return 180 - r, NormalizeLongitude(longitude + 180.0)
# assert 180.0 == NormalizeLongitude(180.0)
# assert -180.0 == NormalizeLongitude(-180.0)
# assert -179.0 == NormalizeLongitude(181.0)
# assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
# assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
# assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
# assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
# assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
# assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
# assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
# assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
# assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
# assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
class LatLng
include Google::Apis::Core::Hashable
@ -1563,36 +1533,6 @@ module Google
# specified otherwise, this must conform to the
# <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
# standard</a>. Values must be within normalized ranges.
# Example of normalization code in Python:
# def NormalizeLongitude(longitude):
# """Wraps decimal degrees longitude to [-180.0, 180.0]."""
# q, r = divmod(longitude, 360.0)
# if r > 180.0 or (r == 180.0 and q <= -1.0):
# return r - 360.0
# return r
# def NormalizeLatLng(latitude, longitude):
# """Wraps decimal degrees latitude and longitude to
# [-90.0, 90.0] and [-180.0, 180.0], respectively."""
# r = latitude % 360.0
# if r <= 90.0:
# return r, NormalizeLongitude(longitude)
# elif r >= 270.0:
# return r - 360, NormalizeLongitude(longitude)
# else:
# return 180 - r, NormalizeLongitude(longitude + 180.0)
# assert 180.0 == NormalizeLongitude(180.0)
# assert -180.0 == NormalizeLongitude(-180.0)
# assert -179.0 == NormalizeLongitude(181.0)
# assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
# assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
# assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
# assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
# assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
# assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
# assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
# assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
# assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
# assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
# Corresponds to the JSON property `geoPointValue`
# @return [Google::Apis::DatastoreV1beta3::LatLng]
attr_accessor :geo_point_value

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/drive/
module DriveV2
VERSION = 'V2'
REVISION = '20170825'
REVISION = '20171020'
# View and manage the files in your Google Drive
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'

View File

@ -2968,6 +2968,11 @@ module Google
# @return [String]
attr_accessor :color_rgb
# The time at which the Team Drive was created (RFC 3339 date-time).
# Corresponds to the JSON property `createdDate`
# @return [DateTime]
attr_accessor :created_date
# The ID of this Team Drive which is also the ID of the top level folder for
# this Team Drive.
# Corresponds to the JSON property `id`
@ -3004,6 +3009,7 @@ module Google
@background_image_link = args[:background_image_link] if args.key?(:background_image_link)
@capabilities = args[:capabilities] if args.key?(:capabilities)
@color_rgb = args[:color_rgb] if args.key?(:color_rgb)
@created_date = args[:created_date] if args.key?(:created_date)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)

View File

@ -990,6 +990,8 @@ module Google
property :capabilities, as: 'capabilities', class: Google::Apis::DriveV2::TeamDrive::Capabilities, decorator: Google::Apis::DriveV2::TeamDrive::Capabilities::Representation
property :color_rgb, as: 'colorRgb'
property :created_date, as: 'createdDate', type: DateTime
property :id, as: 'id'
property :kind, as: 'kind'
property :name, as: 'name'

View File

@ -1806,6 +1806,10 @@ module Google
# The ID for the permission.
# @param [Boolean] supports_team_drives
# Whether the requesting application supports Team Drives.
# @param [Boolean] use_domain_admin_access
# Whether the request should be treated as if it was issued by a domain
# administrator; if set to true, then the requester will be granted access if
# they are an administrator of the domain to which the item belongs.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1827,11 +1831,12 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_permission(file_id, permission_id, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def delete_permission(file_id, permission_id, supports_team_drives: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, 'files/{fileId}/permissions/{permissionId}', options)
command.params['fileId'] = file_id unless file_id.nil?
command.params['permissionId'] = permission_id unless permission_id.nil?
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.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?
@ -1845,6 +1850,10 @@ module Google
# The ID for the permission.
# @param [Boolean] supports_team_drives
# Whether the requesting application supports Team Drives.
# @param [Boolean] use_domain_admin_access
# Whether the request should be treated as if it was issued by a domain
# administrator; if set to true, then the requester will be granted access if
# they are an administrator of the domain to which the item belongs.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1866,13 +1875,14 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_permission(file_id, permission_id, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def get_permission(file_id, permission_id, supports_team_drives: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'files/{fileId}/permissions/{permissionId}', options)
command.response_representation = Google::Apis::DriveV2::Permission::Representation
command.response_class = Google::Apis::DriveV2::Permission
command.params['fileId'] = file_id unless file_id.nil?
command.params['permissionId'] = permission_id unless permission_id.nil?
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.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?
@ -1925,6 +1935,10 @@ module Google
# parameter is ignored and an email is sent if the role is owner.
# @param [Boolean] supports_team_drives
# Whether the requesting application supports Team Drives.
# @param [Boolean] use_domain_admin_access
# Whether the request should be treated as if it was issued by a domain
# administrator; if set to true, then the requester will be granted access if
# they are an administrator of the domain to which the item belongs.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1946,7 +1960,7 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def insert_permission(file_id, permission_object = nil, email_message: nil, send_notification_emails: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def insert_permission(file_id, permission_object = nil, email_message: nil, send_notification_emails: nil, supports_team_drives: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'files/{fileId}/permissions', options)
command.request_representation = Google::Apis::DriveV2::Permission::Representation
command.request_object = permission_object
@ -1956,6 +1970,7 @@ module Google
command.query['emailMessage'] = email_message unless email_message.nil?
command.query['sendNotificationEmails'] = send_notification_emails unless send_notification_emails.nil?
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.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?
@ -1974,6 +1989,10 @@ module Google
# be set to the value of 'nextPageToken' from the previous response.
# @param [Boolean] supports_team_drives
# Whether the requesting application supports Team Drives.
# @param [Boolean] use_domain_admin_access
# Whether the request should be treated as if it was issued by a domain
# administrator; if set to true, then the requester will be granted access if
# they are an administrator of the domain to which the item belongs.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1995,7 +2014,7 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_permissions(file_id, max_results: nil, page_token: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_permissions(file_id, max_results: nil, page_token: nil, supports_team_drives: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'files/{fileId}/permissions', options)
command.response_representation = Google::Apis::DriveV2::PermissionList::Representation
command.response_class = Google::Apis::DriveV2::PermissionList
@ -2003,6 +2022,7 @@ module Google
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.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?
@ -2022,6 +2042,10 @@ module Google
# @param [Boolean] transfer_ownership
# Whether changing a role to 'owner' downgrades the current owners to writers.
# Does nothing if the specified role is not 'owner'.
# @param [Boolean] use_domain_admin_access
# Whether the request should be treated as if it was issued by a domain
# administrator; if set to true, then the requester will be granted access if
# they are an administrator of the domain to which the item belongs.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -2043,7 +2067,7 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_permission(file_id, permission_id, permission_object = nil, remove_expiration: nil, supports_team_drives: nil, transfer_ownership: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def patch_permission(file_id, permission_id, permission_object = nil, remove_expiration: nil, supports_team_drives: nil, transfer_ownership: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, 'files/{fileId}/permissions/{permissionId}', options)
command.request_representation = Google::Apis::DriveV2::Permission::Representation
command.request_object = permission_object
@ -2054,6 +2078,7 @@ module Google
command.query['removeExpiration'] = remove_expiration unless remove_expiration.nil?
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
command.query['transferOwnership'] = transfer_ownership unless transfer_ownership.nil?
command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.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?
@ -2073,6 +2098,10 @@ module Google
# @param [Boolean] transfer_ownership
# Whether changing a role to 'owner' downgrades the current owners to writers.
# Does nothing if the specified role is not 'owner'.
# @param [Boolean] use_domain_admin_access
# Whether the request should be treated as if it was issued by a domain
# administrator; if set to true, then the requester will be granted access if
# they are an administrator of the domain to which the item belongs.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -2094,7 +2123,7 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def update_permission(file_id, permission_id, permission_object = nil, remove_expiration: nil, supports_team_drives: nil, transfer_ownership: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def update_permission(file_id, permission_id, permission_object = nil, remove_expiration: nil, supports_team_drives: nil, transfer_ownership: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, 'files/{fileId}/permissions/{permissionId}', options)
command.request_representation = Google::Apis::DriveV2::Permission::Representation
command.request_object = permission_object
@ -2105,6 +2134,7 @@ module Google
command.query['removeExpiration'] = remove_expiration unless remove_expiration.nil?
command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
command.query['transferOwnership'] = transfer_ownership unless transfer_ownership.nil?
command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.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?
@ -2946,6 +2976,10 @@ module Google
# Gets a Team Drive's metadata by ID.
# @param [String] team_drive_id
# The ID of the Team Drive
# @param [Boolean] use_domain_admin_access
# Whether the request should be treated as if it was issued by a domain
# administrator; if set to true, then the requester will be granted access if
# they are an administrator of the domain to which the Team Drive belongs.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -2967,11 +3001,12 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_teamdrive(team_drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def get_teamdrive(team_drive_id, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'teamdrives/{teamDriveId}', options)
command.response_representation = Google::Apis::DriveV2::TeamDrive::Representation
command.response_class = Google::Apis::DriveV2::TeamDrive
command.params['teamDriveId'] = team_drive_id unless team_drive_id.nil?
command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.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?
@ -3025,6 +3060,12 @@ module Google
# Maximum number of Team Drives to return.
# @param [String] page_token
# Page token for Team Drives.
# @param [String] q
# Query string for searching Team Drives.
# @param [Boolean] use_domain_admin_access
# Whether the request should be treated as if it was issued by a domain
# administrator; if set to true, then all Team Drives of the domain in which the
# requester is an administrator are returned.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -3046,12 +3087,14 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_teamdrives(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_teamdrives(max_results: nil, page_token: nil, q: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'teamdrives', options)
command.response_representation = Google::Apis::DriveV2::TeamDriveList::Representation
command.response_class = Google::Apis::DriveV2::TeamDriveList
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['q'] = q unless q.nil?
command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.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?

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/logging/docs/
module LoggingV2
VERSION = 'V2'
REVISION = '20171002'
REVISION = '20171030'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -685,6 +685,14 @@ module Google
# @return [Google::Apis::LoggingV2::LogEntrySourceLocation]
attr_accessor :source_location
# Optional. Id of the span within the trace associated with the log entry. e.g. "
# 0000000000000042" For Stackdriver trace spans, this is the same format that
# the Stackdriver trace API uses. The ID is a 16-character hexadecimal encoding
# of an 8-byte array.
# Corresponds to the JSON property `spanId`
# @return [String]
attr_accessor :span_id
# The log entry payload, represented as a Unicode string (UTF-8).
# Corresponds to the JSON property `textPayload`
# @return [String]
@ -725,6 +733,7 @@ module Google
@resource = args[:resource] if args.key?(:resource)
@severity = args[:severity] if args.key?(:severity)
@source_location = args[:source_location] if args.key?(:source_location)
@span_id = args[:span_id] if args.key?(:span_id)
@text_payload = args[:text_payload] if args.key?(:text_payload)
@timestamp = args[:timestamp] if args.key?(:timestamp)
@trace = args[:trace] if args.key?(:trace)

View File

@ -352,6 +352,7 @@ module Google
property :severity, as: 'severity'
property :source_location, as: 'sourceLocation', class: Google::Apis::LoggingV2::LogEntrySourceLocation, decorator: Google::Apis::LoggingV2::LogEntrySourceLocation::Representation
property :span_id, as: 'spanId'
property :text_payload, as: 'textPayload'
property :timestamp, as: 'timestamp'
property :trace, as: 'trace'

View File

@ -690,6 +690,207 @@ module Google
execute_or_queue_command(command, &block)
end
# Creates a new exclusion in a specified parent resource. Only log entries
# belonging to that resource can be excluded. You can have up to 10 exclusions
# in a resource.
# @param [String] parent
# Required. The parent resource in which to create the exclusion:
# "projects/[PROJECT_ID]"
# "organizations/[ORGANIZATION_ID]"
# "billingAccounts/[BILLING_ACCOUNT_ID]"
# "folders/[FOLDER_ID]"
# Examples: "projects/my-logging-project", "organizations/123456789".
# @param [Google::Apis::LoggingV2::LogExclusion] log_exclusion_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::LoggingV2::LogExclusion] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::LoggingV2::LogExclusion]
#
# @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 create_exclusion(parent, log_exclusion_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/{+parent}/exclusions', options)
command.request_representation = Google::Apis::LoggingV2::LogExclusion::Representation
command.request_object = log_exclusion_object
command.response_representation = Google::Apis::LoggingV2::LogExclusion::Representation
command.response_class = Google::Apis::LoggingV2::LogExclusion
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Deletes an exclusion.
# @param [String] name
# Required. The resource name of an existing exclusion to delete:
# "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
# "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
# "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
# "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"
# Example: "projects/my-project-id/exclusions/my-exclusion-id".
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::LoggingV2::Empty]
#
# @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_exclusion(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v2/{+name}', options)
command.response_representation = Google::Apis::LoggingV2::Empty::Representation
command.response_class = Google::Apis::LoggingV2::Empty
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets the description of an exclusion.
# @param [String] name
# Required. The resource name of an existing exclusion:
# "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
# "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
# "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
# "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"
# Example: "projects/my-project-id/exclusions/my-exclusion-id".
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::LoggingV2::LogExclusion] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::LoggingV2::LogExclusion]
#
# @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_exclusion(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2/{+name}', options)
command.response_representation = Google::Apis::LoggingV2::LogExclusion::Representation
command.response_class = Google::Apis::LoggingV2::LogExclusion
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists all the exclusions in a parent resource.
# @param [String] parent
# Required. The parent resource whose exclusions are to be listed.
# "projects/[PROJECT_ID]"
# "organizations/[ORGANIZATION_ID]"
# "billingAccounts/[BILLING_ACCOUNT_ID]"
# "folders/[FOLDER_ID]"
# @param [Fixnum] page_size
# Optional. The maximum number of results to return from this request. Non-
# positive values are ignored. The presence of nextPageToken in the response
# indicates that more results might be available.
# @param [String] page_token
# Optional. If present, then retrieve the next batch of results from the
# preceding call to this method. pageToken must be the value of nextPageToken
# from the previous response. The values of other method parameters should be
# identical to those in the previous call.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::LoggingV2::ListExclusionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::LoggingV2::ListExclusionsResponse]
#
# @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_exclusions(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2/{+parent}/exclusions', options)
command.response_representation = Google::Apis::LoggingV2::ListExclusionsResponse::Representation
command.response_class = Google::Apis::LoggingV2::ListExclusionsResponse
command.params['parent'] = parent unless parent.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Changes one or more properties of an existing exclusion.
# @param [String] name
# Required. The resource name of the exclusion to update:
# "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
# "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
# "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
# "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"
# Example: "projects/my-project-id/exclusions/my-exclusion-id".
# @param [Google::Apis::LoggingV2::LogExclusion] log_exclusion_object
# @param [String] update_mask
# Required. A nonempty list of fields to change in the existing exclusion. New
# values for the fields are taken from the corresponding fields in the
# LogExclusion included in this request. Fields not mentioned in update_mask are
# not changed and are ignored in the request.For example, to change the filter
# and description of an exclusion, specify an update_mask of "filter,description"
# .
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::LoggingV2::LogExclusion] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::LoggingV2::LogExclusion]
#
# @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_exclusion(name, log_exclusion_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v2/{+name}', options)
command.request_representation = Google::Apis::LoggingV2::LogExclusion::Representation
command.request_object = log_exclusion_object
command.response_representation = Google::Apis::LoggingV2::LogExclusion::Representation
command.response_class = Google::Apis::LoggingV2::LogExclusion
command.params['name'] = name unless name.nil?
command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates a new exclusion in a specified parent resource. Only log entries
# belonging to that resource can be excluded. You can have up to 10 exclusions
# in a resource.
@ -1269,6 +1470,91 @@ module Google
execute_or_queue_command(command, &block)
end
# Deletes all the log entries in a log. The log reappears if it receives new
# entries. Log entries written shortly before the delete operation might not be
# deleted.
# @param [String] log_name
# Required. The resource name of the log to delete:
# "projects/[PROJECT_ID]/logs/[LOG_ID]"
# "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
# "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
# "folders/[FOLDER_ID]/logs/[LOG_ID]"
# [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
# , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
# 2Factivity". For more information about log names, see LogEntry.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::LoggingV2::Empty]
#
# @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_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v2/{+logName}', options)
command.response_representation = Google::Apis::LoggingV2::Empty::Representation
command.response_class = Google::Apis::LoggingV2::Empty
command.params['logName'] = log_name unless log_name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists the logs in projects, organizations, folders, or billing accounts. Only
# logs that have entries are listed.
# @param [String] parent
# Required. The resource name that owns the logs:
# "projects/[PROJECT_ID]"
# "organizations/[ORGANIZATION_ID]"
# "billingAccounts/[BILLING_ACCOUNT_ID]"
# "folders/[FOLDER_ID]"
# @param [Fixnum] page_size
# Optional. The maximum number of results to return from this request. Non-
# positive values are ignored. The presence of nextPageToken in the response
# indicates that more results might be available.
# @param [String] page_token
# Optional. If present, then retrieve the next batch of results from the
# preceding call to this method. pageToken must be the value of nextPageToken
# from the previous response. The values of other method parameters should be
# identical to those in the previous call.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::LoggingV2::ListLogsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::LoggingV2::ListLogsResponse]
#
# @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_logs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2/{+parent}/logs', options)
command.response_representation = Google::Apis::LoggingV2::ListLogsResponse::Representation
command.response_class = Google::Apis::LoggingV2::ListLogsResponse
command.params['parent'] = parent unless parent.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists the descriptors for monitored resource types used by Stackdriver Logging.
# @param [Fixnum] page_size
# Optional. The maximum number of results to return from this request. Non-
@ -2640,6 +2926,237 @@ module Google
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates a sink that exports specified log entries to a destination. The export
# of newly-ingested log entries begins immediately, unless the sink's
# writer_identity is not permitted to write to the destination. A sink can
# export log entries only from the resource owning the sink.
# @param [String] parent
# Required. The resource in which to create the sink:
# "projects/[PROJECT_ID]"
# "organizations/[ORGANIZATION_ID]"
# "billingAccounts/[BILLING_ACCOUNT_ID]"
# "folders/[FOLDER_ID]"
# Examples: "projects/my-logging-project", "organizations/123456789".
# @param [Google::Apis::LoggingV2::LogSink] log_sink_object
# @param [Boolean] unique_writer_identity
# Optional. Determines the kind of IAM identity returned as writer_identity in
# the new sink. If this value is omitted or set to false, and if the sink's
# parent is a project, then the value returned as writer_identity is the same
# group or service account used by Stackdriver Logging before the addition of
# writer identities to this API. The sink's destination must be in the same
# project as the sink itself.If this field is set to true, or if the sink is
# owned by a non-project resource such as an organization, then the value of
# writer_identity will be a unique service account used only for exports from
# the new sink. For more information, see writer_identity in LogSink.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::LoggingV2::LogSink] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::LoggingV2::LogSink]
#
# @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 create_sink(parent, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/{+parent}/sinks', options)
command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
command.request_object = log_sink_object
command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
command.response_class = Google::Apis::LoggingV2::LogSink
command.params['parent'] = parent unless parent.nil?
command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Deletes a sink. If the sink has a unique writer_identity, then that service
# account is also deleted.
# @param [String] sink_name
# Required. The full resource name of the sink to delete, including the parent
# resource and the sink identifier:
# "projects/[PROJECT_ID]/sinks/[SINK_ID]"
# "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
# "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
# "folders/[FOLDER_ID]/sinks/[SINK_ID]"
# Example: "projects/my-project-id/sinks/my-sink-id".
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::LoggingV2::Empty]
#
# @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_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v2/{+sinkName}', options)
command.response_representation = Google::Apis::LoggingV2::Empty::Representation
command.response_class = Google::Apis::LoggingV2::Empty
command.params['sinkName'] = sink_name unless sink_name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets a sink.
# @param [String] sink_name
# Required. The resource name of the sink:
# "projects/[PROJECT_ID]/sinks/[SINK_ID]"
# "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
# "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
# "folders/[FOLDER_ID]/sinks/[SINK_ID]"
# Example: "projects/my-project-id/sinks/my-sink-id".
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::LoggingV2::LogSink] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::LoggingV2::LogSink]
#
# @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_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2/{+sinkName}', options)
command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
command.response_class = Google::Apis::LoggingV2::LogSink
command.params['sinkName'] = sink_name unless sink_name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists sinks.
# @param [String] parent
# Required. The parent resource whose sinks are to be listed:
# "projects/[PROJECT_ID]"
# "organizations/[ORGANIZATION_ID]"
# "billingAccounts/[BILLING_ACCOUNT_ID]"
# "folders/[FOLDER_ID]"
# @param [Fixnum] page_size
# Optional. The maximum number of results to return from this request. Non-
# positive values are ignored. The presence of nextPageToken in the response
# indicates that more results might be available.
# @param [String] page_token
# Optional. If present, then retrieve the next batch of results from the
# preceding call to this method. pageToken must be the value of nextPageToken
# from the previous response. The values of other method parameters should be
# identical to those in the previous call.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::LoggingV2::ListSinksResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::LoggingV2::ListSinksResponse]
#
# @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_sinks(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2/{+parent}/sinks', options)
command.response_representation = Google::Apis::LoggingV2::ListSinksResponse::Representation
command.response_class = Google::Apis::LoggingV2::ListSinksResponse
command.params['parent'] = parent unless parent.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Updates a sink. This method replaces the following fields in the existing sink
# with values from the new sink: destination, and filter. The updated sink might
# also have a new writer_identity; see the unique_writer_identity field.
# @param [String] sink_name
# Required. The full resource name of the sink to update, including the parent
# resource and the sink identifier:
# "projects/[PROJECT_ID]/sinks/[SINK_ID]"
# "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
# "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
# "folders/[FOLDER_ID]/sinks/[SINK_ID]"
# Example: "projects/my-project-id/sinks/my-sink-id".
# @param [Google::Apis::LoggingV2::LogSink] log_sink_object
# @param [Boolean] unique_writer_identity
# Optional. See sinks.create for a description of this field. When updating a
# sink, the effect of this field on the value of writer_identity in the updated
# sink depends on both the old and new values of this field:
# If the old and new values of this field are both false or both true, then
# there is no change to the sink's writer_identity.
# If the old value is false and the new value is true, then writer_identity is
# changed to a unique service account.
# It is an error if the old value is true and the new value is set to false or
# defaulted to false.
# @param [String] update_mask
# Optional. Field mask that specifies the fields in sink that need an update. A
# sink field will be overwritten if, and only if, it is in the update mask. name
# and output only fields cannot be updated.An empty updateMask is temporarily
# treated as using the following mask for backwards compatibility purposes:
# destination,filter,includeChildren At some point in the future, behavior will
# be removed and specifying an empty updateMask will be an error.For a detailed
# FieldMask definition, see https://developers.google.com/protocol-buffers/docs/
# reference/google.protobuf#fieldmaskExample: updateMask=filter.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::LoggingV2::LogSink] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::LoggingV2::LogSink]
#
# @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_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:put, 'v2/{+sinkName}', options)
command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
command.request_object = log_sink_object
command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
command.response_class = Google::Apis::LoggingV2::LogSink
command.params['sinkName'] = sink_name unless sink_name.nil?
command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
protected

View File

@ -1,34 +0,0 @@
# 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/playmoviespartner_v1/service.rb'
require 'google/apis/playmoviespartner_v1/classes.rb'
require 'google/apis/playmoviespartner_v1/representations.rb'
module Google
module Apis
# Google Play Movies Partner API
#
# Gets the delivery status of titles for Google Play Movies Partners.
#
# @see https://developers.google.com/playmoviespartner/
module PlaymoviespartnerV1
VERSION = 'V1'
REVISION = '20170418'
# View the digital assets you publish on Google Play Movies and TV
AUTH_PLAYMOVIES_PARTNER_READONLY = 'https://www.googleapis.com/auth/playmovies_partner.readonly'
end
end
end

View File

@ -1,782 +0,0 @@
# 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 PlaymoviespartnerV1
# An Avail describes the Availability Window of a specific Edit in a given
# country, which means the period Google is allowed to sell or rent the Edit.
# Avails are exposed in EMA format Version 1.6b (available at
# http://www.movielabs.com/md/avails/)
# Studios can see the Avails for the Titles they own.
# Post-production houses cannot see any Avails.
class Avail
include Google::Apis::Core::Hashable
# Other identifier referring to the Edit, as defined by partner.
# Example: "GOOGLER_2006"
# Corresponds to the JSON property `altId`
# @return [String]
attr_accessor :alt_id
# ID internally generated by Google to uniquely identify an Avail.
# Not part of EMA Specs.
# Corresponds to the JSON property `availId`
# @return [String]
attr_accessor :avail_id
# Communicating an exempt category as defined by FCC regulations.
# It is not required for non-US Avails.
# Example: "1"
# Corresponds to the JSON property `captionExemption`
# @return [String]
attr_accessor :caption_exemption
# Communicating if caption file will be delivered.
# Corresponds to the JSON property `captionIncluded`
# @return [Boolean]
attr_accessor :caption_included
alias_method :caption_included?, :caption_included
# Title Identifier. This should be the Title Level EIDR.
# Example: "10.5240/1489-49A2-3956-4B2D-FE16-5".
# Corresponds to the JSON property `contentId`
# @return [String]
attr_accessor :content_id
# The name of the studio that owns the Edit referred in the Avail.
# This is the equivalent of `studio_name` in other resources, but it follows
# the EMA nomenclature.
# Example: "Google Films".
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
# Manifestation Identifier. This should be the Manifestation
# Level EIDR.
# Example: "10.2340/1489-49A2-3956-4B2D-FE16-7"
# Corresponds to the JSON property `encodeId`
# @return [String]
attr_accessor :encode_id
# End of term in YYYY-MM-DD format in the timezone of the country
# of the Avail.
# "Open" if no end date is available.
# Example: "2019-02-17"
# Corresponds to the JSON property `end`
# @return [String]
attr_accessor :end
# Other identifier referring to the episode, as defined by partner.
# Only available on TV avails.
# Example: "rs_googlers_s1_3".
# Corresponds to the JSON property `episodeAltId`
# @return [String]
attr_accessor :episode_alt_id
# The number assigned to the episode within a season.
# Only available on TV Avails.
# Example: "3".
# Corresponds to the JSON property `episodeNumber`
# @return [String]
attr_accessor :episode_number
# OPTIONAL.TV Only. Title used by involved parties to refer to this episode.
# Only available on TV Avails.
# Example: "Coding at Google".
# Corresponds to the JSON property `episodeTitleInternalAlias`
# @return [String]
attr_accessor :episode_title_internal_alias
# Indicates the format profile covered by the transaction.
# Corresponds to the JSON property `formatProfile`
# @return [String]
attr_accessor :format_profile
# Type of transaction.
# Corresponds to the JSON property `licenseType`
# @return [String]
attr_accessor :license_type
# Name of the post-production houses that manage the Avail.
# Not part of EMA Specs.
# Corresponds to the JSON property `pphNames`
# @return [Array<String>]
attr_accessor :pph_names
# Type of pricing that should be applied to this Avail
# based on how the partner classify them.
# Example: "Tier", "WSP", "SRP", or "Category".
# Corresponds to the JSON property `priceType`
# @return [String]
attr_accessor :price_type
# Value to be applied to the pricing type.
# Example: "4" or "2.99"
# Corresponds to the JSON property `priceValue`
# @return [String]
attr_accessor :price_value
# Edit Identifier. This should be the Edit Level EIDR.
# Example: "10.2340/1489-49A2-3956-4B2D-FE16-6"
# Corresponds to the JSON property `productId`
# @return [String]
attr_accessor :product_id
# Value representing the rating reason.
# Rating reasons should be formatted as per
# [EMA ratings spec](http://www.movielabs.com/md/ratings/)
# and comma-separated for inclusion of multiple reasons.
# Example: "L, S, V"
# Corresponds to the JSON property `ratingReason`
# @return [String]
attr_accessor :rating_reason
# Rating system applied to the version of title within territory
# of Avail.
# Rating systems should be formatted as per
# [EMA ratings spec](http://www.movielabs.com/md/ratings/)
# Example: "MPAA"
# Corresponds to the JSON property `ratingSystem`
# @return [String]
attr_accessor :rating_system
# Value representing the rating.
# Ratings should be formatted as per http://www.movielabs.com/md/ratings/
# Example: "PG"
# Corresponds to the JSON property `ratingValue`
# @return [String]
attr_accessor :rating_value
# Release date of the Title in earliest released territory.
# Typically it is just the year, but it is free-form as per EMA spec.
# Examples: "1979", "Oct 2014"
# Corresponds to the JSON property `releaseDate`
# @return [String]
attr_accessor :release_date
# Other identifier referring to the season, as defined by partner.
# Only available on TV avails.
# Example: "rs_googlers_s1".
# Corresponds to the JSON property `seasonAltId`
# @return [String]
attr_accessor :season_alt_id
# The number assigned to the season within a series.
# Only available on TV Avails.
# Example: "1".
# Corresponds to the JSON property `seasonNumber`
# @return [String]
attr_accessor :season_number
# Title used by involved parties to refer to this season.
# Only available on TV Avails.
# Example: "Googlers, The".
# Corresponds to the JSON property `seasonTitleInternalAlias`
# @return [String]
attr_accessor :season_title_internal_alias
# Other identifier referring to the series, as defined by partner.
# Only available on TV avails.
# Example: "rs_googlers".
# Corresponds to the JSON property `seriesAltId`
# @return [String]
attr_accessor :series_alt_id
# Title used by involved parties to refer to this series.
# Only available on TV Avails.
# Example: "Googlers, The".
# Corresponds to the JSON property `seriesTitleInternalAlias`
# @return [String]
attr_accessor :series_title_internal_alias
# Start of term in YYYY-MM-DD format in the timezone of the
# country of the Avail.
# Example: "2013-05-14".
# Corresponds to the JSON property `start`
# @return [String]
attr_accessor :start
# Spoken language of the intended audience.
# Language shall be encoded in accordance with RFC 5646.
# Example: "fr".
# Corresponds to the JSON property `storeLanguage`
# @return [String]
attr_accessor :store_language
# First date an Edit could be publically announced as becoming
# available at a specific future date in territory of Avail.
# *Not* the Avail start date or pre-order start date.
# Format is YYYY-MM-DD.
# Only available for pre-orders.
# Example: "2012-12-10"
# Corresponds to the JSON property `suppressionLiftDate`
# @return [String]
attr_accessor :suppression_lift_date
# ISO 3166-1 alpha-2 country code for the country or territory
# of this Avail.
# For Avails, we use Territory in lieu of Country to comply with
# EMA specifications.
# But please note that Territory and Country identify the same thing.
# Example: "US".
# Corresponds to the JSON property `territory`
# @return [String]
attr_accessor :territory
# Title used by involved parties to refer to this content.
# Example: "Googlers, The".
# Only available on Movie Avails.
# Corresponds to the JSON property `titleInternalAlias`
# @return [String]
attr_accessor :title_internal_alias
# Google-generated ID identifying the video linked to this Avail, once
# delivered.
# Not part of EMA Specs.
# Example: 'gtry456_xc'
# Corresponds to the JSON property `videoId`
# @return [String]
attr_accessor :video_id
# Work type as enumerated in EMA.
# Corresponds to the JSON property `workType`
# @return [String]
attr_accessor :work_type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@alt_id = args[:alt_id] if args.key?(:alt_id)
@avail_id = args[:avail_id] if args.key?(:avail_id)
@caption_exemption = args[:caption_exemption] if args.key?(:caption_exemption)
@caption_included = args[:caption_included] if args.key?(:caption_included)
@content_id = args[:content_id] if args.key?(:content_id)
@display_name = args[:display_name] if args.key?(:display_name)
@encode_id = args[:encode_id] if args.key?(:encode_id)
@end = args[:end] if args.key?(:end)
@episode_alt_id = args[:episode_alt_id] if args.key?(:episode_alt_id)
@episode_number = args[:episode_number] if args.key?(:episode_number)
@episode_title_internal_alias = args[:episode_title_internal_alias] if args.key?(:episode_title_internal_alias)
@format_profile = args[:format_profile] if args.key?(:format_profile)
@license_type = args[:license_type] if args.key?(:license_type)
@pph_names = args[:pph_names] if args.key?(:pph_names)
@price_type = args[:price_type] if args.key?(:price_type)
@price_value = args[:price_value] if args.key?(:price_value)
@product_id = args[:product_id] if args.key?(:product_id)
@rating_reason = args[:rating_reason] if args.key?(:rating_reason)
@rating_system = args[:rating_system] if args.key?(:rating_system)
@rating_value = args[:rating_value] if args.key?(:rating_value)
@release_date = args[:release_date] if args.key?(:release_date)
@season_alt_id = args[:season_alt_id] if args.key?(:season_alt_id)
@season_number = args[:season_number] if args.key?(:season_number)
@season_title_internal_alias = args[:season_title_internal_alias] if args.key?(:season_title_internal_alias)
@series_alt_id = args[:series_alt_id] if args.key?(:series_alt_id)
@series_title_internal_alias = args[:series_title_internal_alias] if args.key?(:series_title_internal_alias)
@start = args[:start] if args.key?(:start)
@store_language = args[:store_language] if args.key?(:store_language)
@suppression_lift_date = args[:suppression_lift_date] if args.key?(:suppression_lift_date)
@territory = args[:territory] if args.key?(:territory)
@title_internal_alias = args[:title_internal_alias] if args.key?(:title_internal_alias)
@video_id = args[:video_id] if args.key?(:video_id)
@work_type = args[:work_type] if args.key?(:work_type)
end
end
# Response to the 'ListAvails' method.
class ListAvailsResponse
include Google::Apis::Core::Hashable
# List of Avails that match the request criteria.
# Corresponds to the JSON property `avails`
# @return [Array<Google::Apis::PlaymoviespartnerV1::Avail>]
attr_accessor :avails
# See _List methods rules_ for info about this field.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# See _List methods rules_ for more information about this field.
# Corresponds to the JSON property `totalSize`
# @return [Fixnum]
attr_accessor :total_size
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@avails = args[:avails] if args.key?(:avails)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@total_size = args[:total_size] if args.key?(:total_size)
end
end
# Response to the 'ListOrders' method.
class ListOrdersResponse
include Google::Apis::Core::Hashable
# See _List methods rules_ for info about this field.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# List of Orders that match the request criteria.
# Corresponds to the JSON property `orders`
# @return [Array<Google::Apis::PlaymoviespartnerV1::Order>]
attr_accessor :orders
# See _List methods rules_ for more information about this field.
# Corresponds to the JSON property `totalSize`
# @return [Fixnum]
attr_accessor :total_size
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@orders = args[:orders] if args.key?(:orders)
@total_size = args[:total_size] if args.key?(:total_size)
end
end
# Response to the 'ListStoreInfos' method.
class ListStoreInfosResponse
include Google::Apis::Core::Hashable
# See 'List methods rules' for info about this field.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# List of StoreInfos that match the request criteria.
# Corresponds to the JSON property `storeInfos`
# @return [Array<Google::Apis::PlaymoviespartnerV1::StoreInfo>]
attr_accessor :store_infos
# See _List methods rules_ for more information about this field.
# Corresponds to the JSON property `totalSize`
# @return [Fixnum]
attr_accessor :total_size
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@store_infos = args[:store_infos] if args.key?(:store_infos)
@total_size = args[:total_size] if args.key?(:total_size)
end
end
# An Order tracks the fulfillment of an Edit when delivered using the
# legacy, non-component-based delivery.
# Each Order is uniquely identified by an `order_id`, which is generated
# by Google.
# Externally, Orders can also be identified by partners using its `custom_id`
# (when provided).
class Order
include Google::Apis::Core::Hashable
# Timestamp when the Order was approved.
# Corresponds to the JSON property `approvedTime`
# @return [String]
attr_accessor :approved_time
# YouTube Channel ID that should be used to fulfill the Order.
# Example: "UCRG64darCZhb".
# Corresponds to the JSON property `channelId`
# @return [String]
attr_accessor :channel_id
# YouTube Channel Name that should be used to fulfill the Order.
# Example: "Google_channel".
# Corresponds to the JSON property `channelName`
# @return [String]
attr_accessor :channel_name
# Countries where the Order is available,
# using the "ISO 3166-1 alpha-2" format (example: "US").
# Corresponds to the JSON property `countries`
# @return [Array<String>]
attr_accessor :countries
# ID that can be used to externally identify an Order.
# This ID is provided by partners when submitting the Avails.
# Example: 'GOOGLER_2006'
# Corresponds to the JSON property `customId`
# @return [String]
attr_accessor :custom_id
# Timestamp of the earliest start date of the Avails
# linked to this Order.
# Corresponds to the JSON property `earliestAvailStartTime`
# @return [String]
attr_accessor :earliest_avail_start_time
# Default Episode name,
# usually in the language of the country of origin.
# Only available for TV Edits
# Example: "Googlers, The - Pilot".
# Corresponds to the JSON property `episodeName`
# @return [String]
attr_accessor :episode_name
# Legacy Order priority, as defined by Google.
# Example: 'P0'
# Corresponds to the JSON property `legacyPriority`
# @return [String]
attr_accessor :legacy_priority
# Default Edit name,
# usually in the language of the country of origin.
# Example: "Googlers, The".
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# A simpler representation of the priority.
# Corresponds to the JSON property `normalizedPriority`
# @return [String]
attr_accessor :normalized_priority
# ID internally generated by Google to uniquely identify an Order.
# Example: 'abcde12_x'
# Corresponds to the JSON property `orderId`
# @return [String]
attr_accessor :order_id
# Timestamp when the Order was created.
# Corresponds to the JSON property `orderedTime`
# @return [String]
attr_accessor :ordered_time
# Name of the post-production house that manages the Edit ordered.
# Corresponds to the JSON property `pphName`
# @return [String]
attr_accessor :pph_name
# Order priority, as defined by Google.
# The higher the value, the higher the priority.
# Example: 90
# Corresponds to the JSON property `priority`
# @return [Float]
attr_accessor :priority
# Timestamp when the Order was fulfilled.
# Corresponds to the JSON property `receivedTime`
# @return [String]
attr_accessor :received_time
# Field explaining why an Order has been rejected.
# Example: "Trailer audio is 2ch mono, please re-deliver in stereo".
# Corresponds to the JSON property `rejectionNote`
# @return [String]
attr_accessor :rejection_note
# Default Season name,
# usually in the language of the country of origin.
# Only available for TV Edits
# Example: "Googlers, The - A Brave New World".
# Corresponds to the JSON property `seasonName`
# @return [String]
attr_accessor :season_name
# Default Show name,
# usually in the language of the country of origin.
# Only available for TV Edits
# Example: "Googlers, The".
# Corresponds to the JSON property `showName`
# @return [String]
attr_accessor :show_name
# High-level status of the order.
# Corresponds to the JSON property `status`
# @return [String]
attr_accessor :status
# Detailed status of the order
# Corresponds to the JSON property `statusDetail`
# @return [String]
attr_accessor :status_detail
# Name of the studio that owns the Edit ordered.
# Corresponds to the JSON property `studioName`
# @return [String]
attr_accessor :studio_name
# Type of the Edit linked to the Order.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
# Google-generated ID identifying the video linked to this Order, once
# delivered.
# Example: 'gtry456_xc'.
# Corresponds to the JSON property `videoId`
# @return [String]
attr_accessor :video_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@approved_time = args[:approved_time] if args.key?(:approved_time)
@channel_id = args[:channel_id] if args.key?(:channel_id)
@channel_name = args[:channel_name] if args.key?(:channel_name)
@countries = args[:countries] if args.key?(:countries)
@custom_id = args[:custom_id] if args.key?(:custom_id)
@earliest_avail_start_time = args[:earliest_avail_start_time] if args.key?(:earliest_avail_start_time)
@episode_name = args[:episode_name] if args.key?(:episode_name)
@legacy_priority = args[:legacy_priority] if args.key?(:legacy_priority)
@name = args[:name] if args.key?(:name)
@normalized_priority = args[:normalized_priority] if args.key?(:normalized_priority)
@order_id = args[:order_id] if args.key?(:order_id)
@ordered_time = args[:ordered_time] if args.key?(:ordered_time)
@pph_name = args[:pph_name] if args.key?(:pph_name)
@priority = args[:priority] if args.key?(:priority)
@received_time = args[:received_time] if args.key?(:received_time)
@rejection_note = args[:rejection_note] if args.key?(:rejection_note)
@season_name = args[:season_name] if args.key?(:season_name)
@show_name = args[:show_name] if args.key?(:show_name)
@status = args[:status] if args.key?(:status)
@status_detail = args[:status_detail] if args.key?(:status_detail)
@studio_name = args[:studio_name] if args.key?(:studio_name)
@type = args[:type] if args.key?(:type)
@video_id = args[:video_id] if args.key?(:video_id)
end
end
# Information about a playable sequence (video) associated with an Edit
# and available at the Google Play Store.
# Internally, each StoreInfo is uniquely identified by a `video_id`
# and `country`.
# Externally, Title-level EIDR or Edit-level EIDR, if provided,
# can also be used to identify a specific title or edit in a country.
class StoreInfo
include Google::Apis::Core::Hashable
# Audio tracks available for this Edit.
# Corresponds to the JSON property `audioTracks`
# @return [Array<String>]
attr_accessor :audio_tracks
# Country where Edit is available in ISO 3166-1 alpha-2 country
# code.
# Example: "US".
# Corresponds to the JSON property `country`
# @return [String]
attr_accessor :country
# Edit-level EIDR ID.
# Example: "10.5240/1489-49A2-3956-4B2D-FE16-6".
# Corresponds to the JSON property `editLevelEidr`
# @return [String]
attr_accessor :edit_level_eidr
# The number assigned to the episode within a season.
# Only available on TV Edits.
# Example: "1".
# Corresponds to the JSON property `episodeNumber`
# @return [String]
attr_accessor :episode_number
# Whether the Edit has a 5.1 channel audio track.
# Corresponds to the JSON property `hasAudio51`
# @return [Boolean]
attr_accessor :has_audio51
alias_method :has_audio51?, :has_audio51
# Whether the Edit has a EST offer.
# Corresponds to the JSON property `hasEstOffer`
# @return [Boolean]
attr_accessor :has_est_offer
alias_method :has_est_offer?, :has_est_offer
# Whether the Edit has a HD offer.
# Corresponds to the JSON property `hasHdOffer`
# @return [Boolean]
attr_accessor :has_hd_offer
alias_method :has_hd_offer?, :has_hd_offer
# Whether the Edit has info cards.
# Corresponds to the JSON property `hasInfoCards`
# @return [Boolean]
attr_accessor :has_info_cards
alias_method :has_info_cards?, :has_info_cards
# Whether the Edit has a SD offer.
# Corresponds to the JSON property `hasSdOffer`
# @return [Boolean]
attr_accessor :has_sd_offer
alias_method :has_sd_offer?, :has_sd_offer
# Whether the Edit has a VOD offer.
# Corresponds to the JSON property `hasVodOffer`
# @return [Boolean]
attr_accessor :has_vod_offer
alias_method :has_vod_offer?, :has_vod_offer
# Timestamp when the Edit went live on the Store.
# Corresponds to the JSON property `liveTime`
# @return [String]
attr_accessor :live_time
# Knowledge Graph ID associated to this Edit, if available.
# This ID links the Edit to its knowledge entity, externally accessible
# at http://freebase.com.
# In the absense of Title EIDR or Edit EIDR, this ID helps link together
# multiple Edits across countries.
# Example: '/m/0ffx29'
# Corresponds to the JSON property `mid`
# @return [String]
attr_accessor :mid
# Default Edit name, usually in the language of the country of
# origin.
# Example: "Googlers, The".
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Name of the post-production houses that manage the Edit.
# Corresponds to the JSON property `pphNames`
# @return [Array<String>]
attr_accessor :pph_names
# Google-generated ID identifying the season linked to the Edit.
# Only available for TV Edits.
# Example: 'ster23ex'
# Corresponds to the JSON property `seasonId`
# @return [String]
attr_accessor :season_id
# Default Season name, usually in the language of the country of
# origin.
# Only available for TV Edits
# Example: "Googlers, The - A Brave New World".
# Corresponds to the JSON property `seasonName`
# @return [String]
attr_accessor :season_name
# The number assigned to the season within a show.
# Only available on TV Edits.
# Example: "1".
# Corresponds to the JSON property `seasonNumber`
# @return [String]
attr_accessor :season_number
# Google-generated ID identifying the show linked to the Edit.
# Only available for TV Edits.
# Example: 'et2hsue_x'
# Corresponds to the JSON property `showId`
# @return [String]
attr_accessor :show_id
# Default Show name, usually in the language of the country of
# origin.
# Only available for TV Edits
# Example: "Googlers, The".
# Corresponds to the JSON property `showName`
# @return [String]
attr_accessor :show_name
# Name of the studio that owns the Edit ordered.
# Corresponds to the JSON property `studioName`
# @return [String]
attr_accessor :studio_name
# Subtitles available for this Edit.
# Corresponds to the JSON property `subtitles`
# @return [Array<String>]
attr_accessor :subtitles
# Title-level EIDR ID.
# Example: "10.5240/1489-49A2-3956-4B2D-FE16-5".
# Corresponds to the JSON property `titleLevelEidr`
# @return [String]
attr_accessor :title_level_eidr
# Google-generated ID identifying the trailer linked to the Edit.
# Example: 'bhd_4e_cx'
# Corresponds to the JSON property `trailerId`
# @return [String]
attr_accessor :trailer_id
# Edit type, like Movie, Episode or Season.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
# Google-generated ID identifying the video linked to the Edit.
# Example: 'gtry456_xc'
# Corresponds to the JSON property `videoId`
# @return [String]
attr_accessor :video_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@audio_tracks = args[:audio_tracks] if args.key?(:audio_tracks)
@country = args[:country] if args.key?(:country)
@edit_level_eidr = args[:edit_level_eidr] if args.key?(:edit_level_eidr)
@episode_number = args[:episode_number] if args.key?(:episode_number)
@has_audio51 = args[:has_audio51] if args.key?(:has_audio51)
@has_est_offer = args[:has_est_offer] if args.key?(:has_est_offer)
@has_hd_offer = args[:has_hd_offer] if args.key?(:has_hd_offer)
@has_info_cards = args[:has_info_cards] if args.key?(:has_info_cards)
@has_sd_offer = args[:has_sd_offer] if args.key?(:has_sd_offer)
@has_vod_offer = args[:has_vod_offer] if args.key?(:has_vod_offer)
@live_time = args[:live_time] if args.key?(:live_time)
@mid = args[:mid] if args.key?(:mid)
@name = args[:name] if args.key?(:name)
@pph_names = args[:pph_names] if args.key?(:pph_names)
@season_id = args[:season_id] if args.key?(:season_id)
@season_name = args[:season_name] if args.key?(:season_name)
@season_number = args[:season_number] if args.key?(:season_number)
@show_id = args[:show_id] if args.key?(:show_id)
@show_name = args[:show_name] if args.key?(:show_name)
@studio_name = args[:studio_name] if args.key?(:studio_name)
@subtitles = args[:subtitles] if args.key?(:subtitles)
@title_level_eidr = args[:title_level_eidr] if args.key?(:title_level_eidr)
@trailer_id = args[:trailer_id] if args.key?(:trailer_id)
@type = args[:type] if args.key?(:type)
@video_id = args[:video_id] if args.key?(:video_id)
end
end
end
end
end

View File

@ -1,191 +0,0 @@
# 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 PlaymoviespartnerV1
class Avail
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListAvailsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListOrdersResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListStoreInfosResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Order
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class StoreInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Avail
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :alt_id, as: 'altId'
property :avail_id, as: 'availId'
property :caption_exemption, as: 'captionExemption'
property :caption_included, as: 'captionIncluded'
property :content_id, as: 'contentId'
property :display_name, as: 'displayName'
property :encode_id, as: 'encodeId'
property :end, as: 'end'
property :episode_alt_id, as: 'episodeAltId'
property :episode_number, as: 'episodeNumber'
property :episode_title_internal_alias, as: 'episodeTitleInternalAlias'
property :format_profile, as: 'formatProfile'
property :license_type, as: 'licenseType'
collection :pph_names, as: 'pphNames'
property :price_type, as: 'priceType'
property :price_value, as: 'priceValue'
property :product_id, as: 'productId'
property :rating_reason, as: 'ratingReason'
property :rating_system, as: 'ratingSystem'
property :rating_value, as: 'ratingValue'
property :release_date, as: 'releaseDate'
property :season_alt_id, as: 'seasonAltId'
property :season_number, as: 'seasonNumber'
property :season_title_internal_alias, as: 'seasonTitleInternalAlias'
property :series_alt_id, as: 'seriesAltId'
property :series_title_internal_alias, as: 'seriesTitleInternalAlias'
property :start, as: 'start'
property :store_language, as: 'storeLanguage'
property :suppression_lift_date, as: 'suppressionLiftDate'
property :territory, as: 'territory'
property :title_internal_alias, as: 'titleInternalAlias'
property :video_id, as: 'videoId'
property :work_type, as: 'workType'
end
end
class ListAvailsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :avails, as: 'avails', class: Google::Apis::PlaymoviespartnerV1::Avail, decorator: Google::Apis::PlaymoviespartnerV1::Avail::Representation
property :next_page_token, as: 'nextPageToken'
property :total_size, as: 'totalSize'
end
end
class ListOrdersResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :orders, as: 'orders', class: Google::Apis::PlaymoviespartnerV1::Order, decorator: Google::Apis::PlaymoviespartnerV1::Order::Representation
property :total_size, as: 'totalSize'
end
end
class ListStoreInfosResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :store_infos, as: 'storeInfos', class: Google::Apis::PlaymoviespartnerV1::StoreInfo, decorator: Google::Apis::PlaymoviespartnerV1::StoreInfo::Representation
property :total_size, as: 'totalSize'
end
end
class Order
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :approved_time, as: 'approvedTime'
property :channel_id, as: 'channelId'
property :channel_name, as: 'channelName'
collection :countries, as: 'countries'
property :custom_id, as: 'customId'
property :earliest_avail_start_time, as: 'earliestAvailStartTime'
property :episode_name, as: 'episodeName'
property :legacy_priority, as: 'legacyPriority'
property :name, as: 'name'
property :normalized_priority, as: 'normalizedPriority'
property :order_id, as: 'orderId'
property :ordered_time, as: 'orderedTime'
property :pph_name, as: 'pphName'
property :priority, as: 'priority'
property :received_time, as: 'receivedTime'
property :rejection_note, as: 'rejectionNote'
property :season_name, as: 'seasonName'
property :show_name, as: 'showName'
property :status, as: 'status'
property :status_detail, as: 'statusDetail'
property :studio_name, as: 'studioName'
property :type, as: 'type'
property :video_id, as: 'videoId'
end
end
class StoreInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :audio_tracks, as: 'audioTracks'
property :country, as: 'country'
property :edit_level_eidr, as: 'editLevelEidr'
property :episode_number, as: 'episodeNumber'
property :has_audio51, as: 'hasAudio51'
property :has_est_offer, as: 'hasEstOffer'
property :has_hd_offer, as: 'hasHdOffer'
property :has_info_cards, as: 'hasInfoCards'
property :has_sd_offer, as: 'hasSdOffer'
property :has_vod_offer, as: 'hasVodOffer'
property :live_time, as: 'liveTime'
property :mid, as: 'mid'
property :name, as: 'name'
collection :pph_names, as: 'pphNames'
property :season_id, as: 'seasonId'
property :season_name, as: 'seasonName'
property :season_number, as: 'seasonNumber'
property :show_id, as: 'showId'
property :show_name, as: 'showName'
property :studio_name, as: 'studioName'
collection :subtitles, as: 'subtitles'
property :title_level_eidr, as: 'titleLevelEidr'
property :trailer_id, as: 'trailerId'
property :type, as: 'type'
property :video_id, as: 'videoId'
end
end
end
end
end

View File

@ -1,354 +0,0 @@
# 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 PlaymoviespartnerV1
# Google Play Movies Partner API
#
# Gets the delivery status of titles for Google Play Movies Partners.
#
# @example
# require 'google/apis/playmoviespartner_v1'
#
# Playmoviespartner = Google::Apis::PlaymoviespartnerV1 # Alias the module
# service = Playmoviespartner::PlayMoviesService.new
#
# @see https://developers.google.com/playmoviespartner/
class PlayMoviesService < 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]
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
attr_accessor :quota_user
def initialize
super('https://playmoviespartner.googleapis.com/', '')
@batch_path = 'batch'
end
# Get an Avail given its avail group id and avail id.
# @param [String] account_id
# REQUIRED. See _General rules_ for more information about this field.
# @param [String] avail_id
# REQUIRED. Avail ID.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::PlaymoviespartnerV1::Avail] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PlaymoviespartnerV1::Avail]
#
# @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_account_avail(account_id, avail_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/accounts/{accountId}/avails/{availId}', options)
command.response_representation = Google::Apis::PlaymoviespartnerV1::Avail::Representation
command.response_class = Google::Apis::PlaymoviespartnerV1::Avail
command.params['accountId'] = account_id unless account_id.nil?
command.params['availId'] = avail_id unless avail_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# List Avails owned or managed by the partner.
# See _Authentication and Authorization rules_ and
# _List methods rules_ for more information about this method.
# @param [String] account_id
# REQUIRED. See _General rules_ for more information about this field.
# @param [String] alt_id
# Filter Avails that match a case-insensitive, partner-specific custom id.
# NOTE: this field is deprecated and will be removed on V2; `alt_ids`
# should be used instead.
# @param [Array<String>, String] alt_ids
# Filter Avails that match (case-insensitive) any of the given partner-specific
# custom ids.
# @param [Fixnum] page_size
# See _List methods rules_ for info about this field.
# @param [String] page_token
# See _List methods rules_ for info about this field.
# @param [Array<String>, String] pph_names
# See _List methods rules_ for info about this field.
# @param [Array<String>, String] studio_names
# See _List methods rules_ for info about this field.
# @param [Array<String>, String] territories
# Filter Avails that match (case-insensitive) any of the given country codes,
# using the "ISO 3166-1 alpha-2" format (examples: "US", "us", "Us").
# @param [String] title
# Filter that matches Avails with a `title_internal_alias`,
# `series_title_internal_alias`, `season_title_internal_alias`,
# or `episode_title_internal_alias` that contains the given
# case-insensitive title.
# @param [Array<String>, String] video_ids
# Filter Avails that match any of the given `video_id`s.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::PlaymoviespartnerV1::ListAvailsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PlaymoviespartnerV1::ListAvailsResponse]
#
# @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_account_avails(account_id, alt_id: nil, alt_ids: nil, page_size: nil, page_token: nil, pph_names: nil, studio_names: nil, territories: nil, title: nil, video_ids: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/accounts/{accountId}/avails', options)
command.response_representation = Google::Apis::PlaymoviespartnerV1::ListAvailsResponse::Representation
command.response_class = Google::Apis::PlaymoviespartnerV1::ListAvailsResponse
command.params['accountId'] = account_id unless account_id.nil?
command.query['altId'] = alt_id unless alt_id.nil?
command.query['altIds'] = alt_ids unless alt_ids.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['pphNames'] = pph_names unless pph_names.nil?
command.query['studioNames'] = studio_names unless studio_names.nil?
command.query['territories'] = territories unless territories.nil?
command.query['title'] = title unless title.nil?
command.query['videoIds'] = video_ids unless video_ids.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Get an Order given its id.
# See _Authentication and Authorization rules_ and
# _Get methods rules_ for more information about this method.
# @param [String] account_id
# REQUIRED. See _General rules_ for more information about this field.
# @param [String] order_id
# REQUIRED. Order ID.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::PlaymoviespartnerV1::Order] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PlaymoviespartnerV1::Order]
#
# @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_account_order(account_id, order_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/accounts/{accountId}/orders/{orderId}', options)
command.response_representation = Google::Apis::PlaymoviespartnerV1::Order::Representation
command.response_class = Google::Apis::PlaymoviespartnerV1::Order
command.params['accountId'] = account_id unless account_id.nil?
command.params['orderId'] = order_id unless order_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# List Orders owned or managed by the partner.
# See _Authentication and Authorization rules_ and
# _List methods rules_ for more information about this method.
# @param [String] account_id
# REQUIRED. See _General rules_ for more information about this field.
# @param [String] custom_id
# Filter Orders that match a case-insensitive, partner-specific custom id.
# @param [String] name
# Filter that matches Orders with a `name`, `show`, `season` or `episode`
# that contains the given case-insensitive name.
# @param [Fixnum] page_size
# See _List methods rules_ for info about this field.
# @param [String] page_token
# See _List methods rules_ for info about this field.
# @param [Array<String>, String] pph_names
# See _List methods rules_ for info about this field.
# @param [Array<String>, String] status
# Filter Orders that match one of the given status.
# @param [Array<String>, String] studio_names
# See _List methods rules_ for info about this field.
# @param [Array<String>, String] video_ids
# Filter Orders that match any of the given `video_id`s.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::PlaymoviespartnerV1::ListOrdersResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PlaymoviespartnerV1::ListOrdersResponse]
#
# @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_account_orders(account_id, custom_id: nil, name: nil, page_size: nil, page_token: nil, pph_names: nil, status: nil, studio_names: nil, video_ids: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/accounts/{accountId}/orders', options)
command.response_representation = Google::Apis::PlaymoviespartnerV1::ListOrdersResponse::Representation
command.response_class = Google::Apis::PlaymoviespartnerV1::ListOrdersResponse
command.params['accountId'] = account_id unless account_id.nil?
command.query['customId'] = custom_id unless custom_id.nil?
command.query['name'] = name unless name.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['pphNames'] = pph_names unless pph_names.nil?
command.query['status'] = status unless status.nil?
command.query['studioNames'] = studio_names unless studio_names.nil?
command.query['videoIds'] = video_ids unless video_ids.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# List StoreInfos owned or managed by the partner.
# See _Authentication and Authorization rules_ and
# _List methods rules_ for more information about this method.
# @param [String] account_id
# REQUIRED. See _General rules_ for more information about this field.
# @param [Array<String>, String] countries
# Filter StoreInfos that match (case-insensitive) any of the given country
# codes, using the "ISO 3166-1 alpha-2" format (examples: "US", "us", "Us").
# @param [Array<String>, String] mids
# Filter StoreInfos that match any of the given `mid`s.
# @param [String] name
# Filter that matches StoreInfos with a `name` or `show_name`
# that contains the given case-insensitive name.
# @param [Fixnum] page_size
# See _List methods rules_ for info about this field.
# @param [String] page_token
# See _List methods rules_ for info about this field.
# @param [Array<String>, String] pph_names
# See _List methods rules_ for info about this field.
# @param [Array<String>, String] season_ids
# Filter StoreInfos that match any of the given `season_id`s.
# @param [Array<String>, String] studio_names
# See _List methods rules_ for info about this field.
# @param [String] video_id
# Filter StoreInfos that match a given `video_id`.
# NOTE: this field is deprecated and will be removed on V2; `video_ids`
# should be used instead.
# @param [Array<String>, String] video_ids
# Filter StoreInfos that match any of the given `video_id`s.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::PlaymoviespartnerV1::ListStoreInfosResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PlaymoviespartnerV1::ListStoreInfosResponse]
#
# @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_account_store_infos(account_id, countries: nil, mids: nil, name: nil, page_size: nil, page_token: nil, pph_names: nil, season_ids: nil, studio_names: nil, video_id: nil, video_ids: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/accounts/{accountId}/storeInfos', options)
command.response_representation = Google::Apis::PlaymoviespartnerV1::ListStoreInfosResponse::Representation
command.response_class = Google::Apis::PlaymoviespartnerV1::ListStoreInfosResponse
command.params['accountId'] = account_id unless account_id.nil?
command.query['countries'] = countries unless countries.nil?
command.query['mids'] = mids unless mids.nil?
command.query['name'] = name unless name.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['pphNames'] = pph_names unless pph_names.nil?
command.query['seasonIds'] = season_ids unless season_ids.nil?
command.query['studioNames'] = studio_names unless studio_names.nil?
command.query['videoId'] = video_id unless video_id.nil?
command.query['videoIds'] = video_ids unless video_ids.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Get a StoreInfo given its video id and country.
# See _Authentication and Authorization rules_ and
# _Get methods rules_ for more information about this method.
# @param [String] account_id
# REQUIRED. See _General rules_ for more information about this field.
# @param [String] video_id
# REQUIRED. Video ID.
# @param [String] country
# REQUIRED. Edit country.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::PlaymoviespartnerV1::StoreInfo] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PlaymoviespartnerV1::StoreInfo]
#
# @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_account_store_info_country(account_id, video_id, country, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/accounts/{accountId}/storeInfos/{videoId}/country/{country}', options)
command.response_representation = Google::Apis::PlaymoviespartnerV1::StoreInfo::Representation
command.response_class = Google::Apis::PlaymoviespartnerV1::StoreInfo
command.params['accountId'] = account_id unless account_id.nil?
command.params['videoId'] = video_id unless video_id.nil?
command.params['country'] = country unless country.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.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?
end
end
end
end
end

View File

@ -18,14 +18,14 @@ require 'google/apis/script_v1/representations.rb'
module Google
module Apis
# Google Apps Script Execution API
# Google Apps Script API
#
# An API for managing and executing Google Apps Script projects.
#
# @see https://developers.google.com/apps-script/execution/rest/v1/scripts/run
module ScriptV1
VERSION = 'V1'
REVISION = '20170927'
REVISION = '20171024'
# Read, send, delete, and manage your email
AUTH_SCOPE = 'https://mail.google.com/'

View File

@ -22,12 +22,14 @@ module Google
module Apis
module ScriptV1
# An object that provides information about the nature of an error in the Apps
# Script Execution API. If an
# `run` call succeeds but the
# script function (or Apps Script itself) throws an exception, the response
# body's `error` field contains a
# `Status` object. The `Status` object's `details` field
# An object that provides information about the nature of an error resulting
# from an attempted execution of a script function using the Apps Script API.
# If a run or
# runAsync call
# succeeds but the script function (or Apps Script itself) throws an exception,
# the response body's error field
# contains a
# Status object. The `Status` object's `details` field
# contains an array with a single one of these `ExecutionError` objects.
class ExecutionError
include Google::Apis::Core::Hashable
@ -70,7 +72,7 @@ module Google
# If `true` and the user is an owner of the script, the script runs at the
# most recently saved version rather than the version deployed for use with
# the Execution API. Optional; default is `false`.
# the Apps Script API. Optional; default is `false`.
# Corresponds to the JSON property `devMode`
# @return [Boolean]
attr_accessor :dev_mode
@ -93,12 +95,13 @@ module Google
# For Android add-ons only. An ID that represents the user's current session
# in the Android app for Google Docs or Sheets, included as extra data in the
# [`Intent`](https://developer.android.com/guide/components/intents-filters.html)
# [Intent](https://developer.android.com/guide/components/intents-filters.html)
# that launches the add-on. When an Android add-on is run with a session
# state, it gains the privileges of a
# [bound](https://developers.google.com/apps-script/guides/bound) script &mdash;
# that is, it can access information like the user's current cursor position
# (in Docs) or selected cell (in Sheets). To retrieve the state, call
# [bound](https://developers.google.com/apps-script/guides/bound)
# script&mdash;that is, it can access information like the user's current
# cursor position (in Docs) or selected cell (in Sheets). To retrieve the
# state, call
# `Intent.getStringExtra("com.google.android.apps.docs.addons.SessionState")`.
# Optional.
# Corresponds to the JSON property `sessionState`
@ -118,17 +121,15 @@ module Google
end
end
# An object that provides the return value of a function executed through the
# Apps Script Execution API. If a
# `run` call succeeds and the
# script function returns successfully, the response body's
# `response` field contains this
# An object that provides the return value of a function executed using the
# Apps Script API. If the script function returns successfully, the response
# body's response field contains this
# `ExecutionResponse` object.
class ExecutionResponse
include Google::Apis::Core::Hashable
# The return value of the script function. The type matches the object type
# returned in Apps Script. Functions called through the Execution API cannot
# returned in Apps Script. Functions called using the Apps Script API cannot
# return Apps Script-specific objects (such as a `Document` or a `Calendar`);
# they can only return primitive types such as a `string`, `number`, `array`,
# `object`, or `boolean`.
@ -146,47 +147,52 @@ module Google
end
end
# The response will not arrive until the function finishes executing. The
# maximum runtime is listed in the guide to [limitations in Apps Script](https://
# developers.google.com/apps-script/guides/services/quotas#current_limitations).
# <p>If the script function returns successfully, the `response` field will
# contain an `ExecutionResponse` object with the function's return value in the
# object's `result` field.</p>
# <p>If the script function (or Apps Script itself) throws an exception, the `
# error` field will contain a `Status` object. The `Status` object's `details`
# field will contain an array with a single `ExecutionError` object that
# provides information about the nature of the error.</p>
# <p>If the `run` call itself fails (for example, because of a malformed request
# or an authorization error), the method will return an HTTP response code in
# the 4XX range with a different format for the response body. Client libraries
# will automatically convert a 4XX response into an exception class.</p>
# A representation of a execution of an Apps Script function that is started
# using run or runAsync. The execution response does not arrive until the
# function finishes executing. The maximum execution runtime is listed in the [
# Apps Script quotas guide](/apps-script/guides/services/quotas#
# current_limitations).
# <p>After the execution is started, it can have one of four outcomes:</p>
# <ul> <li> If the script function returns successfully, the
# response field contains an
# ExecutionResponse object
# with the function's return value in the object's `result` field.</li>
# <li> If the script function (or Apps Script itself) throws an exception, the
# error field contains a
# Status object. The `Status` object's `details`
# field contains an array with a single
# ExecutionError object that
# provides information about the nature of the error.</li>
# <li> If the execution was asynchronous and has not yet completed,
# the done field is `false` and
# the neither the `response` nor `error` fields are present.</li>
# <li> If the `run` or `runAsync` call itself fails (for example, because of a
# malformed request or an authorization error), the method returns an HTTP
# response code in the 4XX range with a different format for the response
# body. Client libraries automatically convert a 4XX response into an
# exception class.</li>
# </ul>
class Operation
include Google::Apis::Core::Hashable
# This field is only used with asynchronous executions and indicates whether or
# not the script execution has completed. A completed execution has a populated
# response field containing the `ExecutionResponse` from function that was
# This field is only used with asynchronous executions. It indicates whether the
# script execution has completed. A completed execution has a populated `
# response` field containing the ExecutionResponse from function that was
# executed.
# Corresponds to the JSON property `done`
# @return [Boolean]
attr_accessor :done
alias_method :done?, :done
# If a `run` call succeeds but the script function (or Apps Script itself)
# throws an exception, the response body's `error` field will contain this `
# If a `run` or `runAsync` call succeeds but the script function (or Apps Script
# itself) throws an exception, the response body's error field contains this `
# Status` object.
# Corresponds to the JSON property `error`
# @return [Google::Apis::ScriptV1::Status]
attr_accessor :error
# This field is not used.
# Corresponds to the JSON property `metadata`
# @return [Hash<String,Object>]
attr_accessor :metadata
# If the script function returns successfully, this field will contain an `
# ExecutionResponse` object with the function's return value as the object's `
# result` field.
# If the script function returns successfully, this field contains an
# ExecutionResponse object with the function's return value.
# Corresponds to the JSON property `response`
# @return [Hash<String,Object>]
attr_accessor :response
@ -199,7 +205,6 @@ module Google
def update!(**args)
@done = args[:done] if args.key?(:done)
@error = args[:error] if args.key?(:error)
@metadata = args[:metadata] if args.key?(:metadata)
@response = args[:response] if args.key?(:response)
end
end
@ -229,26 +234,27 @@ module Google
end
end
# If a `run` call succeeds but the script function (or Apps Script itself)
# throws an exception, the response body's `error` field will contain this `
# If a `run` or `runAsync` call succeeds but the script function (or Apps Script
# itself) throws an exception, the response body's error field contains this `
# Status` object.
class Status
include Google::Apis::Core::Hashable
# The status code. For this API, this value will always be 3, corresponding to
# an <code>INVALID_ARGUMENT</code> error.
# The status code. For this API, this value either:
# <ul> <li> 3, indicating an `INVALID_ARGUMENT` error, or</li> <li> 1,
# indicating a `CANCELLED` asynchronous execution.</li> </ul>
# Corresponds to the JSON property `code`
# @return [Fixnum]
attr_accessor :code
# An array that contains a single `ExecutionError` object that provides
# An array that contains a single ExecutionError object that provides
# information about the nature of the error.
# Corresponds to the JSON property `details`
# @return [Array<Hash<String,Object>>]
attr_accessor :details
# A developer-facing error message, which is in English. Any user-facing error
# message is localized and sent in the [`google.rpc.Status.details`](google.rpc.
# message is localized and sent in the [google.rpc.Status.details](google.rpc.
# Status.details) field, or localized by the client.
# Corresponds to the JSON property `message`
# @return [String]

View File

@ -91,7 +91,6 @@ module Google
property :done, as: 'done'
property :error, as: 'error', class: Google::Apis::ScriptV1::Status, decorator: Google::Apis::ScriptV1::Status::Representation
hash :metadata, as: 'metadata'
hash :response, as: 'response'
end
end

View File

@ -20,7 +20,7 @@ require 'google/apis/errors'
module Google
module Apis
module ScriptV1
# Google Apps Script Execution API
# Google Apps Script API
#
# An API for managing and executing Google Apps Script projects.
#
@ -48,7 +48,7 @@ module Google
end
# Runs a function in an Apps Script project. The project must be deployed
# for use with the Apps Script Execution API.
# for use with the Apps Script API.
# This method requires authorization with an OAuth 2.0 token that includes at
# least one of the scopes listed in the [Authorization](#authorization)
# section; script projects that do not require authorization cannot be

View File

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

View File

@ -1527,8 +1527,6 @@ module Google
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [IO, String] download_dest
# IO stream or filename to receive content download
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1541,13 +1539,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def compose_object(destination_bucket, destination_object, compose_request_object = nil, destination_predefined_acl: nil, if_generation_match: nil, if_metageneration_match: nil, kms_key_name: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
if download_dest.nil?
command = make_simple_command(:post, 'b/{destinationBucket}/o/{destinationObject}/compose', options)
else
command = make_download_command(:post, 'b/{destinationBucket}/o/{destinationObject}/compose', options)
command.download_dest = download_dest
end
def compose_object(destination_bucket, destination_object, compose_request_object = nil, destination_predefined_acl: nil, if_generation_match: nil, if_metageneration_match: nil, kms_key_name: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'b/{destinationBucket}/o/{destinationObject}/compose', options)
command.request_representation = Google::Apis::StorageV1::ComposeRequest::Representation
command.request_object = compose_request_object
command.response_representation = Google::Apis::StorageV1::Object::Representation
@ -1625,8 +1618,6 @@ module Google
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [IO, String] download_dest
# IO stream or filename to receive content download
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -1639,13 +1630,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def copy_object(source_bucket, source_object, destination_bucket, destination_object, object_object = nil, destination_predefined_acl: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, if_source_generation_match: nil, if_source_generation_not_match: nil, if_source_metageneration_match: nil, if_source_metageneration_not_match: nil, projection: nil, source_generation: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
if download_dest.nil?
command = make_simple_command(:post, 'b/{sourceBucket}/o/{sourceObject}/copyTo/b/{destinationBucket}/o/{destinationObject}', options)
else
command = make_download_command(:post, 'b/{sourceBucket}/o/{sourceObject}/copyTo/b/{destinationBucket}/o/{destinationObject}', options)
command.download_dest = download_dest
end
def copy_object(source_bucket, source_object, destination_bucket, destination_object, object_object = nil, destination_predefined_acl: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, if_source_generation_match: nil, if_source_generation_not_match: nil, if_source_metageneration_match: nil, if_source_metageneration_not_match: nil, projection: nil, source_generation: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'b/{sourceBucket}/o/{sourceObject}/copyTo/b/{destinationBucket}/o/{destinationObject}', options)
command.request_representation = Google::Apis::StorageV1::Object::Representation
command.request_object = object_object
command.response_representation = Google::Apis::StorageV1::Object::Representation
@ -2017,7 +2003,7 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates an object's metadata. This method supports patch semantics.
# Patches an object's metadata.
# @param [String] bucket
# Name of the bucket in which the object resides.
# @param [String] object
@ -2047,7 +2033,7 @@ module Google
# @param [String] projection
# Set of properties to return. Defaults to full.
# @param [String] user_project
# The project to be billed for this request. Required for Requester Pays buckets.
# The project to be billed for this request, for Requester Pays buckets.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -2352,8 +2338,6 @@ module Google
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [IO, String] download_dest
# IO stream or filename to receive content download
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -2366,13 +2350,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def update_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)
if download_dest.nil?
command = make_simple_command(:put, 'b/{bucket}/o/{object}', options)
else
command = make_download_command(:put, 'b/{bucket}/o/{object}', options)
command.download_dest = download_dest
end
def update_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)
command = make_simple_command(:put, 'b/{bucket}/o/{object}', options)
command.request_representation = Google::Apis::StorageV1::Object::Representation
command.request_object = object_object
command.response_representation = Google::Apis::StorageV1::Object::Representation

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/video-intelligence/docs/
module VideointelligenceV1beta1
VERSION = 'V1beta1'
REVISION = '20170919'
REVISION = '20171031'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'