This commit is contained in:
Steve Bazyl 2016-10-17 09:41:12 -07:00
commit cb3b3abe4d
119 changed files with 13743 additions and 3617 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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

View File

@ -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&mdash;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

View File

@ -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

View File

@ -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

View File

@ -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 = '20160831' 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'

View File

@ -568,7 +568,8 @@ module Google
# @return [Array<String>] # @return [Array<String>]
attr_accessor :languages attr_accessor :languages
# If nativeAd is set, HTMLSnippet and videoURL should not be set. # If nativeAd is set, HTMLSnippet and the videoURL outside of nativeAd should
# not be set. (The videoURL inside nativeAd can be set.)
# Corresponds to the JSON property `nativeAd` # Corresponds to the JSON property `nativeAd`
# @return [Google::Apis::AdexchangebuyerV1_4::Creative::NativeAd] # @return [Google::Apis::AdexchangebuyerV1_4::Creative::NativeAd]
attr_accessor :native_ad attr_accessor :native_ad
@ -618,7 +619,8 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :version attr_accessor :version
# The url to fetch a video ad. If set, HTMLSnippet should not be set. # The URL to fetch a video ad. If set, HTMLSnippet and the nativeAd should not
# be set. Note, this is diffrent from resource.native_ad.video_url above.
# Corresponds to the JSON property `videoURL` # Corresponds to the JSON property `videoURL`
# @return [String] # @return [String]
attr_accessor :video_url attr_accessor :video_url
@ -789,7 +791,8 @@ module Google
end end
end end
# If nativeAd is set, HTMLSnippet and videoURL should not be set. # If nativeAd is set, HTMLSnippet and the videoURL outside of nativeAd should
# not be set. (The videoURL inside nativeAd can be set.)
class NativeAd class NativeAd
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -853,6 +856,11 @@ module Google
# @return [String] # @return [String]
attr_accessor :store attr_accessor :store
#
# Corresponds to the JSON property `videoURL`
# @return [String]
attr_accessor :video_url
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -871,6 +879,7 @@ module Google
@price = args[:price] if args.key?(:price) @price = args[:price] if args.key?(:price)
@star_rating = args[:star_rating] if args.key?(:star_rating) @star_rating = args[:star_rating] if args.key?(:star_rating)
@store = args[:store] if args.key?(:store) @store = args[:store] if args.key?(:store)
@video_url = args[:video_url] if args.key?(:video_url)
end end
# The app icon, for app download ads. # The app icon, for app download ads.
@ -1069,6 +1078,62 @@ module Google
end end
end end
# The external deal ids associated with a creative.
class CreativeDealIds
include Google::Apis::Core::Hashable
# A list of external deal ids and ARC approval status.
# Corresponds to the JSON property `dealStatuses`
# @return [Array<Google::Apis::AdexchangebuyerV1_4::CreativeDealIds::DealStatus>]
attr_accessor :deal_statuses
# Resource type.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@deal_statuses = args[:deal_statuses] if args.key?(:deal_statuses)
@kind = args[:kind] if args.key?(:kind)
end
#
class DealStatus
include Google::Apis::Core::Hashable
# ARC approval status.
# Corresponds to the JSON property `arcStatus`
# @return [String]
attr_accessor :arc_status
# External deal ID.
# Corresponds to the JSON property `dealId`
# @return [String]
attr_accessor :deal_id
# Publisher ID.
# Corresponds to the JSON property `webPropertyId`
# @return [Fixnum]
attr_accessor :web_property_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@arc_status = args[:arc_status] if args.key?(:arc_status)
@deal_id = args[:deal_id] if args.key?(:deal_id)
@web_property_id = args[:web_property_id] if args.key?(:web_property_id)
end
end
end
# The creatives feed lists the active creatives for the Ad Exchange buyer # The creatives feed lists the active creatives for the Ad Exchange buyer
# accounts that the user has access to. Each entry in the feed corresponds to a # accounts that the user has access to. Each entry in the feed corresponds to a
# single creative. # single creative.
@ -1833,6 +1898,13 @@ module Google
# @return [String] # @return [String]
attr_accessor :inventory_description attr_accessor :inventory_description
# Indicates whether the current deal is a RFP template. RFP template is created
# by buyer and not based on seller created products.
# Corresponds to the JSON property `isRfpTemplate`
# @return [Boolean]
attr_accessor :is_rfp_template
alias_method :is_rfp_template?, :is_rfp_template
# Identifies what kind of resource this is. Value: the fixed string " # Identifies what kind of resource this is. Value: the fixed string "
# adexchangebuyer#marketplaceDeal". # adexchangebuyer#marketplaceDeal".
# Corresponds to the JSON property `kind` # Corresponds to the JSON property `kind`
@ -1915,6 +1987,7 @@ module Google
@flight_end_time_ms = args[:flight_end_time_ms] if args.key?(:flight_end_time_ms) @flight_end_time_ms = args[:flight_end_time_ms] if args.key?(:flight_end_time_ms)
@flight_start_time_ms = args[:flight_start_time_ms] if args.key?(:flight_start_time_ms) @flight_start_time_ms = args[:flight_start_time_ms] if args.key?(:flight_start_time_ms)
@inventory_description = args[:inventory_description] if args.key?(:inventory_description) @inventory_description = args[:inventory_description] if args.key?(:inventory_description)
@is_rfp_template = args[:is_rfp_template] if args.key?(:is_rfp_template)
@kind = args[:kind] if args.key?(:kind) @kind = args[:kind] if args.key?(:kind)
@last_update_time_ms = args[:last_update_time_ms] if args.key?(:last_update_time_ms) @last_update_time_ms = args[:last_update_time_ms] if args.key?(:last_update_time_ms)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@ -2848,6 +2921,11 @@ module Google
# @return [Google::Apis::AdexchangebuyerV1_4::PrivateData] # @return [Google::Apis::AdexchangebuyerV1_4::PrivateData]
attr_accessor :buyer_private_data attr_accessor :buyer_private_data
# IDs of DBM advertisers permission to this proposal.
# Corresponds to the JSON property `dbmAdvertiserIds`
# @return [Array<String>]
attr_accessor :dbm_advertiser_ids
# When an proposal is in an accepted state, indicates whether the buyer has # When an proposal is in an accepted state, indicates whether the buyer has
# signed off. Once both sides have signed off on a deal, the proposal can be # signed off. Once both sides have signed off on a deal, the proposal can be
# finalized by the seller. (seller-readonly) # finalized by the seller. (seller-readonly)
@ -2959,6 +3037,7 @@ module Google
@buyer = args[:buyer] if args.key?(:buyer) @buyer = args[:buyer] if args.key?(:buyer)
@buyer_contacts = args[:buyer_contacts] if args.key?(:buyer_contacts) @buyer_contacts = args[:buyer_contacts] if args.key?(:buyer_contacts)
@buyer_private_data = args[:buyer_private_data] if args.key?(:buyer_private_data) @buyer_private_data = args[:buyer_private_data] if args.key?(:buyer_private_data)
@dbm_advertiser_ids = args[:dbm_advertiser_ids] if args.key?(:dbm_advertiser_ids)
@has_buyer_signed_off = args[:has_buyer_signed_off] if args.key?(:has_buyer_signed_off) @has_buyer_signed_off = args[:has_buyer_signed_off] if args.key?(:has_buyer_signed_off)
@has_seller_signed_off = args[:has_seller_signed_off] if args.key?(:has_seller_signed_off) @has_seller_signed_off = args[:has_seller_signed_off] if args.key?(:has_seller_signed_off)
@inventory_source = args[:inventory_source] if args.key?(:inventory_source) @inventory_source = args[:inventory_source] if args.key?(:inventory_source)

View File

@ -178,6 +178,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class CreativeDealIds
class Representation < Google::Apis::Core::JsonRepresentation; end
class DealStatus
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class CreativesList class CreativesList
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -697,6 +709,7 @@ module Google
property :price, as: 'price' property :price, as: 'price'
property :star_rating, as: 'starRating' property :star_rating, as: 'starRating'
property :store, as: 'store' property :store, as: 'store'
property :video_url, as: 'videoURL'
end end
class AppIcon class AppIcon
@ -757,6 +770,24 @@ module Google
end end
end end
class CreativeDealIds
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :deal_statuses, as: 'dealStatuses', class: Google::Apis::AdexchangebuyerV1_4::CreativeDealIds::DealStatus, decorator: Google::Apis::AdexchangebuyerV1_4::CreativeDealIds::DealStatus::Representation
property :kind, as: 'kind'
end
class DealStatus
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :arc_status, as: 'arcStatus'
property :deal_id, as: 'dealId'
property :web_property_id, as: 'webPropertyId'
end
end
end
class CreativesList class CreativesList
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -991,6 +1022,7 @@ module Google
property :flight_end_time_ms, as: 'flightEndTimeMs' property :flight_end_time_ms, as: 'flightEndTimeMs'
property :flight_start_time_ms, as: 'flightStartTimeMs' property :flight_start_time_ms, as: 'flightStartTimeMs'
property :inventory_description, as: 'inventoryDescription' property :inventory_description, as: 'inventoryDescription'
property :is_rfp_template, as: 'isRfpTemplate'
property :kind, as: 'kind' property :kind, as: 'kind'
property :last_update_time_ms, as: 'lastUpdateTimeMs' property :last_update_time_ms, as: 'lastUpdateTimeMs'
property :name, as: 'name' property :name, as: 'name'
@ -1233,6 +1265,7 @@ module Google
property :buyer_private_data, as: 'buyerPrivateData', class: Google::Apis::AdexchangebuyerV1_4::PrivateData, decorator: Google::Apis::AdexchangebuyerV1_4::PrivateData::Representation property :buyer_private_data, as: 'buyerPrivateData', class: Google::Apis::AdexchangebuyerV1_4::PrivateData, decorator: Google::Apis::AdexchangebuyerV1_4::PrivateData::Representation
collection :dbm_advertiser_ids, as: 'dbmAdvertiserIds'
property :has_buyer_signed_off, as: 'hasBuyerSignedOff' property :has_buyer_signed_off, as: 'hasBuyerSignedOff'
property :has_seller_signed_off, as: 'hasSellerSignedOff' property :has_seller_signed_off, as: 'hasSellerSignedOff'
property :inventory_source, as: 'inventorySource' property :inventory_source, as: 'inventorySource'

View File

@ -562,6 +562,44 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Lists the external deal ids associated with the creative.
# @param [Fixnum] account_id
# The id for the account that will serve this creative.
# @param [String] buyer_creative_id
# The buyer-specific id for this creative.
# @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::AdexchangebuyerV1_4::CreativeDealIds] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AdexchangebuyerV1_4::CreativeDealIds]
#
# @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_creative_deals(account_id, buyer_creative_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'creatives/{accountId}/{buyerCreativeId}/listDeals', options)
command.response_representation = Google::Apis::AdexchangebuyerV1_4::CreativeDealIds::Representation
command.response_class = Google::Apis::AdexchangebuyerV1_4::CreativeDealIds
command.params['accountId'] = account_id unless account_id.nil?
command.params['buyerCreativeId'] = buyer_creative_id unless buyer_creative_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
# Remove a deal id associated with the creative. # Remove a deal id associated with the creative.
# @param [Fixnum] account_id # @param [Fixnum] account_id
# The id for the account that will serve this creative. # The id for the account that will serve this creative.

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/admin-sdk/directory/ # @see https://developers.google.com/admin-sdk/directory/
module AdminDirectoryV1 module AdminDirectoryV1
VERSION = 'DirectoryV1' VERSION = 'DirectoryV1'
REVISION = '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'

View File

@ -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)

View File

@ -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'

View File

@ -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

View File

@ -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 = '20160918' 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'

View File

@ -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 = '20160918' 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'

View File

@ -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'

View File

@ -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

View File

@ -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'

View File

@ -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.

View File

@ -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 = '20160809' 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'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/android/work/play/emm-api # @see https://developers.google.com/android/work/play/emm-api
module AndroidenterpriseV1 module AndroidenterpriseV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20160913' 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'

View File

@ -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
@ -113,7 +176,9 @@ module Google
attr_accessor :entry attr_accessor :entry
# For choice or multiselect restrictions, the list of possible entries' machine- # For choice or multiselect restrictions, the list of possible entries' machine-
# readable values. # readable values. These values should be used in the configuration, either as a
# single string value for a choice restriction or in a stringArray for a
# multiselect restriction.
# Corresponds to the JSON property `entryValue` # Corresponds to the JSON property `entryValue`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :entry_value attr_accessor :entry_value
@ -124,7 +189,9 @@ module Google
# @return [String] # @return [String]
attr_accessor :key attr_accessor :key
# For bundle or bundleArray restrictions, the list of nested restrictions. # For bundle or bundleArray restrictions, the list of nested restrictions. A
# bundle restriction is always nested within a bundleArray restriction, and a
# bundleArray restriction is at most two levels deep.
# Corresponds to the JSON property `nestedRestriction` # Corresponds to the JSON property `nestedRestriction`
# @return [Array<Google::Apis::AndroidenterpriseV1::AppRestrictionsSchemaRestriction>] # @return [Array<Google::Apis::AndroidenterpriseV1::AppRestrictionsSchemaRestriction>]
attr_accessor :nested_restriction attr_accessor :nested_restriction
@ -1945,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
@ -1953,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

View File

@ -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

View File

@ -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.
@ -1060,8 +1101,8 @@ module Google
# service account authenticated for the request. The notification set may be # service account authenticated for the request. The notification set may be
# empty if no notification are pending. # empty if no notification are pending.
# A notification set returned needs to be acknowledged within 20 seconds by # A notification set returned needs to be acknowledged within 20 seconds by
# calling Enterprises.AcknowledgeNotificationSet, unless the notification set is # calling Enterprises.AcknowledgeNotificationSet, unless the notification set
# empty. # is empty.
# Notifications that are not acknowledged within the 20 seconds will eventually # Notifications that are not acknowledged within the 20 seconds will eventually
# be included again in the response to another PullNotificationSet request, and # be included again in the response to another PullNotificationSet request, and
# those that are never acknowledged will ultimately be deleted according to the # those that are never acknowledged will ultimately be deleted according to the
@ -1069,11 +1110,16 @@ module Google
# Multiple requests might be performed concurrently to retrieve notifications, # Multiple requests might be performed concurrently to retrieve notifications,
# in which case the pending notifications (if any) will be split among each # in which case the pending notifications (if any) will be split among each
# caller, if any are pending. # caller, if any are pending.
# If no notifications are present, an empty notification list is returned.
# Subsequent requests may return more notifications once they become available.
# @param [String] request_mode # @param [String] request_mode
# The request mode for pulling notifications. If omitted, defaults to # The request mode for pulling notifications.
# WAIT_FOR_NOTIFCATIONS. # Specifying waitForNotifications will cause the request to block and wait until
# If this is set to WAIT_FOR_NOTIFCATIONS, the request will eventually timeout, # one or more notifications are present, or return an empty notification list if
# in which case it should be retried. # no notifications are present after some time.
# Speciying returnImmediately will cause the request to immediately return the
# pending notifications, or an empty list if no notifications are present.
# If omitted, defaults to waitForNotifications.
# @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
@ -3445,6 +3491,9 @@ module Google
# Creates a new EMM-managed user. # Creates a new EMM-managed user.
# The Users resource passed in the body of the request should include an # The Users resource passed in the body of the request should include an
# accountIdentifier and an accountType. # accountIdentifier and an accountType.
# If a corresponding user already exists with the same account identifier, the
# user will be updated with the resource. In this case only the displayName
# field can be changed.
# @param [String] enterprise_id # @param [String] enterprise_id
# The ID of the enterprise. # The ID of the enterprise.
# @param [Google::Apis::AndroidenterpriseV1::User] user_object # @param [Google::Apis::AndroidenterpriseV1::User] user_object

View File

@ -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'

View File

@ -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'

View File

@ -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

View File

@ -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

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/google-apps/activity/ # @see https://developers.google.com/google-apps/activity/
module AppsactivityV1 module AppsactivityV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20160830' REVISION = '20160916'
# View the activity history of your Google Apps # View the activity history of your Google Apps
AUTH_ACTIVITY = 'https://www.googleapis.com/auth/activity' AUTH_ACTIVITY = 'https://www.googleapis.com/auth/activity'

View File

@ -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 = '20160910' 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'

View File

@ -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

View File

@ -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'

View File

@ -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

View File

@ -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 = '20160913' REVISION = '20161004'
# Manage your calendars # Manage your calendars
AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar' AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar'

View File

@ -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'

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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 = '20160920' 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'

View File

