commit
da6c828d6f
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,35 @@
|
||||||
|
# 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/adexchangebuyer2_v2beta1/service.rb'
|
||||||
|
require 'google/apis/adexchangebuyer2_v2beta1/classes.rb'
|
||||||
|
require 'google/apis/adexchangebuyer2_v2beta1/representations.rb'
|
||||||
|
|
||||||
|
module Google
|
||||||
|
module Apis
|
||||||
|
# Ad Exchange Buyer API II
|
||||||
|
#
|
||||||
|
# Accesses the latest features for managing Ad Exchange accounts and Real-Time
|
||||||
|
# Bidding configurations and auction metrics.
|
||||||
|
#
|
||||||
|
# @see https://developers.google.com/ad-exchange/buyer-rest/guides/client-access/
|
||||||
|
module Adexchangebuyer2V2beta1
|
||||||
|
VERSION = 'V2beta1'
|
||||||
|
REVISION = '20161012'
|
||||||
|
|
||||||
|
# Manage your Ad Exchange buyer account configuration
|
||||||
|
AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,298 @@
|
||||||
|
# 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 Adexchangebuyer2V2beta1
|
||||||
|
|
||||||
|
# A client user is created under a client buyer and has restricted access to
|
||||||
|
# the Ad Exchange Marketplace and certain other sections
|
||||||
|
# of the Ad Exchange Buyer UI based on the role
|
||||||
|
# granted to the associated client buyer.
|
||||||
|
# The only way a new client user can be created is via accepting an
|
||||||
|
# email invitation
|
||||||
|
# (see the
|
||||||
|
# accounts.clients.invitations.create
|
||||||
|
# method).
|
||||||
|
# All fields are required unless otherwise specified.
|
||||||
|
class ClientUser
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# User's email address. The value of this field
|
||||||
|
# is ignored in an update operation.
|
||||||
|
# Corresponds to the JSON property `email`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :email
|
||||||
|
|
||||||
|
# Numerical account ID of the client buyer
|
||||||
|
# with which the user is associated; the
|
||||||
|
# buyer must be a client of the current sponsor buyer.
|
||||||
|
# The value of this field is ignored in an update operation.
|
||||||
|
# Corresponds to the JSON property `clientAccountId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :client_account_id
|
||||||
|
|
||||||
|
# The status of the client user.
|
||||||
|
# Corresponds to the JSON property `status`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :status
|
||||||
|
|
||||||
|
# The unique numerical ID of the client user
|
||||||
|
# that has accepted an invitation.
|
||||||
|
# The value of this field is ignored in an update operation.
|
||||||
|
# Corresponds to the JSON property `userId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :user_id
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@email = args[:email] if args.key?(:email)
|
||||||
|
@client_account_id = args[:client_account_id] if args.key?(:client_account_id)
|
||||||
|
@status = args[:status] if args.key?(:status)
|
||||||
|
@user_id = args[:user_id] if args.key?(:user_id)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# An invitation for a new client user to get access to the Ad Exchange
|
||||||
|
# Buyer UI.
|
||||||
|
# All fields are required unless otherwise specified.
|
||||||
|
class ClientUserInvitation
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The email address to which the invitation is sent. Email
|
||||||
|
# addresses should be unique among all client users under each sponsor
|
||||||
|
# buyer.
|
||||||
|
# Corresponds to the JSON property `email`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :email
|
||||||
|
|
||||||
|
# Numerical account ID of the client buyer
|
||||||
|
# that the invited user is associated with.
|
||||||
|
# The value of this field is ignored in create operations.
|
||||||
|
# Corresponds to the JSON property `clientAccountId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :client_account_id
|
||||||
|
|
||||||
|
# The unique numerical ID of the invitation that is sent to the user.
|
||||||
|
# The value of this field is ignored in create operations.
|
||||||
|
# Corresponds to the JSON property `invitationId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :invitation_id
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@email = args[:email] if args.key?(:email)
|
||||||
|
@client_account_id = args[:client_account_id] if args.key?(:client_account_id)
|
||||||
|
@invitation_id = args[:invitation_id] if args.key?(:invitation_id)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
class ListClientUserInvitationsResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# A token to retrieve the next page of results.
|
||||||
|
# Pass this value in the
|
||||||
|
# ListClientUserInvitationsRequest.pageToken
|
||||||
|
# field in the subsequent call to the
|
||||||
|
# clients.invitations.list
|
||||||
|
# method to retrieve the next
|
||||||
|
# page of results.
|
||||||
|
# Corresponds to the JSON property `nextPageToken`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :next_page_token
|
||||||
|
|
||||||
|
# The returned list of client users.
|
||||||
|
# Corresponds to the JSON property `invitations`
|
||||||
|
# @return [Array<Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation>]
|
||||||
|
attr_accessor :invitations
|
||||||
|
|
||||||
|
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)
|
||||||
|
@invitations = args[:invitations] if args.key?(:invitations)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
class ListClientUsersResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The returned list of client users.
|
||||||
|
# Corresponds to the JSON property `users`
|
||||||
|
# @return [Array<Google::Apis::Adexchangebuyer2V2beta1::ClientUser>]
|
||||||
|
attr_accessor :users
|
||||||
|
|
||||||
|
# A token to retrieve the next page of results.
|
||||||
|
# Pass this value in the
|
||||||
|
# ListClientUsersRequest.pageToken
|
||||||
|
# field in the subsequent call to the
|
||||||
|
# clients.invitations.list
|
||||||
|
# method to retrieve the next
|
||||||
|
# page of results.
|
||||||
|
# Corresponds to the JSON property `nextPageToken`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :next_page_token
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@users = args[:users] if args.key?(:users)
|
||||||
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# A client resource represents a client buyer—an agency,
|
||||||
|
# a brand, or an advertiser customer of the sponsor buyer.
|
||||||
|
# Users associated with the client buyer have restricted access to
|
||||||
|
# the Ad Exchange Marketplace and certain other sections
|
||||||
|
# of the Ad Exchange Buyer UI based on the role
|
||||||
|
# granted to the client buyer.
|
||||||
|
# All fields are required unless otherwise specified.
|
||||||
|
class Client
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Whether the client buyer will be visible to sellers.
|
||||||
|
# Corresponds to the JSON property `visibleToSeller`
|
||||||
|
# @return [Boolean]
|
||||||
|
attr_accessor :visible_to_seller
|
||||||
|
alias_method :visible_to_seller?, :visible_to_seller
|
||||||
|
|
||||||
|
# The status of the client buyer.
|
||||||
|
# Corresponds to the JSON property `status`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :status
|
||||||
|
|
||||||
|
# The type of the client entity: `ADVERTISER`, `BRAND`, or `AGENCY`.
|
||||||
|
# Corresponds to the JSON property `entityType`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :entity_type
|
||||||
|
|
||||||
|
# The role which is assigned to the client buyer. Each role implies a set of
|
||||||
|
# permissions granted to the client. Must be one of `CLIENT_DEAL_VIEWER`,
|
||||||
|
# `CLIENT_DEAL_NEGOTIATOR` or `CLIENT_DEAL_APPROVER`.
|
||||||
|
# Corresponds to the JSON property `role`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :role
|
||||||
|
|
||||||
|
# Name used to represent this client to publishers.
|
||||||
|
# You may have multiple clients that map to the same entity,
|
||||||
|
# but for each client the combination of `clientName` and entity
|
||||||
|
# must be unique.
|
||||||
|
# You can specify this field as empty.
|
||||||
|
# Corresponds to the JSON property `clientName`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :client_name
|
||||||
|
|
||||||
|
# The globally-unique numerical ID of the client.
|
||||||
|
# The value of this field is ignored in create and update operations.
|
||||||
|
# Corresponds to the JSON property `clientAccountId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :client_account_id
|
||||||
|
|
||||||
|
# Numerical identifier of the client entity.
|
||||||
|
# The entity can be an advertiser, a brand, or an agency.
|
||||||
|
# This identifier is unique among all the entities with the same type.
|
||||||
|
# A list of all known advertisers with their identifiers is available in the
|
||||||
|
# [advertisers.txt](https://storage.googleapis.com/adx-rtb-dictionaries/
|
||||||
|
# advertisers.txt)
|
||||||
|
# file.
|
||||||
|
# A list of all known brands with their identifiers is available in the
|
||||||
|
# [brands.txt](https://storage.googleapis.com/adx-rtb-dictionaries/brands.txt)
|
||||||
|
# file.
|
||||||
|
# A list of all known agencies with their identifiers is available in the
|
||||||
|
# [agencies.txt](https://storage.googleapis.com/adx-rtb-dictionaries/agencies.
|
||||||
|
# txt)
|
||||||
|
# file.
|
||||||
|
# Corresponds to the JSON property `entityId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :entity_id
|
||||||
|
|
||||||
|
# The name of the entity. This field is automatically fetched based on
|
||||||
|
# the type and ID.
|
||||||
|
# The value of this field is ignored in create and update operations.
|
||||||
|
# Corresponds to the JSON property `entityName`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :entity_name
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@visible_to_seller = args[:visible_to_seller] if args.key?(:visible_to_seller)
|
||||||
|
@status = args[:status] if args.key?(:status)
|
||||||
|
@entity_type = args[:entity_type] if args.key?(:entity_type)
|
||||||
|
@role = args[:role] if args.key?(:role)
|
||||||
|
@client_name = args[:client_name] if args.key?(:client_name)
|
||||||
|
@client_account_id = args[:client_account_id] if args.key?(:client_account_id)
|
||||||
|
@entity_id = args[:entity_id] if args.key?(:entity_id)
|
||||||
|
@entity_name = args[:entity_name] if args.key?(:entity_name)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
class ListClientsResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# A token to retrieve the next page of results.
|
||||||
|
# Pass this value in the
|
||||||
|
# ListClientsRequest.pageToken
|
||||||
|
# field in the subsequent call to the
|
||||||
|
# accounts.clients.list method
|
||||||
|
# to retrieve the next page of results.
|
||||||
|
# Corresponds to the JSON property `nextPageToken`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :next_page_token
|
||||||
|
|
||||||
|
# The returned list of clients.
|
||||||
|
# Corresponds to the JSON property `clients`
|
||||||
|
# @return [Array<Google::Apis::Adexchangebuyer2V2beta1::Client>]
|
||||||
|
attr_accessor :clients
|
||||||
|
|
||||||
|
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)
|
||||||
|
@clients = args[:clients] if args.key?(:clients)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,122 @@
|
||||||
|
# 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 Adexchangebuyer2V2beta1
|
||||||
|
|
||||||
|
class ClientUser
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ClientUserInvitation
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListClientUserInvitationsResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListClientUsersResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Client
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListClientsResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ClientUser
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :email, as: 'email'
|
||||||
|
property :client_account_id, as: 'clientAccountId'
|
||||||
|
property :status, as: 'status'
|
||||||
|
property :user_id, as: 'userId'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ClientUserInvitation
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :email, as: 'email'
|
||||||
|
property :client_account_id, as: 'clientAccountId'
|
||||||
|
property :invitation_id, as: 'invitationId'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListClientUserInvitationsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
collection :invitations, as: 'invitations', class: Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation, decorator: Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListClientUsersResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :users, as: 'users', class: Google::Apis::Adexchangebuyer2V2beta1::ClientUser, decorator: Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
|
||||||
|
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Client
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :visible_to_seller, as: 'visibleToSeller'
|
||||||
|
property :status, as: 'status'
|
||||||
|
property :entity_type, as: 'entityType'
|
||||||
|
property :role, as: 'role'
|
||||||
|
property :client_name, as: 'clientName'
|
||||||
|
property :client_account_id, as: 'clientAccountId'
|
||||||
|
property :entity_id, as: 'entityId'
|
||||||
|
property :entity_name, as: 'entityName'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ListClientsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
collection :clients, as: 'clients', class: Google::Apis::Adexchangebuyer2V2beta1::Client, decorator: Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,458 @@
|
||||||
|
# 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 Adexchangebuyer2V2beta1
|
||||||
|
# Ad Exchange Buyer API II
|
||||||
|
#
|
||||||
|
# Accesses the latest features for managing Ad Exchange accounts and Real-Time
|
||||||
|
# Bidding configurations and auction metrics.
|
||||||
|
#
|
||||||
|
# @example
|
||||||
|
# require 'google/apis/adexchangebuyer2_v2beta1'
|
||||||
|
#
|
||||||
|
# Adexchangebuyer2 = Google::Apis::Adexchangebuyer2V2beta1 # Alias the module
|
||||||
|
# service = Adexchangebuyer2::AdExchangeBuyerIIService.new
|
||||||
|
#
|
||||||
|
# @see https://developers.google.com/ad-exchange/buyer-rest/guides/client-access/
|
||||||
|
class AdExchangeBuyerIIService < 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://adexchangebuyer.googleapis.com/', '')
|
||||||
|
end
|
||||||
|
|
||||||
|
# Updates an existing client buyer.
|
||||||
|
# @param [String] account_id
|
||||||
|
# Unique numerical account ID for the buyer of which the client buyer
|
||||||
|
# is a customer; the sponsor buyer to update a client for. (required)
|
||||||
|
# @param [String] client_account_id
|
||||||
|
# Unique numerical account ID of the client to update. (required)
|
||||||
|
# @param [Google::Apis::Adexchangebuyer2V2beta1::Client] client_object
|
||||||
|
# @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 [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Client] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::Client]
|
||||||
|
#
|
||||||
|
# @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_account_client(account_id, client_account_id, client_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:put, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}', options)
|
||||||
|
command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
|
||||||
|
command.request_object = client_object
|
||||||
|
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
|
||||||
|
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Client
|
||||||
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Gets a client buyer with a given client account ID.
|
||||||
|
# @param [String] account_id
|
||||||
|
# Numerical account ID of the client's sponsor buyer. (required)
|
||||||
|
# @param [String] client_account_id
|
||||||
|
# Numerical account ID of the client buyer to retrieve. (required)
|
||||||
|
# @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 [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Client] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::Client]
|
||||||
|
#
|
||||||
|
# @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_client(account_id, client_account_id, quota_user: nil, fields: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}', options)
|
||||||
|
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
|
||||||
|
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Client
|
||||||
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Creates a new client buyer.
|
||||||
|
# @param [String] account_id
|
||||||
|
# Unique numerical account ID for the buyer of which the client buyer
|
||||||
|
# is a customer; the sponsor buyer to create a client for. (required)
|
||||||
|
# @param [Google::Apis::Adexchangebuyer2V2beta1::Client] client_object
|
||||||
|
# @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 [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Client] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::Client]
|
||||||
|
#
|
||||||
|
# @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_account_client(account_id, client_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/clients', options)
|
||||||
|
command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
|
||||||
|
command.request_object = client_object
|
||||||
|
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
|
||||||
|
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Client
|
||||||
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Lists all the clients for the current sponsor buyer.
|
||||||
|
# @param [String] account_id
|
||||||
|
# Unique numerical account ID of the sponsor buyer to list the clients for.
|
||||||
|
# @param [Fixnum] page_size
|
||||||
|
# Requested page size. The server may return fewer clients than requested.
|
||||||
|
# If unspecified, the server will pick an appropriate default.
|
||||||
|
# @param [String] page_token
|
||||||
|
# A token identifying a page of results the server should return.
|
||||||
|
# Typically, this is the value of
|
||||||
|
# ListClientsResponse.nextPageToken
|
||||||
|
# returned from the previous call to the
|
||||||
|
# accounts.clients.list method.
|
||||||
|
# @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 [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListClientsResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::ListClientsResponse]
|
||||||
|
#
|
||||||
|
# @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_clients(account_id, page_size: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients', options)
|
||||||
|
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListClientsResponse::Representation
|
||||||
|
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListClientsResponse
|
||||||
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
command.query['pageSize'] = page_size unless page_size.nil?
|
||||||
|
command.query['pageToken'] = page_token unless page_token.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Updates an existing client user.
|
||||||
|
# Only the user status can be changed on update.
|
||||||
|
# @param [String] account_id
|
||||||
|
# Numerical account ID of the client's sponsor buyer. (required)
|
||||||
|
# @param [String] client_account_id
|
||||||
|
# Numerical account ID of the client buyer that the user to be retrieved
|
||||||
|
# is associated with. (required)
|
||||||
|
# @param [String] user_id
|
||||||
|
# Numerical identifier of the user to retrieve. (required)
|
||||||
|
# @param [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] client_user_object
|
||||||
|
# @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 [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUser]
|
||||||
|
#
|
||||||
|
# @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_account_client_user(account_id, client_account_id, user_id, client_user_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:put, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}', options)
|
||||||
|
command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
|
||||||
|
command.request_object = client_user_object
|
||||||
|
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
|
||||||
|
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUser
|
||||||
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
|
||||||
|
command.params['userId'] = user_id unless user_id.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Retrieves an existing client user.
|
||||||
|
# @param [String] account_id
|
||||||
|
# Numerical account ID of the client's sponsor buyer. (required)
|
||||||
|
# @param [String] client_account_id
|
||||||
|
# Numerical account ID of the client buyer
|
||||||
|
# that the user to be retrieved is associated with. (required)
|
||||||
|
# @param [String] user_id
|
||||||
|
# Numerical identifier of the user to retrieve. (required)
|
||||||
|
# @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 [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUser]
|
||||||
|
#
|
||||||
|
# @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_client_user(account_id, client_account_id, user_id, quota_user: nil, fields: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}', options)
|
||||||
|
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
|
||||||
|
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUser
|
||||||
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
|
||||||
|
command.params['userId'] = user_id unless user_id.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Lists all the known client users for a specified
|
||||||
|
# sponsor buyer account ID.
|
||||||
|
# @param [String] account_id
|
||||||
|
# Numerical account ID of the sponsor buyer of the client to list users for.
|
||||||
|
# (required)
|
||||||
|
# @param [String] client_account_id
|
||||||
|
# The account ID of the client buyer to list users for. (required)
|
||||||
|
# You must specify either a string representation of a
|
||||||
|
# numerical account identifier or the `-` character
|
||||||
|
# to list all the client users for all the clients
|
||||||
|
# of a given sponsor buyer.
|
||||||
|
# @param [Fixnum] page_size
|
||||||
|
# Requested page size. The server may return fewer clients than requested.
|
||||||
|
# If unspecified, the server will pick an appropriate default.
|
||||||
|
# @param [String] page_token
|
||||||
|
# A token identifying a page of results the server should return.
|
||||||
|
# Typically, this is the value of
|
||||||
|
# ListClientUsersResponse.nextPageToken
|
||||||
|
# returned from the previous call to the
|
||||||
|
# accounts.clients.users.list method.
|
||||||
|
# @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 [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse]
|
||||||
|
#
|
||||||
|
# @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_client_users(account_id, client_account_id, page_size: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users', options)
|
||||||
|
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse::Representation
|
||||||
|
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse
|
||||||
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
|
||||||
|
command.query['pageSize'] = page_size unless page_size.nil?
|
||||||
|
command.query['pageToken'] = page_token unless page_token.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Creates and sends out an email invitation to access
|
||||||
|
# an Ad Exchange client buyer account.
|
||||||
|
# @param [String] account_id
|
||||||
|
# Numerical account ID of the client's sponsor buyer. (required)
|
||||||
|
# @param [String] client_account_id
|
||||||
|
# Numerical account ID of the client buyer that the user
|
||||||
|
# should be associated with. (required)
|
||||||
|
# @param [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation] client_user_invitation_object
|
||||||
|
# @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 [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation]
|
||||||
|
#
|
||||||
|
# @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_account_client_invitation(account_id, client_account_id, client_user_invitation_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations', options)
|
||||||
|
command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
|
||||||
|
command.request_object = client_user_invitation_object
|
||||||
|
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
|
||||||
|
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation
|
||||||
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Retrieves an existing client user invitation.
|
||||||
|
# @param [String] account_id
|
||||||
|
# Numerical account ID of the client's sponsor buyer. (required)
|
||||||
|
# @param [String] client_account_id
|
||||||
|
# Numerical account ID of the client buyer that the user invitation
|
||||||
|
# to be retrieved is associated with. (required)
|
||||||
|
# @param [String] invitation_id
|
||||||
|
# Numerical identifier of the user invitation to retrieve. (required)
|
||||||
|
# @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 [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation]
|
||||||
|
#
|
||||||
|
# @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_client_invitation(account_id, client_account_id, invitation_id, quota_user: nil, fields: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations/{invitationId}', options)
|
||||||
|
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
|
||||||
|
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation
|
||||||
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
|
||||||
|
command.params['invitationId'] = invitation_id unless invitation_id.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Lists all the client users invitations for a client
|
||||||
|
# with a given account ID.
|
||||||
|
# @param [String] account_id
|
||||||
|
# Numerical account ID of the client's sponsor buyer. (required)
|
||||||
|
# @param [String] client_account_id
|
||||||
|
# Numerical account ID of the client buyer to list invitations for.
|
||||||
|
# (required)
|
||||||
|
# You must either specify a string representation of a
|
||||||
|
# numerical account identifier or the `-` character
|
||||||
|
# to list all the invitations for all the clients
|
||||||
|
# of a given sponsor buyer.
|
||||||
|
# @param [Fixnum] page_size
|
||||||
|
# Requested page size. Server may return fewer clients than requested.
|
||||||
|
# If unspecified, server will pick an appropriate default.
|
||||||
|
# @param [String] page_token
|
||||||
|
# A token identifying a page of results the server should return.
|
||||||
|
# Typically, this is the value of
|
||||||
|
# ListClientUserInvitationsResponse.nextPageToken
|
||||||
|
# returned from the previous call to the
|
||||||
|
# clients.invitations.list
|
||||||
|
# method.
|
||||||
|
# @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 [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse]
|
||||||
|
#
|
||||||
|
# @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_client_invitations(account_id, client_account_id, page_size: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations', options)
|
||||||
|
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse::Representation
|
||||||
|
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse
|
||||||
|
command.params['accountId'] = account_id unless account_id.nil?
|
||||||
|
command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
|
||||||
|
command.query['pageSize'] = page_size unless page_size.nil?
|
||||||
|
command.query['pageToken'] = page_token unless page_token.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
command.query['fields'] = fields unless fields.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
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://developers.google.com/ad-exchange/buyer-rest
|
# @see https://developers.google.com/ad-exchange/buyer-rest
|
||||||
module AdexchangebuyerV1_4
|
module AdexchangebuyerV1_4
|
||||||
VERSION = 'V1_4'
|
VERSION = 'V1_4'
|
||||||
REVISION = '20161003'
|
REVISION = '20161006'
|
||||||
|
|
||||||
# Manage your Ad Exchange buyer account configuration
|
# Manage your Ad Exchange buyer account configuration
|
||||||
AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'
|
AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://developers.google.com/admin-sdk/directory/
|
# @see https://developers.google.com/admin-sdk/directory/
|
||||||
module AdminDirectoryV1
|
module AdminDirectoryV1
|
||||||
VERSION = 'DirectoryV1'
|
VERSION = 'DirectoryV1'
|
||||||
REVISION = '20160824'
|
REVISION = '20161003'
|
||||||
|
|
||||||
# View and manage customer related information
|
# View and manage customer related information
|
||||||
AUTH_ADMIN_DIRECTORY_CUSTOMER = 'https://www.googleapis.com/auth/admin.directory.customer'
|
AUTH_ADMIN_DIRECTORY_CUSTOMER = 'https://www.googleapis.com/auth/admin.directory.customer'
|
||||||
|
|
|
@ -574,6 +574,32 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# JSON request template for firing actions on ChromeOs Device in Directory
|
||||||
|
# Devices API.
|
||||||
|
class ChromeOsDeviceAction
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Action to be taken on the ChromeOs Device
|
||||||
|
# Corresponds to the JSON property `action`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :action
|
||||||
|
|
||||||
|
#
|
||||||
|
# Corresponds to the JSON property `deprovisionReason`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :deprovision_reason
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@action = args[:action] if args.key?(:action)
|
||||||
|
@deprovision_reason = args[:deprovision_reason] if args.key?(:deprovision_reason)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# JSON response template for List Chrome OS Devices operation in Directory API.
|
# JSON response template for List Chrome OS Devices operation in Directory API.
|
||||||
class ChromeOsDevices
|
class ChromeOsDevices
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
@ -1147,6 +1173,16 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :baseband_version
|
attr_accessor :baseband_version
|
||||||
|
|
||||||
|
# Mobile Device Bootloader version (Read-only)
|
||||||
|
# Corresponds to the JSON property `bootloaderVersion`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :bootloader_version
|
||||||
|
|
||||||
|
# Mobile Device Brand (Read-only)
|
||||||
|
# Corresponds to the JSON property `brand`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :brand
|
||||||
|
|
||||||
# Mobile Device Build number (Read-only)
|
# Mobile Device Build number (Read-only)
|
||||||
# Corresponds to the JSON property `buildNumber`
|
# Corresponds to the JSON property `buildNumber`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
|
@ -1173,11 +1209,21 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :device_id
|
attr_accessor :device_id
|
||||||
|
|
||||||
|
# DevicePasswordStatus (Read-only)
|
||||||
|
# Corresponds to the JSON property `devicePasswordStatus`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :device_password_status
|
||||||
|
|
||||||
# List of owner user's email addresses (Read-only)
|
# List of owner user's email addresses (Read-only)
|
||||||
# Corresponds to the JSON property `email`
|
# Corresponds to the JSON property `email`
|
||||||
# @return [Array<String>]
|
# @return [Array<String>]
|
||||||
attr_accessor :email
|
attr_accessor :email
|
||||||
|
|
||||||
|
# Mobile Device Encryption Status (Read-only)
|
||||||
|
# Corresponds to the JSON property `encryptionStatus`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :encryption_status
|
||||||
|
|
||||||
# ETag of the resource.
|
# ETag of the resource.
|
||||||
# Corresponds to the JSON property `etag`
|
# Corresponds to the JSON property `etag`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
|
@ -1189,6 +1235,11 @@ module Google
|
||||||
# @return [DateTime]
|
# @return [DateTime]
|
||||||
attr_accessor :first_sync
|
attr_accessor :first_sync
|
||||||
|
|
||||||
|
# Mobile Device Hardware (Read-only)
|
||||||
|
# Corresponds to the JSON property `hardware`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :hardware
|
||||||
|
|
||||||
# Mobile Device Hardware Id (Read-only)
|
# Mobile Device Hardware Id (Read-only)
|
||||||
# Corresponds to the JSON property `hardwareId`
|
# Corresponds to the JSON property `hardwareId`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
|
@ -1222,6 +1273,11 @@ module Google
|
||||||
attr_accessor :managed_account_is_on_owner_profile
|
attr_accessor :managed_account_is_on_owner_profile
|
||||||
alias_method :managed_account_is_on_owner_profile?, :managed_account_is_on_owner_profile
|
alias_method :managed_account_is_on_owner_profile?, :managed_account_is_on_owner_profile
|
||||||
|
|
||||||
|
# Mobile Device manufacturer (Read-only)
|
||||||
|
# Corresponds to the JSON property `manufacturer`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :manufacturer
|
||||||
|
|
||||||
# Mobile Device MEID number (Read-only)
|
# Mobile Device MEID number (Read-only)
|
||||||
# Corresponds to the JSON property `meid`
|
# Corresponds to the JSON property `meid`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
|
@ -1252,11 +1308,26 @@ module Google
|
||||||
# @return [Array<String>]
|
# @return [Array<String>]
|
||||||
attr_accessor :other_accounts_info
|
attr_accessor :other_accounts_info
|
||||||
|
|
||||||
|
# DMAgentPermission (Read-only)
|
||||||
|
# Corresponds to the JSON property `privilege`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :privilege
|
||||||
|
|
||||||
|
# Mobile Device release version version (Read-only)
|
||||||
|
# Corresponds to the JSON property `releaseVersion`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :release_version
|
||||||
|
|
||||||
# Unique identifier of Mobile Device (Read-only)
|
# Unique identifier of Mobile Device (Read-only)
|
||||||
# Corresponds to the JSON property `resourceId`
|
# Corresponds to the JSON property `resourceId`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :resource_id
|
attr_accessor :resource_id
|
||||||
|
|
||||||
|
# Mobile Device Security patch level (Read-only)
|
||||||
|
# Corresponds to the JSON property `securityPatchLevel`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :security_patch_level
|
||||||
|
|
||||||
# Mobile Device SSN or Serial Number (Read-only)
|
# Mobile Device SSN or Serial Number (Read-only)
|
||||||
# Corresponds to the JSON property `serialNumber`
|
# Corresponds to the JSON property `serialNumber`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
|
@ -1303,27 +1374,36 @@ module Google
|
||||||
@adb_status = args[:adb_status] if args.key?(:adb_status)
|
@adb_status = args[:adb_status] if args.key?(:adb_status)
|
||||||
@applications = args[:applications] if args.key?(:applications)
|
@applications = args[:applications] if args.key?(:applications)
|
||||||
@baseband_version = args[:baseband_version] if args.key?(:baseband_version)
|
@baseband_version = args[:baseband_version] if args.key?(:baseband_version)
|
||||||
|
@bootloader_version = args[:bootloader_version] if args.key?(:bootloader_version)
|
||||||
|
@brand = args[:brand] if args.key?(:brand)
|
||||||
@build_number = args[:build_number] if args.key?(:build_number)
|
@build_number = args[:build_number] if args.key?(:build_number)
|
||||||
@default_language = args[:default_language] if args.key?(:default_language)
|
@default_language = args[:default_language] if args.key?(:default_language)
|
||||||
@developer_options_status = args[:developer_options_status] if args.key?(:developer_options_status)
|
@developer_options_status = args[:developer_options_status] if args.key?(:developer_options_status)
|
||||||
@device_compromised_status = args[:device_compromised_status] if args.key?(:device_compromised_status)
|
@device_compromised_status = args[:device_compromised_status] if args.key?(:device_compromised_status)
|
||||||
@device_id = args[:device_id] if args.key?(:device_id)
|
@device_id = args[:device_id] if args.key?(:device_id)
|
||||||
|
@device_password_status = args[:device_password_status] if args.key?(:device_password_status)
|
||||||
@email = args[:email] if args.key?(:email)
|
@email = args[:email] if args.key?(:email)
|
||||||
|
@encryption_status = args[:encryption_status] if args.key?(:encryption_status)
|
||||||
@etag = args[:etag] if args.key?(:etag)
|
@etag = args[:etag] if args.key?(:etag)
|
||||||
@first_sync = args[:first_sync] if args.key?(:first_sync)
|
@first_sync = args[:first_sync] if args.key?(:first_sync)
|
||||||
|
@hardware = args[:hardware] if args.key?(:hardware)
|
||||||
@hardware_id = args[:hardware_id] if args.key?(:hardware_id)
|
@hardware_id = args[:hardware_id] if args.key?(:hardware_id)
|
||||||
@imei = args[:imei] if args.key?(:imei)
|
@imei = args[:imei] if args.key?(:imei)
|
||||||
@kernel_version = args[:kernel_version] if args.key?(:kernel_version)
|
@kernel_version = args[:kernel_version] if args.key?(:kernel_version)
|
||||||
@kind = args[:kind] if args.key?(:kind)
|
@kind = args[:kind] if args.key?(:kind)
|
||||||
@last_sync = args[:last_sync] if args.key?(:last_sync)
|
@last_sync = args[:last_sync] if args.key?(:last_sync)
|
||||||
@managed_account_is_on_owner_profile = args[:managed_account_is_on_owner_profile] if args.key?(:managed_account_is_on_owner_profile)
|
@managed_account_is_on_owner_profile = args[:managed_account_is_on_owner_profile] if args.key?(:managed_account_is_on_owner_profile)
|
||||||
|
@manufacturer = args[:manufacturer] if args.key?(:manufacturer)
|
||||||
@meid = args[:meid] if args.key?(:meid)
|
@meid = args[:meid] if args.key?(:meid)
|
||||||
@model = args[:model] if args.key?(:model)
|
@model = args[:model] if args.key?(:model)
|
||||||
@name = args[:name] if args.key?(:name)
|
@name = args[:name] if args.key?(:name)
|
||||||
@network_operator = args[:network_operator] if args.key?(:network_operator)
|
@network_operator = args[:network_operator] if args.key?(:network_operator)
|
||||||
@os = args[:os] if args.key?(:os)
|
@os = args[:os] if args.key?(:os)
|
||||||
@other_accounts_info = args[:other_accounts_info] if args.key?(:other_accounts_info)
|
@other_accounts_info = args[:other_accounts_info] if args.key?(:other_accounts_info)
|
||||||
|
@privilege = args[:privilege] if args.key?(:privilege)
|
||||||
|
@release_version = args[:release_version] if args.key?(:release_version)
|
||||||
@resource_id = args[:resource_id] if args.key?(:resource_id)
|
@resource_id = args[:resource_id] if args.key?(:resource_id)
|
||||||
|
@security_patch_level = args[:security_patch_level] if args.key?(:security_patch_level)
|
||||||
@serial_number = args[:serial_number] if args.key?(:serial_number)
|
@serial_number = args[:serial_number] if args.key?(:serial_number)
|
||||||
@status = args[:status] if args.key?(:status)
|
@status = args[:status] if args.key?(:status)
|
||||||
@supports_work_profile = args[:supports_work_profile] if args.key?(:supports_work_profile)
|
@supports_work_profile = args[:supports_work_profile] if args.key?(:supports_work_profile)
|
||||||
|
|
|
@ -82,6 +82,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class ChromeOsDeviceAction
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class ChromeOsDevices
|
class ChromeOsDevices
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -512,6 +518,14 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class ChromeOsDeviceAction
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :action, as: 'action'
|
||||||
|
property :deprovision_reason, as: 'deprovisionReason'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class ChromeOsDevices
|
class ChromeOsDevices
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -659,15 +673,20 @@ module Google
|
||||||
collection :applications, as: 'applications', class: Google::Apis::AdminDirectoryV1::MobileDevice::Application, decorator: Google::Apis::AdminDirectoryV1::MobileDevice::Application::Representation
|
collection :applications, as: 'applications', class: Google::Apis::AdminDirectoryV1::MobileDevice::Application, decorator: Google::Apis::AdminDirectoryV1::MobileDevice::Application::Representation
|
||||||
|
|
||||||
property :baseband_version, as: 'basebandVersion'
|
property :baseband_version, as: 'basebandVersion'
|
||||||
|
property :bootloader_version, as: 'bootloaderVersion'
|
||||||
|
property :brand, as: 'brand'
|
||||||
property :build_number, as: 'buildNumber'
|
property :build_number, as: 'buildNumber'
|
||||||
property :default_language, as: 'defaultLanguage'
|
property :default_language, as: 'defaultLanguage'
|
||||||
property :developer_options_status, as: 'developerOptionsStatus'
|
property :developer_options_status, as: 'developerOptionsStatus'
|
||||||
property :device_compromised_status, as: 'deviceCompromisedStatus'
|
property :device_compromised_status, as: 'deviceCompromisedStatus'
|
||||||
property :device_id, as: 'deviceId'
|
property :device_id, as: 'deviceId'
|
||||||
|
property :device_password_status, as: 'devicePasswordStatus'
|
||||||
collection :email, as: 'email'
|
collection :email, as: 'email'
|
||||||
|
property :encryption_status, as: 'encryptionStatus'
|
||||||
property :etag, as: 'etag'
|
property :etag, as: 'etag'
|
||||||
property :first_sync, as: 'firstSync', type: DateTime
|
property :first_sync, as: 'firstSync', type: DateTime
|
||||||
|
|
||||||
|
property :hardware, as: 'hardware'
|
||||||
property :hardware_id, as: 'hardwareId'
|
property :hardware_id, as: 'hardwareId'
|
||||||
property :imei, as: 'imei'
|
property :imei, as: 'imei'
|
||||||
property :kernel_version, as: 'kernelVersion'
|
property :kernel_version, as: 'kernelVersion'
|
||||||
|
@ -675,13 +694,17 @@ module Google
|
||||||
property :last_sync, as: 'lastSync', type: DateTime
|
property :last_sync, as: 'lastSync', type: DateTime
|
||||||
|
|
||||||
property :managed_account_is_on_owner_profile, as: 'managedAccountIsOnOwnerProfile'
|
property :managed_account_is_on_owner_profile, as: 'managedAccountIsOnOwnerProfile'
|
||||||
|
property :manufacturer, as: 'manufacturer'
|
||||||
property :meid, as: 'meid'
|
property :meid, as: 'meid'
|
||||||
property :model, as: 'model'
|
property :model, as: 'model'
|
||||||
collection :name, as: 'name'
|
collection :name, as: 'name'
|
||||||
property :network_operator, as: 'networkOperator'
|
property :network_operator, as: 'networkOperator'
|
||||||
property :os, as: 'os'
|
property :os, as: 'os'
|
||||||
collection :other_accounts_info, as: 'otherAccountsInfo'
|
collection :other_accounts_info, as: 'otherAccountsInfo'
|
||||||
|
property :privilege, as: 'privilege'
|
||||||
|
property :release_version, as: 'releaseVersion'
|
||||||
property :resource_id, as: 'resourceId'
|
property :resource_id, as: 'resourceId'
|
||||||
|
property :security_patch_level, as: 'securityPatchLevel'
|
||||||
property :serial_number, as: 'serialNumber'
|
property :serial_number, as: 'serialNumber'
|
||||||
property :status, as: 'status'
|
property :status, as: 'status'
|
||||||
property :supports_work_profile, as: 'supportsWorkProfile'
|
property :supports_work_profile, as: 'supportsWorkProfile'
|
||||||
|
|
|
@ -198,6 +198,45 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Take action on Chrome OS Device
|
||||||
|
# @param [String] customer_id
|
||||||
|
# Immutable id of the Google Apps account
|
||||||
|
# @param [String] resource_id
|
||||||
|
# Immutable id of Chrome OS Device
|
||||||
|
# @param [Google::Apis::AdminDirectoryV1::ChromeOsDeviceAction] chrome_os_device_action_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 [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 action_chromeosdevice(customer_id, resource_id, chrome_os_device_action_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'customer/{customerId}/devices/chromeos/{resourceId}/action', options)
|
||||||
|
command.request_representation = Google::Apis::AdminDirectoryV1::ChromeOsDeviceAction::Representation
|
||||||
|
command.request_object = chrome_os_device_action_object
|
||||||
|
command.params['customerId'] = customer_id unless customer_id.nil?
|
||||||
|
command.params['resourceId'] = resource_id unless resource_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
|
||||||
|
|
||||||
# Retrieve Chrome OS Device
|
# Retrieve Chrome OS Device
|
||||||
# @param [String] customer_id
|
# @param [String] customer_id
|
||||||
# Immutable id of the Google Apps account
|
# Immutable id of the Google Apps account
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/adsense/management/
|
# @see https://developers.google.com/adsense/management/
|
||||||
module AdsenseV1_4
|
module AdsenseV1_4
|
||||||
VERSION = 'V1_4'
|
VERSION = 'V1_4'
|
||||||
REVISION = '20161003'
|
REVISION = '20161011'
|
||||||
|
|
||||||
# View and manage your AdSense data
|
# View and manage your AdSense data
|
||||||
AUTH_ADSENSE = 'https://www.googleapis.com/auth/adsense'
|
AUTH_ADSENSE = 'https://www.googleapis.com/auth/adsense'
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://developers.google.com/adsense/host/
|
# @see https://developers.google.com/adsense/host/
|
||||||
module AdsensehostV4_1
|
module AdsensehostV4_1
|
||||||
VERSION = 'V4_1'
|
VERSION = 'V4_1'
|
||||||
REVISION = '20161003'
|
REVISION = '20161011'
|
||||||
|
|
||||||
# View and manage your AdSense host data and associated accounts
|
# View and manage your AdSense host data and associated accounts
|
||||||
AUTH_ADSENSEHOST = 'https://www.googleapis.com/auth/adsensehost'
|
AUTH_ADSENSEHOST = 'https://www.googleapis.com/auth/adsensehost'
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/analytics/
|
# @see https://developers.google.com/analytics/
|
||||||
module AnalyticsV3
|
module AnalyticsV3
|
||||||
VERSION = 'V3'
|
VERSION = 'V3'
|
||||||
REVISION = '20160805'
|
REVISION = '20161004'
|
||||||
|
|
||||||
# View and manage your Google Analytics data
|
# View and manage your Google Analytics data
|
||||||
AUTH_ANALYTICS = 'https://www.googleapis.com/auth/analytics'
|
AUTH_ANALYTICS = 'https://www.googleapis.com/auth/analytics'
|
||||||
|
|
|
@ -2413,6 +2413,11 @@ module Google
|
||||||
attr_accessor :contains_sampled_data
|
attr_accessor :contains_sampled_data
|
||||||
alias_method :contains_sampled_data?, :contains_sampled_data
|
alias_method :contains_sampled_data?, :contains_sampled_data
|
||||||
|
|
||||||
|
# The last refreshed time in seconds for Analytics data.
|
||||||
|
# Corresponds to the JSON property `dataLastRefreshed`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :data_last_refreshed
|
||||||
|
|
||||||
#
|
#
|
||||||
# Corresponds to the JSON property `dataTable`
|
# Corresponds to the JSON property `dataTable`
|
||||||
# @return [Google::Apis::AnalyticsV3::GaData::DataTable]
|
# @return [Google::Apis::AnalyticsV3::GaData::DataTable]
|
||||||
|
@ -2498,6 +2503,7 @@ module Google
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@column_headers = args[:column_headers] if args.key?(:column_headers)
|
@column_headers = args[:column_headers] if args.key?(:column_headers)
|
||||||
@contains_sampled_data = args[:contains_sampled_data] if args.key?(:contains_sampled_data)
|
@contains_sampled_data = args[:contains_sampled_data] if args.key?(:contains_sampled_data)
|
||||||
|
@data_last_refreshed = args[:data_last_refreshed] if args.key?(:data_last_refreshed)
|
||||||
@data_table = args[:data_table] if args.key?(:data_table)
|
@data_table = args[:data_table] if args.key?(:data_table)
|
||||||
@id = args[:id] if args.key?(:id)
|
@id = args[:id] if args.key?(:id)
|
||||||
@items_per_page = args[:items_per_page] if args.key?(:items_per_page)
|
@items_per_page = args[:items_per_page] if args.key?(:items_per_page)
|
||||||
|
@ -3212,9 +3218,7 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :kind
|
attr_accessor :kind
|
||||||
|
|
||||||
# Number of days a user remains in the audience. Use any integer from 1-540. In
|
# Number of days (in the range 1 to 540) a user remains in the audience.
|
||||||
# remarketing audiences for search ads, membership duration is truncated to 180
|
|
||||||
# days.
|
|
||||||
# Corresponds to the JSON property `membershipDurationDays`
|
# Corresponds to the JSON property `membershipDurationDays`
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :membership_duration_days
|
attr_accessor :membership_duration_days
|
||||||
|
@ -3666,8 +3670,10 @@ module Google
|
||||||
|
|
||||||
# The currency type associated with this view (profile), defaults to USD. The
|
# The currency type associated with this view (profile), defaults to USD. The
|
||||||
# supported values are:
|
# supported values are:
|
||||||
# ARS, AUD, BGN, BRL, CAD, CHF, CNY, CZK, DKK, EUR, GBP, HKD, HUF, IDR, INR, JPY,
|
# USD, JPY, EUR, GBP, AUD, KRW, BRL, CNY, DKK, RUB, SEK, NOK, PLN, TRY, TWD, HKD,
|
||||||
# KRW, LTL, MXN, NOK, NZD, PHP, PLN, RUB, SEK, THB, TRY, TWD, USD, VND, ZAR
|
# THB, IDR, ARS, MXN, VND, PHP, INR, CHF, CAD, CZK, NZD, HUF, BGN, LTL, ZAR,
|
||||||
|
# UAH, AED, BOB, CLP, COP, EGP, HRK, ILS, MAD, MYR, PEN, PKR, RON, RSD, SAR, SGD,
|
||||||
|
# VEF, LVL
|
||||||
# Corresponds to the JSON property `currency`
|
# Corresponds to the JSON property `currency`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :currency
|
attr_accessor :currency
|
||||||
|
|
|
@ -1201,6 +1201,7 @@ module Google
|
||||||
collection :column_headers, as: 'columnHeaders', class: Google::Apis::AnalyticsV3::GaData::ColumnHeader, decorator: Google::Apis::AnalyticsV3::GaData::ColumnHeader::Representation
|
collection :column_headers, as: 'columnHeaders', class: Google::Apis::AnalyticsV3::GaData::ColumnHeader, decorator: Google::Apis::AnalyticsV3::GaData::ColumnHeader::Representation
|
||||||
|
|
||||||
property :contains_sampled_data, as: 'containsSampledData'
|
property :contains_sampled_data, as: 'containsSampledData'
|
||||||
|
property :data_last_refreshed, as: 'dataLastRefreshed'
|
||||||
property :data_table, as: 'dataTable', class: Google::Apis::AnalyticsV3::GaData::DataTable, decorator: Google::Apis::AnalyticsV3::GaData::DataTable::Representation
|
property :data_table, as: 'dataTable', class: Google::Apis::AnalyticsV3::GaData::DataTable, decorator: Google::Apis::AnalyticsV3::GaData::DataTable::Representation
|
||||||
|
|
||||||
property :id, as: 'id'
|
property :id, as: 'id'
|
||||||
|
|
|
@ -2450,13 +2450,13 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Gets remarketing audiences to which the user has access.
|
# Gets a remarketing audience to which the user has access.
|
||||||
# @param [String] account_id
|
# @param [String] account_id
|
||||||
# Account ID for the remarketing audience to retrieve.
|
# The account ID of the remarketing audience to retrieve.
|
||||||
# @param [String] web_property_id
|
# @param [String] web_property_id
|
||||||
# Web property ID for the remarketing audience to retrieve.
|
# The web property ID of the remarketing audience to retrieve.
|
||||||
# @param [String] remarketing_audience_id
|
# @param [String] remarketing_audience_id
|
||||||
# The ID to retrieve the Remarketing Audience for.
|
# The ID of the remarketing audience to retrieve.
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -2491,11 +2491,11 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Creates a new remarketing audiences.
|
# Creates a new remarketing audience.
|
||||||
# @param [String] account_id
|
# @param [String] account_id
|
||||||
# Account ID to create the remarketing audience for.
|
# The account ID for which to create the remarketing audience.
|
||||||
# @param [String] web_property_id
|
# @param [String] web_property_id
|
||||||
# Web property ID to create the remarketing audience for.
|
# Web property ID for which to create the remarketing audience.
|
||||||
# @param [Google::Apis::AnalyticsV3::RemarketingAudience] remarketing_audience_object
|
# @param [Google::Apis::AnalyticsV3::RemarketingAudience] remarketing_audience_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
@ -2534,9 +2534,9 @@ module Google
|
||||||
|
|
||||||
# Lists remarketing audiences to which the user has access.
|
# Lists remarketing audiences to which the user has access.
|
||||||
# @param [String] account_id
|
# @param [String] account_id
|
||||||
# Account ID for the remarketing audience to retrieve.
|
# The account ID of the remarketing audiences to retrieve.
|
||||||
# @param [String] web_property_id
|
# @param [String] web_property_id
|
||||||
# Web property ID for the remarketing audience to retrieve.
|
# The web property ID of the remarketing audiences to retrieve.
|
||||||
# @param [Fixnum] max_results
|
# @param [Fixnum] max_results
|
||||||
# The maximum number of remarketing audiences to include in this response.
|
# The maximum number of remarketing audiences to include in this response.
|
||||||
# @param [Fixnum] start_index
|
# @param [Fixnum] start_index
|
||||||
|
@ -2579,14 +2579,13 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Updates an existing remarketing audiences. This method supports patch
|
# Updates an existing remarketing audience. This method supports patch semantics.
|
||||||
# semantics.
|
|
||||||
# @param [String] account_id
|
# @param [String] account_id
|
||||||
# Account ID for the remarketing audience to update.
|
# The account ID of the remarketing audience to update.
|
||||||
# @param [String] web_property_id
|
# @param [String] web_property_id
|
||||||
# Web property ID for the remarketing audience to update.
|
# The web property ID of the remarketing audience to update.
|
||||||
# @param [String] remarketing_audience_id
|
# @param [String] remarketing_audience_id
|
||||||
# Remarketing audience ID of the remarketing audience to update.
|
# The ID of the remarketing audience to update.
|
||||||
# @param [Google::Apis::AnalyticsV3::RemarketingAudience] remarketing_audience_object
|
# @param [Google::Apis::AnalyticsV3::RemarketingAudience] remarketing_audience_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
@ -2624,13 +2623,13 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Updates an existing remarketing audiences.
|
# Updates an existing remarketing audience.
|
||||||
# @param [String] account_id
|
# @param [String] account_id
|
||||||
# Account ID for the remarketing audience to update.
|
# The account ID of the remarketing audience to update.
|
||||||
# @param [String] web_property_id
|
# @param [String] web_property_id
|
||||||
# Web property ID for the remarketing audience to update.
|
# The web property ID of the remarketing audience to update.
|
||||||
# @param [String] remarketing_audience_id
|
# @param [String] remarketing_audience_id
|
||||||
# Remarketing audience ID of the remarketing audience to update.
|
# The ID of the remarketing audience to update.
|
||||||
# @param [Google::Apis::AnalyticsV3::RemarketingAudience] remarketing_audience_object
|
# @param [Google::Apis::AnalyticsV3::RemarketingAudience] remarketing_audience_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/analytics/devguides/reporting/core/v4/
|
# @see https://developers.google.com/analytics/devguides/reporting/core/v4/
|
||||||
module AnalyticsreportingV4
|
module AnalyticsreportingV4
|
||||||
VERSION = 'V4'
|
VERSION = 'V4'
|
||||||
REVISION = '20160926'
|
REVISION = '20161011'
|
||||||
|
|
||||||
# View your Google Analytics data
|
# View your Google Analytics data
|
||||||
AUTH_ANALYTICS_READONLY = 'https://www.googleapis.com/auth/analytics.readonly'
|
AUTH_ANALYTICS_READONLY = 'https://www.googleapis.com/auth/analytics.readonly'
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/android/work/play/emm-api
|
# @see https://developers.google.com/android/work/play/emm-api
|
||||||
module AndroidenterpriseV1
|
module AndroidenterpriseV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20160928'
|
REVISION = '20161005'
|
||||||
|
|
||||||
# Manage corporate Android devices
|
# Manage corporate Android devices
|
||||||
AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise'
|
AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise'
|
||||||
|
|
|
@ -42,6 +42,69 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# A token authorizing an administrator to access an iframe.
|
||||||
|
class AdministratorWebToken
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Identifies what kind of resource this is. Value: the fixed string "
|
||||||
|
# androidenterprise#administratorWebToken".
|
||||||
|
# Corresponds to the JSON property `kind`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :kind
|
||||||
|
|
||||||
|
# An opaque token to be passed to the Play front-end to generate an iframe.
|
||||||
|
# Corresponds to the JSON property `token`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :token
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@kind = args[:kind] if args.key?(:kind)
|
||||||
|
@token = args[:token] if args.key?(:token)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Specification for a token used to generate iframes. The token specifies what
|
||||||
|
# data the admin is allowed to modify and the URI the iframe is allowed to
|
||||||
|
# communiate with.
|
||||||
|
class AdministratorWebTokenSpec
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Identifies what kind of resource this is. Value: the fixed string "
|
||||||
|
# androidenterprise#administratorWebTokenSpec".
|
||||||
|
# Corresponds to the JSON property `kind`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :kind
|
||||||
|
|
||||||
|
# The URI of the parent frame hosting the iframe. To prevent XSS, the iframe may
|
||||||
|
# not be hosted at other URIs. This URI must be https.
|
||||||
|
# Corresponds to the JSON property `parent`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :parent
|
||||||
|
|
||||||
|
# The list of permissions the admin is granted within the iframe. The admin will
|
||||||
|
# only be allowed to view an iframe if they have all of the permissions
|
||||||
|
# associated with it.
|
||||||
|
# Corresponds to the JSON property `permission`
|
||||||
|
# @return [Array<String>]
|
||||||
|
attr_accessor :permission
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@kind = args[:kind] if args.key?(:kind)
|
||||||
|
@parent = args[:parent] if args.key?(:parent)
|
||||||
|
@permission = args[:permission] if args.key?(:permission)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# Represents the list of app restrictions available to be pre-configured for the
|
# Represents the list of app restrictions available to be pre-configured for the
|
||||||
# product.
|
# product.
|
||||||
class AppRestrictionsSchema
|
class AppRestrictionsSchema
|
||||||
|
@ -1949,6 +2012,16 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :kind
|
attr_accessor :kind
|
||||||
|
|
||||||
|
# Sets a store layout type. If set to "custom", "homepageId" must be specified.
|
||||||
|
# If set to "basic", the layout will consist of all approved apps accessible by
|
||||||
|
# the user, split in pages of 100 each; in this case, "homepageId" must not be
|
||||||
|
# specified. The "basic" setting takes precedence over any existing collections
|
||||||
|
# setup for this enterprise (if any). Should the enterprise use
|
||||||
|
# collectionViewers for controlling access rights, these will still be respected.
|
||||||
|
# Corresponds to the JSON property `storeLayoutType`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :store_layout_type
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
@ -1957,6 +2030,7 @@ module Google
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@homepage_id = args[:homepage_id] if args.key?(:homepage_id)
|
@homepage_id = args[:homepage_id] if args.key?(:homepage_id)
|
||||||
@kind = args[:kind] if args.key?(:kind)
|
@kind = args[:kind] if args.key?(:kind)
|
||||||
|
@store_layout_type = args[:store_layout_type] if args.key?(:store_layout_type)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -28,6 +28,18 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class AdministratorWebToken
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class AdministratorWebTokenSpec
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class AppRestrictionsSchema
|
class AppRestrictionsSchema
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -389,6 +401,23 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class AdministratorWebToken
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
property :token, as: 'token'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class AdministratorWebTokenSpec
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
property :parent, as: 'parent'
|
||||||
|
collection :permission, as: 'permission'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class AppRestrictionsSchema
|
class AppRestrictionsSchema
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -893,6 +922,7 @@ module Google
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :homepage_id, as: 'homepageId'
|
property :homepage_id, as: 'homepageId'
|
||||||
property :kind, as: 'kind'
|
property :kind, as: 'kind'
|
||||||
|
property :store_layout_type, as: 'storeLayoutType'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -745,6 +745,47 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Returns a unique token to access an embeddable UI. To generate a web UI, pass
|
||||||
|
# the generated token into the Play for Work javascript API. Each token may only
|
||||||
|
# be used to start one UI session. See the javascript API documentation for
|
||||||
|
# further information.
|
||||||
|
# @param [String] enterprise_id
|
||||||
|
# The ID of the enterprise.
|
||||||
|
# @param [Google::Apis::AndroidenterpriseV1::AdministratorWebTokenSpec] administrator_web_token_spec_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::AndroidenterpriseV1::AdministratorWebToken] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AndroidenterpriseV1::AdministratorWebToken]
|
||||||
|
#
|
||||||
|
# @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_enterprise_web_token(enterprise_id, administrator_web_token_spec_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'enterprises/{enterpriseId}/createWebToken', options)
|
||||||
|
command.request_representation = Google::Apis::AndroidenterpriseV1::AdministratorWebTokenSpec::Representation
|
||||||
|
command.request_object = administrator_web_token_spec_object
|
||||||
|
command.response_representation = Google::Apis::AndroidenterpriseV1::AdministratorWebToken::Representation
|
||||||
|
command.response_class = Google::Apis::AndroidenterpriseV1::AdministratorWebToken
|
||||||
|
command.params['enterpriseId'] = enterprise_id unless enterprise_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
|
||||||
|
|
||||||
# Deletes the binding between the EMM and enterprise. This is now deprecated;
|
# Deletes the binding between the EMM and enterprise. This is now deprecated;
|
||||||
# use this to unenroll customers that were previously enrolled with the 'insert'
|
# use this to unenroll customers that were previously enrolled with the 'insert'
|
||||||
# call, then enroll them again with the 'enroll' call.
|
# call, then enroll them again with the 'enroll' call.
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/android-publisher
|
# @see https://developers.google.com/android-publisher
|
||||||
module AndroidpublisherV2
|
module AndroidpublisherV2
|
||||||
VERSION = 'V2'
|
VERSION = 'V2'
|
||||||
REVISION = '20160817'
|
REVISION = '20161004'
|
||||||
|
|
||||||
# View and manage your Google Play Developer account
|
# View and manage your Google Play Developer account
|
||||||
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
|
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/appengine/docs/admin-api/
|
# @see https://cloud.google.com/appengine/docs/admin-api/
|
||||||
module AppengineV1beta5
|
module AppengineV1beta5
|
||||||
VERSION = 'V1beta5'
|
VERSION = 'V1beta5'
|
||||||
REVISION = '20160802'
|
REVISION = '20161012'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -1616,7 +1616,7 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :name
|
attr_accessor :name
|
||||||
|
|
||||||
# The cononical id for this location. For example: `"us-east1"`.
|
# The canonical id for this location. For example: `"us-east1"`.
|
||||||
# Corresponds to the JSON property `locationId`
|
# Corresponds to the JSON property `locationId`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :location_id
|
attr_accessor :location_id
|
||||||
|
|
|
@ -118,6 +118,42 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Updates application parameters.
|
||||||
|
# @param [String] apps_id
|
||||||
|
# Part of `name`. Name of the application to update. Example: `apps/myapp`.
|
||||||
|
# @param [Google::Apis::AppengineV1beta5::Application] application_object
|
||||||
|
# @param [String] mask
|
||||||
|
# Standard field mask for the set of fields to be updated.
|
||||||
|
# @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::AppengineV1beta5::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AppengineV1beta5::Operation]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def patch_app(apps_id, application_object = nil, mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:patch, 'v1beta5/apps/{appsId}', options)
|
||||||
|
command.request_representation = Google::Apis::AppengineV1beta5::Application::Representation
|
||||||
|
command.request_object = application_object
|
||||||
|
command.response_representation = Google::Apis::AppengineV1beta5::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::AppengineV1beta5::Operation
|
||||||
|
command.params['appsId'] = apps_id unless apps_id.nil?
|
||||||
|
command.query['mask'] = mask unless 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
|
||||||
|
|
||||||
# Gets the latest state of a long-running operation. Clients can use this method
|
# Gets the latest state of a long-running operation. Clients can use this method
|
||||||
# to poll the operation result at intervals as recommended by the API service.
|
# to poll the operation result at intervals as recommended by the API service.
|
||||||
# @param [String] apps_id
|
# @param [String] apps_id
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/bigquery/
|
# @see https://cloud.google.com/bigquery/
|
||||||
module BigqueryV2
|
module BigqueryV2
|
||||||
VERSION = 'V2'
|
VERSION = 'V2'
|
||||||
REVISION = '20160922'
|
REVISION = '20161006'
|
||||||
|
|
||||||
# View and manage your data in Google BigQuery
|
# View and manage your data in Google BigQuery
|
||||||
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
|
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
|
||||||
|
|
|
@ -2758,8 +2758,8 @@ module Google
|
||||||
attr_accessor :name
|
attr_accessor :name
|
||||||
|
|
||||||
# [Required] The field data type. Possible values include STRING, BYTES, INTEGER,
|
# [Required] The field data type. Possible values include STRING, BYTES, INTEGER,
|
||||||
# FLOAT, BOOLEAN, TIMESTAMP or RECORD (where RECORD indicates that the field
|
# FLOAT, BOOLEAN, TIMESTAMP, DATE, TIME, DATETIME, or RECORD (where RECORD
|
||||||
# contains a nested schema).
|
# indicates that the field contains a nested schema).
|
||||||
# Corresponds to the JSON property `type`
|
# Corresponds to the JSON property `type`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :type
|
attr_accessor :type
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/books/docs/v1/getting_started
|
# @see https://developers.google.com/books/docs/v1/getting_started
|
||||||
module BooksV1
|
module BooksV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20160823'
|
REVISION = '20161005'
|
||||||
|
|
||||||
# Manage your books
|
# Manage your books
|
||||||
AUTH_BOOKS = 'https://www.googleapis.com/auth/books'
|
AUTH_BOOKS = 'https://www.googleapis.com/auth/books'
|
||||||
|
|
|
@ -2413,7 +2413,8 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :kind
|
attr_accessor :kind
|
||||||
|
|
||||||
#
|
# Series info list. The client always expects this element in the JSON output,
|
||||||
|
# hence declared here as OutputAlways.
|
||||||
# Corresponds to the JSON property `series`
|
# Corresponds to the JSON property `series`
|
||||||
# @return [Array<Google::Apis::BooksV1::Series::Series>]
|
# @return [Array<Google::Apis::BooksV1::Series::Series>]
|
||||||
attr_accessor :series
|
attr_accessor :series
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/google-apps/calendar/firstapp
|
# @see https://developers.google.com/google-apps/calendar/firstapp
|
||||||
module CalendarV3
|
module CalendarV3
|
||||||
VERSION = 'V3'
|
VERSION = 'V3'
|
||||||
REVISION = '20160927'
|
REVISION = '20161004'
|
||||||
|
|
||||||
# Manage your calendars
|
# Manage your calendars
|
||||||
AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar'
|
AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar'
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/classroom/
|
# @see https://developers.google.com/classroom/
|
||||||
module ClassroomV1
|
module ClassroomV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20160816'
|
REVISION = '20161006'
|
||||||
|
|
||||||
# View instructions for teacher-assigned work in your Google Classroom classes
|
# View instructions for teacher-assigned work in your Google Classroom classes
|
||||||
AUTH_CLASSROOM_COURSE_WORK_READONLY = 'https://www.googleapis.com/auth/classroom.course-work.readonly'
|
AUTH_CLASSROOM_COURSE_WORK_READONLY = 'https://www.googleapis.com/auth/classroom.course-work.readonly'
|
||||||
|
|
|
@ -129,6 +129,12 @@ module Google
|
||||||
# @return [Array<Google::Apis::ClassroomV1::CourseMaterialSet>]
|
# @return [Array<Google::Apis::ClassroomV1::CourseMaterialSet>]
|
||||||
attr_accessor :course_material_sets
|
attr_accessor :course_material_sets
|
||||||
|
|
||||||
|
# Whether or not guardian notifications are enabled for this course. Read-only.
|
||||||
|
# Corresponds to the JSON property `guardiansEnabled`
|
||||||
|
# @return [Boolean]
|
||||||
|
attr_accessor :guardians_enabled
|
||||||
|
alias_method :guardians_enabled?, :guardians_enabled
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
@ -151,6 +157,7 @@ module Google
|
||||||
@course_group_email = args[:course_group_email] if args.key?(:course_group_email)
|
@course_group_email = args[:course_group_email] if args.key?(:course_group_email)
|
||||||
@teacher_folder = args[:teacher_folder] if args.key?(:teacher_folder)
|
@teacher_folder = args[:teacher_folder] if args.key?(:teacher_folder)
|
||||||
@course_material_sets = args[:course_material_sets] if args.key?(:course_material_sets)
|
@course_material_sets = args[:course_material_sets] if args.key?(:course_material_sets)
|
||||||
|
@guardians_enabled = args[:guardians_enabled] if args.key?(:guardians_enabled)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -301,6 +301,7 @@ module Google
|
||||||
|
|
||||||
collection :course_material_sets, as: 'courseMaterialSets', class: Google::Apis::ClassroomV1::CourseMaterialSet, decorator: Google::Apis::ClassroomV1::CourseMaterialSet::Representation
|
collection :course_material_sets, as: 'courseMaterialSets', class: Google::Apis::ClassroomV1::CourseMaterialSet, decorator: Google::Apis::ClassroomV1::CourseMaterialSet::Representation
|
||||||
|
|
||||||
|
property :guardians_enabled, as: 'guardiansEnabled'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -43,7 +43,7 @@ module Google
|
||||||
attr_accessor :quota_user
|
attr_accessor :quota_user
|
||||||
|
|
||||||
def initialize
|
def initialize
|
||||||
super('https://classroom.googleapis.com/', '')
|
super('https://prod-day0-classroom.sandbox.googleapis.com/', '')
|
||||||
end
|
end
|
||||||
|
|
||||||
# Creates a course. The user specified in `ownerId` is the owner of the created
|
# Creates a course. The user specified in `ownerId` is the owner of the created
|
||||||
|
@ -249,6 +249,8 @@ module Google
|
||||||
# identifier. The identifier can be one of the following: * the numeric
|
# identifier. The identifier can be one of the following: * the numeric
|
||||||
# identifier for the user * the email address of the user * the string literal `"
|
# identifier for the user * the email address of the user * the string literal `"
|
||||||
# me"`, indicating the requesting user
|
# me"`, indicating the requesting user
|
||||||
|
# @param [Array<String>, String] course_states
|
||||||
|
# Restricts returned courses to those in one of the specified states
|
||||||
# @param [Fixnum] page_size
|
# @param [Fixnum] page_size
|
||||||
# Maximum number of items to return. Zero or unspecified indicates that the
|
# Maximum number of items to return. Zero or unspecified indicates that the
|
||||||
# server may assign a maximum. The server may return fewer than the specified
|
# server may assign a maximum. The server may return fewer than the specified
|
||||||
|
@ -274,12 +276,13 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_courses(student_id: nil, teacher_id: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
def list_courses(student_id: nil, teacher_id: nil, course_states: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
command = make_simple_command(:get, 'v1/courses', options)
|
command = make_simple_command(:get, 'v1/courses', options)
|
||||||
command.response_representation = Google::Apis::ClassroomV1::ListCoursesResponse::Representation
|
command.response_representation = Google::Apis::ClassroomV1::ListCoursesResponse::Representation
|
||||||
command.response_class = Google::Apis::ClassroomV1::ListCoursesResponse
|
command.response_class = Google::Apis::ClassroomV1::ListCoursesResponse
|
||||||
command.query['studentId'] = student_id unless student_id.nil?
|
command.query['studentId'] = student_id unless student_id.nil?
|
||||||
command.query['teacherId'] = teacher_id unless teacher_id.nil?
|
command.query['teacherId'] = teacher_id unless teacher_id.nil?
|
||||||
|
command.query['courseStates'] = course_states unless course_states.nil?
|
||||||
command.query['pageSize'] = page_size unless page_size.nil?
|
command.query['pageSize'] = page_size unless page_size.nil?
|
||||||
command.query['pageToken'] = page_token unless page_token.nil?
|
command.query['pageToken'] = page_token unless page_token.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
@ -1277,18 +1280,21 @@ module Google
|
||||||
# to view, filtered by the parameters provided. This method returns the
|
# to view, filtered by the parameters provided. This method returns the
|
||||||
# following error codes: * `PERMISSION_DENIED` if a `student_id` is specified,
|
# following error codes: * `PERMISSION_DENIED` if a `student_id` is specified,
|
||||||
# and the requesting user is not permitted to view guardian invitations for that
|
# and the requesting user is not permitted to view guardian invitations for that
|
||||||
# student, if guardians are not enabled for the domain in question, or for other
|
# student, if `"-"` is specified as the `student_id` and the user is not a
|
||||||
# access errors. * `INVALID_ARGUMENT` if a `student_id` is specified, but its
|
# domain administrator, if guardians are not enabled for the domain in question,
|
||||||
# format cannot be recognized (it is not an email address, nor a `student_id`
|
# or for other access errors. * `INVALID_ARGUMENT` if a `student_id` is
|
||||||
# from the API, nor the literal string `me`). May also be returned if an invalid
|
# specified, but its format cannot be recognized (it is not an email address,
|
||||||
# `page_token` or `state` is provided. * `NOT_FOUND` if a `student_id` is
|
# nor a `student_id` from the API, nor the literal string `me`). May also be
|
||||||
# specified, and its format can be recognized, but Classroom has no record of
|
# returned if an invalid `page_token` or `state` is provided. * `NOT_FOUND` if a
|
||||||
# that student.
|
# `student_id` is specified, and its format can be recognized, but Classroom has
|
||||||
|
# no record of that student.
|
||||||
# @param [String] student_id
|
# @param [String] student_id
|
||||||
# The ID of the student whose guardian invitations are to be returned. The
|
# The ID of the student whose guardian invitations are to be returned. The
|
||||||
# identifier can be one of the following: * the numeric identifier for the user *
|
# identifier can be one of the following: * the numeric identifier for the user *
|
||||||
# the email address of the user * the string literal `"me"`, indicating the
|
# the email address of the user * the string literal `"me"`, indicating the
|
||||||
# requesting user
|
# requesting user * the string literal `"-"`, indicating that results should be
|
||||||
|
# returned for all students that the requesting user is permitted to view
|
||||||
|
# guardian invitations.
|
||||||
# @param [String] invited_email_address
|
# @param [String] invited_email_address
|
||||||
# If specified, only results with the specified `invited_email_address` will be
|
# If specified, only results with the specified `invited_email_address` will be
|
||||||
# returned.
|
# returned.
|
||||||
|
@ -1485,10 +1491,13 @@ module Google
|
||||||
end
|
end
|
||||||
|
|
||||||
# Returns a list of guardians that the requesting user is permitted to view,
|
# Returns a list of guardians that the requesting user is permitted to view,
|
||||||
# restricted to those that match the request. This method returns the following
|
# restricted to those that match the request. To list guardians for any student
|
||||||
# error codes: * `PERMISSION_DENIED` if a `student_id` is specified, and the
|
# that the requesting user may view guardians for, use the literal character `-`
|
||||||
# requesting user is not permitted to view guardian information for that student,
|
# for the student ID. This method returns the following error codes: * `
|
||||||
# if guardians are not enabled for the domain in question, if the `
|
# PERMISSION_DENIED` if a `student_id` is specified, and the requesting user is
|
||||||
|
# not permitted to view guardian information for that student, if `"-"` is
|
||||||
|
# specified as the `student_id` and the user is not a domain administrator, if
|
||||||
|
# guardians are not enabled for the domain in question, if the `
|
||||||
# invited_email_address` filter is set by a user who is not a domain
|
# invited_email_address` filter is set by a user who is not a domain
|
||||||
# administrator, or for other access errors. * `INVALID_ARGUMENT` if a `
|
# administrator, or for other access errors. * `INVALID_ARGUMENT` if a `
|
||||||
# student_id` is specified, but its format cannot be recognized (it is not an
|
# student_id` is specified, but its format cannot be recognized (it is not an
|
||||||
|
@ -1500,7 +1509,8 @@ module Google
|
||||||
# Filter results by the student who the guardian is linked to. The identifier
|
# Filter results by the student who the guardian is linked to. The identifier
|
||||||
# can be one of the following: * the numeric identifier for the user * the email
|
# can be one of the following: * the numeric identifier for the user * the email
|
||||||
# address of the user * the string literal `"me"`, indicating the requesting
|
# address of the user * the string literal `"me"`, indicating the requesting
|
||||||
# user
|
# user * the string literal `"-"`, indicating that results should be returned
|
||||||
|
# for all students that the requesting user has access to view.
|
||||||
# @param [String] invited_email_address
|
# @param [String] invited_email_address
|
||||||
# Filter results by the email address that the original invitation was sent to,
|
# Filter results by the email address that the original invitation was sent to,
|
||||||
# resulting in this guardian link. This filter can only be used by domain
|
# resulting in this guardian link. This filter can only be used by domain
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/container-builder/docs/
|
# @see https://cloud.google.com/container-builder/docs/
|
||||||
module CloudbuildV1
|
module CloudbuildV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20161004'
|
REVISION = '20161013'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -3648,7 +3648,7 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :archive_size_bytes
|
attr_accessor :archive_size_bytes
|
||||||
|
|
||||||
# Creation timestamp in RFC3339 text format.
|
# [Output Only] Creation timestamp in RFC3339 text format.
|
||||||
# Corresponds to the JSON property `creationTimestamp`
|
# Corresponds to the JSON property `creationTimestamp`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :creation_timestamp
|
attr_accessor :creation_timestamp
|
||||||
|
@ -4352,8 +4352,8 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :description
|
attr_accessor :description
|
||||||
|
|
||||||
# The action to perform in case of zone failure (set only for Regional instance
|
# The action to perform in case of zone failure. Only one value is supported,
|
||||||
# group managers).
|
# NO_FAILOVER. The default is NO_FAILOVER.
|
||||||
# Corresponds to the JSON property `failoverAction`
|
# Corresponds to the JSON property `failoverAction`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :failover_action
|
attr_accessor :failover_action
|
||||||
|
@ -4483,7 +4483,7 @@ module Google
|
||||||
# [Output Only] The number of instances that the managed instance group will
|
# [Output Only] The number of instances that the managed instance group will
|
||||||
# attempt to create. The group attempts to create each instance only once. If
|
# attempt to create. The group attempts to create each instance only once. If
|
||||||
# the group fails to create any of these instances, it decreases the group's
|
# the group fails to create any of these instances, it decreases the group's
|
||||||
# target_size value accordingly.
|
# targetSize value accordingly.
|
||||||
# Corresponds to the JSON property `creatingWithoutRetries`
|
# Corresponds to the JSON property `creatingWithoutRetries`
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :creating_without_retries
|
attr_accessor :creating_without_retries
|
||||||
|
@ -4648,7 +4648,7 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :next_page_token
|
attr_accessor :next_page_token
|
||||||
|
|
||||||
# [Output Only] The URL for this resource type. The server generates this URL.
|
# [Output Only] Server-defined URL for this resource.
|
||||||
# Corresponds to the JSON property `selfLink`
|
# Corresponds to the JSON property `selfLink`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :self_link
|
attr_accessor :self_link
|
||||||
|
@ -6424,7 +6424,7 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :next_page_token
|
attr_accessor :next_page_token
|
||||||
|
|
||||||
# [Output Only] Server-defined URL for this resource .
|
# [Output Only] Server-defined URL for this resource.
|
||||||
# Corresponds to the JSON property `selfLink`
|
# Corresponds to the JSON property `selfLink`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :self_link
|
attr_accessor :self_link
|
||||||
|
@ -8172,7 +8172,7 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :next_page_token
|
attr_accessor :next_page_token
|
||||||
|
|
||||||
# [Output Only] Server-defined URL for the resource.
|
# [Output Only] Server-defined URL for this resource.
|
||||||
# Corresponds to the JSON property `selfLink`
|
# Corresponds to the JSON property `selfLink`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :self_link
|
attr_accessor :self_link
|
||||||
|
@ -8541,7 +8541,7 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :next
|
attr_accessor :next
|
||||||
|
|
||||||
# [Output Only] Server-defined URL for the resource.
|
# [Output Only] Server-defined URL for this resource.
|
||||||
# Corresponds to the JSON property `selfLink`
|
# Corresponds to the JSON property `selfLink`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :self_link
|
attr_accessor :self_link
|
||||||
|
@ -10551,7 +10551,7 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :next_page_token
|
attr_accessor :next_page_token
|
||||||
|
|
||||||
# [Output Only] Server-defined URL for the resource.
|
# [Output Only] Server-defined URL for this resource.
|
||||||
# Corresponds to the JSON property `selfLink`
|
# Corresponds to the JSON property `selfLink`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :self_link
|
attr_accessor :self_link
|
||||||
|
@ -10600,7 +10600,7 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :next_page_token
|
attr_accessor :next_page_token
|
||||||
|
|
||||||
# [Output Only] Server-defined URL for the resource.
|
# [Output Only] Server-defined URL for this resource.
|
||||||
# Corresponds to the JSON property `selfLink`
|
# Corresponds to the JSON property `selfLink`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :self_link
|
attr_accessor :self_link
|
||||||
|
@ -11302,7 +11302,7 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :next_page_token
|
attr_accessor :next_page_token
|
||||||
|
|
||||||
# [Output Only] Server-defined URL for the resource.
|
# [Output Only] Server-defined URL for this resource.
|
||||||
# Corresponds to the JSON property `selfLink`
|
# Corresponds to the JSON property `selfLink`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :self_link
|
attr_accessor :self_link
|
||||||
|
|
|
@ -1107,10 +1107,10 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Updates the entire content of the BackendService resource. There are several
|
# Updates the specified BackendService resource with the data included in the
|
||||||
# restrictions and guidelines to keep in mind when updating a backend service.
|
# request. There are several restrictions and guidelines to keep in mind when
|
||||||
# Read Restrictions and Guidelines for more information. This method supports
|
# updating a backend service. Read Restrictions and Guidelines for more
|
||||||
# patch semantics.
|
# information. This method supports patch semantics.
|
||||||
# @param [String] project
|
# @param [String] project
|
||||||
# Project ID for this request.
|
# Project ID for this request.
|
||||||
# @param [String] backend_service
|
# @param [String] backend_service
|
||||||
|
@ -1192,9 +1192,10 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Updates the entire content of the BackendService resource. There are several
|
# Updates the specified BackendService resource with the data included in the
|
||||||
# restrictions and guidelines to keep in mind when updating a backend service.
|
# request. There are several restrictions and guidelines to keep in mind when
|
||||||
# Read Restrictions and Guidelines for more information.
|
# updating a backend service. Read Restrictions and Guidelines for more
|
||||||
|
# information.
|
||||||
# @param [String] project
|
# @param [String] project
|
||||||
# Project ID for this request.
|
# Project ID for this request.
|
||||||
# @param [String] backend_service
|
# @param [String] backend_service
|
||||||
|
@ -8494,10 +8495,10 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Update the entire content of the regional BackendService resource. There are
|
# Updates the specified regional BackendService resource with the data included
|
||||||
# several restrictions and guidelines to keep in mind when updating a backend
|
# in the request. There are several restrictions and guidelines to keep in mind
|
||||||
# service. Read Restrictions and Guidelines for more information. This method
|
# when updating a backend service. Read Restrictions and Guidelines for more
|
||||||
# supports patch semantics.
|
# information. This method supports patch semantics.
|
||||||
# @param [String] project
|
# @param [String] project
|
||||||
# Project ID for this request.
|
# Project ID for this request.
|
||||||
# @param [String] region
|
# @param [String] region
|
||||||
|
@ -8585,9 +8586,10 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Update the entire content of the regional BackendService resource. There are
|
# Updates the specified regional BackendService resource with the data included
|
||||||
# several restrictions and guidelines to keep in mind when updating a backend
|
# in the request. There are several restrictions and guidelines to keep in mind
|
||||||
# service. Read Restrictions and Guidelines for more information.
|
# when updating a backend service. Read Restrictions and Guidelines for more
|
||||||
|
# information.
|
||||||
# @param [String] project
|
# @param [String] project
|
||||||
# Project ID for this request.
|
# Project ID for this request.
|
||||||
# @param [String] region
|
# @param [String] region
|
||||||
|
@ -10256,8 +10258,8 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Updates the entire content of the Router resource. This method supports patch
|
# Updates the specified Router resource with the data included in the request.
|
||||||
# semantics.
|
# This method supports patch semantics.
|
||||||
# @param [String] project
|
# @param [String] project
|
||||||
# Project ID for this request.
|
# Project ID for this request.
|
||||||
# @param [String] region
|
# @param [String] region
|
||||||
|
@ -10390,7 +10392,7 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Updates the entire content of the Router resource.
|
# Updates the specified Router resource with the data included in the request.
|
||||||
# @param [String] project
|
# @param [String] project
|
||||||
# Project ID for this request.
|
# Project ID for this request.
|
||||||
# @param [String] region
|
# @param [String] region
|
||||||
|
@ -13949,8 +13951,8 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Updates the entire content of the UrlMap resource. This method supports patch
|
# Updates the specified UrlMap resource with the data included in the request.
|
||||||
# semantics.
|
# This method supports patch semantics.
|
||||||
# @param [String] project
|
# @param [String] project
|
||||||
# Project ID for this request.
|
# Project ID for this request.
|
||||||
# @param [String] url_map
|
# @param [String] url_map
|
||||||
|
@ -14032,7 +14034,7 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Updates the entire content of the UrlMap resource.
|
# Updates the specified UrlMap resource with the data included in the request.
|
||||||
# @param [String] project
|
# @param [String] project
|
||||||
# Project ID for this request.
|
# Project ID for this request.
|
||||||
# @param [String] url_map
|
# @param [String] url_map
|
||||||
|
|
|
@ -3321,7 +3321,7 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :archive_size_bytes
|
attr_accessor :archive_size_bytes
|
||||||
|
|
||||||
# Creation timestamp in RFC3339 text format.
|
# [Output Only] Creation timestamp in RFC3339 text format.
|
||||||
# Corresponds to the JSON property `creationTimestamp`
|
# Corresponds to the JSON property `creationTimestamp`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :creation_timestamp
|
attr_accessor :creation_timestamp
|
||||||
|
@ -4093,7 +4093,7 @@ module Google
|
||||||
# [Output Only] The number of instances that the managed instance group will
|
# [Output Only] The number of instances that the managed instance group will
|
||||||
# attempt to create. The group attempts to create each instance only once. If
|
# attempt to create. The group attempts to create each instance only once. If
|
||||||
# the group fails to create any of these instances, it decreases the group's
|
# the group fails to create any of these instances, it decreases the group's
|
||||||
# target_size value accordingly.
|
# targetSize value accordingly.
|
||||||
# Corresponds to the JSON property `creatingWithoutRetries`
|
# Corresponds to the JSON property `creatingWithoutRetries`
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :creating_without_retries
|
attr_accessor :creating_without_retries
|
||||||
|
@ -4228,7 +4228,7 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :next_page_token
|
attr_accessor :next_page_token
|
||||||
|
|
||||||
# [Output Only] The URL for this resource type. The server generates this URL.
|
# [Output Only] Server-defined URL for this resource.
|
||||||
# Corresponds to the JSON property `selfLink`
|
# Corresponds to the JSON property `selfLink`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :self_link
|
attr_accessor :self_link
|
||||||
|
@ -5933,7 +5933,7 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :next_page_token
|
attr_accessor :next_page_token
|
||||||
|
|
||||||
# [Output Only] Server-defined URL for this resource .
|
# [Output Only] Server-defined URL for this resource.
|
||||||
# Corresponds to the JSON property `selfLink`
|
# Corresponds to the JSON property `selfLink`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :self_link
|
attr_accessor :self_link
|
||||||
|
@ -7287,7 +7287,7 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :next_page_token
|
attr_accessor :next_page_token
|
||||||
|
|
||||||
# [Output Only] Server-defined URL for the resource.
|
# [Output Only] Server-defined URL for this resource.
|
||||||
# Corresponds to the JSON property `selfLink`
|
# Corresponds to the JSON property `selfLink`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :self_link
|
attr_accessor :self_link
|
||||||
|
@ -7650,7 +7650,7 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :kind
|
attr_accessor :kind
|
||||||
|
|
||||||
# [Output Only] Server-defined URL for the resource.
|
# [Output Only] Server-defined URL for this resource.
|
||||||
# Corresponds to the JSON property `selfLink`
|
# Corresponds to the JSON property `selfLink`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :self_link
|
attr_accessor :self_link
|
||||||
|
@ -9609,7 +9609,7 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :next_page_token
|
attr_accessor :next_page_token
|
||||||
|
|
||||||
# [Output Only] Server-defined URL for the resource.
|
# [Output Only] Server-defined URL for this resource.
|
||||||
# Corresponds to the JSON property `selfLink`
|
# Corresponds to the JSON property `selfLink`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :self_link
|
attr_accessor :self_link
|
||||||
|
@ -9658,7 +9658,7 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :next_page_token
|
attr_accessor :next_page_token
|
||||||
|
|
||||||
# [Output Only] Server-defined URL for the resource.
|
# [Output Only] Server-defined URL for this resource.
|
||||||
# Corresponds to the JSON property `selfLink`
|
# Corresponds to the JSON property `selfLink`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :self_link
|
attr_accessor :self_link
|
||||||
|
@ -10321,7 +10321,7 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :next_page_token
|
attr_accessor :next_page_token
|
||||||
|
|
||||||
# [Output Only] Server-defined URL for the resource.
|
# [Output Only] Server-defined URL for this resource.
|
||||||
# Corresponds to the JSON property `selfLink`
|
# Corresponds to the JSON property `selfLink`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :self_link
|
attr_accessor :self_link
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://cloud.google.com/dataflow
|
# @see https://cloud.google.com/dataflow
|
||||||
module DataflowV1b3
|
module DataflowV1b3
|
||||||
VERSION = 'V1b3'
|
VERSION = 'V1b3'
|
||||||
REVISION = '20160923'
|
REVISION = '20161004'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://cloud.google.com/datastore/
|
# @see https://cloud.google.com/datastore/
|
||||||
module DatastoreV1
|
module DatastoreV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20160920'
|
REVISION = '20161004'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/cloud-dns
|
# @see https://developers.google.com/cloud-dns
|
||||||
module DnsV1
|
module DnsV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20160920'
|
REVISION = '20161005'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/bid-manager/
|
# @see https://developers.google.com/bid-manager/
|
||||||
module DoubleclickbidmanagerV1
|
module DoubleclickbidmanagerV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20160927'
|
REVISION = '20161010'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -91,8 +91,10 @@ module Google
|
||||||
# @return [Array<String>]
|
# @return [Array<String>]
|
||||||
attr_accessor :file_types
|
attr_accessor :file_types
|
||||||
|
|
||||||
# IDs of the specified filter type used to filter entities to fetch. If omitted,
|
# The IDs of the specified filter type. This is used to filter entities to fetch.
|
||||||
# all the entities will be returned.
|
# At least one ID must be specified. Only one ID is allowed for the
|
||||||
|
# ADVERTISER_ID filter type. For INSERTION_ORDER_ID or LINE_ITEM_ID filter types
|
||||||
|
# all IDs must be from the same Advertiser.
|
||||||
# Corresponds to the JSON property `filterIds`
|
# Corresponds to the JSON property `filterIds`
|
||||||
# @return [Array<String>]
|
# @return [Array<String>]
|
||||||
attr_accessor :filter_ids
|
attr_accessor :filter_ids
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://developers.google.com/doubleclick-search/
|
# @see https://developers.google.com/doubleclick-search/
|
||||||
module DoubleclicksearchV2
|
module DoubleclicksearchV2
|
||||||
VERSION = 'V2'
|
VERSION = 'V2'
|
||||||
REVISION = '20160927'
|
REVISION = '20161005'
|
||||||
|
|
||||||
# View and manage your advertising data in DoubleClick Search
|
# View and manage your advertising data in DoubleClick Search
|
||||||
AUTH_DOUBLECLICKSEARCH = 'https://www.googleapis.com/auth/doubleclicksearch'
|
AUTH_DOUBLECLICKSEARCH = 'https://www.googleapis.com/auth/doubleclicksearch'
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://developers.google.com/drive/
|
# @see https://developers.google.com/drive/
|
||||||
module DriveV2
|
module DriveV2
|
||||||
VERSION = 'V2'
|
VERSION = 'V2'
|
||||||
REVISION = '20160922'
|
REVISION = '20161006'
|
||||||
|
|
||||||
# View and manage the files in your Google Drive
|
# View and manage the files in your Google Drive
|
||||||
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
|
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
|
||||||
|
|
|
@ -2491,6 +2491,14 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :kind
|
attr_accessor :kind
|
||||||
|
|
||||||
|
# The page token for the next page of revisions. This field will be absent if
|
||||||
|
# the end of the revisions list has been reached. If the token is rejected for
|
||||||
|
# any reason, it should be discarded and pagination should be restarted from the
|
||||||
|
# first page of results.
|
||||||
|
# Corresponds to the JSON property `nextPageToken`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :next_page_token
|
||||||
|
|
||||||
# A link back to this list.
|
# A link back to this list.
|
||||||
# Corresponds to the JSON property `selfLink`
|
# Corresponds to the JSON property `selfLink`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
|
@ -2505,6 +2513,7 @@ module Google
|
||||||
@etag = args[:etag] if args.key?(:etag)
|
@etag = args[:etag] if args.key?(:etag)
|
||||||
@items = args[:items] if args.key?(:items)
|
@items = args[:items] if args.key?(:items)
|
||||||
@kind = args[:kind] if args.key?(:kind)
|
@kind = args[:kind] if args.key?(:kind)
|
||||||
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||||
@self_link = args[:self_link] if args.key?(:self_link)
|
@self_link = args[:self_link] if args.key?(:self_link)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -853,6 +853,7 @@ module Google
|
||||||
collection :items, as: 'items', class: Google::Apis::DriveV2::Revision, decorator: Google::Apis::DriveV2::Revision::Representation
|
collection :items, as: 'items', class: Google::Apis::DriveV2::Revision, decorator: Google::Apis::DriveV2::Revision::Representation
|
||||||
|
|
||||||
property :kind, as: 'kind'
|
property :kind, as: 'kind'
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
property :self_link, as: 'selfLink'
|
property :self_link, as: 'selfLink'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -2620,6 +2620,11 @@ module Google
|
||||||
# Lists a file's revisions.
|
# Lists a file's revisions.
|
||||||
# @param [String] file_id
|
# @param [String] file_id
|
||||||
# The ID of the file.
|
# The ID of the file.
|
||||||
|
# @param [Fixnum] max_results
|
||||||
|
# Maximum number of revisions to return.
|
||||||
|
# @param [String] page_token
|
||||||
|
# Page token for revisions. To get the next page of results, set this parameter
|
||||||
|
# to the value of "nextPageToken" from the previous response.
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -2641,11 +2646,13 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_revisions(file_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_revisions(file_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
command = make_simple_command(:get, 'files/{fileId}/revisions', options)
|
command = make_simple_command(:get, 'files/{fileId}/revisions', options)
|
||||||
command.response_representation = Google::Apis::DriveV2::RevisionList::Representation
|
command.response_representation = Google::Apis::DriveV2::RevisionList::Representation
|
||||||
command.response_class = Google::Apis::DriveV2::RevisionList
|
command.response_class = Google::Apis::DriveV2::RevisionList
|
||||||
command.params['fileId'] = file_id unless file_id.nil?
|
command.params['fileId'] = file_id unless file_id.nil?
|
||||||
|
command.query['maxResults'] = max_results unless max_results.nil?
|
||||||
|
command.query['pageToken'] = page_token unless page_token.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://developers.google.com/drive/
|
# @see https://developers.google.com/drive/
|
||||||
module DriveV3
|
module DriveV3
|
||||||
VERSION = 'V3'
|
VERSION = 'V3'
|
||||||
REVISION = '20160922'
|
REVISION = '20161006'
|
||||||
|
|
||||||
# View and manage the files in your Google Drive
|
# View and manage the files in your Google Drive
|
||||||
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
|
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
|
||||||
|
|
|
@ -1471,6 +1471,12 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :kind
|
attr_accessor :kind
|
||||||
|
|
||||||
|
# The page token for the next page of revisions. This will be absent if the end
|
||||||
|
# of the revisions list has been reached.
|
||||||
|
# Corresponds to the JSON property `nextPageToken`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :next_page_token
|
||||||
|
|
||||||
# The full list of revisions.
|
# The full list of revisions.
|
||||||
# Corresponds to the JSON property `revisions`
|
# Corresponds to the JSON property `revisions`
|
||||||
# @return [Array<Google::Apis::DriveV3::Revision>]
|
# @return [Array<Google::Apis::DriveV3::Revision>]
|
||||||
|
@ -1483,6 +1489,7 @@ module Google
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@kind = args[:kind] if args.key?(:kind)
|
@kind = args[:kind] if args.key?(:kind)
|
||||||
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||||
@revisions = args[:revisions] if args.key?(:revisions)
|
@revisions = args[:revisions] if args.key?(:revisions)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -522,6 +522,7 @@ module Google
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :kind, as: 'kind'
|
property :kind, as: 'kind'
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
collection :revisions, as: 'revisions', class: Google::Apis::DriveV3::Revision, decorator: Google::Apis::DriveV3::Revision::Representation
|
collection :revisions, as: 'revisions', class: Google::Apis::DriveV3::Revision, decorator: Google::Apis::DriveV3::Revision::Representation
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -1460,6 +1460,11 @@ module Google
|
||||||
# Lists a file's revisions.
|
# Lists a file's revisions.
|
||||||
# @param [String] file_id
|
# @param [String] file_id
|
||||||
# The ID of the file.
|
# The ID of the file.
|
||||||
|
# @param [Fixnum] page_size
|
||||||
|
# The maximum number of revisions to return per page.
|
||||||
|
# @param [String] page_token
|
||||||
|
# The token for continuing a previous list request on the next page. This should
|
||||||
|
# be set to the value of 'nextPageToken' from the previous response.
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -1481,11 +1486,13 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_revisions(file_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_revisions(file_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
command = make_simple_command(:get, 'files/{fileId}/revisions', options)
|
command = make_simple_command(:get, 'files/{fileId}/revisions', options)
|
||||||
command.response_representation = Google::Apis::DriveV3::RevisionList::Representation
|
command.response_representation = Google::Apis::DriveV3::RevisionList::Representation
|
||||||
command.response_class = Google::Apis::DriveV3::RevisionList
|
command.response_class = Google::Apis::DriveV3::RevisionList
|
||||||
command.params['fileId'] = file_id unless file_id.nil?
|
command.params['fileId'] = file_id unless file_id.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['fields'] = fields unless fields.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/genomics/
|
# @see https://cloud.google.com/genomics/
|
||||||
module GenomicsV1
|
module GenomicsV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20160929'
|
REVISION = '20161005'
|
||||||
|
|
||||||
# View and manage your data in Google BigQuery
|
# View and manage your data in Google BigQuery
|
||||||
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
|
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
|
||||||
|
|
|
@ -25,7 +25,10 @@ module Google
|
||||||
# @see https://developers.google.com/identity-toolkit/v3/
|
# @see https://developers.google.com/identity-toolkit/v3/
|
||||||
module IdentitytoolkitV3
|
module IdentitytoolkitV3
|
||||||
VERSION = 'V3'
|
VERSION = 'V3'
|
||||||
REVISION = '20160927'
|
REVISION = '20161010'
|
||||||
|
|
||||||
|
# View and administer all your Firebase data and settings
|
||||||
|
AUTH_FIREBASE = 'https://www.googleapis.com/auth/firebase'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -308,7 +308,7 @@ module Google
|
||||||
|
|
||||||
# The query parameter that client can customize by themselves in auth url. The
|
# The query parameter that client can customize by themselves in auth url. The
|
||||||
# following parameters are reserved for server so that they cannot be customized
|
# following parameters are reserved for server so that they cannot be customized
|
||||||
# by clients: client_id, response_type, scope, redirect_uri, state.
|
# by clients: client_id, response_type, scope, redirect_uri, state, oauth_token.
|
||||||
# Corresponds to the JSON property `customParameter`
|
# Corresponds to the JSON property `customParameter`
|
||||||
# @return [Hash<String,String>]
|
# @return [Hash<String,String>]
|
||||||
attr_accessor :custom_parameter
|
attr_accessor :custom_parameter
|
||||||
|
@ -988,6 +988,12 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :signer_key
|
attr_accessor :signer_key
|
||||||
|
|
||||||
|
# Specify which project (field value is actually project id) to operate. Only
|
||||||
|
# used when provided credential.
|
||||||
|
# Corresponds to the JSON property `targetProjectId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :target_project_id
|
||||||
|
|
||||||
# The account info to be stored.
|
# The account info to be stored.
|
||||||
# Corresponds to the JSON property `users`
|
# Corresponds to the JSON property `users`
|
||||||
# @return [Array<Google::Apis::IdentitytoolkitV3::UserInfo>]
|
# @return [Array<Google::Apis::IdentitytoolkitV3::UserInfo>]
|
||||||
|
@ -1006,6 +1012,7 @@ module Google
|
||||||
@salt_separator = args[:salt_separator] if args.key?(:salt_separator)
|
@salt_separator = args[:salt_separator] if args.key?(:salt_separator)
|
||||||
@sanity_check = args[:sanity_check] if args.key?(:sanity_check)
|
@sanity_check = args[:sanity_check] if args.key?(:sanity_check)
|
||||||
@signer_key = args[:signer_key] if args.key?(:signer_key)
|
@signer_key = args[:signer_key] if args.key?(:signer_key)
|
||||||
|
@target_project_id = args[:target_project_id] if args.key?(:target_project_id)
|
||||||
@users = args[:users] if args.key?(:users)
|
@users = args[:users] if args.key?(:users)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -482,6 +482,7 @@ module Google
|
||||||
property :salt_separator, :base64 => true, as: 'saltSeparator'
|
property :salt_separator, :base64 => true, as: 'saltSeparator'
|
||||||
property :sanity_check, as: 'sanityCheck'
|
property :sanity_check, as: 'sanityCheck'
|
||||||
property :signer_key, :base64 => true, as: 'signerKey'
|
property :signer_key, :base64 => true, as: 'signerKey'
|
||||||
|
property :target_project_id, as: 'targetProjectId'
|
||||||
collection :users, as: 'users', class: Google::Apis::IdentitytoolkitV3::UserInfo, decorator: Google::Apis::IdentitytoolkitV3::UserInfo::Representation
|
collection :users, as: 'users', class: Google::Apis::IdentitytoolkitV3::UserInfo, decorator: Google::Apis::IdentitytoolkitV3::UserInfo::Representation
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -27,7 +27,7 @@ module Google
|
||||||
# @see https://cloud.google.com/natural-language/
|
# @see https://cloud.google.com/natural-language/
|
||||||
module LanguageV1beta1
|
module LanguageV1beta1
|
||||||
VERSION = 'V1beta1'
|
VERSION = 'V1beta1'
|
||||||
REVISION = '20160922'
|
REVISION = '20161006'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -27,7 +27,7 @@ module Google
|
||||||
# @see https://cloud.google.com/monitoring/api/
|
# @see https://cloud.google.com/monitoring/api/
|
||||||
module MonitoringV3
|
module MonitoringV3
|
||||||
VERSION = 'V3'
|
VERSION = 'V3'
|
||||||
REVISION = '20160927'
|
REVISION = '20161013'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/+/domains/
|
# @see https://developers.google.com/+/domains/
|
||||||
module PlusDomainsV1
|
module PlusDomainsV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20161001'
|
REVISION = '20161012'
|
||||||
|
|
||||||
# View your circles and the people and pages in them
|
# View your circles and the people and pages in them
|
||||||
AUTH_PLUS_CIRCLES_READ = 'https://www.googleapis.com/auth/plus.circles.read'
|
AUTH_PLUS_CIRCLES_READ = 'https://www.googleapis.com/auth/plus.circles.read'
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/+/api/
|
# @see https://developers.google.com/+/api/
|
||||||
module PlusV1
|
module PlusV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20161001'
|
REVISION = '20161012'
|
||||||
|
|
||||||
# Know the list of people in your circles, your age range, and language
|
# Know the list of people in your circles, your age range, and language
|
||||||
AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'
|
AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/sheets/
|
# @see https://developers.google.com/sheets/
|
||||||
module SheetsV4
|
module SheetsV4
|
||||||
VERSION = 'V4'
|
VERSION = 'V4'
|
||||||
REVISION = '20161004'
|
REVISION = '20161006'
|
||||||
|
|
||||||
# View the files in your Google Drive
|
# View the files in your Google Drive
|
||||||
AUTH_DRIVE_READONLY = 'https://www.googleapis.com/auth/drive.readonly'
|
AUTH_DRIVE_READONLY = 'https://www.googleapis.com/auth/drive.readonly'
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/speech/
|
# @see https://cloud.google.com/speech/
|
||||||
module SpeechV1beta1
|
module SpeechV1beta1
|
||||||
VERSION = 'V1beta1'
|
VERSION = 'V1beta1'
|
||||||
REVISION = '20160924'
|
REVISION = '20161010'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -286,8 +286,7 @@ module Google
|
||||||
# [Optional] The language of the supplied audio as a BCP-47 language tag.
|
# [Optional] The language of the supplied audio as a BCP-47 language tag.
|
||||||
# Example: "en-GB" https://www.rfc-editor.org/rfc/bcp/bcp47.txt
|
# Example: "en-GB" https://www.rfc-editor.org/rfc/bcp/bcp47.txt
|
||||||
# If omitted, defaults to "en-US". See
|
# If omitted, defaults to "en-US". See
|
||||||
# [Language Support](https://cloud.google.com/speech/docs/best-practices#
|
# [Language Support](https://cloud.google.com/speech/docs/languages)
|
||||||
# language_support)
|
|
||||||
# for a list of the currently supported language codes.
|
# for a list of the currently supported language codes.
|
||||||
# Corresponds to the JSON property `languageCode`
|
# Corresponds to the JSON property `languageCode`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
|
@ -412,6 +411,25 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# A generic empty message that you can re-use to avoid defining duplicated
|
||||||
|
# empty messages in your APIs. A typical example is to use it as the request
|
||||||
|
# or the response type of an API method. For instance:
|
||||||
|
# service Foo `
|
||||||
|
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
||||||
|
# `
|
||||||
|
# The JSON representation for `Empty` is empty JSON object ````.
|
||||||
|
class Empty
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# `SyncRecognizeResponse` is the only message returned to the client by
|
# `SyncRecognizeResponse` is the only message returned to the client by
|
||||||
# `SyncRecognize`. It contains the result as zero or more sequential
|
# `SyncRecognize`. It contains the result as zero or more sequential
|
||||||
# `SpeechRecognitionResult` messages.
|
# `SpeechRecognitionResult` messages.
|
||||||
|
@ -434,25 +452,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# A generic empty message that you can re-use to avoid defining duplicated
|
|
||||||
# empty messages in your APIs. A typical example is to use it as the request
|
|
||||||
# or the response type of an API method. For instance:
|
|
||||||
# service Foo `
|
|
||||||
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
|
||||||
# `
|
|
||||||
# The JSON representation for `Empty` is empty JSON object ````.
|
|
||||||
class Empty
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# Provides "hints" to the speech recognizer to favor specific words and phrases
|
# Provides "hints" to the speech recognizer to favor specific words and phrases
|
||||||
# in the results.
|
# in the results.
|
||||||
class SpeechContext
|
class SpeechContext
|
||||||
|
|
|
@ -76,13 +76,13 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class SyncRecognizeResponse
|
class Empty
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class Empty
|
class SyncRecognizeResponse
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
@ -183,6 +183,12 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class Empty
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class SyncRecognizeResponse
|
class SyncRecognizeResponse
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -191,12 +197,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class Empty
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class SpeechContext
|
class SpeechContext
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
|
|
@ -46,70 +46,6 @@ module Google
|
||||||
super('https://speech.googleapis.com/', '')
|
super('https://speech.googleapis.com/', '')
|
||||||
end
|
end
|
||||||
|
|
||||||
# Perform synchronous speech-recognition: receive results after all audio
|
|
||||||
# has been sent and processed.
|
|
||||||
# @param [Google::Apis::SpeechV1beta1::SyncRecognizeRequest] sync_recognize_request_object
|
|
||||||
# @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 [String] fields
|
|
||||||
# Selector specifying which fields to include in a partial response.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
|
||||||
# Request-specific options
|
|
||||||
#
|
|
||||||
# @yield [result, err] Result & error if block supplied
|
|
||||||
# @yieldparam result [Google::Apis::SpeechV1beta1::SyncRecognizeResponse] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::SpeechV1beta1::SyncRecognizeResponse]
|
|
||||||
#
|
|
||||||
# @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 sync_recognize_speech(sync_recognize_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:post, 'v1beta1/speech:syncrecognize', options)
|
|
||||||
command.request_representation = Google::Apis::SpeechV1beta1::SyncRecognizeRequest::Representation
|
|
||||||
command.request_object = sync_recognize_request_object
|
|
||||||
command.response_representation = Google::Apis::SpeechV1beta1::SyncRecognizeResponse::Representation
|
|
||||||
command.response_class = Google::Apis::SpeechV1beta1::SyncRecognizeResponse
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
execute_or_queue_command(command, &block)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Perform asynchronous speech-recognition: receive results via the
|
|
||||||
# google.longrunning.Operations interface. Returns either an
|
|
||||||
# `Operation.error` or an `Operation.response` which contains
|
|
||||||
# an `AsyncRecognizeResponse` message.
|
|
||||||
# @param [Google::Apis::SpeechV1beta1::AsyncRecognizeRequest] async_recognize_request_object
|
|
||||||
# @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 [String] fields
|
|
||||||
# Selector specifying which fields to include in a partial response.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
|
||||||
# Request-specific options
|
|
||||||
#
|
|
||||||
# @yield [result, err] Result & error if block supplied
|
|
||||||
# @yieldparam result [Google::Apis::SpeechV1beta1::Operation] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::SpeechV1beta1::Operation]
|
|
||||||
#
|
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
||||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
||||||
def async_recognize_speech(async_recognize_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:post, 'v1beta1/speech:asyncrecognize', options)
|
|
||||||
command.request_representation = Google::Apis::SpeechV1beta1::AsyncRecognizeRequest::Representation
|
|
||||||
command.request_object = async_recognize_request_object
|
|
||||||
command.response_representation = Google::Apis::SpeechV1beta1::Operation::Representation
|
|
||||||
command.response_class = Google::Apis::SpeechV1beta1::Operation
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
command.query['fields'] = fields unless fields.nil?
|
|
||||||
execute_or_queue_command(command, &block)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Gets the latest state of a long-running operation. Clients can use this
|
# Gets the latest state of a long-running operation. Clients can use this
|
||||||
# method to poll the operation result at intervals as recommended by the API
|
# method to poll the operation result at intervals as recommended by the API
|
||||||
# service.
|
# service.
|
||||||
|
@ -190,7 +126,10 @@ module Google
|
||||||
# `google.rpc.Code.UNIMPLEMENTED`. Clients can use
|
# `google.rpc.Code.UNIMPLEMENTED`. Clients can use
|
||||||
# Operations.GetOperation or
|
# Operations.GetOperation or
|
||||||
# other methods to check whether the cancellation succeeded or whether the
|
# other methods to check whether the cancellation succeeded or whether the
|
||||||
# operation completed despite cancellation.
|
# operation completed despite cancellation. On successful cancellation,
|
||||||
|
# the operation is not deleted; instead, it becomes an operation with
|
||||||
|
# an Operation.error value with a google.rpc.Status.code of 1,
|
||||||
|
# corresponding to `Code.CANCELLED`.
|
||||||
# @param [String] name
|
# @param [String] name
|
||||||
# The name of the operation resource to be cancelled.
|
# The name of the operation resource to be cancelled.
|
||||||
# @param [Google::Apis::SpeechV1beta1::CancelOperationRequest] cancel_operation_request_object
|
# @param [Google::Apis::SpeechV1beta1::CancelOperationRequest] cancel_operation_request_object
|
||||||
|
@ -256,6 +195,70 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Perform synchronous speech-recognition: receive results after all audio
|
||||||
|
# has been sent and processed.
|
||||||
|
# @param [Google::Apis::SpeechV1beta1::SyncRecognizeRequest] sync_recognize_request_object
|
||||||
|
# @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 [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::SpeechV1beta1::SyncRecognizeResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::SpeechV1beta1::SyncRecognizeResponse]
|
||||||
|
#
|
||||||
|
# @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 sync_recognize_speech(sync_recognize_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1beta1/speech:syncrecognize', options)
|
||||||
|
command.request_representation = Google::Apis::SpeechV1beta1::SyncRecognizeRequest::Representation
|
||||||
|
command.request_object = sync_recognize_request_object
|
||||||
|
command.response_representation = Google::Apis::SpeechV1beta1::SyncRecognizeResponse::Representation
|
||||||
|
command.response_class = Google::Apis::SpeechV1beta1::SyncRecognizeResponse
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Perform asynchronous speech-recognition: receive results via the
|
||||||
|
# google.longrunning.Operations interface. Returns either an
|
||||||
|
# `Operation.error` or an `Operation.response` which contains
|
||||||
|
# an `AsyncRecognizeResponse` message.
|
||||||
|
# @param [Google::Apis::SpeechV1beta1::AsyncRecognizeRequest] async_recognize_request_object
|
||||||
|
# @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 [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::SpeechV1beta1::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::SpeechV1beta1::Operation]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def async_recognize_speech(async_recognize_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1beta1/speech:asyncrecognize', options)
|
||||||
|
command.request_representation = Google::Apis::SpeechV1beta1::AsyncRecognizeRequest::Representation
|
||||||
|
command.request_object = async_recognize_request_object
|
||||||
|
command.response_representation = Google::Apis::SpeechV1beta1::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::SpeechV1beta1::Operation
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
protected
|
protected
|
||||||
|
|
||||||
def apply_command_defaults(command)
|
def apply_command_defaults(command)
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://cloud.google.com/sql/docs/reference/latest
|
# @see https://cloud.google.com/sql/docs/reference/latest
|
||||||
module SqladminV1beta4
|
module SqladminV1beta4
|
||||||
VERSION = 'V1beta4'
|
VERSION = 'V1beta4'
|
||||||
REVISION = '20160907'
|
REVISION = '20161005'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -389,6 +389,11 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :backend_type
|
attr_accessor :backend_type
|
||||||
|
|
||||||
|
# Connection name of the Cloud SQL instance used in connection strings.
|
||||||
|
# Corresponds to the JSON property `connectionName`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :connection_name
|
||||||
|
|
||||||
# The current disk usage of the instance in bytes. This property has been
|
# The current disk usage of the instance in bytes. This property has been
|
||||||
# deprecated. Users should use the "cloudsql.googleapis.com/database/disk/
|
# deprecated. Users should use the "cloudsql.googleapis.com/database/disk/
|
||||||
# bytes_used" metric in Cloud Monitoring API instead. Please see https://groups.
|
# bytes_used" metric in Cloud Monitoring API instead. Please see https://groups.
|
||||||
|
@ -530,6 +535,7 @@ module Google
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@backend_type = args[:backend_type] if args.key?(:backend_type)
|
@backend_type = args[:backend_type] if args.key?(:backend_type)
|
||||||
|
@connection_name = args[:connection_name] if args.key?(:connection_name)
|
||||||
@current_disk_size = args[:current_disk_size] if args.key?(:current_disk_size)
|
@current_disk_size = args[:current_disk_size] if args.key?(:current_disk_size)
|
||||||
@database_version = args[:database_version] if args.key?(:database_version)
|
@database_version = args[:database_version] if args.key?(:database_version)
|
||||||
@etag = args[:etag] if args.key?(:etag)
|
@etag = args[:etag] if args.key?(:etag)
|
||||||
|
|
|
@ -409,6 +409,7 @@ module Google
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :backend_type, as: 'backendType'
|
property :backend_type, as: 'backendType'
|
||||||
|
property :connection_name, as: 'connectionName'
|
||||||
property :current_disk_size, as: 'currentDiskSize'
|
property :current_disk_size, as: 'currentDiskSize'
|
||||||
property :database_version, as: 'databaseVersion'
|
property :database_version, as: 'databaseVersion'
|
||||||
property :etag, as: 'etag'
|
property :etag, as: 'etag'
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/storage/docs/json_api/
|
# @see https://developers.google.com/storage/docs/json_api/
|
||||||
module StorageV1
|
module StorageV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20160923'
|
REVISION = '20161005'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -469,7 +469,9 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Updates a bucket. This method supports patch semantics.
|
# Updates a bucket. Changes to the bucket will be readable immediately after
|
||||||
|
# writing, but configuration changes may take time to propagate. This method
|
||||||
|
# supports patch semantics.
|
||||||
# @param [String] bucket
|
# @param [String] bucket
|
||||||
# Name of a bucket.
|
# Name of a bucket.
|
||||||
# @param [Google::Apis::StorageV1::Bucket] bucket_object
|
# @param [Google::Apis::StorageV1::Bucket] bucket_object
|
||||||
|
@ -524,7 +526,8 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Updates a bucket.
|
# Updates a bucket. Changes to the bucket will be readable immediately after
|
||||||
|
# writing, but configuration changes may take time to propagate.
|
||||||
# @param [String] bucket
|
# @param [String] bucket
|
||||||
# Name of a bucket.
|
# Name of a bucket.
|
||||||
# @param [Google::Apis::StorageV1::Bucket] bucket_object
|
# @param [Google::Apis::StorageV1::Bucket] bucket_object
|
||||||
|
|
|
@ -27,7 +27,7 @@ module Google
|
||||||
# @see https://cloud.google.com/vision/
|
# @see https://cloud.google.com/vision/
|
||||||
module VisionV1
|
module VisionV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20160822'
|
REVISION = '20161011'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/youtube/partner/
|
# @see https://developers.google.com/youtube/partner/
|
||||||
module YoutubePartnerV1
|
module YoutubePartnerV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20160927'
|
REVISION = '20161011'
|
||||||
|
|
||||||
# View and manage your assets and associated content on YouTube
|
# View and manage your assets and associated content on YouTube
|
||||||
AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner'
|
AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner'
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
module Google
|
module Google
|
||||||
module Apis
|
module Apis
|
||||||
# Client library version
|
# Client library version
|
||||||
VERSION = '0.9.16'
|
VERSION = '0.9.18'
|
||||||
|
|
||||||
# Current operating system
|
# Current operating system
|
||||||
# @private
|
# @private
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
DIR=$(dirname $( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ))
|
DIR=$(dirname $( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ))
|
||||||
|
|
||||||
API_IDS=(adexchangebuyer:v1.4 \
|
API_IDS=(adexchangebuyer:v1.4 \
|
||||||
|
adexchangebuyer2:v2beta1 \
|
||||||
adexchangeseller:v2.0 \
|
adexchangeseller:v2.0 \
|
||||||
admin:directory_v1 \
|
admin:directory_v1 \
|
||||||
admin:datatransfer_v1 \
|
admin:datatransfer_v1 \
|
||||||
|
|
Loading…
Reference in New Issue