@ -102,6 +102,15 @@ module Google
# At a high level, a Build describes where to find source code, how to build # At a high level, a Build describes where to find source code, how to build
# it (for example, the builder image to run on the source), and what tag to # it (for example, the builder image to run on the source), and what tag to
# apply to the built image when it is pushed to Google Container Registry. # apply to the built image when it is pushed to Google Container Registry.
# Fields can include the following variables which will be expanded when the
# build is created:
# - $PROJECT_ID: the project ID of the build.
# - $BUILD_ID: the autogenerated ID of the build.
# - $REPO_NAME: the source repository name specified by RepoSource.
# - $BRANCH_NAME: the branch name specified by RepoSource.
# - $TAG_NAME: the tag name specified by RepoSource.
# - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or
# resolved from the specified branch or tag.
# Corresponds to the JSON property `build` # Corresponds to the JSON property `build`
# @return [Google::Apis::CloudbuildV1::Build] # @return [Google::Apis::CloudbuildV1::Build]
attr_accessor :build attr_accessor :build
@ -326,6 +335,15 @@ module Google
# At a high level, a Build describes where to find source code, how to build # At a high level, a Build describes where to find source code, how to build
# it (for example, the builder image to run on the source), and what tag to # it (for example, the builder image to run on the source), and what tag to
# apply to the built image when it is pushed to Google Container Registry. # apply to the built image when it is pushed to Google Container Registry.
# Fields can include the following variables which will be expanded when the
# build is created:
# - $PROJECT_ID: the project ID of the build.
# - $BUILD_ID: the autogenerated ID of the build.
# - $REPO_NAME: the source repository name specified by RepoSource.
# - $BRANCH_NAME: the branch name specified by RepoSource.
# - $TAG_NAME: the tag name specified by RepoSource.
# - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or
# resolved from the specified branch or tag.
# Corresponds to the JSON property `build` # Corresponds to the JSON property `build`
# @return [Google::Apis::CloudbuildV1::Build] # @return [Google::Apis::CloudbuildV1::Build]
attr_accessor :build attr_accessor :build
@ -464,6 +482,15 @@ module Google
# At a high level, a Build describes where to find source code, how to build # At a high level, a Build describes where to find source code, how to build
# it (for example, the builder image to run on the source), and what tag to # it (for example, the builder image to run on the source), and what tag to
# apply to the built image when it is pushed to Google Container Registry. # apply to the built image when it is pushed to Google Container Registry.
# Fields can include the following variables which will be expanded when the
# build is created:
# - $PROJECT_ID: the project ID of the build.
# - $BUILD_ID: the autogenerated ID of the build.
# - $REPO_NAME: the source repository name specified by RepoSource.
# - $BRANCH_NAME: the branch name specified by RepoSource.
# - $TAG_NAME: the tag name specified by RepoSource.
# - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or
# resolved from the specified branch or tag.
class Build class Build
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -538,10 +565,13 @@ module Google
# @return [String] # @return [String]
attr_accessor :status_detail attr_accessor :status_detail
# List of images expected to be built and pushed to Google Container # A list of images to be pushed upon the successful completion of all build
# Registry. If an image is listed here and the image is not produced by # steps.
# one of the build steps, the build will fail. Any images present when # The images will be pushed using the builder
# the build steps are complete will be pushed to Container Registry. # service account's credentials.
# The digests of the pushed images will be stored in the Build resource's
# results field.
# If any of the images fail to be pushed, the build is marked FAILURE.
# Corresponds to the JSON property `images` # Corresponds to the JSON property `images`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :images attr_accessor :images
@ -724,7 +754,9 @@ module Google
# @return [String] # @return [String]
attr_accessor :id attr_accessor :id
# Additional environment variables to set for this step's container. # A list of environment variable definitions to be used when running a step.
# The elements are of the form "KEY=VALUE" for the environment variable "KEY"
# being given the value "VALUE".
# Corresponds to the JSON property `env` # Corresponds to the JSON property `env`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :env attr_accessor :env
@ -738,13 +770,29 @@ module Google
# @return [Array<String>] # @return [Array<String>]
attr_accessor :wait_for attr_accessor :wait_for
# Command-line arguments to use when running this step's container. # A list of arguments that will be presented to the step when it is started.
# If the image used to run the step's container has an entrypoint, these args
# will be used as arguments to that entrypoint. If the image does not define
# an entrypoint, the first element in args will be used as the entrypoint,
# and the remainder will be used as arguments.
# Corresponds to the JSON property `args` # Corresponds to the JSON property `args`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :args attr_accessor :args
# Name of the container image to use for creating this stage in the # The name of the container image that will run this particular build step.
# pipeline, as presented to `docker pull`. # If the image is already available in the host's
# Docker daemon's cache, it will be run directly. If not, the host will
# attempt to pull the image first, using the builder service account's
# credentials if necessary.
# The Docker daemon's cache will already have the latest versions of all of
# the officially supported build steps
# (https://github.com/GoogleCloudPlatform/cloud-builders). The Docker daemon
# will also have cached many of the layers for some popular images, like
# "ubuntu", "debian", but they will be refreshed at the time you attempt to
# use them.
# If you built an image in a previous build step, it will be stored in the
# host's Docker daemon's cache and is available to use as the name for a
# later build step.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/resource-manager # @see https://cloud.google.com/resource-manager
module CloudresourcemanagerV1 module CloudresourcemanagerV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20160617' REVISION = '20160927'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -22,6 +22,469 @@ module Google
module Apis module Apis
module CloudresourcemanagerV1 module CloudresourcemanagerV1
# This resource represents a long-running operation that is the result of a
# network API call.
class Operation
include Google::Apis::Core::Hashable
# The server-assigned name, which is only unique within the same service that
# originally returns it. If you use the default HTTP mapping, the `name` should
# have the format of `operations/some/unique/name`.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Service-specific metadata associated with the operation. It typically contains
# progress information and common metadata such as create time. Some services
# might not provide such metadata. Any method that returns a long-running
# operation should document the metadata type, if any.
# Corresponds to the JSON property `metadata`
# @return [Hash<String,Object>]
attr_accessor :metadata
# If the value is `false`, it means the operation is still in progress. If true,
# the operation is completed, and either `error` or `response` is available.
# Corresponds to the JSON property `done`
# @return [Boolean]
attr_accessor :done
alias_method :done?, :done
# The `Status` type defines a logical error model that is suitable for different
# programming environments, including REST APIs and RPC APIs. It is used by [
# gRPC](https://github.com/grpc). The error model is designed to be: - Simple to
# use and understand for most users - Flexible enough to meet unexpected needs #
# Overview The `Status` message contains three pieces of data: error code, error
# message, and error details. The error code should be an enum value of google.
# rpc.Code, but it may accept additional error codes if needed. The error
# message should be a developer-facing English message that helps developers *
# understand* and *resolve* the error. If a localized user-facing error message
# is needed, put the localized message in the error details or localize it in
# the client. The optional error details may contain arbitrary information about
# the error. There is a predefined set of error detail types in the package `
# google.rpc` which can be used for common error conditions. # Language mapping
# The `Status` message is the logical representation of the error model, but it
# is not necessarily the actual wire format. When the `Status` message is
# exposed in different client libraries and different wire protocols, it can be
# mapped differently. For example, it will likely be mapped to some exceptions
# in Java, but more likely mapped to some error codes in C. # Other uses The
# error model and the `Status` message can be used in a variety of environments,
# either with or without APIs, to provide a consistent developer experience
# across different environments. Example uses of this error model include: -
# Partial errors. If a service needs to return partial errors to the client, it
# may embed the `Status` in the normal response to indicate the partial errors. -
# Workflow errors. A typical workflow has multiple steps. Each step may have a `
# Status` message for error reporting purpose. - Batch operations. If a client
# uses batch request and batch response, the `Status` message should be used
# directly inside batch response, one for each error sub-response. -
# Asynchronous operations. If an API call embeds asynchronous operation results
# in its response, the status of those operations should be represented directly
# using the `Status` message. - Logging. If some API errors are stored in logs,
# the message `Status` could be used directly after any stripping needed for
# security/privacy reasons.
# Corresponds to the JSON property `error`
# @return [Google::Apis::CloudresourcemanagerV1::Status]
attr_accessor :error
# The normal response of the operation in case of success. If the original
# method returns no data on success, such as `Delete`, the response is `google.
# protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
# the response should be the resource. For other methods, the response should
# have the type `XxxResponse`, where `Xxx` is the original method name. For
# example, if the original method name is `TakeSnapshot()`, the inferred
# response type is `TakeSnapshotResponse`.
# Corresponds to the JSON property `response`
# @return [Hash<String,Object>]
attr_accessor :response
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@name = args[:name] if args.key?(:name)
@metadata = args[:metadata] if args.key?(:metadata)
@done = args[:done] if args.key?(:done)
@error = args[:error] if args.key?(:error)
@response = args[:response] if args.key?(:response)
end
end
# The `Status` type defines a logical error model that is suitable for different
# programming environments, including REST APIs and RPC APIs. It is used by [
# gRPC](https://github.com/grpc). The error model is designed to be: - Simple to
# use and understand for most users - Flexible enough to meet unexpected needs #
# Overview The `Status` message contains three pieces of data: error code, error
# message, and error details. The error code should be an enum value of google.
# rpc.Code, but it may accept additional error codes if needed. The error
# message should be a developer-facing English message that helps developers *
# understand* and *resolve* the error. If a localized user-facing error message
# is needed, put the localized message in the error details or localize it in
# the client. The optional error details may contain arbitrary information about
# the error. There is a predefined set of error detail types in the package `
# google.rpc` which can be used for common error conditions. # Language mapping
# The `Status` message is the logical representation of the error model, but it
# is not necessarily the actual wire format. When the `Status` message is
# exposed in different client libraries and different wire protocols, it can be
# mapped differently. For example, it will likely be mapped to some exceptions
# in Java, but more likely mapped to some error codes in C. # Other uses The
# error model and the `Status` message can be used in a variety of environments,
# either with or without APIs, to provide a consistent developer experience
# across different environments. Example uses of this error model include: -
# Partial errors. If a service needs to return partial errors to the client, it
# may embed the `Status` in the normal response to indicate the partial errors. -
# Workflow errors. A typical workflow has multiple steps. Each step may have a `
# Status` message for error reporting purpose. - Batch operations. If a client
# uses batch request and batch response, the `Status` message should be used
# directly inside batch response, one for each error sub-response. -
# Asynchronous operations. If an API call embeds asynchronous operation results
# in its response, the status of those operations should be represented directly
# using the `Status` message. - Logging. If some API errors are stored in logs,
# the message `Status` could be used directly after any stripping needed for
# security/privacy reasons.
class Status
include Google::Apis::Core::Hashable
# The status code, which should be an enum value of google.rpc.Code.
# Corresponds to the JSON property `code`
# @return [Fixnum]
attr_accessor :code
# A developer-facing error message, which should be in English. Any user-facing
# error message should be localized and sent in the google.rpc.Status.details
# field, or localized by the client.
# Corresponds to the JSON property `message`
# @return [String]
attr_accessor :message
# A list of messages that carry the error details. There will be a common set of
# message types for APIs to use.
# Corresponds to the JSON property `details`
# @return [Array<Hash<String,Object>>]
attr_accessor :details
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@code = args[:code] if args.key?(:code)
@message = args[:message] if args.key?(:message)
@details = args[:details] if args.key?(:details)
end
end
# The request sent to the `SearchOrganizations` method.
class SearchOrganizationsRequest
include Google::Apis::Core::Hashable
# The maximum number of Organizations to return in the response. This field is
# optional.
# Corresponds to the JSON property `pageSize`
# @return [Fixnum]
attr_accessor :page_size
# A pagination token returned from a previous call to `SearchOrganizations` that
# indicates from where listing should continue. This field is optional.
# Corresponds to the JSON property `pageToken`
# @return [String]
attr_accessor :page_token
# An optional query string used to filter the Organizations to return in the
# response. Filter rules are case-insensitive. Organizations may be filtered by `
# owner.directoryCustomerId` or by `domain`, where the domain is a Google for
# Work domain, for example: |Filter|Description| |------|-----------| |owner.
# directorycustomerid:123456789|Organizations with `owner.directory_customer_id`
# equal to `123456789`.| |domain:google.com|Organizations corresponding to the
# domain `google.com`.| This field is optional.
# Corresponds to the JSON property `filter`
# @return [String]
attr_accessor :filter
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@page_size = args[:page_size] if args.key?(:page_size)
@page_token = args[:page_token] if args.key?(:page_token)
@filter = args[:filter] if args.key?(:filter)
end
end
# The response returned from the `SearchOrganizations` method.
class SearchOrganizationsResponse
include Google::Apis::Core::Hashable
# The list of Organizations that matched the search query, possibly paginated.
# Corresponds to the JSON property `organizations`
# @return [Array<Google::Apis::CloudresourcemanagerV1::Organization>]
attr_accessor :organizations
# A pagination token to be used to retrieve the next page of results. If the
# result is too large to fit within the page size specified in the request, this
# field will be set with a token that can be used to fetch the next page of
# results. If this field is empty, it indicates that this response contains the
# last 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)
@organizations = args[:organizations] if args.key?(:organizations)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# The root node in the resource hierarchy to which a particular entity's (e.g.,
# company) resources belong.
class Organization
include Google::Apis::Core::Hashable
# Output Only. The resource name of the organization. This is the organization's
# relative path in the API. Its format is "organizations/[organization_id]". For
# example, "organizations/1234".
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# A friendly string to be used to refer to the Organization in the UI. Assigned
# by the server, set to the firm name of the Google For Work customer that owns
# this organization. @OutputOnly
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
# The entity that owns an Organization. The lifetime of the Organization and all
# of its descendants are bound to the `OrganizationOwner`. If the `
# OrganizationOwner` is deleted, the Organization and all its descendants will
# be deleted.
# Corresponds to the JSON property `owner`
# @return [Google::Apis::CloudresourcemanagerV1::OrganizationOwner]
attr_accessor :owner
# Timestamp when the Organization was created. Assigned by the server. @
# OutputOnly
# Corresponds to the JSON property `creationTime`
# @return [String]
attr_accessor :creation_time
# The organization's current lifecycle state. Assigned by the server. @
# OutputOnly
# Corresponds to the JSON property `lifecycleState`
# @return [String]
attr_accessor :lifecycle_state
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@name = args[:name] if args.key?(:name)
@display_name = args[:display_name] if args.key?(:display_name)
@owner = args[:owner] if args.key?(:owner)
@creation_time = args[:creation_time] if args.key?(:creation_time)
@lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
end
end
# The entity that owns an Organization. The lifetime of the Organization and all
# of its descendants are bound to the `OrganizationOwner`. If the `
# OrganizationOwner` is deleted, the Organization and all its descendants will
# be deleted.
class OrganizationOwner
include Google::Apis::Core::Hashable
# The Google for Work customer id used in the Directory API.
# Corresponds to the JSON property `directoryCustomerId`
# @return [String]
attr_accessor :directory_customer_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@directory_customer_id = args[:directory_customer_id] if args.key?(:directory_customer_id)
end
end
# Request message for `SetIamPolicy` method.
class SetIamPolicyRequest
include Google::Apis::Core::Hashable
# Defines an Identity and Access Management (IAM) policy. It is used to specify
# access control policies for Cloud Platform resources. A `Policy` consists of a
# list of `bindings`. A `Binding` binds a list of `members` to a `role`, where
# the members can be user accounts, Google groups, Google domains, and service
# accounts. A `role` is a named list of permissions defined by IAM. **Example** `
# "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@example.com", "
# group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@
# appspot.gserviceaccount.com", ] `, ` "role": "roles/viewer", "members": ["user:
# sean@example.com"] ` ] ` For a description of IAM and its features, see the [
# IAM developer's guide](https://cloud.google.com/iam).
# Corresponds to the JSON property `policy`
# @return [Google::Apis::CloudresourcemanagerV1::Policy]
attr_accessor :policy
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@policy = args[:policy] if args.key?(:policy)
end
end
# Defines an Identity and Access Management (IAM) policy. It is used to specify
# access control policies for Cloud Platform resources. A `Policy` consists of a
# list of `bindings`. A `Binding` binds a list of `members` to a `role`, where
# the members can be user accounts, Google groups, Google domains, and service
# accounts. A `role` is a named list of permissions defined by IAM. **Example** `
# "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@example.com", "
# group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@
# appspot.gserviceaccount.com", ] `, ` "role": "roles/viewer", "members": ["user:
# sean@example.com"] ` ] ` For a description of IAM and its features, see the [
# IAM developer's guide](https://cloud.google.com/iam).
class Policy
include Google::Apis::Core::Hashable
# Version of the `Policy`. The default version is 0.
# Corresponds to the JSON property `version`
# @return [Fixnum]
attr_accessor :version
# Associates a list of `members` to a `role`. Multiple `bindings` must not be
# specified for the same `role`. `bindings` with no members will result in an
# error.
# Corresponds to the JSON property `bindings`
# @return [Array<Google::Apis::CloudresourcemanagerV1::Binding>]
attr_accessor :bindings
# `etag` is used for optimistic concurrency control as a way to help prevent
# simultaneous updates of a policy from overwriting each other. It is strongly
# suggested that systems make use of the `etag` in the read-modify-write cycle
# to perform policy updates in order to avoid race conditions: An `etag` is
# returned in the response to `getIamPolicy`, and systems are expected to put
# that etag in the request to `setIamPolicy` to ensure that their change will be
# applied to the same version of the policy. If no `etag` is provided in the
# call to `setIamPolicy`, then the existing policy is overwritten blindly.
# Corresponds to the JSON property `etag`
# @return [String]
attr_accessor :etag
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@version = args[:version] if args.key?(:version)
@bindings = args[:bindings] if args.key?(:bindings)
@etag = args[:etag] if args.key?(:etag)
end
end
# Associates `members` with a `role`.
class Binding
include Google::Apis::Core::Hashable
# Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
# , or `roles/owner`. Required
# Corresponds to the JSON property `role`
# @return [String]
attr_accessor :role
# Specifies the identities requesting access for a Cloud Platform resource. `
# members` can have the following values: * `allUsers`: A special identifier
# that represents anyone who is on the internet; with or without a Google
# account. * `allAuthenticatedUsers`: A special identifier that represents
# anyone who is authenticated with a Google account or a service account. * `
# user:`emailid``: An email address that represents a specific Google account.
# For example, `alice@gmail.com` or `joe@example.com`. * `serviceAccount:`
# emailid``: An email address that represents a service account. For example, `
# my-other-app@appspot.gserviceaccount.com`. * `group:`emailid``: An email
# address that represents a Google group. For example, `admins@example.com`. * `
# domain:`domain``: A Google Apps domain name that represents all the users of
# that domain. For example, `google.com` or `example.com`.
# Corresponds to the JSON property `members`
# @return [Array<String>]
attr_accessor :members
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@role = args[:role] if args.key?(:role)
@members = args[:members] if args.key?(:members)
end
end
# Request message for `GetIamPolicy` method.
class GetIamPolicyRequest
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Request message for `TestIamPermissions` method.
class TestIamPermissionsRequest
include Google::Apis::Core::Hashable
# The set of permissions to check for the `resource`. Permissions with wildcards
# (such as '*' or 'storage.*') are not allowed. For more information see [IAM
# Overview](https://cloud.google.com/iam/docs/overview#permissions).
# Corresponds to the JSON property `permissions`
# @return [Array<String>]
attr_accessor :permissions
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@permissions = args[:permissions] if args.key?(:permissions)
end
end
# Response message for `TestIamPermissions` method.
class TestIamPermissionsResponse
include Google::Apis::Core::Hashable
# A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
# Corresponds to the JSON property `permissions`
# @return [Array<String>]
attr_accessor :permissions
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@permissions = args[:permissions] if args.key?(:permissions)
end
end
# A Project is a high-level Google Cloud Platform entity. It is a container for # A Project is a high-level Google Cloud Platform entity. It is a container for
# ACLs, APIs, AppEngine Apps, VMs, and other Google Cloud Platform resources. # ACLs, APIs, AppEngine Apps, VMs, and other Google Cloud Platform resources.
class Project class Project
@ -185,246 +648,29 @@ module Google
end end
end end
# Request message for `GetIamPolicy` method. # A status object which is used as the `metadata` field for the Operation
class GetIamPolicyRequest # returned by CreateProject. It provides insight for when significant phases of
# Project creation have completed.
class ProjectCreationStatus
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
def initialize(**args) # Creation time of the project creation workflow.
update!(**args) # Corresponds to the JSON property `createTime`
end
# Update properties of this object
def update!(**args)
end
end
# Defines an Identity and Access Management (IAM) policy. It is used to specify
# access control policies for Cloud Platform resources. A `Policy` consists of a
# list of `bindings`. A `Binding` binds a list of `members` to a `role`, where
# the members can be user accounts, Google groups, Google domains, and service
# accounts. A `role` is a named list of permissions defined by IAM. **Example** `
# "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@example.com", "
# group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@
# appspot.gserviceaccount.com", ] `, ` "role": "roles/viewer", "members": ["user:
# sean@example.com"] ` ] ` For a description of IAM and its features, see the [
# IAM developer's guide](https://cloud.google.com/iam).
class Policy
include Google::Apis::Core::Hashable
# Version of the `Policy`. The default version is 0.
# Corresponds to the JSON property `version`
# @return [Fixnum]
attr_accessor :version
# Associates a list of `members` to a `role`. Multiple `bindings` must not be
# specified for the same `role`. `bindings` with no members will result in an
# error.
# Corresponds to the JSON property `bindings`
# @return [Array<Google::Apis::CloudresourcemanagerV1::Binding>]
attr_accessor :bindings
# `etag` is used for optimistic concurrency control as a way to help prevent
# simultaneous updates of a policy from overwriting each other. It is strongly
# suggested that systems make use of the `etag` in the read-modify-write cycle
# to perform policy updates in order to avoid race conditions: An `etag` is
# returned in the response to `getIamPolicy`, and systems are expected to put
# that etag in the request to `setIamPolicy` to ensure that their change will be
# applied to the same version of the policy. If no `etag` is provided in the
# call to `setIamPolicy`, then the existing policy is overwritten blindly.
# Corresponds to the JSON property `etag`
# @return [String] # @return [String]
attr_accessor :etag attr_accessor :create_time
def initialize(**args) # True if the project can be retrieved using GetProject. No other operations on
update!(**args) # the project are guaranteed to work until the project creation is complete.
end # Corresponds to the JSON property `gettable`
# Update properties of this object
def update!(**args)
@version = args[:version] if args.key?(:version)
@bindings = args[:bindings] if args.key?(:bindings)
@etag = args[:etag] if args.key?(:etag)
end
end
# Associates `members` with a `role`.
class Binding
include Google::Apis::Core::Hashable
# Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
# , or `roles/owner`. Required
# Corresponds to the JSON property `role`
# @return [String]
attr_accessor :role
# Specifies the identities requesting access for a Cloud Platform resource. `
# members` can have the following values: * `allUsers`: A special identifier
# that represents anyone who is on the internet; with or without a Google
# account. * `allAuthenticatedUsers`: A special identifier that represents
# anyone who is authenticated with a Google account or a service account. * `
# user:`emailid``: An email address that represents a specific Google account.
# For example, `alice@gmail.com` or `joe@example.com`. * `serviceAccount:`
# emailid``: An email address that represents a service account. For example, `
# my-other-app@appspot.gserviceaccount.com`. * `group:`emailid``: An email
# address that represents a Google group. For example, `admins@example.com`. * `
# domain:`domain``: A Google Apps domain name that represents all the users of
# that domain. For example, `google.com` or `example.com`.
# Corresponds to the JSON property `members`
# @return [Array<String>]
attr_accessor :members
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@role = args[:role] if args.key?(:role)
@members = args[:members] if args.key?(:members)
end
end
# Request message for `SetIamPolicy` method.
class SetIamPolicyRequest
include Google::Apis::Core::Hashable
# Defines an Identity and Access Management (IAM) policy. It is used to specify
# access control policies for Cloud Platform resources. A `Policy` consists of a
# list of `bindings`. A `Binding` binds a list of `members` to a `role`, where
# the members can be user accounts, Google groups, Google domains, and service
# accounts. A `role` is a named list of permissions defined by IAM. **Example** `
# "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@example.com", "
# group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@
# appspot.gserviceaccount.com", ] `, ` "role": "roles/viewer", "members": ["user:
# sean@example.com"] ` ] ` For a description of IAM and its features, see the [
# IAM developer's guide](https://cloud.google.com/iam).
# Corresponds to the JSON property `policy`
# @return [Google::Apis::CloudresourcemanagerV1::Policy]
attr_accessor :policy
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@policy = args[:policy] if args.key?(:policy)
end
end
# Request message for `TestIamPermissions` method.
class TestIamPermissionsRequest
include Google::Apis::Core::Hashable
# The set of permissions to check for the `resource`. Permissions with wildcards
# (such as '*' or 'storage.*') are not allowed. For more information see IAM
# Overview.
# Corresponds to the JSON property `permissions`
# @return [Array<String>]
attr_accessor :permissions
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@permissions = args[:permissions] if args.key?(:permissions)
end
end
# Response message for `TestIamPermissions` method.
class TestIamPermissionsResponse
include Google::Apis::Core::Hashable
# A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
# Corresponds to the JSON property `permissions`
# @return [Array<String>]
attr_accessor :permissions
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@permissions = args[:permissions] if args.key?(:permissions)
end
end
# This resource represents a long-running operation that is the result of a
# network API call.
class Operation
include Google::Apis::Core::Hashable
# The server-assigned name, which is only unique within the same service that
# originally returns it. If you use the default HTTP mapping, the `name` should
# have the format of `operations/some/unique/name`.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Service-specific metadata associated with the operation. It typically contains
# progress information and common metadata such as create time. Some services
# might not provide such metadata. Any method that returns a long-running
# operation should document the metadata type, if any.
# Corresponds to the JSON property `metadata`
# @return [Hash<String,Object>]
attr_accessor :metadata
# If the value is `false`, it means the operation is still in progress. If true,
# the operation is completed, and either `error` or `response` is available.
# Corresponds to the JSON property `done`
# @return [Boolean] # @return [Boolean]
attr_accessor :done attr_accessor :gettable
alias_method :done?, :done alias_method :gettable?, :gettable
# The `Status` type defines a logical error model that is suitable for different # True if the project creation process is complete.
# programming environments, including REST APIs and RPC APIs. It is used by [ # Corresponds to the JSON property `ready`
# gRPC](https://github.com/grpc). The error model is designed to be: - Simple to # @return [Boolean]
# use and understand for most users - Flexible enough to meet unexpected needs # attr_accessor :ready
# Overview The `Status` message contains three pieces of data: error code, error alias_method :ready?, :ready
# message, and error details. The error code should be an enum value of google.
# rpc.Code, but it may accept additional error codes if needed. The error
# message should be a developer-facing English message that helps developers *
# understand* and *resolve* the error. If a localized user-facing error message
# is needed, put the localized message in the error details or localize it in
# the client. The optional error details may contain arbitrary information about
# the error. There is a predefined set of error detail types in the package `
# google.rpc` which can be used for common error conditions. # Language mapping
# The `Status` message is the logical representation of the error model, but it
# is not necessarily the actual wire format. When the `Status` message is
# exposed in different client libraries and different wire protocols, it can be
# mapped differently. For example, it will likely be mapped to some exceptions
# in Java, but more likely mapped to some error codes in C. # Other uses The
# error model and the `Status` message can be used in a variety of environments,
# either with or without APIs, to provide a consistent developer experience
# across different environments. Example uses of this error model include: -
# Partial errors. If a service needs to return partial errors to the client, it
# may embed the `Status` in the normal response to indicate the partial errors. -
# Workflow errors. A typical workflow has multiple steps. Each step may have a `
# Status` message for error reporting purpose. - Batch operations. If a client
# uses batch request and batch response, the `Status` message should be used
# directly inside batch response, one for each error sub-response. -
# Asynchronous operations. If an API call embeds asynchronous operation results
# in its response, the status of those operations should be represented directly
# using the `Status` message. - Logging. If some API errors are stored in logs,
# the message `Status` could be used directly after any stripping needed for
# security/privacy reasons.
# Corresponds to the JSON property `error`
# @return [Google::Apis::CloudresourcemanagerV1::Status]
attr_accessor :error
# The normal response of the operation in case of success. If the original
# method returns no data on success, such as `Delete`, the response is `google.
# protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
# the response should be the resource. For other methods, the response should
# have the type `XxxResponse`, where `Xxx` is the original method name. For
# example, if the original method name is `TakeSnapshot()`, the inferred
# response type is `TakeSnapshotResponse`.
# Corresponds to the JSON property `response`
# @return [Hash<String,Object>]
attr_accessor :response
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
@ -432,66 +678,37 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@name = args[:name] if args.key?(:name) @create_time = args[:create_time] if args.key?(:create_time)
@metadata = args[:metadata] if args.key?(:metadata) @gettable = args[:gettable] if args.key?(:gettable)
@done = args[:done] if args.key?(:done) @ready = args[:ready] if args.key?(:ready)
@error = args[:error] if args.key?(:error)
@response = args[:response] if args.key?(:response)
end end
end end
# The `Status` type defines a logical error model that is suitable for different # Metadata describing a long running folder operation
# programming environments, including REST APIs and RPC APIs. It is used by [ class FolderOperation
# gRPC](https://github.com/grpc). The error model is designed to be: - Simple to
# use and understand for most users - Flexible enough to meet unexpected needs #
# Overview The `Status` message contains three pieces of data: error code, error
# message, and error details. The error code should be an enum value of google.
# rpc.Code, but it may accept additional error codes if needed. The error
# message should be a developer-facing English message that helps developers *
# understand* and *resolve* the error. If a localized user-facing error message
# is needed, put the localized message in the error details or localize it in
# the client. The optional error details may contain arbitrary information about
# the error. There is a predefined set of error detail types in the package `
# google.rpc` which can be used for common error conditions. # Language mapping
# The `Status` message is the logical representation of the error model, but it
# is not necessarily the actual wire format. When the `Status` message is
# exposed in different client libraries and different wire protocols, it can be
# mapped differently. For example, it will likely be mapped to some exceptions
# in Java, but more likely mapped to some error codes in C. # Other uses The
# error model and the `Status` message can be used in a variety of environments,
# either with or without APIs, to provide a consistent developer experience
# across different environments. Example uses of this error model include: -
# Partial errors. If a service needs to return partial errors to the client, it
# may embed the `Status` in the normal response to indicate the partial errors. -
# Workflow errors. A typical workflow has multiple steps. Each step may have a `
# Status` message for error reporting purpose. - Batch operations. If a client
# uses batch request and batch response, the `Status` message should be used
# directly inside batch response, one for each error sub-response. -
# Asynchronous operations. If an API call embeds asynchronous operation results
# in its response, the status of those operations should be represented directly
# using the `Status` message. - Logging. If some API errors are stored in logs,
# the message `Status` could be used directly after any stripping needed for
# security/privacy reasons.
class Status
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The status code, which should be an enum value of google.rpc.Code. # The display name of the folder.
# Corresponds to the JSON property `code` # Corresponds to the JSON property `displayName`
# @return [Fixnum]
attr_accessor :code
# A developer-facing error message, which should be in English. Any user-facing
# error message should be localized and sent in the google.rpc.Status.details
# field, or localized by the client.
# Corresponds to the JSON property `message`
# @return [String] # @return [String]
attr_accessor :message attr_accessor :display_name
# A list of messages that carry the error details. There will be a common set of # The type of this operation.
# message types for APIs to use. # Corresponds to the JSON property `operationType`
# Corresponds to the JSON property `details` # @return [String]
# @return [Array<Hash<String,Object>>] attr_accessor :operation_type
attr_accessor :details
# The resource name of the folder's parent. Only applicable when the
# operation_type is MOVE.
# Corresponds to the JSON property `sourceParent`
# @return [String]
attr_accessor :source_parent
# The resource name of the folder or organization we are either creating the
# folder under or moving the folder to.
# Corresponds to the JSON property `destinationParent`
# @return [String]
attr_accessor :destination_parent
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
@ -499,9 +716,29 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@code = args[:code] if args.key?(:code) @display_name = args[:display_name] if args.key?(:display_name)
@message = args[:message] if args.key?(:message) @operation_type = args[:operation_type] if args.key?(:operation_type)
@details = args[:details] if args.key?(:details) @source_parent = args[:source_parent] if args.key?(:source_parent)
@destination_parent = args[:destination_parent] if args.key?(:destination_parent)
end
end
# A classification of the Folder Operation error.
class FolderOperationError
include Google::Apis::Core::Hashable
# The type of operation error experienced.
# Corresponds to the JSON property `errorMessageId`
# @return [String]
attr_accessor :error_message_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@error_message_id = args[:error_message_id] if args.key?(:error_message_id)
end end
end end
end end

View File

@ -22,6 +22,78 @@ module Google
module Apis module Apis
module CloudresourcemanagerV1 module CloudresourcemanagerV1
class Operation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Status
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SearchOrganizationsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SearchOrganizationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Organization
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrganizationOwner
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SetIamPolicyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Policy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Binding
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GetIamPolicyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TestIamPermissionsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TestIamPermissionsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Project class Project
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -52,52 +124,126 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class GetIamPolicyRequest class ProjectCreationStatus
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 Policy class FolderOperation
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 Binding class FolderOperationError
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SetIamPolicyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TestIamPermissionsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TestIamPermissionsResponse
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 Operation class Operation
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
hash :metadata, as: 'metadata'
property :done, as: 'done'
property :error, as: 'error', class: Google::Apis::CloudresourcemanagerV1::Status, decorator: Google::Apis::CloudresourcemanagerV1::Status::Representation
include Google::Apis::Core::JsonObjectSupport hash :response, as: 'response'
end
end end
class Status class Status
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
property :message, as: 'message'
collection :details, as: 'details'
end
end
include Google::Apis::Core::JsonObjectSupport class SearchOrganizationsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :page_size, as: 'pageSize'
property :page_token, as: 'pageToken'
property :filter, as: 'filter'
end
end
class SearchOrganizationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :organizations, as: 'organizations', class: Google::Apis::CloudresourcemanagerV1::Organization, decorator: Google::Apis::CloudresourcemanagerV1::Organization::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class Organization
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :display_name, as: 'displayName'
property :owner, as: 'owner', class: Google::Apis::CloudresourcemanagerV1::OrganizationOwner, decorator: Google::Apis::CloudresourcemanagerV1::OrganizationOwner::Representation
property :creation_time, as: 'creationTime'
property :lifecycle_state, as: 'lifecycleState'
end
end
class OrganizationOwner
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :directory_customer_id, as: 'directoryCustomerId'
end
end
class SetIamPolicyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :policy, as: 'policy', class: Google::Apis::CloudresourcemanagerV1::Policy, decorator: Google::Apis::CloudresourcemanagerV1::Policy::Representation
end
end
class Policy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :version, as: 'version'
collection :bindings, as: 'bindings', class: Google::Apis::CloudresourcemanagerV1::Binding, decorator: Google::Apis::CloudresourcemanagerV1::Binding::Representation
property :etag, :base64 => true, as: 'etag'
end
end
class Binding
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :role, as: 'role'
collection :members, as: 'members'
end
end
class GetIamPolicyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class TestIamPermissionsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :permissions, as: 'permissions'
end
end
class TestIamPermissionsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :permissions, as: 'permissions'
end
end end
class Project class Project
@ -143,70 +289,29 @@ module Google
end end
end end
class GetIamPolicyRequest class ProjectCreationStatus
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
property :gettable, as: 'gettable'
property :ready, as: 'ready'
end end
end end
class Policy class FolderOperation
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :version, as: 'version' property :display_name, as: 'displayName'
collection :bindings, as: 'bindings', class: Google::Apis::CloudresourcemanagerV1::Binding, decorator: Google::Apis::CloudresourcemanagerV1::Binding::Representation property :operation_type, as: 'operationType'
property :source_parent, as: 'sourceParent'
property :etag, :base64 => true, as: 'etag' property :destination_parent, as: 'destinationParent'
end end
end end
class Binding class FolderOperationError
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :role, as: 'role' property :error_message_id, as: 'errorMessageId'
collection :members, as: 'members'
end
end
class SetIamPolicyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :policy, as: 'policy', class: Google::Apis::CloudresourcemanagerV1::Policy, decorator: Google::Apis::CloudresourcemanagerV1::Policy::Representation
end
end
class TestIamPermissionsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :permissions, as: 'permissions'
end
end
class TestIamPermissionsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :permissions, as: 'permissions'
end
end
class Operation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
hash :metadata, as: 'metadata'
property :done, as: 'done'
property :error, as: 'error', class: Google::Apis::CloudresourcemanagerV1::Status, decorator: Google::Apis::CloudresourcemanagerV1::Status::Representation
hash :response, as: 'response'
end
end
class Status
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
property :message, as: 'message'
collection :details, as: 'details'
end end
end end
end end

View File

@ -47,6 +47,210 @@ module Google
super('https://cloudresourcemanager.googleapis.com/', '') super('https://cloudresourcemanager.googleapis.com/', '')
end end
# 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.
# @param [String] name
# The name of the operation resource.
# @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::CloudresourcemanagerV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1::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 get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::CloudresourcemanagerV1::Operation::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1::Operation
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Searches Organization resources that are visible to the user and satisfy the
# specified filter. This method returns Organizations in an unspecified order.
# New Organizations do not necessarily appear at the end of the results.
# @param [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsRequest] search_organizations_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse]
#
# @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 search_organizations(search_organizations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/organizations:search', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1::SearchOrganizationsRequest::Representation
command.request_object = search_organizations_request_object
command.response_representation = Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Fetches an Organization resource identified by the specified resource name.
# @param [String] name
# The resource name of the Organization to fetch, e.g. "organizations/1234".
# @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::CloudresourcemanagerV1::Organization] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1::Organization]
#
# @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_organization(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::CloudresourcemanagerV1::Organization::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1::Organization
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Sets the access control policy on an Organization resource. Replaces any
# existing policy. The `resource` field should be the organization's resource
# name, e.g. "organizations/123".
# @param [String] resource
# REQUIRED: The resource for which the policy is being specified. `resource` is
# usually specified as a path. For example, a Project resource is specified as `
# projects/`project``.
# @param [Google::Apis::CloudresourcemanagerV1::SetIamPolicyRequest] set_iam_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1::Policy]
#
# @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 set_organization_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1::SetIamPolicyRequest::Representation
command.request_object = set_iam_policy_request_object
command.response_representation = Google::Apis::CloudresourcemanagerV1::Policy::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1::Policy
command.params['resource'] = resource unless resource.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 access control policy for an Organization resource. May be empty if
# no such policy or resource exists. The `resource` field should be the
# organization's resource name, e.g. "organizations/123".
# @param [String] resource
# REQUIRED: The resource for which the policy is being requested. `resource` is
# usually specified as a path. For example, a Project resource is specified as `
# projects/`project``.
# @param [Google::Apis::CloudresourcemanagerV1::GetIamPolicyRequest] get_iam_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1::Policy]
#
# @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_organization_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1::GetIamPolicyRequest::Representation
command.request_object = get_iam_policy_request_object
command.response_representation = Google::Apis::CloudresourcemanagerV1::Policy::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1::Policy
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns permissions that a caller has on the specified Organization. The `
# resource` field should be the organization's resource name, e.g. "
# organizations/123".
# @param [String] resource
# REQUIRED: The resource for which the policy detail is being requested. `
# resource` is usually specified as a path. For example, a Project resource is
# specified as `projects/`project``.
# @param [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsRequest] test_iam_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse]
#
# @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 test_organization_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsRequest::Representation
command.request_object = test_iam_permissions_request_object
command.response_representation = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Retrieves the Project identified by the specified `project_id` (for example, ` # Retrieves the Project identified by the specified `project_id` (for example, `
# my-project-123`). The caller must have read permissions for this Project. # my-project-123`). The caller must have read permissions for this Project.
# @param [String] project_id # @param [String] project_id
@ -127,6 +331,42 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Request that a new Project be created. The result is an Operation which can be
# used to track the creation process. It is automatically deleted after a few
# hours, so there is no need to call DeleteOperation. Our SLO permits Project
# creation to take up to 30 seconds at the 90th percentile. As of 2016-08-29, we
# are observing 6 seconds 50th percentile latency. 95th percentile latency is
# around 11 seconds. We recommend polling at the 5th second with an exponential
# backoff.
# @param [Google::Apis::CloudresourcemanagerV1::Project] project_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1::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 create_project(project_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/projects', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1::Project::Representation
command.request_object = project_object
command.response_representation = Google::Apis::CloudresourcemanagerV1::Operation::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1::Operation
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Updates the attributes of the Project identified by the specified `project_id` # Updates the attributes of the Project identified by the specified `project_id`
# (for example, `my-project-123`). The caller must have modify permissions for # (for example, `my-project-123`). The caller must have modify permissions for
# this Project. # this Project.
@ -242,9 +482,8 @@ module Google
# denied if the policy or the resource does not exist. # denied if the policy or the resource does not exist.
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy is being requested. `resource` is # REQUIRED: The resource for which the policy is being requested. `resource` is
# usually specified as a path, such as `projects/*project*/zones/*zone*/disks/* # usually specified as a path. For example, a Project resource is specified as `
# disk*`. The format for the path specified in this value is resource specific # projects/`project``.
# and is specified in the `getIamPolicy` documentation.
# @param [Google::Apis::CloudresourcemanagerV1::GetIamPolicyRequest] get_iam_policy_request_object # @param [Google::Apis::CloudresourcemanagerV1::GetIamPolicyRequest] get_iam_policy_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -287,11 +526,10 @@ module Google
# accept the invitation. + Invitations to grant the owner role cannot be sent # accept the invitation. + Invitations to grant the owner role cannot be sent
# using `setIamPolicy()`; they must be sent only using the Cloud Platform # using `setIamPolicy()`; they must be sent only using the Cloud Platform
# Console. + Membership changes that leave the project without any owners that # Console. + Membership changes that leave the project without any owners that
# have accepted the Terms of Service (ToS) will be rejected. + Members cannot be # have accepted the Terms of Service (ToS) will be rejected. + There must be at
# added to more than one role in the same policy. + There must be at least one # least one owner who has accepted the Terms of Service (ToS) agreement in the
# owner who has accepted the Terms of Service (ToS) agreement in the policy. # policy. Calling `setIamPolicy()` to to remove the last ToS-accepted owner from
# Calling `setIamPolicy()` to to remove the last ToS-accepted owner from the # the policy will fail. This restriction also applies to legacy projects that no
# policy will fail. This restriction also applies to legacy projects that no
# longer have owners who have accepted the ToS. Edits to IAM policies will be # longer have owners who have accepted the ToS. Edits to IAM policies will be
# rejected until the lack of a ToS-accepting owner is rectified. + Calling this # rejected until the lack of a ToS-accepting owner is rectified. + Calling this
# method requires enabling the App Engine Admin API. Note: Removing service # method requires enabling the App Engine Admin API. Note: Removing service
@ -300,9 +538,8 @@ module Google
# used before removing or updating its roles. # used before removing or updating its roles.
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy is being specified. `resource` is # REQUIRED: The resource for which the policy is being specified. `resource` is
# usually specified as a path, such as `projects/*project*/zones/*zone*/disks/* # usually specified as a path. For example, a Project resource is specified as `
# disk*`. The format for the path specified in this value is resource specific # projects/`project``.
# and is specified in the `setIamPolicy` documentation.
# @param [Google::Apis::CloudresourcemanagerV1::SetIamPolicyRequest] set_iam_policy_request_object # @param [Google::Apis::CloudresourcemanagerV1::SetIamPolicyRequest] set_iam_policy_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -336,9 +573,8 @@ module Google
# Returns permissions that a caller has on the specified Project. # Returns permissions that a caller has on the specified Project.
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy detail is being requested. ` # REQUIRED: The resource for which the policy detail is being requested. `
# resource` is usually specified as a path, such as `projects/*project*/zones/* # resource` is usually specified as a path. For example, a Project resource is
# zone*/disks/*disk*`. The format for the path specified in this value is # specified as `projects/`project``.
# resource specific and is specified in the `testIamPermissions` documentation.
# @param [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsRequest] test_iam_permissions_request_object # @param [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsRequest] test_iam_permissions_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -369,37 +605,6 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# 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.
# @param [String] name
# The name of the operation resource.
# @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::CloudresourcemanagerV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1::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 get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::CloudresourcemanagerV1::Operation::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1::Operation
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
protected protected
def apply_command_defaults(command) def apply_command_defaults(command)

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/resource-manager # @see https://cloud.google.com/resource-manager
module CloudresourcemanagerV1beta1 module CloudresourcemanagerV1beta1
VERSION = 'V1beta1' VERSION = 'V1beta1'
REVISION = '20160617' REVISION = '20160927'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -372,8 +372,8 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The set of permissions to check for the `resource`. Permissions with wildcards # The set of permissions to check for the `resource`. Permissions with wildcards
# (such as '*' or 'storage.*') are not allowed. For more information see IAM # (such as '*' or 'storage.*') are not allowed. For more information see [IAM
# Overview. # Overview](https://cloud.google.com/iam/docs/overview#permissions).
# Corresponds to the JSON property `permissions` # Corresponds to the JSON property `permissions`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :permissions attr_accessor :permissions
@ -455,8 +455,9 @@ module Google
# @return [String] # @return [String]
attr_accessor :organization_id attr_accessor :organization_id
# A friendly string to be used to refer to the Organization in the UI. This # A friendly string to be used to refer to the Organization in the UI. Assigned
# field is required. # by the server, set to the firm name of the Google For Work customer that owns
# this organization. @OutputOnly
# Corresponds to the JSON property `displayName` # Corresponds to the JSON property `displayName`
# @return [String] # @return [String]
attr_accessor :display_name attr_accessor :display_name
@ -517,6 +518,100 @@ module Google
@directory_customer_id = args[:directory_customer_id] if args.key?(:directory_customer_id) @directory_customer_id = args[:directory_customer_id] if args.key?(:directory_customer_id)
end end
end end
# A status object which is used as the `metadata` field for the Operation
# returned by CreateProject. It provides insight for when significant phases of
# Project creation have completed.
class ProjectCreationStatus
include Google::Apis::Core::Hashable
# Creation time of the project creation workflow.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# True if the project can be retrieved using GetProject. No other operations on
# the project are guaranteed to work until the project creation is complete.
# Corresponds to the JSON property `gettable`
# @return [Boolean]
attr_accessor :gettable
alias_method :gettable?, :gettable
# True if the project creation process is complete.
# Corresponds to the JSON property `ready`
# @return [Boolean]
attr_accessor :ready
alias_method :ready?, :ready
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@create_time = args[:create_time] if args.key?(:create_time)
@gettable = args[:gettable] if args.key?(:gettable)
@ready = args[:ready] if args.key?(:ready)
end
end
# Metadata describing a long running folder operation
class FolderOperation
include Google::Apis::Core::Hashable
# The display name of the folder.
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
# The type of this operation.
# Corresponds to the JSON property `operationType`
# @return [String]
attr_accessor :operation_type
# The resource name of the folder's parent. Only applicable when the
# operation_type is MOVE.
# Corresponds to the JSON property `sourceParent`
# @return [String]
attr_accessor :source_parent
# The resource name of the folder or organization we are either creating the
# folder under or moving the folder to.
# Corresponds to the JSON property `destinationParent`
# @return [String]
attr_accessor :destination_parent
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@display_name = args[:display_name] if args.key?(:display_name)
@operation_type = args[:operation_type] if args.key?(:operation_type)
@source_parent = args[:source_parent] if args.key?(:source_parent)
@destination_parent = args[:destination_parent] if args.key?(:destination_parent)
end
end
# A classification of the Folder Operation error.
class FolderOperationError
include Google::Apis::Core::Hashable
# The type of operation error experienced.
# Corresponds to the JSON property `errorMessageId`
# @return [String]
attr_accessor :error_message_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@error_message_id = args[:error_message_id] if args.key?(:error_message_id)
end
end
end end
end end
end end

View File

@ -124,6 +124,24 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ProjectCreationStatus
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class FolderOperation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class FolderOperationError
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Project class Project
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -263,6 +281,32 @@ module Google
property :directory_customer_id, as: 'directoryCustomerId' property :directory_customer_id, as: 'directoryCustomerId'
end end
end end
class ProjectCreationStatus
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
property :gettable, as: 'gettable'
property :ready, as: 'ready'
end
end
class FolderOperation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :display_name, as: 'displayName'
property :operation_type, as: 'operationType'
property :source_parent, as: 'sourceParent'
property :destination_parent, as: 'destinationParent'
end
end
class FolderOperationError
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :error_message_id, as: 'errorMessageId'
end
end
end end
end end
end end

View File

@ -52,6 +52,8 @@ module Google
# or update the Project. Several APIs are activated automatically for the # or update the Project. Several APIs are activated automatically for the
# Project, including Google Cloud Storage. # Project, including Google Cloud Storage.
# @param [Google::Apis::CloudresourcemanagerV1beta1::Project] project_object # @param [Google::Apis::CloudresourcemanagerV1beta1::Project] project_object
# @param [Boolean] use_legacy_stack
# A safety hatch to opt out of the new reliable project creation process.
# @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
@ -69,12 +71,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 create_project(project_object = nil, fields: nil, quota_user: nil, options: nil, &block) def create_project(project_object = nil, use_legacy_stack: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/projects', options) command = make_simple_command(:post, 'v1beta1/projects', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
command.request_object = project_object command.request_object = project_object
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Project command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Project
command.query['useLegacyStack'] = use_legacy_stack unless use_legacy_stack.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?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
@ -310,9 +313,8 @@ module Google
# denied if the policy or the resource does not exist. # denied if the policy or the resource does not exist.
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy is being requested. `resource` is # REQUIRED: The resource for which the policy is being requested. `resource` is
# usually specified as a path, such as `projects/*project*/zones/*zone*/disks/* # usually specified as a path. For example, a Project resource is specified as `
# disk*`. The format for the path specified in this value is resource specific # projects/`project``.
# and is specified in the `getIamPolicy` documentation.
# @param [Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest] get_iam_policy_request_object # @param [Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -355,11 +357,10 @@ module Google
# accept the invitation. + Invitations to grant the owner role cannot be sent # accept the invitation. + Invitations to grant the owner role cannot be sent
# using `setIamPolicy()`; they must be sent only using the Cloud Platform # using `setIamPolicy()`; they must be sent only using the Cloud Platform
# Console. + Membership changes that leave the project without any owners that # Console. + Membership changes that leave the project without any owners that
# have accepted the Terms of Service (ToS) will be rejected. + Members cannot be # have accepted the Terms of Service (ToS) will be rejected. + There must be at
# added to more than one role in the same policy. + There must be at least one # least one owner who has accepted the Terms of Service (ToS) agreement in the
# owner who has accepted the Terms of Service (ToS) agreement in the policy. # policy. Calling `setIamPolicy()` to to remove the last ToS-accepted owner from
# Calling `setIamPolicy()` to to remove the last ToS-accepted owner from the # the policy will fail. This restriction also applies to legacy projects that no
# policy will fail. This restriction also applies to legacy projects that no
# longer have owners who have accepted the ToS. Edits to IAM policies will be # longer have owners who have accepted the ToS. Edits to IAM policies will be
# rejected until the lack of a ToS-accepting owner is rectified. + Calling this # rejected until the lack of a ToS-accepting owner is rectified. + Calling this
# method requires enabling the App Engine Admin API. Note: Removing service # method requires enabling the App Engine Admin API. Note: Removing service
@ -368,9 +369,8 @@ module Google
# used before removing or updating its roles. # used before removing or updating its roles.
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy is being specified. `resource` is # REQUIRED: The resource for which the policy is being specified. `resource` is
# usually specified as a path, such as `projects/*project*/zones/*zone*/disks/* # usually specified as a path. For example, a Project resource is specified as `
# disk*`. The format for the path specified in this value is resource specific # projects/`project``.
# and is specified in the `setIamPolicy` documentation.
# @param [Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest] set_iam_policy_request_object # @param [Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -404,9 +404,8 @@ module Google
# Returns permissions that a caller has on the specified Project. # Returns permissions that a caller has on the specified Project.
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy detail is being requested. ` # REQUIRED: The resource for which the policy detail is being requested. `
# resource` is usually specified as a path, such as `projects/*project*/zones/* # resource` is usually specified as a path. For example, a Project resource is
# zone*/disks/*disk*`. The format for the path specified in this value is # specified as `projects/`project``.
# resource specific and is specified in the `testIamPermissions` documentation.
# @param [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object # @param [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -485,8 +484,7 @@ module Google
# Fetches an Organization resource identified by the specified resource name. # Fetches an Organization resource identified by the specified resource name.
# @param [String] name # @param [String] name
# The resource name of the Organization to fetch. Its format is "organizations/[ # The resource name of the Organization to fetch, e.g. "organizations/1234".
# organization_id]". For example, "organizations/1234".
# @param [String] organization_id # @param [String] organization_id
# The id of the Organization resource to fetch. This field is deprecated and # The id of the Organization resource to fetch. This field is deprecated and
# will be removed in v1. Use name instead. # will be removed in v1. Use name instead.
@ -555,13 +553,11 @@ module Google
# Sets the access control policy on an Organization resource. Replaces any # Sets the access control policy on an Organization resource. Replaces any
# existing policy. The `resource` field should be the organization's resource # existing policy. The `resource` field should be the organization's resource
# name, e.g. "organizations/123". For backward compatibility, the resource # name, e.g. "organizations/123".
# provided may also be the organization_id. This will not be supported in v1.
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy is being specified. `resource` is # REQUIRED: The resource for which the policy is being specified. `resource` is
# usually specified as a path, such as `projects/*project*/zones/*zone*/disks/* # usually specified as a path. For example, a Project resource is specified as `
# disk*`. The format for the path specified in this value is resource specific # projects/`project``.
# and is specified in the `setIamPolicy` documentation.
# @param [Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest] set_iam_policy_request_object # @param [Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -594,14 +590,11 @@ module Google
# Gets the access control policy for an Organization resource. May be empty if # Gets the access control policy for an Organization resource. May be empty if
# no such policy or resource exists. The `resource` field should be the # no such policy or resource exists. The `resource` field should be the
# organization's resource name, e.g. "organizations/123". For backward # organization's resource name, e.g. "organizations/123".
# compatibility, the resource provided may also be the organization_id. This
# will not be supported in v1.
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy is being requested. `resource` is # REQUIRED: The resource for which the policy is being requested. `resource` is
# usually specified as a path, such as `projects/*project*/zones/*zone*/disks/* # usually specified as a path. For example, a Project resource is specified as `
# disk*`. The format for the path specified in this value is resource specific # projects/`project``.
# and is specified in the `getIamPolicy` documentation.
# @param [Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest] get_iam_policy_request_object # @param [Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -634,13 +627,11 @@ module Google
# Returns permissions that a caller has on the specified Organization. The ` # Returns permissions that a caller has on the specified Organization. The `
# resource` field should be the organization's resource name, e.g. " # resource` field should be the organization's resource name, e.g. "
# organizations/123". For backward compatibility, the resource provided may also # organizations/123".
# be the organization_id. This will not be supported in v1.
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy detail is being requested. ` # REQUIRED: The resource for which the policy detail is being requested. `
# resource` is usually specified as a path, such as `projects/*project*/zones/* # resource` is usually specified as a path. For example, a Project resource is
# zone*/disks/*disk*`. The format for the path specified in this value is # specified as `projects/`project``.
# resource specific and is specified in the `testIamPermissions` documentation.
# @param [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object # @param [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/compute/docs/reference/latest/ # @see https://developers.google.com/compute/docs/reference/latest/
module ComputeBeta module ComputeBeta
VERSION = 'Beta' VERSION = 'Beta'
REVISION = '20160908' REVISION = '20160926'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -588,8 +588,8 @@ module Google
attr_accessor :status attr_accessor :status
# [Output Only] Human-readable details about the current state of the autoscaler. # [Output Only] Human-readable details about the current state of the autoscaler.
# Examples: ?Error when fetching replicas: Replica Pool xxx doesn?t exist.? ? # Read the documentation for Commonly returned status messages for examples of
# Autoscaling capped at min_num_replicas: 2.? # status messages you might encounter.
# Corresponds to the JSON property `statusDetails` # Corresponds to the JSON property `statusDetails`
# @return [Array<Google::Apis::ComputeBeta::AutoscalerStatusDetails>] # @return [Array<Google::Apis::ComputeBeta::AutoscalerStatusDetails>]
attr_accessor :status_details attr_accessor :status_details
@ -728,12 +728,12 @@ module Google
class AutoscalerStatusDetails class AutoscalerStatusDetails
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# # The status message.
# Corresponds to the JSON property `message` # Corresponds to the JSON property `message`
# @return [String] # @return [String]
attr_accessor :message attr_accessor :message
# # The type of error returned.
# Corresponds to the JSON property `type` # Corresponds to the JSON property `type`
# @return [String] # @return [String]
attr_accessor :type attr_accessor :type
@ -931,12 +931,12 @@ module Google
class AutoscalingPolicyCustomMetricUtilization class AutoscalingPolicyCustomMetricUtilization
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The identifier of the Cloud Monitoring metric. The metric cannot have negative # The identifier of the Stackdriver Monitoring metric. The metric cannot have
# values and should be a utilization metric, which means that the number of # negative values and should be a utilization metric, which means that the
# virtual machines handling requests should increase or decrease proportionally # number of virtual machines handling requests should increase or decrease
# to the metric. The metric must also have a label of compute.googleapis.com/ # proportionally to the metric. The metric must also have a label of compute.
# resource_id with the value of the instance's unique ID, although this alone # googleapis.com/resource_id with the value of the instance's unique ID,
# does not guarantee that the metric is valid. # although this alone does not guarantee that the metric is valid.
# For example, the following is a valid metric: # For example, the following is a valid metric:
# compute.googleapis.com/instance/network/received_bytes_count # compute.googleapis.com/instance/network/received_bytes_count
# The following is not a valid metric because it does not increase or decrease # The following is not a valid metric because it does not increase or decrease
@ -952,7 +952,7 @@ module Google
# @return [Float] # @return [Float]
attr_accessor :utilization_target attr_accessor :utilization_target
# Defines how target utilization value is expressed for a Cloud Monitoring # Defines how target utilization value is expressed for a Stackdriver Monitoring
# metric. Either GAUGE, DELTA_PER_SECOND, or DELTA_PER_MINUTE. If not specified, # metric. Either GAUGE, DELTA_PER_SECOND, or DELTA_PER_MINUTE. If not specified,
# the default is GAUGE. # the default is GAUGE.
# Corresponds to the JSON property `utilizationTargetType` # Corresponds to the JSON property `utilizationTargetType`
@ -2903,11 +2903,12 @@ module Google
end end
end end
# Features supported by the guest os. # Guest OS features.
class GuestOsFeature class GuestOsFeature
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The type of supported feature.. # The type of supported feature. Currenty only VIRTIO_SCSI_MULTIQUEUE is
# supported.
# Corresponds to the JSON property `type` # Corresponds to the JSON property `type`
# @return [String] # @return [String]
attr_accessor :type attr_accessor :type
@ -3647,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
@ -3676,7 +3677,12 @@ module Google
# @return [String] # @return [String]
attr_accessor :family attr_accessor :family
# Features of the guest os, valid for bootable images only. # A list of features to enable on the guest OS. Applicable for bootable images
# only. Currently, only one feature is supported, VIRTIO_SCSCI_MULTIQUEUE, which
# allows each virtual CPU to have its own queue. For Windows images, you can
# only enable VIRTIO_SCSCI_MULTIQUEUE on images with driver version 1.2.0.1621
# or higher. Linux images with kernel versions 3.17 and higher will support
# VIRTIO_SCSCI_MULTIQUEUE.
# Corresponds to the JSON property `guestOsFeatures` # Corresponds to the JSON property `guestOsFeatures`
# @return [Array<Google::Apis::ComputeBeta::GuestOsFeature>] # @return [Array<Google::Apis::ComputeBeta::GuestOsFeature>]
attr_accessor :guest_os_features attr_accessor :guest_os_features
@ -4131,8 +4137,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :fingerprint attr_accessor :fingerprint
# [Output Only] A unique identifier for this instance group. The server # [Output Only] A unique identifier for this instance group, generated by the
# generates this identifier. # server.
# Corresponds to the JSON property `id` # Corresponds to the JSON property `id`
# @return [String] # @return [String]
attr_accessor :id attr_accessor :id
@ -4346,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
@ -4477,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
@ -4642,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
@ -6418,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
@ -6554,7 +6560,9 @@ module Google
# @return [String] # @return [String]
attr_accessor :target_id attr_accessor :target_id
# [Output Only] The URL of the resource that the operation modifies. # [Output Only] The URL of the resource that the operation modifies. If creating
# a persistent disk snapshot, this points to the persistent disk that the
# snapshot was created from.
# Corresponds to the JSON property `targetLink` # Corresponds to the JSON property `targetLink`
# @return [String] # @return [String]
attr_accessor :target_link attr_accessor :target_link
@ -7053,6 +7061,12 @@ module Google
# @return [Google::Apis::ComputeBeta::UsageExportLocation] # @return [Google::Apis::ComputeBeta::UsageExportLocation]
attr_accessor :usage_export_location attr_accessor :usage_export_location
# [Output Only] The role this project has in a Cross Project Network (XPN)
# configuration. Currently only HOST projects are differentiated.
# Corresponds to the JSON property `xpnProjectStatus`
# @return [String]
attr_accessor :xpn_project_status
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -7070,6 +7084,7 @@ module Google
@quotas = args[:quotas] if args.key?(:quotas) @quotas = args[:quotas] if args.key?(:quotas)
@self_link = args[:self_link] if args.key?(:self_link) @self_link = args[:self_link] if args.key?(:self_link)
@usage_export_location = args[:usage_export_location] if args.key?(:usage_export_location) @usage_export_location = args[:usage_export_location] if args.key?(:usage_export_location)
@xpn_project_status = args[:xpn_project_status] if args.key?(:xpn_project_status)
end end
end end
@ -7618,7 +7633,7 @@ module Google
class ResourceGroupReference class ResourceGroupReference
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# A URI referencing one of the resource views listed in the backend service. # A URI referencing one of the instance groups listed in the backend service.
# Corresponds to the JSON property `group` # Corresponds to the JSON property `group`
# @return [String] # @return [String]
attr_accessor :group attr_accessor :group
@ -8157,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
@ -8526,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
@ -10536,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
@ -10585,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
@ -11287,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

View File

@ -3203,6 +3203,7 @@ module Google
property :self_link, as: 'selfLink' property :self_link, as: 'selfLink'
property :usage_export_location, as: 'usageExportLocation', class: Google::Apis::ComputeBeta::UsageExportLocation, decorator: Google::Apis::ComputeBeta::UsageExportLocation::Representation property :usage_export_location, as: 'usageExportLocation', class: Google::Apis::ComputeBeta::UsageExportLocation, decorator: Google::Apis::ComputeBeta::UsageExportLocation::Representation
property :xpn_project_status, as: 'xpnProjectStatus'
end end
end end

View File

@ -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
@ -8110,7 +8111,7 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Updates a autoscaler in the specified project using the data included in the # Updates an autoscaler in the specified project using the data included in the
# request. This method supports patch semantics. # request. This method supports patch semantics.
# @param [String] project # @param [String] project
# Project ID for this request. # Project ID for this request.
@ -8199,7 +8200,7 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Updates a autoscaler in the specified project using the data included in the # Updates an autoscaler in the specified project using the data included in the
# request. # request.
# @param [String] project # @param [String] project
# Project ID for this request. # Project ID for this request.
@ -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
@ -8774,7 +8776,7 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Returns all of the details for the specified managed instance group. # Returns all of the details about the specified managed instance group.
# @param [String] project # @param [String] project
# Project ID for this request. # Project ID for this request.
# @param [String] region # @param [String] region
@ -8985,6 +8987,54 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Updates a managed instance group using the information that you specify in the
# request. This operation is marked as DONE when the group is updated even if
# the instances in the group have not yet been updated. You must separately
# verify the status of the individual instances with the listmanagedinstances
# method. This method supports patch semantics.
# @param [String] project
# Project ID for this request.
# @param [String] region
# Name of the region scoping this request.
# @param [String] instance_group_manager
# The name of the instance group manager.
# @param [Google::Apis::ComputeBeta::InstanceGroupManager] instance_group_manager_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::ComputeBeta::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::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_region_instance_group_manager(project, region, instance_group_manager, instance_group_manager_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, '{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}', options)
command.request_representation = Google::Apis::ComputeBeta::InstanceGroupManager::Representation
command.request_object = instance_group_manager_object
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
command.response_class = Google::Apis::ComputeBeta::Operation
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.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
# Schedules a group action to recreate the specified instances in the managed # Schedules a group action to recreate the specified instances in the managed
# instance group. The instances are deleted and recreated using the current # instance group. The instances are deleted and recreated using the current
# instance template for the managed instance group. This operation is marked as # instance template for the managed instance group. This operation is marked as
@ -9129,8 +9179,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Sets the instance template to use when creating new instances in this group. # Sets the instance template to use when creating new instances or recreating
# Existing instances are not affected. # instances in this group. Existing instances are not affected.
# @param [String] project # @param [String] project
# Project ID for this request. # Project ID for this request.
# @param [String] region # @param [String] region
@ -9263,6 +9313,54 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Updates a managed instance group using the information that you specify in the
# request. This operation is marked as DONE when the group is updated even if
# the instances in the group have not yet been updated. You must separately
# verify the status of the individual instances with the listmanagedinstances
# method.
# @param [String] project
# Project ID for this request.
# @param [String] region
# Name of the region scoping this request.
# @param [String] instance_group_manager
# The name of the instance group manager.
# @param [Google::Apis::ComputeBeta::InstanceGroupManager] instance_group_manager_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::ComputeBeta::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::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 update_region_instance_group_manager(project, region, instance_group_manager, instance_group_manager_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, '{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}', options)
command.request_representation = Google::Apis::ComputeBeta::InstanceGroupManager::Representation
command.request_object = instance_group_manager_object
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
command.response_class = Google::Apis::ComputeBeta::Operation
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.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
# Returns the specified instance group resource. # Returns the specified instance group resource.
# @param [String] project # @param [String] project
# Project ID for this request. # Project ID for this request.
@ -10160,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
@ -10294,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
@ -13853,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
@ -13936,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

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/compute/docs/reference/latest/ # @see https://developers.google.com/compute/docs/reference/latest/
module ComputeV1 module ComputeV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20160908' REVISION = '20160926'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -565,6 +565,12 @@ module Google
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# [Output Only] URL of the region where the instance group resides (for
# autoscalers living in regional scope).
# Corresponds to the JSON property `region`
# @return [String]
attr_accessor :region
# [Output Only] Server-defined URL for the resource. # [Output Only] Server-defined URL for the resource.
# Corresponds to the JSON property `selfLink` # Corresponds to the JSON property `selfLink`
# @return [String] # @return [String]
@ -593,6 +599,7 @@ module Google
@id = args[:id] if args.key?(:id) @id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind) @kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@region = args[:region] if args.key?(:region)
@self_link = args[:self_link] if args.key?(:self_link) @self_link = args[:self_link] if args.key?(:self_link)
@target = args[:target] if args.key?(:target) @target = args[:target] if args.key?(:target)
@zone = args[:zone] if args.key?(:zone) @zone = args[:zone] if args.key?(:zone)
@ -879,12 +886,12 @@ module Google
class AutoscalingPolicyCustomMetricUtilization class AutoscalingPolicyCustomMetricUtilization
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The identifier of the Cloud Monitoring metric. The metric cannot have negative # The identifier of the Stackdriver Monitoring metric. The metric cannot have
# values and should be a utilization metric, which means that the number of # negative values and should be a utilization metric, which means that the
# virtual machines handling requests should increase or decrease proportionally # number of virtual machines handling requests should increase or decrease
# to the metric. The metric must also have a label of compute.googleapis.com/ # proportionally to the metric. The metric must also have a label of compute.
# resource_id with the value of the instance's unique ID, although this alone # googleapis.com/resource_id with the value of the instance's unique ID,
# does not guarantee that the metric is valid. # although this alone does not guarantee that the metric is valid.
# For example, the following is a valid metric: # For example, the following is a valid metric:
# compute.googleapis.com/instance/network/received_bytes_count # compute.googleapis.com/instance/network/received_bytes_count
# The following is not a valid metric because it does not increase or decrease # The following is not a valid metric because it does not increase or decrease
@ -900,7 +907,7 @@ module Google
# @return [Float] # @return [Float]
attr_accessor :utilization_target attr_accessor :utilization_target
# Defines how target utilization value is expressed for a Cloud Monitoring # Defines how target utilization value is expressed for a Stackdriver Monitoring
# metric. Either GAUGE, DELTA_PER_SECOND, or DELTA_PER_MINUTE. If not specified, # metric. Either GAUGE, DELTA_PER_SECOND, or DELTA_PER_MINUTE. If not specified,
# the default is GAUGE. # the default is GAUGE.
# Corresponds to the JSON property `utilizationTargetType` # Corresponds to the JSON property `utilizationTargetType`
@ -3314,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
@ -3754,8 +3761,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :fingerprint attr_accessor :fingerprint
# [Output Only] A unique identifier for this instance group. The server # [Output Only] A unique identifier for this instance group, generated by the
# generates this identifier. # server.
# Corresponds to the JSON property `id` # Corresponds to the JSON property `id`
# @return [String] # @return [String]
attr_accessor :id attr_accessor :id
@ -3786,6 +3793,12 @@ module Google
# @return [String] # @return [String]
attr_accessor :network attr_accessor :network
# The URL of the region where the instance group is located (for regional
# resources).
# Corresponds to the JSON property `region`
# @return [String]
attr_accessor :region
# [Output Only] The URL for this instance group. The server generates this URL. # [Output Only] The URL for this instance group. The server generates this URL.
# Corresponds to the JSON property `selfLink` # Corresponds to the JSON property `selfLink`
# @return [String] # @return [String]
@ -3821,6 +3834,7 @@ module Google
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@named_ports = args[:named_ports] if args.key?(:named_ports) @named_ports = args[:named_ports] if args.key?(:named_ports)
@network = args[:network] if args.key?(:network) @network = args[:network] if args.key?(:network)
@region = args[:region] if args.key?(:region)
@self_link = args[:self_link] if args.key?(:self_link) @self_link = args[:self_link] if args.key?(:self_link)
@size = args[:size] if args.key?(:size) @size = args[:size] if args.key?(:size)
@subnetwork = args[:subnetwork] if args.key?(:subnetwork) @subnetwork = args[:subnetwork] if args.key?(:subnetwork)
@ -3998,6 +4012,12 @@ module Google
# @return [Array<Google::Apis::ComputeV1::NamedPort>] # @return [Array<Google::Apis::ComputeV1::NamedPort>]
attr_accessor :named_ports attr_accessor :named_ports
# [Output Only] The URL of the region where the managed instance group resides (
# for regional resources).
# Corresponds to the JSON property `region`
# @return [String]
attr_accessor :region
# [Output Only] The URL for this managed instance group. The server defines this # [Output Only] The URL for this managed instance group. The server defines this
# URL. # URL.
# Corresponds to the JSON property `selfLink` # Corresponds to the JSON property `selfLink`
@ -4041,6 +4061,7 @@ module Google
@kind = args[:kind] if args.key?(:kind) @kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@named_ports = args[:named_ports] if args.key?(:named_ports) @named_ports = args[:named_ports] if args.key?(:named_ports)
@region = args[:region] if args.key?(:region)
@self_link = args[:self_link] if args.key?(:self_link) @self_link = args[:self_link] if args.key?(:self_link)
@target_pools = args[:target_pools] if args.key?(:target_pools) @target_pools = args[:target_pools] if args.key?(:target_pools)
@target_size = args[:target_size] if args.key?(:target_size) @target_size = args[:target_size] if args.key?(:target_size)
@ -4072,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
@ -4207,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
@ -5912,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
@ -6048,7 +6069,9 @@ module Google
# @return [String] # @return [String]
attr_accessor :target_id attr_accessor :target_id
# [Output Only] The URL of the resource that the operation modifies. # [Output Only] The URL of the resource that the operation modifies. If creating
# a persistent disk snapshot, this points to the persistent disk that the
# snapshot was created from.
# Corresponds to the JSON property `targetLink` # Corresponds to the JSON property `targetLink`
# @return [String] # @return [String]
attr_accessor :target_link attr_accessor :target_link
@ -6725,7 +6748,7 @@ module Google
class ResourceGroupReference class ResourceGroupReference
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# A URI referencing one of the resource views listed in the backend service. # A URI referencing one of the instance groups listed in the backend service.
# Corresponds to the JSON property `group` # Corresponds to the JSON property `group`
# @return [String] # @return [String]
attr_accessor :group attr_accessor :group
@ -7264,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
@ -7627,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
@ -9586,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
@ -9635,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
@ -10298,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

View File

@ -1480,6 +1480,7 @@ module Google
property :id, as: 'id' property :id, as: 'id'
property :kind, as: 'kind' property :kind, as: 'kind'
property :name, as: 'name' property :name, as: 'name'
property :region, as: 'region'
property :self_link, as: 'selfLink' property :self_link, as: 'selfLink'
property :target, as: 'target' property :target, as: 'target'
property :zone, as: 'zone' property :zone, as: 'zone'
@ -2217,6 +2218,7 @@ module Google
collection :named_ports, as: 'namedPorts', class: Google::Apis::ComputeV1::NamedPort, decorator: Google::Apis::ComputeV1::NamedPort::Representation collection :named_ports, as: 'namedPorts', class: Google::Apis::ComputeV1::NamedPort, decorator: Google::Apis::ComputeV1::NamedPort::Representation
property :network, as: 'network' property :network, as: 'network'
property :region, as: 'region'
property :self_link, as: 'selfLink' property :self_link, as: 'selfLink'
property :size, as: 'size' property :size, as: 'size'
property :subnetwork, as: 'subnetwork' property :subnetwork, as: 'subnetwork'
@ -2264,6 +2266,7 @@ module Google
property :name, as: 'name' property :name, as: 'name'
collection :named_ports, as: 'namedPorts', class: Google::Apis::ComputeV1::NamedPort, decorator: Google::Apis::ComputeV1::NamedPort::Representation collection :named_ports, as: 'namedPorts', class: Google::Apis::ComputeV1::NamedPort, decorator: Google::Apis::ComputeV1::NamedPort::Representation
property :region, as: 'region'
property :self_link, as: 'selfLink' property :self_link, as: 'selfLink'
collection :target_pools, as: 'targetPools' collection :target_pools, as: 'targetPools'
property :target_size, as: 'targetSize' property :target_size, as: 'targetSize'

File diff suppressed because it is too large Load Diff

View File

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

View File

@ -0,0 +1,38 @@
# 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/dataflow_v1b3/service.rb'
require 'google/apis/dataflow_v1b3/classes.rb'
require 'google/apis/dataflow_v1b3/representations.rb'
module Google
module Apis
# Google Dataflow API
#
# Develops and executes data processing patterns like ETL, batch computation,
# and continuous computation.
#
# @see https://cloud.google.com/dataflow
module DataflowV1b3
VERSION = 'V1b3'
REVISION = '20161004'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
# View your email address
AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email'
end
end
end

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,515 @@
# 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 DataflowV1b3
# Google Dataflow API
#
# Develops and executes data processing patterns like ETL, batch computation,
# and continuous computation.
#
# @example
# require 'google/apis/dataflow_v1b3'
#
# Dataflow = Google::Apis::DataflowV1b3 # Alias the module
# service = Dataflow::DataflowService.new
#
# @see https://cloud.google.com/dataflow
class DataflowService < 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://dataflow.googleapis.com/', '')
end
# Send a worker_message to the service.
# @param [String] project_id
# The project to send the WorkerMessages to.
# @param [Google::Apis::DataflowV1b3::SendWorkerMessagesRequest] send_worker_messages_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DataflowV1b3::SendWorkerMessagesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataflowV1b3::SendWorkerMessagesResponse]
#
# @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 worker_project_messages(project_id, send_worker_messages_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1b3/projects/{projectId}/WorkerMessages', options)
command.request_representation = Google::Apis::DataflowV1b3::SendWorkerMessagesRequest::Representation
command.request_object = send_worker_messages_request_object
command.response_representation = Google::Apis::DataflowV1b3::SendWorkerMessagesResponse::Representation
command.response_class = Google::Apis::DataflowV1b3::SendWorkerMessagesResponse
command.params['projectId'] = project_id unless project_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates a dataflow job.
# @param [String] project_id
# The project which owns the job.
# @param [Google::Apis::DataflowV1b3::Job] job_object
# @param [String] view
# Level of information requested in response.
# @param [String] replace_job_id
# DEPRECATED. This field is now on the Job message.
# @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::DataflowV1b3::Job] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataflowV1b3::Job]
#
# @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_project_job(project_id, job_object = nil, view: nil, replace_job_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs', options)
command.request_representation = Google::Apis::DataflowV1b3::Job::Representation
command.request_object = job_object
command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
command.response_class = Google::Apis::DataflowV1b3::Job
command.params['projectId'] = project_id unless project_id.nil?
command.query['view'] = view unless view.nil?
command.query['replaceJobId'] = replace_job_id unless replace_job_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets the state of the specified dataflow job.
# @param [String] project_id
# The project which owns the job.
# @param [String] job_id
# Identifies a single job.
# @param [String] view
# Level of information requested in response.
# @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::DataflowV1b3::Job] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataflowV1b3::Job]
#
# @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_project_job(project_id, job_id, view: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs/{jobId}', options)
command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
command.response_class = Google::Apis::DataflowV1b3::Job
command.params['projectId'] = project_id unless project_id.nil?
command.params['jobId'] = job_id unless job_id.nil?
command.query['view'] = view unless view.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Updates the state of an existing dataflow job.
# @param [String] project_id
# The project which owns the job.
# @param [String] job_id
# Identifies a single job.
# @param [Google::Apis::DataflowV1b3::Job] job_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DataflowV1b3::Job] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataflowV1b3::Job]
#
# @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_project_job(project_id, job_id, job_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:put, 'v1b3/projects/{projectId}/jobs/{jobId}', options)
command.request_representation = Google::Apis::DataflowV1b3::Job::Representation
command.request_object = job_object
command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
command.response_class = Google::Apis::DataflowV1b3::Job
command.params['projectId'] = project_id unless project_id.nil?
command.params['jobId'] = job_id unless job_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# List the jobs of a project
# @param [String] project_id
# The project which owns the jobs.
# @param [String] filter
# The kind of filter to use.
# @param [String] view
# Level of information requested in response. Default is SUMMARY.
# @param [Fixnum] page_size
# If there are many jobs, limit response to at most this many. The actual number
# of jobs returned will be the lesser of max_responses and an unspecified server-
# defined limit.
# @param [String] page_token
# Set this to the 'next_page_token' field of a previous response to request
# additional results in a long list.
# @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::DataflowV1b3::ListJobsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataflowV1b3::ListJobsResponse]
#
# @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_project_jobs(project_id, filter: nil, view: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs', options)
command.response_representation = Google::Apis::DataflowV1b3::ListJobsResponse::Representation
command.response_class = Google::Apis::DataflowV1b3::ListJobsResponse
command.params['projectId'] = project_id unless project_id.nil?
command.query['filter'] = filter unless filter.nil?
command.query['view'] = view unless view.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Request the job status.
# @param [String] project_id
# A project id.
# @param [String] job_id
# The job to get messages for.
# @param [String] start_time
# Return only metric data that has changed since this time. Default is to return
# all information about all metrics for the job.
# @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::DataflowV1b3::JobMetrics] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataflowV1b3::JobMetrics]
#
# @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_project_job_metrics(project_id, job_id, start_time: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs/{jobId}/metrics', options)
command.response_representation = Google::Apis::DataflowV1b3::JobMetrics::Representation
command.response_class = Google::Apis::DataflowV1b3::JobMetrics
command.params['projectId'] = project_id unless project_id.nil?
command.params['jobId'] = job_id unless job_id.nil?
command.query['startTime'] = start_time unless start_time.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Get encoded debug configuration for component. Not cacheable.
# @param [String] project_id
# The project id.
# @param [String] job_id
# The job id.
# @param [Google::Apis::DataflowV1b3::GetDebugConfigRequest] get_debug_config_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DataflowV1b3::GetDebugConfigResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataflowV1b3::GetDebugConfigResponse]
#
# @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_project_job_debug_config(project_id, job_id, get_debug_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs/{jobId}/debug/getConfig', options)
command.request_representation = Google::Apis::DataflowV1b3::GetDebugConfigRequest::Representation
command.request_object = get_debug_config_request_object
command.response_representation = Google::Apis::DataflowV1b3::GetDebugConfigResponse::Representation
command.response_class = Google::Apis::DataflowV1b3::GetDebugConfigResponse
command.params['projectId'] = project_id unless project_id.nil?
command.params['jobId'] = job_id unless job_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Send encoded debug capture data for component.
# @param [String] project_id
# The project id.
# @param [String] job_id
# The job id.
# @param [Google::Apis::DataflowV1b3::SendDebugCaptureRequest] send_debug_capture_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DataflowV1b3::SendDebugCaptureResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataflowV1b3::SendDebugCaptureResponse]
#
# @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 send_project_job_debug_capture(project_id, job_id, send_debug_capture_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs/{jobId}/debug/sendCapture', options)
command.request_representation = Google::Apis::DataflowV1b3::SendDebugCaptureRequest::Representation
command.request_object = send_debug_capture_request_object
command.response_representation = Google::Apis::DataflowV1b3::SendDebugCaptureResponse::Representation
command.response_class = Google::Apis::DataflowV1b3::SendDebugCaptureResponse
command.params['projectId'] = project_id unless project_id.nil?
command.params['jobId'] = job_id unless job_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Request the job status.
# @param [String] project_id
# A project id.
# @param [String] job_id
# The job to get messages about.
# @param [String] minimum_importance
# Filter to only get messages with importance >= level
# @param [Fixnum] page_size
# If specified, determines the maximum number of messages to return. If
# unspecified, the service may choose an appropriate default, or may return an
# arbitrarily large number of results.
# @param [String] page_token
# If supplied, this should be the value of next_page_token returned by an
# earlier call. This will cause the next page of results to be returned.
# @param [String] start_time
# If specified, return only messages with timestamps >= start_time. The default
# is the job creation time (i.e. beginning of messages).
# @param [String] end_time
# Return only messages with timestamps < end_time. The default is now (i.e.
# return up to the latest messages available).
# @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::DataflowV1b3::ListJobMessagesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataflowV1b3::ListJobMessagesResponse]
#
# @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_project_job_messages(project_id, job_id, minimum_importance: nil, page_size: nil, page_token: nil, start_time: nil, end_time: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs/{jobId}/messages', options)
command.response_representation = Google::Apis::DataflowV1b3::ListJobMessagesResponse::Representation
command.response_class = Google::Apis::DataflowV1b3::ListJobMessagesResponse
command.params['projectId'] = project_id unless project_id.nil?
command.params['jobId'] = job_id unless job_id.nil?
command.query['minimumImportance'] = minimum_importance unless minimum_importance.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['startTime'] = start_time unless start_time.nil?
command.query['endTime'] = end_time unless end_time.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Reports the status of dataflow WorkItems leased by a worker.
# @param [String] project_id
# The project which owns the WorkItem's job.
# @param [String] job_id
# The job which the WorkItem is part of.
# @param [Google::Apis::DataflowV1b3::ReportWorkItemStatusRequest] report_work_item_status_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse]
#
# @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 report_project_job_work_item_status(project_id, job_id, report_work_item_status_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs/{jobId}/workItems:reportStatus', options)
command.request_representation = Google::Apis::DataflowV1b3::ReportWorkItemStatusRequest::Representation
command.request_object = report_work_item_status_request_object
command.response_representation = Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse::Representation
command.response_class = Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse
command.params['projectId'] = project_id unless project_id.nil?
command.params['jobId'] = job_id unless job_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Leases a dataflow WorkItem to run.
# @param [String] project_id
# Identifies the project this worker belongs to.
# @param [String] job_id
# Identifies the workflow job this worker belongs to.
# @param [Google::Apis::DataflowV1b3::LeaseWorkItemRequest] lease_work_item_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DataflowV1b3::LeaseWorkItemResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataflowV1b3::LeaseWorkItemResponse]
#
# @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 lease_work_item(project_id, job_id, lease_work_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs/{jobId}/workItems:lease', options)
command.request_representation = Google::Apis::DataflowV1b3::LeaseWorkItemRequest::Representation
command.request_object = lease_work_item_request_object
command.response_representation = Google::Apis::DataflowV1b3::LeaseWorkItemResponse::Representation
command.response_class = Google::Apis::DataflowV1b3::LeaseWorkItemResponse
command.params['projectId'] = project_id unless project_id.nil?
command.params['jobId'] = job_id unless job_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates a dataflow job from a template.
# @param [String] project_id
# The project which owns the job.
# @param [Google::Apis::DataflowV1b3::CreateJobFromTemplateRequest] create_job_from_template_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DataflowV1b3::Job] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataflowV1b3::Job]
#
# @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_job_from_template(project_id, create_job_from_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1b3/projects/{projectId}/templates', options)
command.request_representation = Google::Apis::DataflowV1b3::CreateJobFromTemplateRequest::Representation
command.request_object = create_job_from_template_request_object
command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
command.response_class = Google::Apis::DataflowV1b3::Job
command.params['projectId'] = project_id unless project_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
protected
def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
end
end
end
end
end

View File

@ -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 = '20160823' 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'

View File

@ -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 = '20160825' 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'

View File

@ -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 = '20160608' REVISION = '20161010'
end end
end end
end end

View File

@ -81,6 +81,85 @@ module Google
end end
end end
# Request to fetch stored insertion orders, line items, TrueView ad groups and
# ads.
class DownloadRequest
include Google::Apis::Core::Hashable
# File types that will be returned.
# Corresponds to the JSON property `fileTypes`
# @return [Array<String>]
attr_accessor :file_types
# The IDs of the specified filter type. This is used to filter entities to fetch.
# 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`
# @return [Array<String>]
attr_accessor :filter_ids
# Filter type used to filter line items to fetch.
# Corresponds to the JSON property `filterType`
# @return [String]
attr_accessor :filter_type
# SDF Version (column names, types, order) in which the entities will be
# returned. Default to 3.
# Corresponds to the JSON property `version`
# @return [String]
attr_accessor :version
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@file_types = args[:file_types] if args.key?(:file_types)
@filter_ids = args[:filter_ids] if args.key?(:filter_ids)
@filter_type = args[:filter_type] if args.key?(:filter_type)
@version = args[:version] if args.key?(:version)
end
end
# Download response.
class DownloadResponse
include Google::Apis::Core::Hashable
# Retrieved ad groups in SDF format.
# Corresponds to the JSON property `adGroups`
# @return [String]
attr_accessor :ad_groups
# Retrieved ads in SDF format.
# Corresponds to the JSON property `ads`
# @return [String]
attr_accessor :ads
# Retrieved insertion orders in SDF format.
# Corresponds to the JSON property `insertionOrders`
# @return [String]
attr_accessor :insertion_orders
# Retrieved line items in SDF format.
# Corresponds to the JSON property `lineItems`
# @return [String]
attr_accessor :line_items
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@ad_groups = args[:ad_groups] if args.key?(:ad_groups)
@ads = args[:ads] if args.key?(:ads)
@insertion_orders = args[:insertion_orders] if args.key?(:insertion_orders)
@line_items = args[:line_items] if args.key?(:line_items)
end
end
# Filter used to match traffic data in your report. # Filter used to match traffic data in your report.
class FilterPair class FilterPair
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -158,92 +237,6 @@ module Google
end end
end end
# Publisher comment from Rubicon.
class Note
include Google::Apis::Core::Hashable
# Note id.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# Message from publisher.
# Corresponds to the JSON property `message`
# @return [String]
attr_accessor :message
# Equals "publisher" for notification from Rubicon.
# Corresponds to the JSON property `source`
# @return [String]
attr_accessor :source
# Time when the note was added, e.g. "2015-12-16T17:25:35.000-08:00".
# Corresponds to the JSON property `timestamp`
# @return [String]
attr_accessor :timestamp
# Publisher user name.
# Corresponds to the JSON property `username`
# @return [String]
attr_accessor :username
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@id = args[:id] if args.key?(:id)
@message = args[:message] if args.key?(:message)
@source = args[:source] if args.key?(:source)
@timestamp = args[:timestamp] if args.key?(:timestamp)
@username = args[:username] if args.key?(:username)
end
end
# NotifyProposalChange request.
class NotifyProposalChangeRequest
include Google::Apis::Core::Hashable
# Action taken by publisher. One of: Accept, Decline, Append
# Corresponds to the JSON property `action`
# @return [String]
attr_accessor :action
# URL to access proposal detail.
# Corresponds to the JSON property `href`
# @return [String]
attr_accessor :href
# Below are contents of notification from Rubicon. Proposal id.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# Notes from publisher
# Corresponds to the JSON property `notes`
# @return [Array<Google::Apis::DoubleclickbidmanagerV1::Note>]
attr_accessor :notes
# Deal token, available when proposal is accepted by publisher.
# 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)
@action = args[:action] if args.key?(:action)
@href = args[:href] if args.key?(:href)
@id = args[:id] if args.key?(:id)
@notes = args[:notes] if args.key?(:notes)
@token = args[:token] if args.key?(:token)
end
end
# Parameters of a query or report. # Parameters of a query or report.
class Parameters class Parameters
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -34,6 +34,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class DownloadRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DownloadResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class FilterPair class FilterPair
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -52,18 +64,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class Note
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class NotifyProposalChangeRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Parameters class Parameters
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -165,6 +165,26 @@ module Google
end end
end end
class DownloadRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :file_types, as: 'fileTypes'
collection :filter_ids, as: 'filterIds'
property :filter_type, as: 'filterType'
property :version, as: 'version'
end
end
class DownloadResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :ad_groups, as: 'adGroups'
property :ads, as: 'ads'
property :insertion_orders, as: 'insertionOrders'
property :line_items, as: 'lineItems'
end
end
class FilterPair class FilterPair
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -191,29 +211,6 @@ module Google
end end
end end
class Note
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
property :message, as: 'message'
property :source, as: 'source'
property :timestamp, as: 'timestamp'
property :username, as: 'username'
end
end
class NotifyProposalChangeRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :action, as: 'action'
property :href, as: 'href'
property :id, as: 'id'
collection :notes, as: 'notes', class: Google::Apis::DoubleclickbidmanagerV1::Note, decorator: Google::Apis::DoubleclickbidmanagerV1::Note::Representation
property :token, as: 'token'
end
end
class Parameters class Parameters
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -328,8 +328,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Update proposal upon actions of Rubicon publisher. # Retrieves entities in SDF format.
# @param [Google::Apis::DoubleclickbidmanagerV1::NotifyProposalChangeRequest] notify_proposal_change_request_object # @param [Google::Apis::DoubleclickbidmanagerV1::DownloadRequest] download_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -343,18 +343,20 @@ module Google
# Request-specific options # Request-specific options
# #
# @yield [result, err] Result & error if block supplied # @yield [result, err] Result & error if block supplied
# @yieldparam result [NilClass] No result returned for this method # @yieldparam result [Google::Apis::DoubleclickbidmanagerV1::DownloadResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed # @yieldparam err [StandardError] error object if request failed
# #
# @return [void] # @return [Google::Apis::DoubleclickbidmanagerV1::DownloadResponse]
# #
# @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 notifyproposalchange_rubicon(notify_proposal_change_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def download_sdf(download_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'rubicon/notifyproposalchange', options) command = make_simple_command(:post, 'sdf/download', options)
command.request_representation = Google::Apis::DoubleclickbidmanagerV1::NotifyProposalChangeRequest::Representation command.request_representation = Google::Apis::DoubleclickbidmanagerV1::DownloadRequest::Representation
command.request_object = notify_proposal_change_request_object command.request_object = download_request_object
command.response_representation = Google::Apis::DoubleclickbidmanagerV1::DownloadResponse::Representation
command.response_class = Google::Apis::DoubleclickbidmanagerV1::DownloadResponse
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil? command.query['userIp'] = user_ip unless user_ip.nil?

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/doubleclick-search/ # @see https://developers.google.com/doubleclick-search/
module DoubleclicksearchV2 module DoubleclicksearchV2
VERSION = 'V2' VERSION = 'V2'
REVISION = '20160907' 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'

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/drive/ # @see https://developers.google.com/drive/
module DriveV2 module DriveV2
VERSION = 'V2' VERSION = 'V2'
REVISION = '20160913' 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'

View File

@ -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

View File

@ -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

View File

@ -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?

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/drive/ # @see https://developers.google.com/drive/
module DriveV3 module DriveV3
VERSION = 'V3' VERSION = 'V3'
REVISION = '20160913' 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'

View File

@ -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

View File

@ -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

View File

@ -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?

View File

@ -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 = '20160914' 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'

View File

@ -18,7 +18,7 @@ require 'google/apis/iam_v1/representations.rb'
module Google module Google
module Apis module Apis
# Google Identity and Access Management API # Google Identity and Access Management (IAM) API
# #
# Manages identity and access control for Google Cloud Platform resources, # Manages identity and access control for Google Cloud Platform resources,
# including the creation of service accounts, which you can use to authenticate # including the creation of service accounts, which you can use to authenticate
@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/iam/ # @see https://cloud.google.com/iam/
module IamV1 module IamV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20160129' REVISION = '20160915'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -31,8 +31,8 @@ module Google
# @return [Array<Google::Apis::IamV1::ServiceAccount>] # @return [Array<Google::Apis::IamV1::ServiceAccount>]
attr_accessor :accounts attr_accessor :accounts
# To retrieve the next page of results, set [ListServiceAccountsRequest. # To retrieve the next page of results, set ListServiceAccountsRequest.
# page_token] to this value. # page_token to this value.
# Corresponds to the JSON property `nextPageToken` # Corresponds to the JSON property `nextPageToken`
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
@ -49,22 +49,25 @@ module Google
end end
# A service account in the Identity and Access Management API. To create a # A service account in the Identity and Access Management API. To create a
# service account, you specify the project_id and account_id for the account. # service account, specify the `project_id` and the `account_id` for the account.
# The account_id is unique within the project, and used to generate the service # The `account_id` is unique within the project, and is used to generate the
# account email address and a stable unique id. All other methods can identify # service account email address and a stable `unique_id`. If the account already
# accounts using the format "projects/`project`/serviceAccounts/`account`". # exists, the account's resource name is returned in util::Status's ResourceInfo.
# Using '-' as a wildcard for the project, will infer the project from the # resource_name in the format of projects/`project`/serviceAccounts/`email`. The
# account. The account value can be the email address or the unique_id of the # caller can use the name in other methods to access the account. All other
# service account. # methods can identify the service account using the format `projects/`project`/
# serviceAccounts/`account``. Using `-` as a wildcard for the project will infer
# the project from the account. The `account` value can be the `email` address
# or the `unique_id` of the service account.
class ServiceAccount class ServiceAccount
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The resource name of the service account in the format "projects/`project`/ # The resource name of the service account in the following format: `projects/`
# serviceAccounts/`account`". In requests using '-' as a wildcard for the # project`/serviceAccounts/`account``. Requests using `-` as a wildcard for the
# project, will infer the project from the account and the account value can be # project will infer the project from the `account` and the `account` value can
# the email address or the unique_id of the service account. In responses the # be the `email` address or the `unique_id` of the service account. In responses
# resource name will always be in the format "projects/`project`/serviceAccounts/ # the resource name will always be in the format `projects/`project`/
# `email`". # serviceAccounts/`email``.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
@ -74,12 +77,12 @@ module Google
# @return [String] # @return [String]
attr_accessor :project_id attr_accessor :project_id
# @OutputOnly unique and stable id of the service account. # @OutputOnly The unique and stable id of the service account.
# Corresponds to the JSON property `uniqueId` # Corresponds to the JSON property `uniqueId`
# @return [String] # @return [String]
attr_accessor :unique_id attr_accessor :unique_id
# @OutputOnly Email address of the service account. # @OutputOnly The email address of the service account.
# Corresponds to the JSON property `email` # Corresponds to the JSON property `email`
# @return [String] # @return [String]
attr_accessor :email attr_accessor :email
@ -123,21 +126,24 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Required. The account id that is used to generate the service account email # Required. The account id that is used to generate the service account email
# address and a stable unique id. It is unique within a project, must be 1-63 # address and a stable unique id. It is unique within a project, must be 6-30
# characters long, and match the regular expression [a-z]([-a-z0-9]*[a-z0-9]) to # characters long, and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])`
# comply with RFC1035. # to comply with RFC1035.
# Corresponds to the JSON property `accountId` # Corresponds to the JSON property `accountId`
# @return [String] # @return [String]
attr_accessor :account_id attr_accessor :account_id
# A service account in the Identity and Access Management API. To create a # A service account in the Identity and Access Management API. To create a
# service account, you specify the project_id and account_id for the account. # service account, specify the `project_id` and the `account_id` for the account.
# The account_id is unique within the project, and used to generate the service # The `account_id` is unique within the project, and is used to generate the
# account email address and a stable unique id. All other methods can identify # service account email address and a stable `unique_id`. If the account already
# accounts using the format "projects/`project`/serviceAccounts/`account`". # exists, the account's resource name is returned in util::Status's ResourceInfo.
# Using '-' as a wildcard for the project, will infer the project from the # resource_name in the format of projects/`project`/serviceAccounts/`email`. The
# account. The account value can be the email address or the unique_id of the # caller can use the name in other methods to access the account. All other
# service account. # methods can identify the service account using the format `projects/`project`/
# serviceAccounts/`account``. Using `-` as a wildcard for the project will infer
# the project from the account. The `account` value can be the `email` address
# or the `unique_id` of the service account.
# Corresponds to the JSON property `serviceAccount` # Corresponds to the JSON property `serviceAccount`
# @return [Google::Apis::IamV1::ServiceAccount] # @return [Google::Apis::IamV1::ServiceAccount]
attr_accessor :service_account attr_accessor :service_account
@ -189,28 +195,47 @@ module Google
end end
end end
# Represents a service account key. A service account can have 0 or more key # Represents a service account key. A service account has two sets of key-pairs:
# pairs. The private keys for these are not stored by Google. ServiceAccountKeys # user-managed, and system-managed. User-managed key-pairs can be created and
# are immutable. # deleted by users. Users are responsible for rotating these keys periodically
# to ensure security of their service accounts. Users retain the private key of
# these key-pairs, and Google retains ONLY the public key. System-managed key-
# pairs are managed automatically by Google, and rotated daily without user
# intervention. The private key never leaves Google's servers to maximize
# security. Public keys for all service accounts are also published at the
# OAuth2 Service Account API.
class ServiceAccountKey class ServiceAccountKey
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The resource name of the service account key in the format "projects/`project`/ # The resource name of the service account key in the following format `projects/
# serviceAccounts/`email`/keys/`key`". # `project`/serviceAccounts/`account`/keys/`key``.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# The type of the private key. # The output format for the private key. Only provided in `
# CreateServiceAccountKey` responses, not in `GetServiceAccountKey` or `
# ListServiceAccountKey` responses. Google never exposes system-managed private
# keys, and never retains user-managed private keys.
# Corresponds to the JSON property `privateKeyType` # Corresponds to the JSON property `privateKeyType`
# @return [String] # @return [String]
attr_accessor :private_key_type attr_accessor :private_key_type
# The key data. # Specifies the algorithm (and possibly key size) for the key.
# Corresponds to the JSON property `keyAlgorithm`
# @return [String]
attr_accessor :key_algorithm
# The private key data. Only provided in `CreateServiceAccountKey` responses.
# Corresponds to the JSON property `privateKeyData` # Corresponds to the JSON property `privateKeyData`
# @return [String] # @return [String]
attr_accessor :private_key_data attr_accessor :private_key_data
# The public key data. Only provided in `GetServiceAccountKey` responses.
# Corresponds to the JSON property `publicKeyData`
# @return [String]
attr_accessor :public_key_data
# The key can be used after this timestamp. # The key can be used after this timestamp.
# Corresponds to the JSON property `validAfterTime` # Corresponds to the JSON property `validAfterTime`
# @return [String] # @return [String]
@ -229,7 +254,9 @@ module Google
def update!(**args) def update!(**args)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@private_key_type = args[:private_key_type] if args.key?(:private_key_type) @private_key_type = args[:private_key_type] if args.key?(:private_key_type)
@key_algorithm = args[:key_algorithm] if args.key?(:key_algorithm)
@private_key_data = args[:private_key_data] if args.key?(:private_key_data) @private_key_data = args[:private_key_data] if args.key?(:private_key_data)
@public_key_data = args[:public_key_data] if args.key?(:public_key_data)
@valid_after_time = args[:valid_after_time] if args.key?(:valid_after_time) @valid_after_time = args[:valid_after_time] if args.key?(:valid_after_time)
@valid_before_time = args[:valid_before_time] if args.key?(:valid_before_time) @valid_before_time = args[:valid_before_time] if args.key?(:valid_before_time)
end end
@ -239,11 +266,18 @@ module Google
class CreateServiceAccountKeyRequest class CreateServiceAccountKeyRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The type of the key requested. GOOGLE_CREDENTIALS is the default key type. # The output format of the private key. `GOOGLE_CREDENTIALS_FILE` is the default
# output format.
# Corresponds to the JSON property `privateKeyType` # Corresponds to the JSON property `privateKeyType`
# @return [String] # @return [String]
attr_accessor :private_key_type attr_accessor :private_key_type
# Which type of key and algorithm to use for the key. The default is currently a
# 4K RSA key. However this may change in the future.
# Corresponds to the JSON property `keyAlgorithm`
# @return [String]
attr_accessor :key_algorithm
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -251,6 +285,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@private_key_type = args[:private_key_type] if args.key?(:private_key_type) @private_key_type = args[:private_key_type] if args.key?(:private_key_type)
@key_algorithm = args[:key_algorithm] if args.key?(:key_algorithm)
end end
end end
@ -258,7 +293,7 @@ module Google
class SignBlobRequest class SignBlobRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The bytes to sign # The bytes to sign.
# Corresponds to the JSON property `bytesToSign` # Corresponds to the JSON property `bytesToSign`
# @return [String] # @return [String]
attr_accessor :bytes_to_sign attr_accessor :bytes_to_sign
@ -305,7 +340,7 @@ module Google
# accounts. A `role` is a named list of permissions defined by IAM. **Example** ` # accounts. A `role` is a named list of permissions defined by IAM. **Example** `
# "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@example.com", " # "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@example.com", "
# group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@ # group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@
# appspot.gserviceaccount.com"] `, ` "role": "roles/viewer", "members": ["user: # appspot.gserviceaccount.com", ] `, ` "role": "roles/viewer", "members": ["user:
# sean@example.com"] ` ] ` For a description of IAM and its features, see the [ # sean@example.com"] ` ] ` For a description of IAM and its features, see the [
# IAM developer's guide](https://cloud.google.com/iam). # IAM developer's guide](https://cloud.google.com/iam).
class Policy class Policy
@ -323,11 +358,6 @@ module Google
# @return [Array<Google::Apis::IamV1::Binding>] # @return [Array<Google::Apis::IamV1::Binding>]
attr_accessor :bindings attr_accessor :bindings
#
# Corresponds to the JSON property `rules`
# @return [Array<Google::Apis::IamV1::Rule>]
attr_accessor :rules
# `etag` is used for optimistic concurrency control as a way to help prevent # `etag` is used for optimistic concurrency control as a way to help prevent
# simultaneous updates of a policy from overwriting each other. It is strongly # simultaneous updates of a policy from overwriting each other. It is strongly
# suggested that systems make use of the `etag` in the read-modify-write cycle # suggested that systems make use of the `etag` in the read-modify-write cycle
@ -348,7 +378,6 @@ module Google
def update!(**args) def update!(**args)
@version = args[:version] if args.key?(:version) @version = args[:version] if args.key?(:version)
@bindings = args[:bindings] if args.key?(:bindings) @bindings = args[:bindings] if args.key?(:bindings)
@rules = args[:rules] if args.key?(:rules)
@etag = args[:etag] if args.key?(:etag) @etag = args[:etag] if args.key?(:etag)
end end
end end
@ -390,209 +419,6 @@ module Google
end end
end end
# A rule to be applied in a Policy.
class Rule
include Google::Apis::Core::Hashable
# Human-readable description of the rule.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# A permission is a string of form '..' (e.g., 'storage.buckets.list'). A value
# of '*' matches all permissions, and a verb part of '*' (e.g., 'storage.buckets.
# *') matches all verbs.
# Corresponds to the JSON property `permissions`
# @return [Array<String>]
attr_accessor :permissions
# Required
# Corresponds to the JSON property `action`
# @return [String]
attr_accessor :action
# The rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in this set of entries.
# Corresponds to the JSON property `in`
# @return [Array<String>]
attr_accessor :in
# The rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is not in this set of
# entries. The format for in and not_in entries is the same as for members in a
# Binding (see google/iam/v1/policy.proto).
# Corresponds to the JSON property `notIn`
# @return [Array<String>]
attr_accessor :not_in
# Additional restrictions that must be met
# Corresponds to the JSON property `conditions`
# @return [Array<Google::Apis::IamV1::Condition>]
attr_accessor :conditions
# The config returned to callers of tech.iam.IAM.CheckPolicy for any entries
# that match the LOG action.
# Corresponds to the JSON property `logConfig`
# @return [Array<Google::Apis::IamV1::LogConfig>]
attr_accessor :log_config
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@description = args[:description] if args.key?(:description)
@permissions = args[:permissions] if args.key?(:permissions)
@action = args[:action] if args.key?(:action)
@in = args[:in] if args.key?(:in)
@not_in = args[:not_in] if args.key?(:not_in)
@conditions = args[:conditions] if args.key?(:conditions)
@log_config = args[:log_config] if args.key?(:log_config)
end
end
# A condition to be met.
class Condition
include Google::Apis::Core::Hashable
# Trusted attributes supplied by the IAM system.
# Corresponds to the JSON property `iam`
# @return [String]
attr_accessor :iam
# Trusted attributes supplied by any service that owns resources and uses the
# IAM system for access control.
# Corresponds to the JSON property `sys`
# @return [String]
attr_accessor :sys
# Trusted attributes discharged by the service.
# Corresponds to the JSON property `svc`
# @return [String]
attr_accessor :svc
# An operator to apply the subject with.
# Corresponds to the JSON property `op`
# @return [String]
attr_accessor :op
# The object of the condition. Exactly one of these must be set.
# Corresponds to the JSON property `value`
# @return [String]
attr_accessor :value
# The objects of the condition. This is mutually exclusive with 'value'.
# Corresponds to the JSON property `values`
# @return [Array<String>]
attr_accessor :values
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@iam = args[:iam] if args.key?(:iam)
@sys = args[:sys] if args.key?(:sys)
@svc = args[:svc] if args.key?(:svc)
@op = args[:op] if args.key?(:op)
@value = args[:value] if args.key?(:value)
@values = args[:values] if args.key?(:values)
end
end
# Specifies what kind of log the caller must write Increment a streamz counter
# with the specified metric and field names. Metric names should start with a '/'
# , generally be lowercase-only, and end in "_count". Field names should not
# contain an initial slash. The actual exported metric names will have "/iam/
# policy" prepended. Field names correspond to IAM request parameters and field
# values are their respective values. At present only "iam_principal",
# corresponding to IAMContext.principal, is supported. Examples: counter `
# metric: "/debug_access_count" field: "iam_principal" ` ==> increment counter /
# iam/policy/backend_debug_access_count `iam_principal=[value of IAMContext.
# principal]` At this time we do not support: * multiple field names (though
# this may be supported in the future) * decrementing the counter * incrementing
# it by anything other than 1
class LogConfig
include Google::Apis::Core::Hashable
# Options for counters
# Corresponds to the JSON property `counter`
# @return [Google::Apis::IamV1::CounterOptions]
attr_accessor :counter
# Write a Data Access (Gin) log
# Corresponds to the JSON property `dataAccess`
# @return [Google::Apis::IamV1::DataAccessOptions]
attr_accessor :data_access
# Write a Cloud Audit log
# Corresponds to the JSON property `cloudAudit`
# @return [Google::Apis::IamV1::CloudAuditOptions]
attr_accessor :cloud_audit
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@counter = args[:counter] if args.key?(:counter)
@data_access = args[:data_access] if args.key?(:data_access)
@cloud_audit = args[:cloud_audit] if args.key?(:cloud_audit)
end
end
# Options for counters
class CounterOptions
include Google::Apis::Core::Hashable
# The metric to update.
# Corresponds to the JSON property `metric`
# @return [String]
attr_accessor :metric
# The field value to attribute.
# Corresponds to the JSON property `field`
# @return [String]
attr_accessor :field
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@metric = args[:metric] if args.key?(:metric)
@field = args[:field] if args.key?(:field)
end
end
# Write a Data Access (Gin) log
class DataAccessOptions
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Write a Cloud Audit log
class CloudAuditOptions
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Request message for `SetIamPolicy` method. # Request message for `SetIamPolicy` method.
class SetIamPolicyRequest class SetIamPolicyRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -604,7 +430,7 @@ module Google
# accounts. A `role` is a named list of permissions defined by IAM. **Example** ` # accounts. A `role` is a named list of permissions defined by IAM. **Example** `
# "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@example.com", " # "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@example.com", "
# group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@ # group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@
# appspot.gserviceaccount.com"] `, ` "role": "roles/viewer", "members": ["user: # appspot.gserviceaccount.com", ] `, ` "role": "roles/viewer", "members": ["user:
# sean@example.com"] ` ] ` For a description of IAM and its features, see the [ # sean@example.com"] ` ] ` For a description of IAM and its features, see the [
# IAM developer's guide](https://cloud.google.com/iam). # IAM developer's guide](https://cloud.google.com/iam).
# Corresponds to the JSON property `policy` # Corresponds to the JSON property `policy`
@ -626,8 +452,8 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The set of permissions to check for the `resource`. Permissions with wildcards # The set of permissions to check for the `resource`. Permissions with wildcards
# (such as '*' or 'storage.*') are not allowed. For more information see IAM # (such as '*' or 'storage.*') are not allowed. For more information see [IAM
# Overview. # Overview](https://cloud.google.com/iam/docs/overview#permissions).
# Corresponds to the JSON property `permissions` # Corresponds to the JSON property `permissions`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :permissions attr_accessor :permissions
@ -660,6 +486,155 @@ module Google
@permissions = args[:permissions] if args.key?(:permissions) @permissions = args[:permissions] if args.key?(:permissions)
end end
end end
# The grantable role query request.
class QueryGrantableRolesRequest
include Google::Apis::Core::Hashable
# Required. The full resource name to query from the list of grantable roles.
# The name follows the Google Cloud Platform resource format. For example, a
# Cloud Platform project with id `my-project` will be named `//
# cloudresourcemanager.googleapis.com/projects/my-project`.
# Corresponds to the JSON property `fullResourceName`
# @return [String]
attr_accessor :full_resource_name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@full_resource_name = args[:full_resource_name] if args.key?(:full_resource_name)
end
end
# The grantable role query response.
class QueryGrantableRolesResponse
include Google::Apis::Core::Hashable
# The list of matching roles.
# Corresponds to the JSON property `roles`
# @return [Array<Google::Apis::IamV1::Role>]
attr_accessor :roles
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@roles = args[:roles] if args.key?(:roles)
end
end
# A role in the Identity and Access Management API.
class Role
include Google::Apis::Core::Hashable
# The name of the role. When Role is used in CreateRole, the role name must not
# be set. When Role is used in output and other input such as UpdateRole, the
# role name is the complete path, e.g., roles/logging.viewer for curated roles
# and organizations/`organization-id`/roles/logging.viewer for custom roles.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Optional. A human-readable title for the role. Typically this is limited to
# 100 UTF-8 bytes.
# Corresponds to the JSON property `title`
# @return [String]
attr_accessor :title
# Optional. A human-readable description for the role.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@name = args[:name] if args.key?(:name)
@title = args[:title] if args.key?(:title)
@description = args[:description] if args.key?(:description)
end
end
# Audit log information specific to Cloud IAM. This message is serialized as an `
# Any` type in the `ServiceData` message of an `AuditLog` message.
class AuditData
include Google::Apis::Core::Hashable
# The difference delta between two policies.
# Corresponds to the JSON property `policyDelta`
# @return [Google::Apis::IamV1::PolicyDelta]
attr_accessor :policy_delta
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@policy_delta = args[:policy_delta] if args.key?(:policy_delta)
end
end
# The difference delta between two policies.
class PolicyDelta
include Google::Apis::Core::Hashable
# The delta for Bindings between two policies.
# Corresponds to the JSON property `bindingDeltas`
# @return [Array<Google::Apis::IamV1::BindingDelta>]
attr_accessor :binding_deltas
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@binding_deltas = args[:binding_deltas] if args.key?(:binding_deltas)
end
end
# One delta entry for Binding. Each individual change (only one member in each
# entry) to a binding will be a separate entry.
class BindingDelta
include Google::Apis::Core::Hashable
# The action that was performed on a Binding. Required
# Corresponds to the JSON property `action`
# @return [String]
attr_accessor :action
# Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
# , or `roles/owner`. Required
# Corresponds to the JSON property `role`
# @return [String]
attr_accessor :role
# A single identity requesting access for a Cloud Platform resource. Follows the
# same format of Binding.members. Required
# Corresponds to the JSON property `member`
# @return [String]
attr_accessor :member
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@action = args[:action] if args.key?(:action)
@role = args[:role] if args.key?(:role)
@member = args[:member] if args.key?(:member)
end
end
end end
end end
end end

View File

@ -88,42 +88,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class Rule
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Condition
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LogConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CounterOptions
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DataAccessOptions
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CloudAuditOptions
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SetIamPolicyRequest class SetIamPolicyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -142,6 +106,42 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class QueryGrantableRolesRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class QueryGrantableRolesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Role
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AuditData
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PolicyDelta
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BindingDelta
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListServiceAccountsResponse class ListServiceAccountsResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -192,7 +192,9 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name' property :name, as: 'name'
property :private_key_type, as: 'privateKeyType' property :private_key_type, as: 'privateKeyType'
property :key_algorithm, as: 'keyAlgorithm'
property :private_key_data, :base64 => true, as: 'privateKeyData' property :private_key_data, :base64 => true, as: 'privateKeyData'
property :public_key_data, :base64 => true, as: 'publicKeyData'
property :valid_after_time, as: 'validAfterTime' property :valid_after_time, as: 'validAfterTime'
property :valid_before_time, as: 'validBeforeTime' property :valid_before_time, as: 'validBeforeTime'
end end
@ -202,6 +204,7 @@ module Google
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :private_key_type, as: 'privateKeyType' property :private_key_type, as: 'privateKeyType'
property :key_algorithm, as: 'keyAlgorithm'
end end
end end
@ -226,8 +229,6 @@ module Google
property :version, as: 'version' property :version, as: 'version'
collection :bindings, as: 'bindings', class: Google::Apis::IamV1::Binding, decorator: Google::Apis::IamV1::Binding::Representation collection :bindings, as: 'bindings', class: Google::Apis::IamV1::Binding, decorator: Google::Apis::IamV1::Binding::Representation
collection :rules, as: 'rules', class: Google::Apis::IamV1::Rule, decorator: Google::Apis::IamV1::Rule::Representation
property :etag, :base64 => true, as: 'etag' property :etag, :base64 => true, as: 'etag'
end end
end end
@ -240,65 +241,6 @@ module Google
end end
end end
class Rule
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
collection :permissions, as: 'permissions'
property :action, as: 'action'
collection :in, as: 'in'
collection :not_in, as: 'notIn'
collection :conditions, as: 'conditions', class: Google::Apis::IamV1::Condition, decorator: Google::Apis::IamV1::Condition::Representation
collection :log_config, as: 'logConfig', class: Google::Apis::IamV1::LogConfig, decorator: Google::Apis::IamV1::LogConfig::Representation
end
end
class Condition
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :iam, as: 'iam'
property :sys, as: 'sys'
property :svc, as: 'svc'
property :op, as: 'op'
property :value, as: 'value'
collection :values, as: 'values'
end
end
class LogConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :counter, as: 'counter', class: Google::Apis::IamV1::CounterOptions, decorator: Google::Apis::IamV1::CounterOptions::Representation
property :data_access, as: 'dataAccess', class: Google::Apis::IamV1::DataAccessOptions, decorator: Google::Apis::IamV1::DataAccessOptions::Representation
property :cloud_audit, as: 'cloudAudit', class: Google::Apis::IamV1::CloudAuditOptions, decorator: Google::Apis::IamV1::CloudAuditOptions::Representation
end
end
class CounterOptions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :metric, as: 'metric'
property :field, as: 'field'
end
end
class DataAccessOptions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class CloudAuditOptions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class SetIamPolicyRequest class SetIamPolicyRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -320,6 +262,55 @@ module Google
collection :permissions, as: 'permissions' collection :permissions, as: 'permissions'
end end
end end
class QueryGrantableRolesRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :full_resource_name, as: 'fullResourceName'
end
end
class QueryGrantableRolesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :roles, as: 'roles', class: Google::Apis::IamV1::Role, decorator: Google::Apis::IamV1::Role::Representation
end
end
class Role
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :title, as: 'title'
property :description, as: 'description'
end
end
class AuditData
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :policy_delta, as: 'policyDelta', class: Google::Apis::IamV1::PolicyDelta, decorator: Google::Apis::IamV1::PolicyDelta::Representation
end
end
class PolicyDelta
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :binding_deltas, as: 'bindingDeltas', class: Google::Apis::IamV1::BindingDelta, decorator: Google::Apis::IamV1::BindingDelta::Representation
end
end
class BindingDelta
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :action, as: 'action'
property :role, as: 'role'
property :member, as: 'member'
end
end
end end
end end
end end

View File

@ -20,7 +20,7 @@ require 'google/apis/errors'
module Google module Google
module Apis module Apis
module IamV1 module IamV1
# Google Identity and Access Management API # Google Identity and Access Management (IAM) API
# #
# Manages identity and access control for Google Cloud Platform resources, # Manages identity and access control for Google Cloud Platform resources,
# including the creation of service accounts, which you can use to authenticate # including the creation of service accounts, which you can use to authenticate
@ -48,17 +48,17 @@ module Google
super('https://iam.googleapis.com/', '') super('https://iam.googleapis.com/', '')
end end
# Lists service accounts for a project. # Lists ServiceAccounts for a project.
# @param [String] name # @param [String] name
# Required. The resource name of the project associated with the service # Required. The resource name of the project associated with the service
# accounts, such as "projects/123" # accounts, such as `projects/my-project-123`.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Optional limit on the number of service accounts to include in the response. # Optional limit on the number of service accounts to include in the response.
# Further accounts can subsequently be obtained by including the [ # Further accounts can subsequently be obtained by including the
# ListServiceAccountsResponse.next_page_token] in a subsequent request. # ListServiceAccountsResponse.next_page_token in a subsequent request.
# @param [String] page_token # @param [String] page_token
# Optional pagination token returned in an earlier [ListServiceAccountsResponse. # Optional pagination token returned in an earlier ListServiceAccountsResponse.
# next_page_token]. # next_page_token.
# @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
@ -88,12 +88,12 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets a ServiceAccount # Gets a ServiceAccount.
# @param [String] name # @param [String] name
# The resource name of the service account in the format "projects/`project`/ # The resource name of the service account in the following format: `projects/`
# serviceAccounts/`account`". Using '-' as a wildcard for the project, will # project`/serviceAccounts/`account``. Using `-` as a wildcard for the project
# infer the project from the account. The account value can be the email address # will infer the project from the account. The `account` value can be the `email`
# or the unique_id of the service account. # address or the `unique_id` of the service account.
# @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
@ -121,10 +121,10 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Creates a service account and returns it. # Creates a ServiceAccount and returns it.
# @param [String] name # @param [String] name
# Required. The resource name of the project associated with the service # Required. The resource name of the project associated with the service
# accounts, such as "projects/123" # accounts, such as `projects/my-project-123`.
# @param [Google::Apis::IamV1::CreateServiceAccountRequest] create_service_account_request_object # @param [Google::Apis::IamV1::CreateServiceAccountRequest] create_service_account_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -155,15 +155,15 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Updates a service account. Currently, only the following fields are updatable: # Updates a ServiceAccount. Currently, only the following fields are updatable: `
# 'display_name' . The 'etag' is mandatory. # display_name` . The `etag` is mandatory.
# @param [String] name # @param [String] name
# The resource name of the service account in the format "projects/`project`/ # The resource name of the service account in the following format: `projects/`
# serviceAccounts/`account`". In requests using '-' as a wildcard for the # project`/serviceAccounts/`account``. Requests using `-` as a wildcard for the
# project, will infer the project from the account and the account value can be # project will infer the project from the `account` and the `account` value can
# the email address or the unique_id of the service account. In responses the # be the `email` address or the `unique_id` of the service account. In responses
# resource name will always be in the format "projects/`project`/serviceAccounts/ # the resource name will always be in the format `projects/`project`/
# `email`". # serviceAccounts/`email``.
# @param [Google::Apis::IamV1::ServiceAccount] service_account_object # @param [Google::Apis::IamV1::ServiceAccount] service_account_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.
@ -194,12 +194,12 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Deletes a service acount. # Deletes a ServiceAccount.
# @param [String] name # @param [String] name
# The resource name of the service account in the format "projects/`project`/ # The resource name of the service account in the following format: `projects/`
# serviceAccounts/`account`". Using '-' as a wildcard for the project, will # project`/serviceAccounts/`account``. Using `-` as a wildcard for the project
# infer the project from the account. The account value can be the email address # will infer the project from the account. The `account` value can be the `email`
# or the unique_id of the service account. # address or the `unique_id` of the service account.
# @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
@ -227,12 +227,12 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Signs a blob using a service account. # Signs a blob using a service account's system-managed private key.
# @param [String] name # @param [String] name
# The resource name of the service account in the format "projects/`project`/ # The resource name of the service account in the following format: `projects/`
# serviceAccounts/`account`". Using '-' as a wildcard for the project, will # project`/serviceAccounts/`account``. Using `-` as a wildcard for the project
# infer the project from the account. The account value can be the email address # will infer the project from the account. The `account` value can be the `email`
# or the unique_id of the service account. # address or the `unique_id` of the service account.
# @param [Google::Apis::IamV1::SignBlobRequest] sign_blob_request_object # @param [Google::Apis::IamV1::SignBlobRequest] sign_blob_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -263,12 +263,11 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Returns the IAM access control policy for specified IAM resource. # Returns the IAM access control policy for a ServiceAccount.
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy is being requested. `resource` is # REQUIRED: The resource for which the policy is being requested. `resource` is
# usually specified as a path, such as `projects/*project*/zones/*zone*/disks/* # usually specified as a path. For example, a Project resource is specified as `
# disk*`. The format for the path specified in this value is resource specific # projects/`project``.
# and is specified in the `getIamPolicy` documentation.
# @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
@ -296,12 +295,11 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Sets the IAM access control policy for the specified IAM resource. # Sets the IAM access control policy for a ServiceAccount.
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy is being specified. `resource` is # REQUIRED: The resource for which the policy is being specified. `resource` is
# usually specified as a path, such as `projects/*project*/zones/*zone*/disks/* # usually specified as a path. For example, a Project resource is specified as `
# disk*`. The format for the path specified in this value is resource specific # projects/`project``.
# and is specified in the `setIamPolicy` documentation.
# @param [Google::Apis::IamV1::SetIamPolicyRequest] set_iam_policy_request_object # @param [Google::Apis::IamV1::SetIamPolicyRequest] set_iam_policy_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -332,13 +330,12 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Tests the specified permissions against the IAM access control policy for the # Tests the specified permissions against the IAM access control policy for a
# specified IAM resource. # ServiceAccount.
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy detail is being requested. ` # REQUIRED: The resource for which the policy detail is being requested. `
# resource` is usually specified as a path, such as `projects/*project*/zones/* # resource` is usually specified as a path. For example, a Project resource is
# zone*/disks/*disk*`. The format for the path specified in this value is # specified as `projects/`project``.
# resource specific and is specified in the `testIamPermissions` documentation.
# @param [Google::Apis::IamV1::TestIamPermissionsRequest] test_iam_permissions_request_object # @param [Google::Apis::IamV1::TestIamPermissionsRequest] test_iam_permissions_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -369,15 +366,16 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Lists service account keys # Lists ServiceAccountKeys.
# @param [String] name # @param [String] name
# The resource name of the service account in the format "projects/`project`/ # The resource name of the service account in the following format: `projects/`
# serviceAccounts/`account`". Using '-' as a wildcard for the project, will # project`/serviceAccounts/`account``. Using `-` as a wildcard for the project,
# infer the project from the account. The account value can be the email address # will infer the project from the account. The `account` value can be the `email`
# or the unique_id of the service account. # address or the `unique_id` of the service account.
# @param [Array<String>, String] key_types # @param [Array<String>, String] key_types
# The type of keys the user wants to list. If empty, all key types are included # Filters the types of keys the user wants to include in the list response.
# in the response. Duplicate key types are not allowed. # Duplicate key types are not allowed. If no key type is provided, all keys are
# returned.
# @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
@ -408,10 +406,13 @@ module Google
# Gets the ServiceAccountKey by key id. # Gets the ServiceAccountKey by key id.
# @param [String] name # @param [String] name
# The resource name of the service account key in the format "projects/`project`/ # The resource name of the service account key in the following format: `
# serviceAccounts/`account`/keys/`key`". Using '-' as a wildcard for the project # projects/`project`/serviceAccounts/`account`/keys/`key``. Using `-` as a
# will infer the project from the account. The account value can be the email # wildcard for the project will infer the project from the account. The `account`
# address or the unique_id of the service account. # value can be the `email` address or the `unique_id` of the service account.
# @param [String] public_key_type
# The output format of the public key requested. X509_PEM is the default output
# format.
# @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
@ -429,22 +430,23 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_service_account_key(name, fields: nil, quota_user: nil, options: nil, &block) def get_project_service_account_key(name, public_key_type: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options) command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::IamV1::ServiceAccountKey::Representation command.response_representation = Google::Apis::IamV1::ServiceAccountKey::Representation
command.response_class = Google::Apis::IamV1::ServiceAccountKey command.response_class = Google::Apis::IamV1::ServiceAccountKey
command.params['name'] = name unless name.nil? command.params['name'] = name unless name.nil?
command.query['publicKeyType'] = public_key_type unless public_key_type.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?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Creates a service account key and returns it. # Creates a ServiceAccountKey and returns it.
# @param [String] name # @param [String] name
# The resource name of the service account in the format "projects/`project`/ # The resource name of the service account in the following format: `projects/`
# serviceAccounts/`account`". Using '-' as a wildcard for the project, will # project`/serviceAccounts/`account``. Using `-` as a wildcard for the project
# infer the project from the account. The account value can be the email address # will infer the project from the account. The `account` value can be the `email`
# or the unique_id of the service account. # address or the `unique_id` of the service account.
# @param [Google::Apis::IamV1::CreateServiceAccountKeyRequest] create_service_account_key_request_object # @param [Google::Apis::IamV1::CreateServiceAccountKeyRequest] create_service_account_key_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -475,12 +477,12 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Deletes a service account key. # Deletes a ServiceAccountKey.
# @param [String] name # @param [String] name
# The resource name of the service account key in the format "projects/`project`/ # The resource name of the service account key in the following format: `
# serviceAccounts/`account`/keys/`key`". Using '-' as a wildcard for the project # projects/`project`/serviceAccounts/`account`/keys/`key``. Using `-` as a
# will infer the project from the account. The account value can be the email # wildcard for the project will infer the project from the account. The `account`
# address or the unique_id of the service account. # value can be the `email` address or the `unique_id` of the service account.
# @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
@ -508,6 +510,38 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Queries roles that can be granted on a particular resource. A role is
# grantable if it can be used as the role in a binding for a policy for that
# resource.
# @param [Google::Apis::IamV1::QueryGrantableRolesRequest] query_grantable_roles_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::IamV1::QueryGrantableRolesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::IamV1::QueryGrantableRolesResponse]
#
# @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 query_grantable_roles(query_grantable_roles_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/roles:queryGrantableRoles', options)
command.request_representation = Google::Apis::IamV1::QueryGrantableRolesRequest::Representation
command.request_object = query_grantable_roles_request_object
command.response_representation = Google::Apis::IamV1::QueryGrantableRolesResponse::Representation
command.response_class = Google::Apis::IamV1::QueryGrantableRolesResponse
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
protected protected
def apply_command_defaults(command) def apply_command_defaults(command)

View File

@ -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 = '20160902' 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

View File

@ -306,9 +306,11 @@ module Google
# @return [String] # @return [String]
attr_accessor :continue_uri attr_accessor :continue_uri
# The query parameter that client can customize by themselves in auth url. # 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
# 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 [Array<Google::Apis::IdentitytoolkitV3::CreateAuthUriRequest::CustomParameter>] # @return [Hash<String,String>]
attr_accessor :custom_parameter attr_accessor :custom_parameter
# The hosted domain to restrict sign-in to accounts at that domain for Google # The hosted domain to restrict sign-in to accounts at that domain for Google
@ -376,31 +378,6 @@ module Google
@provider_id = args[:provider_id] if args.key?(:provider_id) @provider_id = args[:provider_id] if args.key?(:provider_id)
@session_id = args[:session_id] if args.key?(:session_id) @session_id = args[:session_id] if args.key?(:session_id)
end end
#
class CustomParameter
include Google::Apis::Core::Hashable
# The key of the query parameter.
# Corresponds to the JSON property `key`
# @return [String]
attr_accessor :key
# The value of the query parameter.
# Corresponds to the JSON property `value`
# @return [String]
attr_accessor :value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@key = args[:key] if args.key?(:key)
@value = args[:value] if args.key?(:value)
end
end
end end
# Request to delete account. # Request to delete account.
@ -1011,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>]
@ -1029,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

View File

@ -67,12 +67,6 @@ module Google
class CreateAuthUriRequest class CreateAuthUriRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
class CustomParameter
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
@ -322,8 +316,7 @@ module Google
property :client_id, as: 'clientId' property :client_id, as: 'clientId'
property :context, as: 'context' property :context, as: 'context'
property :continue_uri, as: 'continueUri' property :continue_uri, as: 'continueUri'
collection :custom_parameter, as: 'customParameter', class: Google::Apis::IdentitytoolkitV3::CreateAuthUriRequest::CustomParameter, decorator: Google::Apis::IdentitytoolkitV3::CreateAuthUriRequest::CustomParameter::Representation hash :custom_parameter, as: 'customParameter'
property :hosted_domain, as: 'hostedDomain' property :hosted_domain, as: 'hostedDomain'
property :identifier, as: 'identifier' property :identifier, as: 'identifier'
property :oauth_consumer_key, as: 'oauthConsumerKey' property :oauth_consumer_key, as: 'oauthConsumerKey'
@ -333,14 +326,6 @@ module Google
property :provider_id, as: 'providerId' property :provider_id, as: 'providerId'
property :session_id, as: 'sessionId' property :session_id, as: 'sessionId'
end end
class CustomParameter
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :key, as: 'key'
property :value, as: 'value'
end
end
end end
class DeleteAccountRequest class DeleteAccountRequest
@ -497,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

View File

@ -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 = '20160912' 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'

View File

@ -290,8 +290,8 @@ module Google
end end
end end
# The request message for the advanced text annotation API, which performs all # The request message for the text annotation API, which can perform multiple
# the above plus syntactic analysis. # analysis types (sentiment, entities, and syntax) in one call.
class AnnotateTextRequest class AnnotateTextRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -416,6 +416,7 @@ module Google
# The language of the text, which will be the same as the language specified # The language of the text, which will be the same as the language specified
# in the request or, if not specified, the automatically-detected language. # in the request or, if not specified, the automatically-detected language.
# See Document.language field for more details.
# Corresponds to the JSON property `language` # Corresponds to the JSON property `language`
# @return [String] # @return [String]
attr_accessor :language attr_accessor :language
@ -577,6 +578,7 @@ module Google
# The language of the text, which will be the same as the language specified # The language of the text, which will be the same as the language specified
# in the request or, if not specified, the automatically-detected language. # in the request or, if not specified, the automatically-detected language.
# See Document.language field for more details.
# Corresponds to the JSON property `language` # Corresponds to the JSON property `language`
# @return [String] # @return [String]
attr_accessor :language attr_accessor :language

View File

@ -78,10 +78,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Advanced API that analyzes the document and provides a full set of text # A convenience method that provides all the features that analyzeSentiment,
# annotations, including semantic, syntactic, and sentiment information. This # analyzeEntities, and analyzeSyntax provide in one call.
# API is intended for users who are familiar with machine learning and need
# in-depth text features to build upon.
# @param [Google::Apis::LanguageV1beta1::AnnotateTextRequest] annotate_text_request_object # @param [Google::Apis::LanguageV1beta1::AnnotateTextRequest] annotate_text_request_object
# @param [String] quota_user # @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any # Available to use for quota purposes for server-side applications. Can be any

View File

@ -18,14 +18,14 @@ require 'google/apis/logging_v2beta1/representations.rb'
module Google module Google
module Apis module Apis
# Google Cloud Logging API # Stackdriver Logging API
# #
# Writes log entries and manages your logs, log sinks, and logs-based metrics. # Writes log entries and manages your Stackdriver Logging configuration.
# #
# @see https://cloud.google.com/logging/docs/ # @see https://cloud.google.com/logging/docs/
module LoggingV2beta1 module LoggingV2beta1
VERSION = 'V2beta1' VERSION = 'V2beta1'
REVISION = '20160322' REVISION = '20161003'
# 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'
@ -33,14 +33,14 @@ module Google
# View your data across Google Cloud Platform services # View your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only' AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
# Administrate log data for your projects
AUTH_LOGGING_ADMIN = 'https://www.googleapis.com/auth/logging.admin'
# View log data for your projects # View log data for your projects
AUTH_LOGGING_READ = 'https://www.googleapis.com/auth/logging.read' AUTH_LOGGING_READ = 'https://www.googleapis.com/auth/logging.read'
# Submit log data for your projects # Submit log data for your projects
AUTH_LOGGING_WRITE = 'https://www.googleapis.com/auth/logging.write' AUTH_LOGGING_WRITE = 'https://www.googleapis.com/auth/logging.write'
# Administrate log data for your projects
AUTH_LOGGING_ADMIN = 'https://www.googleapis.com/auth/logging.admin'
end end
end end
end end

File diff suppressed because it is too large Load Diff

View File

@ -22,223 +22,124 @@ module Google
module Apis module Apis
module LoggingV2beta1 module LoggingV2beta1
class Empty
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class WriteLogEntriesRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MonitoredResource
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LogEntry
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class HttpRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LogEntryOperation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class WriteLogEntriesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListLogEntriesRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListLogEntriesResponse class ListLogEntriesResponse
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 Status
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListMonitoredResourceDescriptorsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MonitoredResourceDescriptor
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LabelDescriptor
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListSinksResponse class ListSinksResponse
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 LogSink
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListLogMetricsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LogMetric
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RequestLog
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LogLine
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SourceLocation class SourceLocation
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 LogSink
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LogMetric
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LogEntry
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LogLine
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SourceReference class SourceReference
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 MonitoredResource
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
end include Google::Apis::Core::JsonObjectSupport
end end
class WriteLogEntriesRequest class WriteLogEntriesRequest
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
property :log_name, as: 'logName'
property :resource, as: 'resource', class: Google::Apis::LoggingV2beta1::MonitoredResource, decorator: Google::Apis::LoggingV2beta1::MonitoredResource::Representation
hash :labels, as: 'labels' include Google::Apis::Core::JsonObjectSupport
collection :entries, as: 'entries', class: Google::Apis::LoggingV2beta1::LogEntry, decorator: Google::Apis::LoggingV2beta1::LogEntry::Representation
property :partial_success, as: 'partialSuccess'
end
end end
class MonitoredResource class LabelDescriptor
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
property :type, as: 'type' include Google::Apis::Core::JsonObjectSupport
hash :labels, as: 'labels'
end
end end
class LogEntry class ListLogMetricsResponse
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
property :log_name, as: 'logName'
property :resource, as: 'resource', class: Google::Apis::LoggingV2beta1::MonitoredResource, decorator: Google::Apis::LoggingV2beta1::MonitoredResource::Representation
hash :proto_payload, as: 'protoPayload' include Google::Apis::Core::JsonObjectSupport
property :text_payload, as: 'textPayload'
hash :json_payload, as: 'jsonPayload'
property :timestamp, as: 'timestamp'
property :severity, as: 'severity'
property :insert_id, as: 'insertId'
property :http_request, as: 'httpRequest', class: Google::Apis::LoggingV2beta1::HttpRequest, decorator: Google::Apis::LoggingV2beta1::HttpRequest::Representation
hash :labels, as: 'labels'
property :operation, as: 'operation', class: Google::Apis::LoggingV2beta1::LogEntryOperation, decorator: Google::Apis::LoggingV2beta1::LogEntryOperation::Representation
end
end end
class HttpRequest class MonitoredResourceDescriptor
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
property :request_method, as: 'requestMethod' include Google::Apis::Core::JsonObjectSupport
property :request_url, as: 'requestUrl' end
property :request_size, as: 'requestSize'
property :status, as: 'status' class ListMonitoredResourceDescriptorsResponse
property :response_size, as: 'responseSize' class Representation < Google::Apis::Core::JsonRepresentation; end
property :user_agent, as: 'userAgent'
property :remote_ip, as: 'remoteIp' include Google::Apis::Core::JsonObjectSupport
property :referer, as: 'referer'
property :cache_lookup, as: 'cacheLookup'
property :cache_hit, as: 'cacheHit'
property :cache_validated_with_origin_server, as: 'cacheValidatedWithOriginServer'
property :cache_fill_bytes, as: 'cacheFillBytes'
end
end end
class LogEntryOperation class LogEntryOperation
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id' include Google::Apis::Core::JsonObjectSupport
property :producer, as: 'producer' end
property :first, as: 'first'
property :last, as: 'last' class Empty
end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class HttpRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RequestLog
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end end
class WriteLogEntriesResponse class WriteLogEntriesResponse
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
end include Google::Apis::Core::JsonObjectSupport
end end
class ListLogEntriesRequest class ListLogEntriesRequest
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
collection :project_ids, as: 'projectIds' include Google::Apis::Core::JsonObjectSupport
property :filter, as: 'filter'
property :order_by, as: 'orderBy'
property :page_size, as: 'pageSize'
property :page_token, as: 'pageToken'
property :partial_success, as: 'partialSuccess'
end
end end
class ListLogEntriesResponse class ListLogEntriesResponse
@ -247,37 +148,104 @@ module Google
collection :entries, as: 'entries', class: Google::Apis::LoggingV2beta1::LogEntry, decorator: Google::Apis::LoggingV2beta1::LogEntry::Representation collection :entries, as: 'entries', class: Google::Apis::LoggingV2beta1::LogEntry, decorator: Google::Apis::LoggingV2beta1::LogEntry::Representation
property :next_page_token, as: 'nextPageToken' property :next_page_token, as: 'nextPageToken'
hash :project_id_errors, as: 'projectIdErrors', class: Google::Apis::LoggingV2beta1::Status, decorator: Google::Apis::LoggingV2beta1::Status::Representation
end end
end end
class Status class ListSinksResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
property :message, as: 'message'
collection :details, as: 'details'
end
end
class ListMonitoredResourceDescriptorsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :resource_descriptors, as: 'resourceDescriptors', class: Google::Apis::LoggingV2beta1::MonitoredResourceDescriptor, decorator: Google::Apis::LoggingV2beta1::MonitoredResourceDescriptor::Representation
property :next_page_token, as: 'nextPageToken' property :next_page_token, as: 'nextPageToken'
collection :sinks, as: 'sinks', class: Google::Apis::LoggingV2beta1::LogSink, decorator: Google::Apis::LoggingV2beta1::LogSink::Representation
end end
end end
class MonitoredResourceDescriptor class SourceLocation
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :file, as: 'file'
property :function_name, as: 'functionName'
property :line, as: 'line'
end
end
class LogSink
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :writer_identity, as: 'writerIdentity'
property :filter, as: 'filter'
property :destination, as: 'destination'
property :output_version_format, as: 'outputVersionFormat'
property :name, as: 'name' property :name, as: 'name'
property :type, as: 'type' end
property :display_name, as: 'displayName' end
class LogMetric
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description' property :description, as: 'description'
collection :labels, as: 'labels', class: Google::Apis::LoggingV2beta1::LabelDescriptor, decorator: Google::Apis::LoggingV2beta1::LabelDescriptor::Representation property :filter, as: 'filter'
property :name, as: 'name'
property :version, as: 'version'
end
end
class LogEntry
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :text_payload, as: 'textPayload'
property :http_request, as: 'httpRequest', class: Google::Apis::LoggingV2beta1::HttpRequest, decorator: Google::Apis::LoggingV2beta1::HttpRequest::Representation
hash :json_payload, as: 'jsonPayload'
hash :labels, as: 'labels'
property :log_name, as: 'logName'
property :severity, as: 'severity'
property :resource, as: 'resource', class: Google::Apis::LoggingV2beta1::MonitoredResource, decorator: Google::Apis::LoggingV2beta1::MonitoredResource::Representation
hash :proto_payload, as: 'protoPayload'
property :timestamp, as: 'timestamp'
property :insert_id, as: 'insertId'
property :operation, as: 'operation', class: Google::Apis::LoggingV2beta1::LogEntryOperation, decorator: Google::Apis::LoggingV2beta1::LogEntryOperation::Representation
end
end
class LogLine
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :time, as: 'time'
property :severity, as: 'severity'
property :source_location, as: 'sourceLocation', class: Google::Apis::LoggingV2beta1::SourceLocation, decorator: Google::Apis::LoggingV2beta1::SourceLocation::Representation
property :log_message, as: 'logMessage'
end
end
class SourceReference
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :repository, as: 'repository'
property :revision_id, as: 'revisionId'
end
end
class MonitoredResource
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :labels, as: 'labels'
property :type, as: 'type'
end
end
class WriteLogEntriesRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :labels, as: 'labels'
collection :entries, as: 'entries', class: Google::Apis::LoggingV2beta1::LogEntry, decorator: Google::Apis::LoggingV2beta1::LogEntry::Representation
property :log_name, as: 'logName'
property :partial_success, as: 'partialSuccess'
property :resource, as: 'resource', class: Google::Apis::LoggingV2beta1::MonitoredResource, decorator: Google::Apis::LoggingV2beta1::MonitoredResource::Representation
end end
end end
@ -285,28 +253,9 @@ module Google
class LabelDescriptor class LabelDescriptor
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :key, as: 'key'
property :value_type, as: 'valueType'
property :description, as: 'description' property :description, as: 'description'
end property :value_type, as: 'valueType'
end property :key, as: 'key'
class ListSinksResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :sinks, as: 'sinks', class: Google::Apis::LoggingV2beta1::LogSink, decorator: Google::Apis::LoggingV2beta1::LogSink::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class LogSink
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :destination, as: 'destination'
property :filter, as: 'filter'
property :output_version_format, as: 'outputVersionFormat'
end end
end end
@ -319,80 +268,118 @@ module Google
end end
end end
class LogMetric class MonitoredResourceDescriptor
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name' property :display_name, as: 'displayName'
property :description, as: 'description' property :description, as: 'description'
property :filter, as: 'filter' collection :labels, as: 'labels', class: Google::Apis::LoggingV2beta1::LabelDescriptor, decorator: Google::Apis::LoggingV2beta1::LabelDescriptor::Representation
property :type, as: 'type'
property :name, as: 'name'
end
end
class ListMonitoredResourceDescriptorsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :resource_descriptors, as: 'resourceDescriptors', class: Google::Apis::LoggingV2beta1::MonitoredResourceDescriptor, decorator: Google::Apis::LoggingV2beta1::MonitoredResourceDescriptor::Representation
end
end
class LogEntryOperation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :producer, as: 'producer'
property :last, as: 'last'
property :first, as: 'first'
property :id, as: 'id'
end
end
class Empty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class HttpRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :cache_lookup, as: 'cacheLookup'
property :response_size, as: 'responseSize'
property :status, as: 'status'
property :cache_validated_with_origin_server, as: 'cacheValidatedWithOriginServer'
property :referer, as: 'referer'
property :cache_hit, as: 'cacheHit'
property :request_url, as: 'requestUrl'
property :latency, as: 'latency'
property :cache_fill_bytes, as: 'cacheFillBytes'
property :request_method, as: 'requestMethod'
property :remote_ip, as: 'remoteIp'
property :server_ip, as: 'serverIp'
property :user_agent, as: 'userAgent'
property :request_size, as: 'requestSize'
end end
end end
class RequestLog class RequestLog
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :app_id, as: 'appId'
property :module_id, as: 'moduleId'
property :version_id, as: 'versionId'
property :request_id, as: 'requestId'
property :ip, as: 'ip'
property :start_time, as: 'startTime'
property :end_time, as: 'endTime'
property :latency, as: 'latency'
property :mega_cycles, as: 'megaCycles'
property :method_prop, as: 'method'
property :resource, as: 'resource'
property :http_version, as: 'httpVersion'
property :status, as: 'status'
property :response_size, as: 'responseSize' property :response_size, as: 'responseSize'
property :referrer, as: 'referrer' property :request_id, as: 'requestId'
property :user_agent, as: 'userAgent' property :first, as: 'first'
property :nickname, as: 'nickname' property :method_prop, as: 'method'
property :url_map_entry, as: 'urlMapEntry' property :version_id, as: 'versionId'
property :host, as: 'host' property :status, as: 'status'
property :cost, as: 'cost'
property :task_queue_name, as: 'taskQueueName'
property :task_name, as: 'taskName'
property :was_loading_request, as: 'wasLoadingRequest' property :was_loading_request, as: 'wasLoadingRequest'
property :ip, as: 'ip'
property :nickname, as: 'nickname'
property :task_queue_name, as: 'taskQueueName'
property :pending_time, as: 'pendingTime' property :pending_time, as: 'pendingTime'
property :instance_index, as: 'instanceIndex' property :instance_index, as: 'instanceIndex'
property :finished, as: 'finished'
property :first, as: 'first'
property :instance_id, as: 'instanceId'
collection :line, as: 'line', class: Google::Apis::LoggingV2beta1::LogLine, decorator: Google::Apis::LoggingV2beta1::LogLine::Representation
property :app_engine_release, as: 'appEngineRelease'
property :trace_id, as: 'traceId'
collection :source_reference, as: 'sourceReference', class: Google::Apis::LoggingV2beta1::SourceReference, decorator: Google::Apis::LoggingV2beta1::SourceReference::Representation collection :source_reference, as: 'sourceReference', class: Google::Apis::LoggingV2beta1::SourceReference, decorator: Google::Apis::LoggingV2beta1::SourceReference::Representation
property :module_id, as: 'moduleId'
property :host, as: 'host'
property :latency, as: 'latency'
property :url_map_entry, as: 'urlMapEntry'
property :end_time, as: 'endTime'
collection :line, as: 'line', class: Google::Apis::LoggingV2beta1::LogLine, decorator: Google::Apis::LoggingV2beta1::LogLine::Representation
property :mega_cycles, as: 'megaCycles'
property :app_id, as: 'appId'
property :trace_id, as: 'traceId'
property :task_name, as: 'taskName'
property :cost, as: 'cost'
property :instance_id, as: 'instanceId'
property :start_time, as: 'startTime'
property :app_engine_release, as: 'appEngineRelease'
property :resource, as: 'resource'
property :http_version, as: 'httpVersion'
property :referrer, as: 'referrer'
property :user_agent, as: 'userAgent'
property :finished, as: 'finished'
end end
end end
class LogLine class WriteLogEntriesResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :time, as: 'time'
property :severity, as: 'severity'
property :log_message, as: 'logMessage'
property :source_location, as: 'sourceLocation', class: Google::Apis::LoggingV2beta1::SourceLocation, decorator: Google::Apis::LoggingV2beta1::SourceLocation::Representation
end end
end end
class SourceLocation class ListLogEntriesRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :file, as: 'file' property :filter, as: 'filter'
property :line, as: 'line' collection :project_ids, as: 'projectIds'
property :function_name, as: 'functionName' collection :resource_names, as: 'resourceNames'
end property :page_size, as: 'pageSize'
end property :order_by, as: 'orderBy'
property :page_token, as: 'pageToken'
class SourceReference
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :repository, as: 'repository'
property :revision_id, as: 'revisionId'
end end
end end
end end

View File

@ -20,9 +20,9 @@ require 'google/apis/errors'
module Google module Google
module Apis module Apis
module LoggingV2beta1 module LoggingV2beta1
# Google Cloud Logging API # Stackdriver Logging API
# #
# Writes log entries and manages your logs, log sinks, and logs-based metrics. # Writes log entries and manages your Stackdriver Logging configuration.
# #
# @example # @example
# require 'google/apis/logging_v2beta1' # require 'google/apis/logging_v2beta1'
@ -46,232 +46,127 @@ module Google
super('https://logging.googleapis.com/', '') super('https://logging.googleapis.com/', '')
end end
# Deletes a log and all its log entries. The log will reappear if it receives # Creates or updates a logs-based metric.
# new entries. # @param [String] metric_name
# @param [String] log_name # The resource name of the metric to update.
# Required. The resource name of the log to delete. Example: `"projects/my- # Example: `"projects/my-project-id/metrics/my-metric-id"`.
# project/logs/syslog"`. # The updated metric must be provided in the request and have the
# @param [String] fields # same identifier that is specified in `metricName`.
# Selector specifying which fields to include in a partial response. # If the metric does not exist, it is created.
# @param [Google::Apis::LoggingV2beta1::LogMetric] log_metric_object
# @param [String] quota_user # @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any # 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. # 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 # @param [Google::Apis::RequestOptions] options
# Request-specific options # Request-specific options
# #
# @yield [result, err] Result & error if block supplied # @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::LoggingV2beta1::Empty] parsed result object # @yieldparam result [Google::Apis::LoggingV2beta1::LogMetric] parsed result object
# @yieldparam err [StandardError] error object if request failed # @yieldparam err [StandardError] error object if request failed
# #
# @return [Google::Apis::LoggingV2beta1::Empty] # @return [Google::Apis::LoggingV2beta1::LogMetric]
# #
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_log(log_name, fields: nil, quota_user: nil, options: nil, &block) def update_project_metric(metric_name, log_metric_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:delete, 'v2beta1/{+logName}', options) command = make_simple_command(:put, 'v2beta1/{+metricName}', options)
command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation command.request_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
command.response_class = Google::Apis::LoggingV2beta1::Empty command.request_object = log_metric_object
command.params['logName'] = log_name unless log_name.nil? command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
command.query['fields'] = fields unless fields.nil? command.response_class = Google::Apis::LoggingV2beta1::LogMetric
command.params['metricName'] = metric_name unless metric_name.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Lists sinks. # Gets a logs-based metric.
# @param [String] project_name # @param [String] metric_name
# Required. The resource name of the project containing the sinks. Example: `" # The resource name of the desired metric.
# projects/my-logging-project"`. # Example: `"projects/my-project-id/metrics/my-metric-id"`.
# @param [String] page_token
# Optional. If the `pageToken` parameter is supplied, then the next page of
# results is retrieved. The `pageToken` parameter must be set to the value of
# the `nextPageToken` from the previous response. The value of `projectName`
# must be the same as in the previous request.
# @param [Fixnum] page_size
# Optional. The maximum number of results to return from this request. You must
# check for presence of `nextPageToken` to determine if additional results are
# available, which you can retrieve by passing the `nextPageToken` value as the `
# pageToken` parameter in the next request.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any # 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. # 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 # @param [Google::Apis::RequestOptions] options
# Request-specific options # Request-specific options
# #
# @yield [result, err] Result & error if block supplied # @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::LoggingV2beta1::ListSinksResponse] parsed result object # @yieldparam result [Google::Apis::LoggingV2beta1::LogMetric] parsed result object
# @yieldparam err [StandardError] error object if request failed # @yieldparam err [StandardError] error object if request failed
# #
# @return [Google::Apis::LoggingV2beta1::ListSinksResponse] # @return [Google::Apis::LoggingV2beta1::LogMetric]
# #
# @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_project_sinks(project_name, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) def get_project_metric(metric_name, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v2beta1/{+projectName}/sinks', options) command = make_simple_command(:get, 'v2beta1/{+metricName}', options)
command.response_representation = Google::Apis::LoggingV2beta1::ListSinksResponse::Representation command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
command.response_class = Google::Apis::LoggingV2beta1::ListSinksResponse command.response_class = Google::Apis::LoggingV2beta1::LogMetric
command.params['projectName'] = project_name unless project_name.nil? command.params['metricName'] = metric_name unless metric_name.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['pageSize'] = page_size unless page_size.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['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets a sink. # Creates a logs-based metric.
# @param [String] sink_name # @param [String] parent
# The resource name of the sink to return. Example: `"projects/my-project-id/ # The resource name of the project in which to create the metric.
# sinks/my-sink-id"`. # Example: `"projects/my-project-id"`.
# @param [String] fields # The new metric must be provided in the request.
# Selector specifying which fields to include in a partial response. # @param [Google::Apis::LoggingV2beta1::LogMetric] log_metric_object
# @param [String] quota_user # @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any # 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. # 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 # @param [Google::Apis::RequestOptions] options
# Request-specific options # Request-specific options
# #
# @yield [result, err] Result & error if block supplied # @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::LoggingV2beta1::LogSink] parsed result object # @yieldparam result [Google::Apis::LoggingV2beta1::LogMetric] parsed result object
# @yieldparam err [StandardError] error object if request failed # @yieldparam err [StandardError] error object if request failed
# #
# @return [Google::Apis::LoggingV2beta1::LogSink] # @return [Google::Apis::LoggingV2beta1::LogMetric]
# #
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block) def create_project_metric(parent, log_metric_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v2beta1/{+sinkName}', options) command = make_simple_command(:post, 'v2beta1/{+parent}/metrics', options)
command.response_representation = Google::Apis::LoggingV2beta1::LogSink::Representation command.request_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
command.response_class = Google::Apis::LoggingV2beta1::LogSink command.request_object = log_metric_object
command.params['sinkName'] = sink_name unless sink_name.nil? command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
command.query['fields'] = fields unless fields.nil? command.response_class = Google::Apis::LoggingV2beta1::LogMetric
command.params['parent'] = parent unless parent.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates a sink.
# @param [String] project_name
# The resource name of the project in which to create the sink. Example: `"
# projects/my-project-id"`. The new sink must be provided in the request.
# @param [Google::Apis::LoggingV2beta1::LogSink] log_sink_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::LoggingV2beta1::LogSink] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::LoggingV2beta1::LogSink]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_project_sink(project_name, log_sink_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2beta1/{+projectName}/sinks', options)
command.request_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
command.request_object = log_sink_object
command.response_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
command.response_class = Google::Apis::LoggingV2beta1::LogSink
command.params['projectName'] = project_name unless project_name.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates or updates a sink.
# @param [String] sink_name
# The resource name of the sink to update. Example: `"projects/my-project-id/
# sinks/my-sink-id"`. The updated sink must be provided in the request and have
# the same name that is specified in `sinkName`. If the sink does not exist, it
# is created.
# @param [Google::Apis::LoggingV2beta1::LogSink] log_sink_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::LoggingV2beta1::LogSink] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::LoggingV2beta1::LogSink]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def update_project_sink(sink_name, log_sink_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:put, 'v2beta1/{+sinkName}', options)
command.request_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
command.request_object = log_sink_object
command.response_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
command.response_class = Google::Apis::LoggingV2beta1::LogSink
command.params['sinkName'] = sink_name unless sink_name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Deletes a sink.
# @param [String] sink_name
# The resource name of the sink to delete. Example: `"projects/my-project-id/
# sinks/my-sink-id"`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::LoggingV2beta1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::LoggingV2beta1::Empty]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_project_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v2beta1/{+sinkName}', options)
command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
command.response_class = Google::Apis::LoggingV2beta1::Empty
command.params['sinkName'] = sink_name unless sink_name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Lists logs-based metrics. # Lists logs-based metrics.
# @param [String] project_name # @param [String] parent
# Required. The resource name of the project containing the metrics. Example: `" # Required. The resource name containing the metrics.
# projects/my-project-id"`. # Example: `"projects/my-project-id"`.
# @param [String] page_token
# Optional. If the `pageToken` parameter is supplied, then the next page of
# results is retrieved. The `pageToken` parameter must be set to the value of
# the `nextPageToken` from the previous response. The value of `projectName`
# must be the same as in the previous request.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Optional. The maximum number of results to return from this request. You must # Optional. The maximum number of results to return from this request.
# check for presence of `nextPageToken` to determine if additional results are # Non-positive values are ignored. The presence of `nextPageToken` in the
# available, which you can retrieve by passing the `nextPageToken` value as the ` # response indicates that more results might be available.
# pageToken` parameter in the next request. # @param [String] page_token
# @param [String] fields # Optional. If present, then retrieve the next batch of results from the
# Selector specifying which fields to include in a partial response. # preceding call to this method. `pageToken` must be the value of
# `nextPageToken` from the previous response. The values of other method
# parameters should be identical to those in the previous call.
# @param [String] quota_user # @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any # 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. # 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 # @param [Google::Apis::RequestOptions] options
# Request-specific options # Request-specific options
# #
@ -284,128 +179,27 @@ 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_project_metrics(project_name, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) def list_project_metrics(parent, page_size: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v2beta1/{+projectName}/metrics', options) command = make_simple_command(:get, 'v2beta1/{+parent}/metrics', options)
command.response_representation = Google::Apis::LoggingV2beta1::ListLogMetricsResponse::Representation command.response_representation = Google::Apis::LoggingV2beta1::ListLogMetricsResponse::Representation
command.response_class = Google::Apis::LoggingV2beta1::ListLogMetricsResponse command.response_class = Google::Apis::LoggingV2beta1::ListLogMetricsResponse
command.params['projectName'] = project_name unless project_name.nil? command.params['parent'] = parent unless parent.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['pageSize'] = page_size unless page_size.nil? command.query['pageSize'] = page_size unless page_size.nil?
command.query['fields'] = fields unless fields.nil? command.query['pageToken'] = page_token unless page_token.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets a logs-based metric.
# @param [String] metric_name
# The resource name of the desired metric. Example: `"projects/my-project-id/
# metrics/my-metric-id"`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::LoggingV2beta1::LogMetric] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::LoggingV2beta1::LogMetric]
#
# @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_project_metric(metric_name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2beta1/{+metricName}', options)
command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
command.response_class = Google::Apis::LoggingV2beta1::LogMetric
command.params['metricName'] = metric_name unless metric_name.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates a logs-based metric.
# @param [String] project_name
# The resource name of the project in which to create the metric. Example: `"
# projects/my-project-id"`. The new metric must be provided in the request.
# @param [Google::Apis::LoggingV2beta1::LogMetric] log_metric_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::LoggingV2beta1::LogMetric] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::LoggingV2beta1::LogMetric]
#
# @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_project_metric(project_name, log_metric_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2beta1/{+projectName}/metrics', options)
command.request_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
command.request_object = log_metric_object
command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
command.response_class = Google::Apis::LoggingV2beta1::LogMetric
command.params['projectName'] = project_name unless project_name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates or updates a logs-based metric.
# @param [String] metric_name
# The resource name of the metric to update. Example: `"projects/my-project-id/
# metrics/my-metric-id"`. The updated metric must be provided in the request and
# have the same identifier that is specified in `metricName`. If the metric does
# not exist, it is created.
# @param [Google::Apis::LoggingV2beta1::LogMetric] log_metric_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::LoggingV2beta1::LogMetric] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::LoggingV2beta1::LogMetric]
#
# @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_project_metric(metric_name, log_metric_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:put, 'v2beta1/{+metricName}', options)
command.request_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
command.request_object = log_metric_object
command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
command.response_class = Google::Apis::LoggingV2beta1::LogMetric
command.params['metricName'] = metric_name unless metric_name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Deletes a logs-based metric. # Deletes a logs-based metric.
# @param [String] metric_name # @param [String] metric_name
# The resource name of the metric to delete. Example: `"projects/my-project-id/ # The resource name of the metric to delete.
# metrics/my-metric-id"`. # Example: `"projects/my-project-id/metrics/my-metric-id"`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any # 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. # 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 # @param [Google::Apis::RequestOptions] options
# Request-specific options # Request-specific options
# #
@ -418,24 +212,264 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_project_metric(metric_name, fields: nil, quota_user: nil, options: nil, &block) def delete_project_metric(metric_name, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:delete, 'v2beta1/{+metricName}', options) command = make_simple_command(:delete, 'v2beta1/{+metricName}', options)
command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
command.response_class = Google::Apis::LoggingV2beta1::Empty command.response_class = Google::Apis::LoggingV2beta1::Empty
command.params['metricName'] = metric_name unless metric_name.nil? command.params['metricName'] = metric_name unless metric_name.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['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Writes log entries to Cloud Logging. All log entries in Cloud Logging are # Deletes a log and all its log entries.
# written by this method. # The log will reappear if it receives new entries.
# @param [Google::Apis::LoggingV2beta1::WriteLogEntriesRequest] write_log_entries_request_object # @param [String] log_name
# @param [String] fields # Required. The resource name of the log to delete. Example:
# Selector specifying which fields to include in a partial response. # `"projects/my-project/logs/syslog"`.
# @param [String] quota_user # @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any # 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. # 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::LoggingV2beta1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::LoggingV2beta1::Empty]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_log(log_name, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:delete, 'v2beta1/{+logName}', options)
command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
command.response_class = Google::Apis::LoggingV2beta1::Empty
command.params['logName'] = log_name unless log_name.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 or creates a sink.
# @param [String] sink_name
# Required. The resource name of the sink to update, including the parent
# resource and the sink identifier. If the sink does not exist, this method
# creates the sink. Example: `"projects/my-project-id/sinks/my-sink-id"`.
# @param [Google::Apis::LoggingV2beta1::LogSink] log_sink_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::LoggingV2beta1::LogSink] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::LoggingV2beta1::LogSink]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def update_project_sink(sink_name, log_sink_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:put, 'v2beta1/{+sinkName}', options)
command.request_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
command.request_object = log_sink_object
command.response_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
command.response_class = Google::Apis::LoggingV2beta1::LogSink
command.params['sinkName'] = sink_name unless sink_name.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 sink.
# @param [String] sink_name
# Required. The resource name of the sink to return.
# Example: `"projects/my-project-id/sinks/my-sink-id"`.
# @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::LoggingV2beta1::LogSink] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::LoggingV2beta1::LogSink]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_sink(sink_name, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v2beta1/{+sinkName}', options)
command.response_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
command.response_class = Google::Apis::LoggingV2beta1::LogSink
command.params['sinkName'] = sink_name unless sink_name.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 sink.
# @param [String] parent
# Required. The resource in which to create the sink.
# Example: `"projects/my-project-id"`.
# The new sink must be provided in the request.
# @param [Google::Apis::LoggingV2beta1::LogSink] log_sink_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::LoggingV2beta1::LogSink] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::LoggingV2beta1::LogSink]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_project_sink(parent, log_sink_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v2beta1/{+parent}/sinks', options)
command.request_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
command.request_object = log_sink_object
command.response_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
command.response_class = Google::Apis::LoggingV2beta1::LogSink
command.params['parent'] = parent unless parent.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 sinks.
# @param [String] parent
# Required. The cloud resource containing the sinks.
# Example: `"projects/my-logging-project"`.
# @param [Fixnum] page_size
# Optional. The maximum number of results to return from this request.
# Non-positive values are ignored. The presence of `nextPageToken` in the
# response indicates that more results might be available.
# @param [String] page_token
# Optional. If present, then retrieve the next batch of results from the
# preceding call to this method. `pageToken` must be the value of
# `nextPageToken` from the previous response. The values of other method
# parameters should be identical to those in the previous call.
# @param [String] 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::LoggingV2beta1::ListSinksResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::LoggingV2beta1::ListSinksResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_sinks(parent, page_size: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v2beta1/{+parent}/sinks', options)
command.response_representation = Google::Apis::LoggingV2beta1::ListSinksResponse::Representation
command.response_class = Google::Apis::LoggingV2beta1::ListSinksResponse
command.params['parent'] = parent unless parent.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Deletes a sink.
# @param [String] sink_name
# Required. The resource name of the sink to delete, including the parent
# resource and the sink identifier. Example:
# `"projects/my-project-id/sinks/my-sink-id"`. It is an error if the sink
# does not exist.
# @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::LoggingV2beta1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::LoggingV2beta1::Empty]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_project_sink(sink_name, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:delete, 'v2beta1/{+sinkName}', options)
command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
command.response_class = Google::Apis::LoggingV2beta1::Empty
command.params['sinkName'] = sink_name unless sink_name.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Deletes a log and all its log entries.
# The log will reappear if it receives new entries.
# @param [String] log_name
# Required. The resource name of the log to delete. Example:
# `"projects/my-project/logs/syslog"`.
# @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::LoggingV2beta1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::LoggingV2beta1::Empty]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_organization_log(log_name, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:delete, 'v2beta1/{+logName}', options)
command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
command.response_class = Google::Apis::LoggingV2beta1::Empty
command.params['logName'] = log_name unless log_name.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Writes log entries to Stackdriver Logging. All log entries are
# written by this method.
# @param [Google::Apis::LoggingV2beta1::WriteLogEntriesRequest] write_log_entries_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 # @param [Google::Apis::RequestOptions] options
# Request-specific options # Request-specific options
# #
@ -448,25 +482,26 @@ 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 write_entry_log_entries(write_log_entries_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) def write_entry_log_entries(write_log_entries_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v2beta1/entries:write', options) command = make_simple_command(:post, 'v2beta1/entries:write', options)
command.request_representation = Google::Apis::LoggingV2beta1::WriteLogEntriesRequest::Representation command.request_representation = Google::Apis::LoggingV2beta1::WriteLogEntriesRequest::Representation
command.request_object = write_log_entries_request_object command.request_object = write_log_entries_request_object
command.response_representation = Google::Apis::LoggingV2beta1::WriteLogEntriesResponse::Representation command.response_representation = Google::Apis::LoggingV2beta1::WriteLogEntriesResponse::Representation
command.response_class = Google::Apis::LoggingV2beta1::WriteLogEntriesResponse command.response_class = Google::Apis::LoggingV2beta1::WriteLogEntriesResponse
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['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Lists log entries. Use this method to retrieve log entries from Cloud Logging. # Lists log entries. Use this method to retrieve log entries from Cloud
# For ways to export log entries, see [Exporting Logs](/logging/docs/export). # Logging. For ways to export log entries, see
# [Exporting Logs](/logging/docs/export).
# @param [Google::Apis::LoggingV2beta1::ListLogEntriesRequest] list_log_entries_request_object # @param [Google::Apis::LoggingV2beta1::ListLogEntriesRequest] list_log_entries_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any # 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. # 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 # @param [Google::Apis::RequestOptions] options
# Request-specific options # Request-specific options
# #
@ -479,32 +514,32 @@ 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_entry_log_entries(list_log_entries_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) def list_entry_log_entries(list_log_entries_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v2beta1/entries:list', options) command = make_simple_command(:post, 'v2beta1/entries:list', options)
command.request_representation = Google::Apis::LoggingV2beta1::ListLogEntriesRequest::Representation command.request_representation = Google::Apis::LoggingV2beta1::ListLogEntriesRequest::Representation
command.request_object = list_log_entries_request_object command.request_object = list_log_entries_request_object
command.response_representation = Google::Apis::LoggingV2beta1::ListLogEntriesResponse::Representation command.response_representation = Google::Apis::LoggingV2beta1::ListLogEntriesResponse::Representation
command.response_class = Google::Apis::LoggingV2beta1::ListLogEntriesResponse command.response_class = Google::Apis::LoggingV2beta1::ListLogEntriesResponse
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['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Lists monitored resource descriptors that are used by Cloud Logging. # Lists the monitored resource descriptors used by Stackdriver Logging.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Optional. The maximum number of results to return from this request. You must # Optional. The maximum number of results to return from this request.
# check for presence of `nextPageToken` to determine if additional results are # Non-positive values are ignored. The presence of `nextPageToken` in the
# available, which you can retrieve by passing the `nextPageToken` value as the ` # response indicates that more results might be available.
# pageToken` parameter in the next request.
# @param [String] page_token # @param [String] page_token
# Optional. If the `pageToken` parameter is supplied, then the next page of # Optional. If present, then retrieve the next batch of results from the
# results is retrieved. The `pageToken` parameter must be set to the value of # preceding call to this method. `pageToken` must be the value of
# the `nextPageToken` from the previous response. # `nextPageToken` from the previous response. The values of other method
# @param [String] fields # parameters should be identical to those in the previous call.
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any # 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. # 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 # @param [Google::Apis::RequestOptions] options
# Request-specific options # Request-specific options
# #
@ -517,14 +552,46 @@ 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_monitored_resource_descriptors(page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) def list_monitored_resource_descriptors(page_size: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v2beta1/monitoredResourceDescriptors', options) command = make_simple_command(:get, 'v2beta1/monitoredResourceDescriptors', options)
command.response_representation = Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse::Representation command.response_representation = Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse::Representation
command.response_class = Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse command.response_class = Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse
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['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Deletes a log and all its log entries.
# The log will reappear if it receives new entries.
# @param [String] log_name
# Required. The resource name of the log to delete. Example:
# `"projects/my-project/logs/syslog"`.
# @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::LoggingV2beta1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::LoggingV2beta1::Empty]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_billing_account_log(log_name, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:delete, 'v2beta1/{+logName}', options)
command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
command.response_class = Google::Apis::LoggingV2beta1::Empty
command.params['logName'] = log_name unless log_name.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end

View File

@ -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 = '20160912' 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'

View File

@ -269,7 +269,8 @@ module Google
# A collection of data points that describes the time-varying values of a metric. # A collection of data points that describes the time-varying values of a metric.
# A time series is identified by a combination of a fully-specified monitored # A time series is identified by a combination of a fully-specified monitored
# resource and a fully-specified metric. # resource and a fully-specified metric. This type is used for both listing and
# creating time series.
class TimeSeries class TimeSeries
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -279,17 +280,21 @@ module Google
# @return [Google::Apis::MonitoringV3::Metric] # @return [Google::Apis::MonitoringV3::Metric]
attr_accessor :metric attr_accessor :metric
# The data points of this time series. The order of the points is specified when # The data points of this time series. When listing time series, the order of
# you retrieve the time series. # the points is specified by the list method.When creating a time series, this
# field must contain exactly one point and the point's type must be the same as
# the value type of the associated metric. If the associated metric's descriptor
# must be auto-created, then the value type of the descriptor is determined by
# the point's type, which must be BOOL, INT64, DOUBLE, or DISTRIBUTION.
# Corresponds to the JSON property `points` # Corresponds to the JSON property `points`
# @return [Array<Google::Apis::MonitoringV3::Point>] # @return [Array<Google::Apis::MonitoringV3::Point>]
attr_accessor :points attr_accessor :points
# The value type of the time series. This can be different than the value type # The value type of the time series. When listing time series, this value type
# of the metric object if this time series is an alignment or reduction of other # might be different from the value type of the associated metric if this time
# time series. When writing data to a time series, this field is optional, and, # series is an alignment or reduction of other time series.When creating a time
# when specified, must match the value type of the metric descriptor. If a # series, this field is optional. If present, it must be the same as the type of
# metric descriptor is auto-created, its value type will match this field. # the data in the points field.
# Corresponds to the JSON property `valueType` # Corresponds to the JSON property `valueType`
# @return [String] # @return [String]
attr_accessor :value_type attr_accessor :value_type
@ -310,11 +315,13 @@ module Google
# @return [Google::Apis::MonitoringV3::MonitoredResource] # @return [Google::Apis::MonitoringV3::MonitoredResource]
attr_accessor :resource attr_accessor :resource
# The metric kind of the time series. This can be different than the metric kind # The metric kind of the time series. When listing time series, this metric kind
# of the metric object if this time series is an alignment or reduction of other # might be different from the metric kind of the associated metric if this time
# time series. When writing data to a time series, this field is optional, and, # series is an alignment or reduction of other time series.When creating a time
# when specified, must match the metric kind of the metric descriptor. If a # series, this field is optional. If present, it must be the same as the metric
# metric descriptor is auto-created, its metric kind will match this field. # kind of the associated metric. If the associated metric's descriptor must be
# auto-created, then this field specifies the metric kind of the new descriptor
# and must be either GAUGE (the default) or CUMULATIVE.
# Corresponds to the JSON property `metricKind` # Corresponds to the JSON property `metricKind`
# @return [String] # @return [String]
attr_accessor :metric_kind attr_accessor :metric_kind

View File

@ -49,7 +49,7 @@ module Google
end end
# Stackdriver Monitoring Agent only: Creates a new time series.<aside class=" # Stackdriver Monitoring Agent only: Creates a new time series.<aside class="
# caution">This method is only for use by the Google Monitoring Agent. Use # caution">This method is only for use by the Stackdriver Monitoring Agent. Use
# projects.timeSeries.create instead.</aside> # projects.timeSeries.create instead.</aside>
# @param [String] name # @param [String] name
# The project in which to create the time series. The format is &quot;projects/ # The project in which to create the time series. The format is &quot;projects/

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/accounts/docs/OAuth2 # @see https://developers.google.com/accounts/docs/OAuth2
module Oauth2V2 module Oauth2V2
VERSION = 'V2' VERSION = 'V2'
REVISION = '20160912' REVISION = '20160915'
# 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'

View File

@ -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 = '20160917' 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'

View File

@ -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 = '20160917' 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'

View File

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

View File

@ -141,8 +141,8 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The set of permissions to check for the `resource`. Permissions with wildcards # The set of permissions to check for the `resource`. Permissions with wildcards
# (such as '*' or 'storage.*') are not allowed. For more information see IAM # (such as '*' or 'storage.*') are not allowed. For more information see [IAM
# Overview. # Overview](https://cloud.google.com/iam/docs/overview#permissions).
# Corresponds to the JSON property `permissions` # Corresponds to the JSON property `permissions`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :permissions attr_accessor :permissions
@ -223,8 +223,8 @@ module Google
class Message class Message
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The message payload. For JSON requests, the value of this field must be base64- # The message payload. For JSON requests, the value of this field must be [
# encoded. # base64-encoded](https://tools.ietf.org/html/rfc4648).
# Corresponds to the JSON property `data` # Corresponds to the JSON property `data`
# @return [String] # @return [String]
attr_accessor :data attr_accessor :data
@ -383,11 +383,12 @@ module Google
# an outstanding message and will not be delivered again during that time (on a # an outstanding message and will not be delivered again during that time (on a
# best-effort basis). For pull subscriptions, this value is used as the initial # best-effort basis). For pull subscriptions, this value is used as the initial
# value for the ack deadline. To override this value for a given message, call ` # value for the ack deadline. To override this value for a given message, call `
# ModifyAckDeadline` with the corresponding `ack_id` if using pull. For push # ModifyAckDeadline` with the corresponding `ack_id` if using pull. The maximum
# delivery, this value is also used to set the request timeout for the call to # custom deadline you can specify is 600 seconds (10 minutes). For push delivery,
# the push endpoint. If the subscriber never acknowledges the message, the Pub/ # this value is also used to set the request timeout for the call to the push
# Sub system will eventually redeliver the message. If this parameter is not set, # endpoint. If the subscriber never acknowledges the message, the Pub/Sub system
# the default value of 10 seconds is used. # will eventually redeliver the message. If this parameter is 0, a default value
# of 10 seconds is used.
# Corresponds to the JSON property `ackDeadlineSeconds` # Corresponds to the JSON property `ackDeadlineSeconds`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :ack_deadline_seconds attr_accessor :ack_deadline_seconds

View File

@ -50,9 +50,8 @@ module Google
# existing policy. # existing policy.
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy is being specified. `resource` is # REQUIRED: The resource for which the policy is being specified. `resource` is
# usually specified as a path, such as `projects/*project*/zones/*zone*/disks/* # usually specified as a path. For example, a Project resource is specified as `
# disk*`. The format for the path specified in this value is resource specific # projects/`project``.
# and is specified in the `setIamPolicy` documentation.
# @param [Google::Apis::PubsubV1::SetIamPolicyRequest] set_iam_policy_request_object # @param [Google::Apis::PubsubV1::SetIamPolicyRequest] set_iam_policy_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -83,13 +82,12 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets the access control policy for a `resource`. Returns an empty policy if # Gets the access control policy for a resource. Returns an empty policy if the
# the resource exists and does not have a policy set. # resource exists and does not have a policy set.
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy is being requested. `resource` is # REQUIRED: The resource for which the policy is being requested. `resource` is
# usually specified as a path, such as `projects/*project*/zones/*zone*/disks/* # usually specified as a path. For example, a Project resource is specified as `
# disk*`. The format for the path specified in this value is resource specific # projects/`project``.
# and is specified in the `getIamPolicy` documentation.
# @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
@ -120,9 +118,8 @@ module Google
# Returns permissions that a caller has on the specified resource. # Returns permissions that a caller has on the specified resource.
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy detail is being requested. ` # REQUIRED: The resource for which the policy detail is being requested. `
# resource` is usually specified as a path, such as `projects/*project*/zones/* # resource` is usually specified as a path. For example, a Project resource is
# zone*/disks/*disk*`. The format for the path specified in this value is # specified as `projects/`project``.
# resource specific and is specified in the `testIamPermissions` documentation.
# @param [Google::Apis::PubsubV1::TestIamPermissionsRequest] test_iam_permissions_request_object # @param [Google::Apis::PubsubV1::TestIamPermissionsRequest] test_iam_permissions_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -369,9 +366,8 @@ module Google
# existing policy. # existing policy.
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy is being specified. `resource` is # REQUIRED: The resource for which the policy is being specified. `resource` is
# usually specified as a path, such as `projects/*project*/zones/*zone*/disks/* # usually specified as a path. For example, a Project resource is specified as `
# disk*`. The format for the path specified in this value is resource specific # projects/`project``.
# and is specified in the `setIamPolicy` documentation.
# @param [Google::Apis::PubsubV1::SetIamPolicyRequest] set_iam_policy_request_object # @param [Google::Apis::PubsubV1::SetIamPolicyRequest] set_iam_policy_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -402,13 +398,12 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets the access control policy for a `resource`. Returns an empty policy if # Gets the access control policy for a resource. Returns an empty policy if the
# the resource exists and does not have a policy set. # resource exists and does not have a policy set.
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy is being requested. `resource` is # REQUIRED: The resource for which the policy is being requested. `resource` is
# usually specified as a path, such as `projects/*project*/zones/*zone*/disks/* # usually specified as a path. For example, a Project resource is specified as `
# disk*`. The format for the path specified in this value is resource specific # projects/`project``.
# and is specified in the `getIamPolicy` documentation.
# @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
@ -439,9 +434,8 @@ module Google
# Returns permissions that a caller has on the specified resource. # Returns permissions that a caller has on the specified resource.
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy detail is being requested. ` # REQUIRED: The resource for which the policy detail is being requested. `
# resource` is usually specified as a path, such as `projects/*project*/zones/* # resource` is usually specified as a path. For example, a Project resource is
# zone*/disks/*disk*`. The format for the path specified in this value is # specified as `projects/`project``.
# resource specific and is specified in the `testIamPermissions` documentation.
# @param [Google::Apis::PubsubV1::TestIamPermissionsRequest] test_iam_permissions_request_object # @param [Google::Apis::PubsubV1::TestIamPermissionsRequest] test_iam_permissions_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -475,7 +469,8 @@ module Google
# Creates a subscription to a given topic. If the subscription already exists, # Creates a subscription to a given topic. If the subscription already exists,
# returns `ALREADY_EXISTS`. If the corresponding topic doesn't exist, returns ` # returns `ALREADY_EXISTS`. If the corresponding topic doesn't exist, returns `
# NOT_FOUND`. If the name is not provided in the request, the server will assign # NOT_FOUND`. If the name is not provided in the request, the server will assign
# a random name for this subscription on the same project as the topic. # a random name for this subscription on the same project as the topic. Note
# that for REST API requests, you must specify a name.
# @param [String] name # @param [String] name
# The name of the subscription. It must have the format `"projects/`project`/ # The name of the subscription. It must have the format `"projects/`project`/
# subscriptions/`subscription`"`. ``subscription`` must start with a letter, and # subscriptions/`subscription`"`. ``subscription`` must start with a letter, and
@ -581,10 +576,10 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Deletes an existing subscription. All pending messages in the subscription are # Deletes an existing subscription. All messages retained in the subscription
# immediately dropped. Calls to `Pull` after deletion will return `NOT_FOUND`. # are immediately dropped. Calls to `Pull` after deletion will return `NOT_FOUND`
# After a subscription is deleted, a new one may be created with the same name, # . After a subscription is deleted, a new one may be created with the same name,
# but the new one has no association with the old subscription, or its topic # but the new one has no association with the old subscription or its topic
# unless the same topic is specified. # unless the same topic is specified.
# @param [String] subscription # @param [String] subscription
# The subscription to delete. # The subscription to delete.
@ -618,6 +613,8 @@ module Google
# Modifies the ack deadline for a specific message. This method is useful to # Modifies the ack deadline for a specific message. This method is useful to
# indicate that more time is needed to process a message by the subscriber, or # indicate that more time is needed to process a message by the subscriber, or
# to make the message available for redelivery if the processing was interrupted. # to make the message available for redelivery if the processing was interrupted.
# Note that this does not modify the subscription-level `ackDeadlineSeconds`
# used for subsequent messages.
# @param [String] subscription # @param [String] subscription
# The name of the subscription. # The name of the subscription.
# @param [Google::Apis::PubsubV1::ModifyAckDeadlineRequest] modify_ack_deadline_request_object # @param [Google::Apis::PubsubV1::ModifyAckDeadlineRequest] modify_ack_deadline_request_object
@ -759,6 +756,110 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Sets the access control policy on the specified resource. Replaces any
# existing policy.
# @param [String] resource
# REQUIRED: The resource for which the policy is being specified. `resource` is
# usually specified as a path. For example, a Project resource is specified as `
# projects/`project``.
# @param [Google::Apis::PubsubV1::SetIamPolicyRequest] set_iam_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::PubsubV1::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PubsubV1::Policy]
#
# @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 set_snapshot_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
command.request_representation = Google::Apis::PubsubV1::SetIamPolicyRequest::Representation
command.request_object = set_iam_policy_request_object
command.response_representation = Google::Apis::PubsubV1::Policy::Representation
command.response_class = Google::Apis::PubsubV1::Policy
command.params['resource'] = resource unless resource.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 access control policy for a resource. Returns an empty policy if the
# resource exists and does not have a policy set.
# @param [String] resource
# REQUIRED: The resource for which the policy is being requested. `resource` is
# usually specified as a path. For example, a Project resource is specified as `
# projects/`project``.
# @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::PubsubV1::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PubsubV1::Policy]
#
# @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_project_snapshot_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
command.response_representation = Google::Apis::PubsubV1::Policy::Representation
command.response_class = Google::Apis::PubsubV1::Policy
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns permissions that a caller has on the specified resource.
# @param [String] resource
# REQUIRED: The resource for which the policy detail is being requested. `
# resource` is usually specified as a path. For example, a Project resource is
# specified as `projects/`project``.
# @param [Google::Apis::PubsubV1::TestIamPermissionsRequest] test_iam_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::PubsubV1::TestIamPermissionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PubsubV1::TestIamPermissionsResponse]
#
# @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 test_snapshot_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
command.request_representation = Google::Apis::PubsubV1::TestIamPermissionsRequest::Representation
command.request_object = test_iam_permissions_request_object
command.response_representation = Google::Apis::PubsubV1::TestIamPermissionsResponse::Representation
command.response_class = Google::Apis::PubsubV1::TestIamPermissionsResponse
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
protected protected
def apply_command_defaults(command) def apply_command_defaults(command)

Some files were not shown because too many files have changed in this diff Show More