Regenerate APIs

This commit is contained in:
Steve Bazyl 2017-07-12 14:10:42 -06:00
parent 8246265dca
commit a9901b82e0
238 changed files with 68012 additions and 64176 deletions

View File

@ -1,3 +1,6 @@
# 0.13.1
* Regenerate APIs
# 0.13.0 # 0.13.0
* Regenerate APIs * Regenerate APIs
* Revert api\_names.yaml to an earlier revision to restore some manual name * Revert api\_names.yaml to an earlier revision to restore some manual name

File diff suppressed because it is too large Load Diff

View File

@ -22,6 +22,34 @@ module Google
module Apis module Apis
module AcceleratedmobilepageurlV1 module AcceleratedmobilepageurlV1
# Batch AMP URL response.
class BatchGetAmpUrlsResponse
include Google::Apis::Core::Hashable
# The errors for requested URLs that have no AMP URL.
# Corresponds to the JSON property `urlErrors`
# @return [Array<Google::Apis::AcceleratedmobilepageurlV1::AmpUrlError>]
attr_accessor :url_errors
# For each URL in BatchAmpUrlsRequest, the URL response. The response might
# not be in the same order as URLs in the batch request.
# If BatchAmpUrlsRequest contains duplicate URLs, AmpUrl is generated
# only once.
# Corresponds to the JSON property `ampUrls`
# @return [Array<Google::Apis::AcceleratedmobilepageurlV1::AmpUrl>]
attr_accessor :amp_urls
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@url_errors = args[:url_errors] if args.key?(:url_errors)
@amp_urls = args[:amp_urls] if args.key?(:amp_urls)
end
end
# AMP URL response for a requested URL. # AMP URL response for a requested URL.
class AmpUrl class AmpUrl
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -32,16 +60,16 @@ module Google
# @return [String] # @return [String]
attr_accessor :cdn_amp_url attr_accessor :cdn_amp_url
# The original non-AMP URL.
# Corresponds to the JSON property `originalUrl`
# @return [String]
attr_accessor :original_url
# The AMP URL pointing to the publisher's web server. # The AMP URL pointing to the publisher's web server.
# Corresponds to the JSON property `ampUrl` # Corresponds to the JSON property `ampUrl`
# @return [String] # @return [String]
attr_accessor :amp_url attr_accessor :amp_url
# The original non-AMP URL.
# Corresponds to the JSON property `originalUrl`
# @return [String]
attr_accessor :original_url
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -49,8 +77,8 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@cdn_amp_url = args[:cdn_amp_url] if args.key?(:cdn_amp_url) @cdn_amp_url = args[:cdn_amp_url] if args.key?(:cdn_amp_url)
@original_url = args[:original_url] if args.key?(:original_url)
@amp_url = args[:amp_url] if args.key?(:amp_url) @amp_url = args[:amp_url] if args.key?(:amp_url)
@original_url = args[:original_url] if args.key?(:original_url)
end end
end end
@ -58,6 +86,11 @@ module Google
class AmpUrlError class AmpUrlError
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# An optional descriptive error message.
# Corresponds to the JSON property `errorMessage`
# @return [String]
attr_accessor :error_message
# The error code of an API call. # The error code of an API call.
# Corresponds to the JSON property `errorCode` # Corresponds to the JSON property `errorCode`
# @return [String] # @return [String]
@ -68,20 +101,15 @@ module Google
# @return [String] # @return [String]
attr_accessor :original_url attr_accessor :original_url
# An optional descriptive error message.
# Corresponds to the JSON property `errorMessage`
# @return [String]
attr_accessor :error_message
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@error_message = args[:error_message] if args.key?(:error_message)
@error_code = args[:error_code] if args.key?(:error_code) @error_code = args[:error_code] if args.key?(:error_code)
@original_url = args[:original_url] if args.key?(:original_url) @original_url = args[:original_url] if args.key?(:original_url)
@error_message = args[:error_message] if args.key?(:error_message)
end end
end end
@ -89,11 +117,6 @@ module Google
class BatchGetAmpUrlsRequest class BatchGetAmpUrlsRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The lookup_strategy being requested.
# Corresponds to the JSON property `lookupStrategy`
# @return [String]
attr_accessor :lookup_strategy
# List of URLs to look up for the paired AMP URLs. # List of URLs to look up for the paired AMP URLs.
# The URLs are case-sensitive. Up to 50 URLs per lookup # The URLs are case-sensitive. Up to 50 URLs per lookup
# (see [Usage Limits](/amp/cache/reference/limits)). # (see [Usage Limits](/amp/cache/reference/limits)).
@ -101,42 +124,19 @@ module Google
# @return [Array<String>] # @return [Array<String>]
attr_accessor :urls attr_accessor :urls
# The lookup_strategy being requested.
# Corresponds to the JSON property `lookupStrategy`
# @return [String]
attr_accessor :lookup_strategy
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@lookup_strategy = args[:lookup_strategy] if args.key?(:lookup_strategy)
@urls = args[:urls] if args.key?(:urls) @urls = args[:urls] if args.key?(:urls)
end @lookup_strategy = args[:lookup_strategy] if args.key?(:lookup_strategy)
end
# Batch AMP URL response.
class BatchGetAmpUrlsResponse
include Google::Apis::Core::Hashable
# For each URL in BatchAmpUrlsRequest, the URL response. The response might
# not be in the same order as URLs in the batch request.
# If BatchAmpUrlsRequest contains duplicate URLs, AmpUrl is generated
# only once.
# Corresponds to the JSON property `ampUrls`
# @return [Array<Google::Apis::AcceleratedmobilepageurlV1::AmpUrl>]
attr_accessor :amp_urls
# The errors for requested URLs that have no AMP URL.
# Corresponds to the JSON property `urlErrors`
# @return [Array<Google::Apis::AcceleratedmobilepageurlV1::AmpUrlError>]
attr_accessor :url_errors
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@amp_urls = args[:amp_urls] if args.key?(:amp_urls)
@url_errors = args[:url_errors] if args.key?(:url_errors)
end end
end end
end end

View File

@ -22,6 +22,12 @@ module Google
module Apis module Apis
module AcceleratedmobilepageurlV1 module AcceleratedmobilepageurlV1
class BatchGetAmpUrlsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AmpUrl class AmpUrl
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -41,44 +47,38 @@ module Google
end end
class BatchGetAmpUrlsResponse class BatchGetAmpUrlsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :url_errors, as: 'urlErrors', class: Google::Apis::AcceleratedmobilepageurlV1::AmpUrlError, decorator: Google::Apis::AcceleratedmobilepageurlV1::AmpUrlError::Representation
include Google::Apis::Core::JsonObjectSupport collection :amp_urls, as: 'ampUrls', class: Google::Apis::AcceleratedmobilepageurlV1::AmpUrl, decorator: Google::Apis::AcceleratedmobilepageurlV1::AmpUrl::Representation
end
end end
class AmpUrl class AmpUrl
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :cdn_amp_url, as: 'cdnAmpUrl' property :cdn_amp_url, as: 'cdnAmpUrl'
property :original_url, as: 'originalUrl'
property :amp_url, as: 'ampUrl' property :amp_url, as: 'ampUrl'
property :original_url, as: 'originalUrl'
end end
end end
class AmpUrlError class AmpUrlError
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :error_message, as: 'errorMessage'
property :error_code, as: 'errorCode' property :error_code, as: 'errorCode'
property :original_url, as: 'originalUrl' property :original_url, as: 'originalUrl'
property :error_message, as: 'errorMessage'
end end
end end
class BatchGetAmpUrlsRequest class BatchGetAmpUrlsRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :lookup_strategy, as: 'lookupStrategy'
collection :urls, as: 'urls' collection :urls, as: 'urls'
end property :lookup_strategy, as: 'lookupStrategy'
end
class BatchGetAmpUrlsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :amp_urls, as: 'ampUrls', class: Google::Apis::AcceleratedmobilepageurlV1::AmpUrl, decorator: Google::Apis::AcceleratedmobilepageurlV1::AmpUrl::Representation
collection :url_errors, as: 'urlErrors', class: Google::Apis::AcceleratedmobilepageurlV1::AmpUrlError, decorator: Google::Apis::AcceleratedmobilepageurlV1::AmpUrlError::Representation
end end
end end
end end

View File

@ -51,11 +51,11 @@ module Google
# Returns AMP URL(s) and equivalent # Returns AMP URL(s) and equivalent
# [AMP Cache URL(s)](/amp/cache/overview#amp-cache-url-format). # [AMP Cache URL(s)](/amp/cache/overview#amp-cache-url-format).
# @param [Google::Apis::AcceleratedmobilepageurlV1::BatchGetAmpUrlsRequest] batch_get_amp_urls_request_object # @param [Google::Apis::AcceleratedmobilepageurlV1::BatchGetAmpUrlsRequest] batch_get_amp_urls_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
# #
@ -68,14 +68,14 @@ 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 batch_get_amp_urls(batch_get_amp_urls_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) def batch_get_amp_urls(batch_get_amp_urls_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/ampUrls:batchGet', options) command = make_simple_command(:post, 'v1/ampUrls:batchGet', options)
command.request_representation = Google::Apis::AcceleratedmobilepageurlV1::BatchGetAmpUrlsRequest::Representation command.request_representation = Google::Apis::AcceleratedmobilepageurlV1::BatchGetAmpUrlsRequest::Representation
command.request_object = batch_get_amp_urls_request_object command.request_object = batch_get_amp_urls_request_object
command.response_representation = Google::Apis::AcceleratedmobilepageurlV1::BatchGetAmpUrlsResponse::Representation command.response_representation = Google::Apis::AcceleratedmobilepageurlV1::BatchGetAmpUrlsResponse::Representation
command.response_class = Google::Apis::AcceleratedmobilepageurlV1::BatchGetAmpUrlsResponse command.response_class = Google::Apis::AcceleratedmobilepageurlV1::BatchGetAmpUrlsResponse
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

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/ad-exchange/buyer-rest/guides/client-access/ # @see https://developers.google.com/ad-exchange/buyer-rest/guides/client-access/
module Adexchangebuyer2V2beta1 module Adexchangebuyer2V2beta1
VERSION = 'V2beta1' VERSION = 'V2beta1'
REVISION = '20170608' REVISION = '20170710'
# 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'

File diff suppressed because it is too large Load Diff

View File

@ -34,12 +34,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ImpressionStatusRow
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BidMetricsRow class BidMetricsRow
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -64,6 +58,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class NonBillableWinningBidStatusRow
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class FilteredBidDetailRow class FilteredBidDetailRow
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -220,12 +220,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ListFilteredImpressionsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListCreativeStatusBreakdownByCreativeResponse class ListCreativeStatusBreakdownByCreativeResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -250,19 +244,13 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class CalloutStatusRow
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListDealAssociationsResponse class ListDealAssociationsResponse
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 StopWatchingCreativeRequest class CalloutStatusRow
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
@ -274,6 +262,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class StopWatchingCreativeRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ServingRestriction class ServingRestriction
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -298,12 +292,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ListCreativeStatusAndCreativeBreakdownByDetailResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AppContext class AppContext
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -322,7 +310,7 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class HtmlContent class ListFilteredBidRequestsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
@ -334,7 +322,7 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ListFilteredBidRequestsResponse class HtmlContent
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
@ -352,13 +340,19 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class VideoContent
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListLosingBidsResponse class ListLosingBidsResponse
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 VideoContent class ListNonBillableWinningBidsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
@ -386,32 +380,23 @@ module Google
end end
end end
class ImpressionStatusRow
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :impression_count, as: 'impressionCount', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation
property :status, as: 'status'
property :row_dimensions, as: 'rowDimensions', class: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions, decorator: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions::Representation
end
end
class BidMetricsRow class BidMetricsRow
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :impressions_won, as: 'impressionsWon', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation
property :viewable_impressions, as: 'viewableImpressions', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation
property :measurable_impressions, as: 'measurableImpressions', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation
property :bids, as: 'bids', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation
property :billed_impressions, as: 'billedImpressions', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation property :billed_impressions, as: 'billedImpressions', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation
property :bids_in_auction, as: 'bidsInAuction', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation property :bids_in_auction, as: 'bidsInAuction', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation
property :row_dimensions, as: 'rowDimensions', class: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions, decorator: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions::Representation property :row_dimensions, as: 'rowDimensions', class: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions, decorator: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions::Representation
property :impressions_won, as: 'impressionsWon', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation
property :viewable_impressions, as: 'viewableImpressions', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation
property :bids, as: 'bids', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation
end end
end end
@ -442,13 +427,24 @@ module Google
end end
end end
class NonBillableWinningBidStatusRow
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :row_dimensions, as: 'rowDimensions', class: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions, decorator: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions::Representation
property :bid_count, as: 'bidCount', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation
property :status, as: 'status'
end
end
class FilteredBidDetailRow class FilteredBidDetailRow
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :bid_count, as: 'bidCount', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation property :row_dimensions, as: 'rowDimensions', class: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions, decorator: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions::Representation
property :detail_id, as: 'detailId' property :detail_id, as: 'detailId'
property :row_dimensions, as: 'rowDimensions', class: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions, decorator: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions::Representation property :bid_count, as: 'bidCount', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation
end end
end end
@ -456,10 +452,10 @@ module Google
class AbsoluteDateRange class AbsoluteDateRange
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :end_date, as: 'endDate', class: Google::Apis::Adexchangebuyer2V2beta1::Date, decorator: Google::Apis::Adexchangebuyer2V2beta1::Date::Representation
property :start_date, as: 'startDate', class: Google::Apis::Adexchangebuyer2V2beta1::Date, decorator: Google::Apis::Adexchangebuyer2V2beta1::Date::Representation property :start_date, as: 'startDate', class: Google::Apis::Adexchangebuyer2V2beta1::Date, decorator: Google::Apis::Adexchangebuyer2V2beta1::Date::Representation
property :end_date, as: 'endDate', class: Google::Apis::Adexchangebuyer2V2beta1::Date, decorator: Google::Apis::Adexchangebuyer2V2beta1::Date::Representation
end end
end end
@ -489,19 +485,19 @@ module Google
class FilteredBidCreativeRow class FilteredBidCreativeRow
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :bid_count, as: 'bidCount', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation
property :creative_id, as: 'creativeId' property :creative_id, as: 'creativeId'
property :row_dimensions, as: 'rowDimensions', class: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions, decorator: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions::Representation property :row_dimensions, as: 'rowDimensions', class: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions, decorator: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions::Representation
property :bid_count, as: 'bidCount', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation
end end
end end
class RelativeDateRange class RelativeDateRange
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :offset_days, as: 'offsetDays'
property :duration_days, as: 'durationDays' property :duration_days, as: 'durationDays'
property :offset_days, as: 'offsetDays'
end end
end end
@ -517,37 +513,41 @@ module Google
class NativeContent class NativeContent
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :call_to_action, as: 'callToAction'
property :body, as: 'body' property :body, as: 'body'
property :star_rating, as: 'starRating' property :star_rating, as: 'starRating'
property :video_url, as: 'videoUrl' property :video_url, as: 'videoUrl'
property :click_link_url, as: 'clickLinkUrl'
property :logo, as: 'logo', class: Google::Apis::Adexchangebuyer2V2beta1::Image, decorator: Google::Apis::Adexchangebuyer2V2beta1::Image::Representation property :logo, as: 'logo', class: Google::Apis::Adexchangebuyer2V2beta1::Image, decorator: Google::Apis::Adexchangebuyer2V2beta1::Image::Representation
property :click_link_url, as: 'clickLinkUrl'
property :price_display_text, as: 'priceDisplayText' property :price_display_text, as: 'priceDisplayText'
property :click_tracking_url, as: 'clickTrackingUrl'
property :image, as: 'image', class: Google::Apis::Adexchangebuyer2V2beta1::Image, decorator: Google::Apis::Adexchangebuyer2V2beta1::Image::Representation property :image, as: 'image', class: Google::Apis::Adexchangebuyer2V2beta1::Image, decorator: Google::Apis::Adexchangebuyer2V2beta1::Image::Representation
property :click_tracking_url, as: 'clickTrackingUrl'
property :advertiser_name, as: 'advertiserName' property :advertiser_name, as: 'advertiserName'
property :store_url, as: 'storeUrl' property :store_url, as: 'storeUrl'
property :headline, as: 'headline' property :headline, as: 'headline'
property :app_icon, as: 'appIcon', class: Google::Apis::Adexchangebuyer2V2beta1::Image, decorator: Google::Apis::Adexchangebuyer2V2beta1::Image::Representation property :app_icon, as: 'appIcon', class: Google::Apis::Adexchangebuyer2V2beta1::Image, decorator: Google::Apis::Adexchangebuyer2V2beta1::Image::Representation
property :call_to_action, as: 'callToAction'
end end
end end
class ListBidResponsesWithoutBidsResponse class ListBidResponsesWithoutBidsResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :bid_response_without_bids_status_rows, as: 'bidResponseWithoutBidsStatusRows', class: Google::Apis::Adexchangebuyer2V2beta1::BidResponseWithoutBidsStatusRow, decorator: Google::Apis::Adexchangebuyer2V2beta1::BidResponseWithoutBidsStatusRow::Representation collection :bid_response_without_bids_status_rows, as: 'bidResponseWithoutBidsStatusRows', class: Google::Apis::Adexchangebuyer2V2beta1::BidResponseWithoutBidsStatusRow, decorator: Google::Apis::Adexchangebuyer2V2beta1::BidResponseWithoutBidsStatusRow::Representation
property :next_page_token, as: 'nextPageToken'
end end
end end
class ServingContext class ServingContext
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :security_type, as: 'securityType', class: Google::Apis::Adexchangebuyer2V2beta1::SecurityContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::SecurityContext::Representation
property :platform, as: 'platform', class: Google::Apis::Adexchangebuyer2V2beta1::PlatformContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::PlatformContext::Representation
property :location, as: 'location', class: Google::Apis::Adexchangebuyer2V2beta1::LocationContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::LocationContext::Representation property :location, as: 'location', class: Google::Apis::Adexchangebuyer2V2beta1::LocationContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::LocationContext::Representation
property :auction_type, as: 'auctionType', class: Google::Apis::Adexchangebuyer2V2beta1::AuctionContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::AuctionContext::Representation property :auction_type, as: 'auctionType', class: Google::Apis::Adexchangebuyer2V2beta1::AuctionContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::AuctionContext::Representation
@ -555,10 +555,6 @@ module Google
property :all, as: 'all' property :all, as: 'all'
property :app_type, as: 'appType', class: Google::Apis::Adexchangebuyer2V2beta1::AppContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::AppContext::Representation property :app_type, as: 'appType', class: Google::Apis::Adexchangebuyer2V2beta1::AppContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::AppContext::Representation
property :security_type, as: 'securityType', class: Google::Apis::Adexchangebuyer2V2beta1::SecurityContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::SecurityContext::Representation
property :platform, as: 'platform', class: Google::Apis::Adexchangebuyer2V2beta1::PlatformContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::PlatformContext::Representation
end end
end end
@ -594,9 +590,9 @@ module Google
class ClientUserInvitation class ClientUserInvitation
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :email, as: 'email'
property :client_account_id, :numeric_string => true, as: 'clientAccountId' property :client_account_id, :numeric_string => true, as: 'clientAccountId'
property :invitation_id, :numeric_string => true, as: 'invitationId' property :invitation_id, :numeric_string => true, as: 'invitationId'
property :email, as: 'email'
end end
end end
@ -612,19 +608,19 @@ module Google
class ListClientUsersResponse class ListClientUsersResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :users, as: 'users', class: Google::Apis::Adexchangebuyer2V2beta1::ClientUser, decorator: Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation collection :users, as: 'users', class: Google::Apis::Adexchangebuyer2V2beta1::ClientUser, decorator: Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
property :next_page_token, as: 'nextPageToken'
end end
end end
class ListCreativeStatusBreakdownByDetailResponse class ListCreativeStatusBreakdownByDetailResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :detail_type, as: 'detailType' property :next_page_token, as: 'nextPageToken'
collection :filtered_bid_detail_rows, as: 'filteredBidDetailRows', class: Google::Apis::Adexchangebuyer2V2beta1::FilteredBidDetailRow, decorator: Google::Apis::Adexchangebuyer2V2beta1::FilteredBidDetailRow::Representation collection :filtered_bid_detail_rows, as: 'filteredBidDetailRows', class: Google::Apis::Adexchangebuyer2V2beta1::FilteredBidDetailRow, decorator: Google::Apis::Adexchangebuyer2V2beta1::FilteredBidDetailRow::Representation
property :next_page_token, as: 'nextPageToken' property :detail_type, as: 'detailType'
end end
end end
@ -654,8 +650,8 @@ module Google
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :status, as: 'status' property :status, as: 'status'
property :user_id, :numeric_string => true, as: 'userId'
property :email, as: 'email' property :email, as: 'email'
property :user_id, :numeric_string => true, as: 'userId'
property :client_account_id, :numeric_string => true, as: 'clientAccountId' property :client_account_id, :numeric_string => true, as: 'clientAccountId'
end end
end end
@ -663,20 +659,15 @@ module Google
class CreativeDealAssociation class CreativeDealAssociation
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :account_id, as: 'accountId'
property :creative_id, as: 'creativeId' property :creative_id, as: 'creativeId'
property :deals_id, as: 'dealsId' property :deals_id, as: 'dealsId'
property :account_id, as: 'accountId'
end end
end end
class Creative class Creative
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :filtering_stats, as: 'filteringStats', class: Google::Apis::Adexchangebuyer2V2beta1::FilteringStats, decorator: Google::Apis::Adexchangebuyer2V2beta1::FilteringStats::Representation
collection :attributes, as: 'attributes'
property :api_update_time, as: 'apiUpdateTime'
collection :detected_languages, as: 'detectedLanguages'
property :creative_id, as: 'creativeId' property :creative_id, as: 'creativeId'
property :account_id, as: 'accountId' property :account_id, as: 'accountId'
property :native, as: 'native', class: Google::Apis::Adexchangebuyer2V2beta1::NativeContent, decorator: Google::Apis::Adexchangebuyer2V2beta1::NativeContent::Representation property :native, as: 'native', class: Google::Apis::Adexchangebuyer2V2beta1::NativeContent, decorator: Google::Apis::Adexchangebuyer2V2beta1::NativeContent::Representation
@ -703,16 +694,21 @@ module Google
property :advertiser_name, as: 'advertiserName' property :advertiser_name, as: 'advertiserName'
collection :detected_advertiser_ids, as: 'detectedAdvertiserIds' collection :detected_advertiser_ids, as: 'detectedAdvertiserIds'
collection :detected_domains, as: 'detectedDomains' collection :detected_domains, as: 'detectedDomains'
property :filtering_stats, as: 'filteringStats', class: Google::Apis::Adexchangebuyer2V2beta1::FilteringStats, decorator: Google::Apis::Adexchangebuyer2V2beta1::FilteringStats::Representation
collection :attributes, as: 'attributes'
property :api_update_time, as: 'apiUpdateTime'
collection :detected_languages, as: 'detectedLanguages'
end end
end end
class FilteringStats class FilteringStats
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
collection :reasons, as: 'reasons', class: Google::Apis::Adexchangebuyer2V2beta1::Reason, decorator: Google::Apis::Adexchangebuyer2V2beta1::Reason::Representation
property :date, as: 'date', class: Google::Apis::Adexchangebuyer2V2beta1::Date, decorator: Google::Apis::Adexchangebuyer2V2beta1::Date::Representation property :date, as: 'date', class: Google::Apis::Adexchangebuyer2V2beta1::Date, decorator: Google::Apis::Adexchangebuyer2V2beta1::Date::Representation
collection :reasons, as: 'reasons', class: Google::Apis::Adexchangebuyer2V2beta1::Reason, decorator: Google::Apis::Adexchangebuyer2V2beta1::Reason::Representation
end end
end end
@ -724,15 +720,6 @@ module Google
end end
end end
class ListFilteredImpressionsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :impressions_status_rows, as: 'impressionsStatusRows', class: Google::Apis::Adexchangebuyer2V2beta1::ImpressionStatusRow, decorator: Google::Apis::Adexchangebuyer2V2beta1::ImpressionStatusRow::Representation
end
end
class ListCreativeStatusBreakdownByCreativeResponse class ListCreativeStatusBreakdownByCreativeResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -745,24 +732,24 @@ module Google
class Client class Client
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :entity_type, as: 'entityType'
property :client_name, as: 'clientName'
property :role, as: 'role'
property :visible_to_seller, as: 'visibleToSeller' property :visible_to_seller, as: 'visibleToSeller'
property :entity_id, :numeric_string => true, as: 'entityId' property :entity_id, :numeric_string => true, as: 'entityId'
property :client_account_id, :numeric_string => true, as: 'clientAccountId' property :client_account_id, :numeric_string => true, as: 'clientAccountId'
property :entity_name, as: 'entityName' property :entity_name, as: 'entityName'
property :status, as: 'status' property :status, as: 'status'
property :entity_type, as: 'entityType'
property :client_name, as: 'clientName'
property :role, as: 'role'
end end
end end
class Correction class Correction
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
collection :details, as: 'details'
property :type, as: 'type' property :type, as: 'type'
collection :contexts, as: 'contexts', class: Google::Apis::Adexchangebuyer2V2beta1::ServingContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::ServingContext::Representation collection :contexts, as: 'contexts', class: Google::Apis::Adexchangebuyer2V2beta1::ServingContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::ServingContext::Representation
collection :details, as: 'details'
end end
end end
@ -775,8 +762,8 @@ module Google
property :buyer_account_id, :numeric_string => true, as: 'buyerAccountId' property :buyer_account_id, :numeric_string => true, as: 'buyerAccountId'
property :environment, as: 'environment' property :environment, as: 'environment'
property :format, as: 'format'
property :deal_id, :numeric_string => true, as: 'dealId' property :deal_id, :numeric_string => true, as: 'dealId'
property :format, as: 'format'
property :time_series_granularity, as: 'timeSeriesGranularity' property :time_series_granularity, as: 'timeSeriesGranularity'
property :filter_set_id, :numeric_string => true, as: 'filterSetId' property :filter_set_id, :numeric_string => true, as: 'filterSetId'
property :realtime_time_range, as: 'realtimeTimeRange', class: Google::Apis::Adexchangebuyer2V2beta1::RealtimeTimeRange, decorator: Google::Apis::Adexchangebuyer2V2beta1::RealtimeTimeRange::Representation property :realtime_time_range, as: 'realtimeTimeRange', class: Google::Apis::Adexchangebuyer2V2beta1::RealtimeTimeRange, decorator: Google::Apis::Adexchangebuyer2V2beta1::RealtimeTimeRange::Representation
@ -788,17 +775,6 @@ module Google
end end
end end
class CalloutStatusRow
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :row_dimensions, as: 'rowDimensions', class: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions, decorator: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions::Representation
property :callout_status_id, as: 'calloutStatusId'
property :impression_count, as: 'impressionCount', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation
end
end
class ListDealAssociationsResponse class ListDealAssociationsResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -808,9 +784,14 @@ module Google
end end
end end
class StopWatchingCreativeRequest class CalloutStatusRow
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :impression_count, as: 'impressionCount', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation
property :row_dimensions, as: 'rowDimensions', class: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions, decorator: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions::Representation
property :callout_status_id, as: 'calloutStatusId'
end end
end end
@ -822,22 +803,28 @@ module Google
end end
end end
class StopWatchingCreativeRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class ServingRestriction class ServingRestriction
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
collection :disapproval_reasons, as: 'disapprovalReasons', class: Google::Apis::Adexchangebuyer2V2beta1::Disapproval, decorator: Google::Apis::Adexchangebuyer2V2beta1::Disapproval::Representation
collection :contexts, as: 'contexts', class: Google::Apis::Adexchangebuyer2V2beta1::ServingContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::ServingContext::Representation collection :contexts, as: 'contexts', class: Google::Apis::Adexchangebuyer2V2beta1::ServingContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::ServingContext::Representation
property :status, as: 'status' property :status, as: 'status'
collection :disapproval_reasons, as: 'disapprovalReasons', class: Google::Apis::Adexchangebuyer2V2beta1::Disapproval, decorator: Google::Apis::Adexchangebuyer2V2beta1::Disapproval::Representation
end end
end end
class Date class Date
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :year, as: 'year'
property :day, as: 'day' property :day, as: 'day'
property :year, as: 'year'
property :month, as: 'month' property :month, as: 'month'
end end
end end
@ -856,16 +843,6 @@ module Google
end end
end end
class ListCreativeStatusAndCreativeBreakdownByDetailResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :filtered_bid_detail_rows, as: 'filteredBidDetailRows', class: Google::Apis::Adexchangebuyer2V2beta1::FilteredBidDetailRow, decorator: Google::Apis::Adexchangebuyer2V2beta1::FilteredBidDetailRow::Representation
property :next_page_token, as: 'nextPageToken'
property :detail_type, as: 'detailType'
end
end
class AppContext class AppContext
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -876,9 +853,9 @@ module Google
class ListFilteredBidsResponse class ListFilteredBidsResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :creative_status_rows, as: 'creativeStatusRows', class: Google::Apis::Adexchangebuyer2V2beta1::CreativeStatusRow, decorator: Google::Apis::Adexchangebuyer2V2beta1::CreativeStatusRow::Representation collection :creative_status_rows, as: 'creativeStatusRows', class: Google::Apis::Adexchangebuyer2V2beta1::CreativeStatusRow, decorator: Google::Apis::Adexchangebuyer2V2beta1::CreativeStatusRow::Representation
property :next_page_token, as: 'nextPageToken'
end end
end end
@ -889,24 +866,6 @@ module Google
end end
end end
class HtmlContent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :height, as: 'height'
property :width, as: 'width'
property :snippet, as: 'snippet'
end
end
class ListCreativesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :creatives, as: 'creatives', class: Google::Apis::Adexchangebuyer2V2beta1::Creative, decorator: Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation
end
end
class ListFilteredBidRequestsResponse class ListFilteredBidRequestsResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -916,12 +875,30 @@ module Google
end end
end end
class ListCreativesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :creatives, as: 'creatives', class: Google::Apis::Adexchangebuyer2V2beta1::Creative, decorator: Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class HtmlContent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :height, as: 'height'
property :width, as: 'width'
property :snippet, as: 'snippet'
end
end
class ListBidMetricsResponse class ListBidMetricsResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :bid_metrics_rows, as: 'bidMetricsRows', class: Google::Apis::Adexchangebuyer2V2beta1::BidMetricsRow, decorator: Google::Apis::Adexchangebuyer2V2beta1::BidMetricsRow::Representation collection :bid_metrics_rows, as: 'bidMetricsRows', class: Google::Apis::Adexchangebuyer2V2beta1::BidMetricsRow, decorator: Google::Apis::Adexchangebuyer2V2beta1::BidMetricsRow::Representation
property :next_page_token, as: 'nextPageToken'
end end
end end
@ -933,6 +910,13 @@ module Google
end end
end end
class VideoContent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :video_url, as: 'videoUrl'
end
end
class ListLosingBidsResponse class ListLosingBidsResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -942,20 +926,22 @@ module Google
end end
end end
class VideoContent class ListNonBillableWinningBidsResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :video_url, as: 'videoUrl' property :next_page_token, as: 'nextPageToken'
collection :non_billable_winning_bid_status_rows, as: 'nonBillableWinningBidStatusRows', class: Google::Apis::Adexchangebuyer2V2beta1::NonBillableWinningBidStatusRow, decorator: Google::Apis::Adexchangebuyer2V2beta1::NonBillableWinningBidStatusRow::Representation
end end
end end
class ImpressionMetricsRow class ImpressionMetricsRow
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :available_impressions, as: 'availableImpressions', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation
property :row_dimensions, as: 'rowDimensions', class: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions, decorator: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions::Representation property :row_dimensions, as: 'rowDimensions', class: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions, decorator: Google::Apis::Adexchangebuyer2V2beta1::RowDimensions::Representation
property :available_impressions, as: 'availableImpressions', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation
property :inventory_matches, as: 'inventoryMatches', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation property :inventory_matches, as: 'inventoryMatches', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation
property :bid_requests, as: 'bidRequests', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation property :bid_requests, as: 'bidRequests', class: Google::Apis::Adexchangebuyer2V2beta1::MetricValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::MetricValue::Representation

File diff suppressed because it is too large Load Diff

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 = '20170419' REVISION = '20170530'
# 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

@ -2423,6 +2423,11 @@ module Google
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
#
# Corresponds to the JSON property `languages`
# @return [Object]
attr_accessor :languages
# User's last login time. (Read-only) # User's last login time. (Read-only)
# Corresponds to the JSON property `lastLoginTime` # Corresponds to the JSON property `lastLoginTime`
# @return [DateTime] # @return [DateTime]
@ -2542,6 +2547,7 @@ module Google
@is_enrolled_in2_sv = args[:is_enrolled_in2_sv] if args.key?(:is_enrolled_in2_sv) @is_enrolled_in2_sv = args[:is_enrolled_in2_sv] if args.key?(:is_enrolled_in2_sv)
@is_mailbox_setup = args[:is_mailbox_setup] if args.key?(:is_mailbox_setup) @is_mailbox_setup = args[:is_mailbox_setup] if args.key?(:is_mailbox_setup)
@kind = args[:kind] if args.key?(:kind) @kind = args[:kind] if args.key?(:kind)
@languages = args[:languages] if args.key?(:languages)
@last_login_time = args[:last_login_time] if args.key?(:last_login_time) @last_login_time = args[:last_login_time] if args.key?(:last_login_time)
@locations = args[:locations] if args.key?(:locations) @locations = args[:locations] if args.key?(:locations)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@ -2814,13 +2820,41 @@ module Google
end end
end end
# JSON template for a language entry.
class UserLanguage
include Google::Apis::Core::Hashable
# Other language. User can provide own language name if there is no
# corresponding Google III language code. If this is set LanguageCode can't be
# set
# Corresponds to the JSON property `customLanguage`
# @return [String]
attr_accessor :custom_language
# Language Code. Should be used for storing Google III LanguageCode string
# representation for language. Illegal values cause SchemaException.
# Corresponds to the JSON property `languageCode`
# @return [String]
attr_accessor :language_code
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@custom_language = args[:custom_language] if args.key?(:custom_language)
@language_code = args[:language_code] if args.key?(:language_code)
end
end
# JSON template for a location entry. # JSON template for a location entry.
class UserLocation class UserLocation
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Textual location. This is most useful for display purposes to concisely # Textual location. This is most useful for display purposes to concisely
# describe the location. E.g. "Mountain View, CA", "Near Seattle", "US-NYC-9TH # describe the location. For example, "Mountain View, CA", "Near Seattle", "US-
# 9A209A". # NYC-9TH 9A209A".
# Corresponds to the JSON property `area` # Corresponds to the JSON property `area`
# @return [String] # @return [String]
attr_accessor :area attr_accessor :area
@ -2845,9 +2879,9 @@ module Google
# @return [String] # @return [String]
attr_accessor :floor_name attr_accessor :floor_name
# Floor Section. More specific location within the floor. E.g. if a floor is # Floor section. More specific location within the floor. For example, if a
# divided into sections "A", "B", and "C", this field would identify one of # floor is divided into sections "A", "B", and "C", this field would identify
# those values. # one of those values.
# Corresponds to the JSON property `floorSection` # Corresponds to the JSON property `floorSection`
# @return [String] # @return [String]
attr_accessor :floor_section attr_accessor :floor_section
@ -2957,6 +2991,11 @@ module Google
# @return [String] # @return [String]
attr_accessor :domain attr_accessor :domain
# The full-time equivalent percent within the organization (100000 = 100%).
# Corresponds to the JSON property `fullTimeEquivalent`
# @return [Fixnum]
attr_accessor :full_time_equivalent
# Location of the organization. This need not be fully qualified address. # Location of the organization. This need not be fully qualified address.
# Corresponds to the JSON property `location` # Corresponds to the JSON property `location`
# @return [String] # @return [String]
@ -3002,6 +3041,7 @@ module Google
@department = args[:department] if args.key?(:department) @department = args[:department] if args.key?(:department)
@description = args[:description] if args.key?(:description) @description = args[:description] if args.key?(:description)
@domain = args[:domain] if args.key?(:domain) @domain = args[:domain] if args.key?(:domain)
@full_time_equivalent = args[:full_time_equivalent] if args.key?(:full_time_equivalent)
@location = args[:location] if args.key?(:location) @location = args[:location] if args.key?(:location)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@primary = args[:primary] if args.key?(:primary) @primary = args[:primary] if args.key?(:primary)

View File

@ -316,6 +316,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class UserLanguage
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UserLocation class UserLocation
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -993,6 +999,7 @@ module Google
property :is_enrolled_in2_sv, as: 'isEnrolledIn2Sv' property :is_enrolled_in2_sv, as: 'isEnrolledIn2Sv'
property :is_mailbox_setup, as: 'isMailboxSetup' property :is_mailbox_setup, as: 'isMailboxSetup'
property :kind, as: 'kind' property :kind, as: 'kind'
property :languages, as: 'languages'
property :last_login_time, as: 'lastLoginTime', type: DateTime property :last_login_time, as: 'lastLoginTime', type: DateTime
property :locations, as: 'locations' property :locations, as: 'locations'
@ -1074,6 +1081,14 @@ module Google
end end
end end
class UserLanguage
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :custom_language, as: 'customLanguage'
property :language_code, as: 'languageCode'
end
end
class UserLocation class UserLocation
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -1111,6 +1126,7 @@ module Google
property :department, as: 'department' property :department, as: 'department'
property :description, as: 'description' property :description, as: 'description'
property :domain, as: 'domain' property :domain, as: 'domain'
property :full_time_equivalent, as: 'fullTimeEquivalent'
property :location, as: 'location' property :location, as: 'location'
property :name, as: 'name' property :name, as: 'name'
property :primary, as: 'primary' property :primary, as: 'primary'

View File

@ -286,6 +286,8 @@ module Google
# Maximum number of results to return. Default is 100 # Maximum number of results to return. Default is 100
# @param [String] order_by # @param [String] order_by
# Column to use for sorting results # Column to use for sorting results
# @param [String] org_unit_path
# Full path of the organization unit or its Id
# @param [String] page_token # @param [String] page_token
# Token to specify next page in the list # Token to specify next page in the list
# @param [String] projection # @param [String] projection
@ -317,13 +319,14 @@ 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_chrome_os_devices(customer_id, max_results: nil, order_by: nil, page_token: nil, projection: nil, query: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def list_chrome_os_devices(customer_id, max_results: nil, order_by: nil, org_unit_path: nil, page_token: nil, projection: nil, query: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'customer/{customerId}/devices/chromeos', options) command = make_simple_command(:get, 'customer/{customerId}/devices/chromeos', options)
command.response_representation = Google::Apis::AdminDirectoryV1::ChromeOsDevices::Representation command.response_representation = Google::Apis::AdminDirectoryV1::ChromeOsDevices::Representation
command.response_class = Google::Apis::AdminDirectoryV1::ChromeOsDevices command.response_class = Google::Apis::AdminDirectoryV1::ChromeOsDevices
command.params['customerId'] = customer_id unless customer_id.nil? command.params['customerId'] = customer_id unless customer_id.nil?
command.query['maxResults'] = max_results unless max_results.nil? command.query['maxResults'] = max_results unless max_results.nil?
command.query['orderBy'] = order_by unless order_by.nil? command.query['orderBy'] = order_by unless order_by.nil?
command.query['orgUnitPath'] = org_unit_path unless org_unit_path.nil?
command.query['pageToken'] = page_token unless page_token.nil? command.query['pageToken'] = page_token unless page_token.nil?
command.query['projection'] = projection unless projection.nil? command.query['projection'] = projection unless projection.nil?
command.query['query'] = query unless query.nil? command.query['query'] = query unless query.nil?

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/admin-sdk/reports/ # @see https://developers.google.com/admin-sdk/reports/
module AdminReportsV1 module AdminReportsV1
VERSION = 'ReportsV1' VERSION = 'ReportsV1'
REVISION = '20170320' REVISION = '20170622'
# View audit reports for your G Suite domain # View audit reports for your G Suite domain
AUTH_ADMIN_REPORTS_AUDIT_READONLY = 'https://www.googleapis.com/auth/admin.reports.audit.readonly' AUTH_ADMIN_REPORTS_AUDIT_READONLY = 'https://www.googleapis.com/auth/admin.reports.audit.readonly'

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 = '20170607' REVISION = '20170711'
# 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 = '20170607' REVISION = '20170711'
# 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/devguides/reporting/core/v4/ # @see https://developers.google.com/analytics/devguides/reporting/core/v4/
module AnalyticsreportingV4 module AnalyticsreportingV4
VERSION = 'V4' VERSION = 'V4'
REVISION = '20170531' REVISION = '20170705'
# 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'

File diff suppressed because it is too large Load Diff

View File

@ -22,6 +22,30 @@ module Google
module Apis module Apis
module AnalyticsreportingV4 module AnalyticsreportingV4
class SegmentSequenceStep
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Metric
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PivotValueRegion
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Report
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PivotHeader class PivotHeader
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -34,13 +58,13 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class MetricFilter class ReportRequest
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 ReportRequest class MetricFilter
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
@ -76,12 +100,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class Cohort
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ReportRow class ReportRow
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -94,6 +112,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class Cohort
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrFiltersForSegment class OrFiltersForSegment
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -209,35 +233,47 @@ module Google
end end
class SegmentSequenceStep class SegmentSequenceStep
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :or_filters_for_segment, as: 'orFiltersForSegment', class: Google::Apis::AnalyticsreportingV4::OrFiltersForSegment, decorator: Google::Apis::AnalyticsreportingV4::OrFiltersForSegment::Representation
include Google::Apis::Core::JsonObjectSupport property :match_type, as: 'matchType'
end
end end
class Metric class Metric
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
include Google::Apis::Core::JsonObjectSupport property :formatting_type, as: 'formattingType'
property :alias, as: 'alias'
property :expression, as: 'expression'
end
end end
class PivotValueRegion class PivotValueRegion
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
include Google::Apis::Core::JsonObjectSupport collection :values, as: 'values'
end
end end
class Report class Report
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
property :data, as: 'data', class: Google::Apis::AnalyticsreportingV4::ReportData, decorator: Google::Apis::AnalyticsreportingV4::ReportData::Representation
include Google::Apis::Core::JsonObjectSupport property :column_header, as: 'columnHeader', class: Google::Apis::AnalyticsreportingV4::ColumnHeader, decorator: Google::Apis::AnalyticsreportingV4::ColumnHeader::Representation
end
end end
class PivotHeader class PivotHeader
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :total_pivot_groups_count, as: 'totalPivotGroupsCount'
collection :pivot_header_entries, as: 'pivotHeaderEntries', class: Google::Apis::AnalyticsreportingV4::PivotHeaderEntry, decorator: Google::Apis::AnalyticsreportingV4::PivotHeaderEntry::Representation collection :pivot_header_entries, as: 'pivotHeaderEntries', class: Google::Apis::AnalyticsreportingV4::PivotHeaderEntry, decorator: Google::Apis::AnalyticsreportingV4::PivotHeaderEntry::Representation
property :total_pivot_groups_count, as: 'totalPivotGroupsCount'
end end
end end
@ -249,19 +285,18 @@ module Google
end end
end end
class MetricFilter
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :metric_name, as: 'metricName'
property :comparison_value, as: 'comparisonValue'
property :operator, as: 'operator'
property :not, as: 'not'
end
end
class ReportRequest class ReportRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :sampling_level, as: 'samplingLevel'
collection :dimensions, as: 'dimensions', class: Google::Apis::AnalyticsreportingV4::Dimension, decorator: Google::Apis::AnalyticsreportingV4::Dimension::Representation
property :page_token, as: 'pageToken'
collection :date_ranges, as: 'dateRanges', class: Google::Apis::AnalyticsreportingV4::DateRange, decorator: Google::Apis::AnalyticsreportingV4::DateRange::Representation
collection :pivots, as: 'pivots', class: Google::Apis::AnalyticsreportingV4::Pivot, decorator: Google::Apis::AnalyticsreportingV4::Pivot::Representation
property :include_empty_rows, as: 'includeEmptyRows'
collection :metric_filter_clauses, as: 'metricFilterClauses', class: Google::Apis::AnalyticsreportingV4::MetricFilterClause, decorator: Google::Apis::AnalyticsreportingV4::MetricFilterClause::Representation collection :metric_filter_clauses, as: 'metricFilterClauses', class: Google::Apis::AnalyticsreportingV4::MetricFilterClause, decorator: Google::Apis::AnalyticsreportingV4::MetricFilterClause::Representation
property :page_size, as: 'pageSize' property :page_size, as: 'pageSize'
@ -279,15 +314,16 @@ module Google
collection :segments, as: 'segments', class: Google::Apis::AnalyticsreportingV4::Segment, decorator: Google::Apis::AnalyticsreportingV4::Segment::Representation collection :segments, as: 'segments', class: Google::Apis::AnalyticsreportingV4::Segment, decorator: Google::Apis::AnalyticsreportingV4::Segment::Representation
property :sampling_level, as: 'samplingLevel' end
collection :dimensions, as: 'dimensions', class: Google::Apis::AnalyticsreportingV4::Dimension, decorator: Google::Apis::AnalyticsreportingV4::Dimension::Representation end
collection :date_ranges, as: 'dateRanges', class: Google::Apis::AnalyticsreportingV4::DateRange, decorator: Google::Apis::AnalyticsreportingV4::DateRange::Representation class MetricFilter
# @private
property :page_token, as: 'pageToken' class Representation < Google::Apis::Core::JsonRepresentation
collection :pivots, as: 'pivots', class: Google::Apis::AnalyticsreportingV4::Pivot, decorator: Google::Apis::AnalyticsreportingV4::Pivot::Representation property :metric_name, as: 'metricName'
property :comparison_value, as: 'comparisonValue'
property :include_empty_rows, as: 'includeEmptyRows' property :operator, as: 'operator'
property :not, as: 'not'
end end
end end
@ -310,20 +346,20 @@ module Google
class DynamicSegment class DynamicSegment
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :user_segment, as: 'userSegment', class: Google::Apis::AnalyticsreportingV4::SegmentDefinition, decorator: Google::Apis::AnalyticsreportingV4::SegmentDefinition::Representation
property :session_segment, as: 'sessionSegment', class: Google::Apis::AnalyticsreportingV4::SegmentDefinition, decorator: Google::Apis::AnalyticsreportingV4::SegmentDefinition::Representation property :session_segment, as: 'sessionSegment', class: Google::Apis::AnalyticsreportingV4::SegmentDefinition, decorator: Google::Apis::AnalyticsreportingV4::SegmentDefinition::Representation
property :name, as: 'name' property :name, as: 'name'
property :user_segment, as: 'userSegment', class: Google::Apis::AnalyticsreportingV4::SegmentDefinition, decorator: Google::Apis::AnalyticsreportingV4::SegmentDefinition::Representation
end end
end end
class ColumnHeader class ColumnHeader
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
collection :dimensions, as: 'dimensions'
property :metric_header, as: 'metricHeader', class: Google::Apis::AnalyticsreportingV4::MetricHeader, decorator: Google::Apis::AnalyticsreportingV4::MetricHeader::Representation property :metric_header, as: 'metricHeader', class: Google::Apis::AnalyticsreportingV4::MetricHeader, decorator: Google::Apis::AnalyticsreportingV4::MetricHeader::Representation
collection :dimensions, as: 'dimensions'
end end
end end
@ -338,16 +374,6 @@ module Google
end end
end end
class Cohort
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :date_range, as: 'dateRange', class: Google::Apis::AnalyticsreportingV4::DateRange, decorator: Google::Apis::AnalyticsreportingV4::DateRange::Representation
property :type, as: 'type'
end
end
class ReportRow class ReportRow
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -360,9 +386,19 @@ module Google
class MetricFilterClause class MetricFilterClause
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :operator, as: 'operator'
collection :filters, as: 'filters', class: Google::Apis::AnalyticsreportingV4::MetricFilter, decorator: Google::Apis::AnalyticsreportingV4::MetricFilter::Representation collection :filters, as: 'filters', class: Google::Apis::AnalyticsreportingV4::MetricFilter, decorator: Google::Apis::AnalyticsreportingV4::MetricFilter::Representation
property :operator, as: 'operator'
end
end
class Cohort
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :date_range, as: 'dateRange', class: Google::Apis::AnalyticsreportingV4::DateRange, decorator: Google::Apis::AnalyticsreportingV4::DateRange::Representation
property :name, as: 'name'
property :type, as: 'type'
end end
end end
@ -387,9 +423,9 @@ module Google
class DimensionFilterClause class DimensionFilterClause
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :operator, as: 'operator'
collection :filters, as: 'filters', class: Google::Apis::AnalyticsreportingV4::DimensionFilter, decorator: Google::Apis::AnalyticsreportingV4::DimensionFilter::Representation collection :filters, as: 'filters', class: Google::Apis::AnalyticsreportingV4::DimensionFilter, decorator: Google::Apis::AnalyticsreportingV4::DimensionFilter::Representation
property :operator, as: 'operator'
end end
end end
@ -404,20 +440,20 @@ module Google
class SequenceSegment class SequenceSegment
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :first_step_should_match_first_hit, as: 'firstStepShouldMatchFirstHit'
collection :segment_sequence_steps, as: 'segmentSequenceSteps', class: Google::Apis::AnalyticsreportingV4::SegmentSequenceStep, decorator: Google::Apis::AnalyticsreportingV4::SegmentSequenceStep::Representation collection :segment_sequence_steps, as: 'segmentSequenceSteps', class: Google::Apis::AnalyticsreportingV4::SegmentSequenceStep, decorator: Google::Apis::AnalyticsreportingV4::SegmentSequenceStep::Representation
property :first_step_should_match_first_hit, as: 'firstStepShouldMatchFirstHit'
end end
end end
class SegmentMetricFilter class SegmentMetricFilter
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :operator, as: 'operator'
property :metric_name, as: 'metricName' property :metric_name, as: 'metricName'
property :scope, as: 'scope' property :scope, as: 'scope'
property :max_comparison_value, as: 'maxComparisonValue' property :max_comparison_value, as: 'maxComparisonValue'
property :comparison_value, as: 'comparisonValue' property :comparison_value, as: 'comparisonValue'
property :operator, as: 'operator'
end end
end end
@ -433,9 +469,9 @@ module Google
class CohortGroup class CohortGroup
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :lifetime_value, as: 'lifetimeValue'
collection :cohorts, as: 'cohorts', class: Google::Apis::AnalyticsreportingV4::Cohort, decorator: Google::Apis::AnalyticsreportingV4::Cohort::Representation collection :cohorts, as: 'cohorts', class: Google::Apis::AnalyticsreportingV4::Cohort, decorator: Google::Apis::AnalyticsreportingV4::Cohort::Representation
property :lifetime_value, as: 'lifetimeValue'
end end
end end
@ -450,23 +486,23 @@ module Google
class Pivot class Pivot
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :max_group_count, as: 'maxGroupCount'
property :start_group, as: 'startGroup' property :start_group, as: 'startGroup'
collection :metrics, as: 'metrics', class: Google::Apis::AnalyticsreportingV4::Metric, decorator: Google::Apis::AnalyticsreportingV4::Metric::Representation collection :metrics, as: 'metrics', class: Google::Apis::AnalyticsreportingV4::Metric, decorator: Google::Apis::AnalyticsreportingV4::Metric::Representation
collection :dimensions, as: 'dimensions', class: Google::Apis::AnalyticsreportingV4::Dimension, decorator: Google::Apis::AnalyticsreportingV4::Dimension::Representation
collection :dimension_filter_clauses, as: 'dimensionFilterClauses', class: Google::Apis::AnalyticsreportingV4::DimensionFilterClause, decorator: Google::Apis::AnalyticsreportingV4::DimensionFilterClause::Representation collection :dimension_filter_clauses, as: 'dimensionFilterClauses', class: Google::Apis::AnalyticsreportingV4::DimensionFilterClause, decorator: Google::Apis::AnalyticsreportingV4::DimensionFilterClause::Representation
property :max_group_count, as: 'maxGroupCount' collection :dimensions, as: 'dimensions', class: Google::Apis::AnalyticsreportingV4::Dimension, decorator: Google::Apis::AnalyticsreportingV4::Dimension::Representation
end end
end end
class PivotHeaderEntry class PivotHeaderEntry
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
collection :dimension_names, as: 'dimensionNames'
property :metric, as: 'metric', class: Google::Apis::AnalyticsreportingV4::MetricHeaderEntry, decorator: Google::Apis::AnalyticsreportingV4::MetricHeaderEntry::Representation property :metric, as: 'metric', class: Google::Apis::AnalyticsreportingV4::MetricHeaderEntry, decorator: Google::Apis::AnalyticsreportingV4::MetricHeaderEntry::Representation
collection :dimension_names, as: 'dimensionNames'
collection :dimension_values, as: 'dimensionValues' collection :dimension_values, as: 'dimensionValues'
end end
end end
@ -474,11 +510,11 @@ module Google
class SegmentFilter class SegmentFilter
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :sequence_segment, as: 'sequenceSegment', class: Google::Apis::AnalyticsreportingV4::SequenceSegment, decorator: Google::Apis::AnalyticsreportingV4::SequenceSegment::Representation
property :not, as: 'not' property :not, as: 'not'
property :simple_segment, as: 'simpleSegment', class: Google::Apis::AnalyticsreportingV4::SimpleSegment, decorator: Google::Apis::AnalyticsreportingV4::SimpleSegment::Representation property :simple_segment, as: 'simpleSegment', class: Google::Apis::AnalyticsreportingV4::SimpleSegment, decorator: Google::Apis::AnalyticsreportingV4::SimpleSegment::Representation
property :sequence_segment, as: 'sequenceSegment', class: Google::Apis::AnalyticsreportingV4::SequenceSegment, decorator: Google::Apis::AnalyticsreportingV4::SequenceSegment::Representation
end end
end end
@ -507,10 +543,10 @@ module Google
collection :totals, as: 'totals', class: Google::Apis::AnalyticsreportingV4::DateRangeValues, decorator: Google::Apis::AnalyticsreportingV4::DateRangeValues::Representation collection :totals, as: 'totals', class: Google::Apis::AnalyticsreportingV4::DateRangeValues, decorator: Google::Apis::AnalyticsreportingV4::DateRangeValues::Representation
collection :samples_read_counts, as: 'samplesReadCounts' collection :samples_read_counts, as: 'samplesReadCounts'
property :row_count, as: 'rowCount' property :is_data_golden, as: 'isDataGolden'
collection :rows, as: 'rows', class: Google::Apis::AnalyticsreportingV4::ReportRow, decorator: Google::Apis::AnalyticsreportingV4::ReportRow::Representation collection :rows, as: 'rows', class: Google::Apis::AnalyticsreportingV4::ReportRow, decorator: Google::Apis::AnalyticsreportingV4::ReportRow::Representation
property :is_data_golden, as: 'isDataGolden' property :row_count, as: 'rowCount'
property :data_last_refreshed, as: 'dataLastRefreshed' property :data_last_refreshed, as: 'dataLastRefreshed'
collection :maximums, as: 'maximums', class: Google::Apis::AnalyticsreportingV4::DateRangeValues, decorator: Google::Apis::AnalyticsreportingV4::DateRangeValues::Representation collection :maximums, as: 'maximums', class: Google::Apis::AnalyticsreportingV4::DateRangeValues, decorator: Google::Apis::AnalyticsreportingV4::DateRangeValues::Representation
@ -520,32 +556,32 @@ module Google
class DimensionFilter class DimensionFilter
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :dimension_name, as: 'dimensionName'
property :operator, as: 'operator'
property :not, as: 'not'
collection :expressions, as: 'expressions'
property :case_sensitive, as: 'caseSensitive' property :case_sensitive, as: 'caseSensitive'
property :operator, as: 'operator'
property :dimension_name, as: 'dimensionName'
collection :expressions, as: 'expressions'
property :not, as: 'not'
end end
end end
class SegmentDimensionFilter class SegmentDimensionFilter
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :max_comparison_value, as: 'maxComparisonValue'
property :dimension_name, as: 'dimensionName' property :dimension_name, as: 'dimensionName'
property :operator, as: 'operator' property :operator, as: 'operator'
collection :expressions, as: 'expressions' collection :expressions, as: 'expressions'
property :case_sensitive, as: 'caseSensitive' property :case_sensitive, as: 'caseSensitive'
property :min_comparison_value, as: 'minComparisonValue' property :min_comparison_value, as: 'minComparisonValue'
property :max_comparison_value, as: 'maxComparisonValue'
end end
end end
class OrderBy class OrderBy
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :sort_order, as: 'sortOrder'
property :field_name, as: 'fieldName'
property :order_type, as: 'orderType' property :order_type, as: 'orderType'
property :field_name, as: 'fieldName'
property :sort_order, as: 'sortOrder'
end end
end end
@ -557,42 +593,6 @@ module Google
property :segment_id, as: 'segmentId' property :segment_id, as: 'segmentId'
end end
end end
class SegmentSequenceStep
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :or_filters_for_segment, as: 'orFiltersForSegment', class: Google::Apis::AnalyticsreportingV4::OrFiltersForSegment, decorator: Google::Apis::AnalyticsreportingV4::OrFiltersForSegment::Representation
property :match_type, as: 'matchType'
end
end
class Metric
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :alias, as: 'alias'
property :expression, as: 'expression'
property :formatting_type, as: 'formattingType'
end
end
class PivotValueRegion
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :values, as: 'values'
end
end
class Report
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :column_header, as: 'columnHeader', class: Google::Apis::AnalyticsreportingV4::ColumnHeader, decorator: Google::Apis::AnalyticsreportingV4::ColumnHeader::Representation
property :data, as: 'data', class: Google::Apis::AnalyticsreportingV4::ReportData, decorator: Google::Apis::AnalyticsreportingV4::ReportData::Representation
property :next_page_token, as: 'nextPageToken'
end
end
end end
end end
end end

View File

@ -32,16 +32,16 @@ module Google
# #
# @see https://developers.google.com/analytics/devguides/reporting/core/v4/ # @see https://developers.google.com/analytics/devguides/reporting/core/v4/
class AnalyticsReportingService < Google::Apis::Core::BaseService class AnalyticsReportingService < Google::Apis::Core::BaseService
# @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
# @return [String] # @return [String]
# API key. Your API key identifies your project and provides you with API access, # 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. # quota, and reports. Required unless you provide an OAuth 2.0 token.
attr_accessor :key 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 def initialize
super('https://analyticsreporting.googleapis.com/', '') super('https://analyticsreporting.googleapis.com/', '')
@batch_path = 'batch' @batch_path = 'batch'
@ -49,11 +49,11 @@ module Google
# Returns the Analytics data. # Returns the Analytics data.
# @param [Google::Apis::AnalyticsreportingV4::GetReportsRequest] get_reports_request_object # @param [Google::Apis::AnalyticsreportingV4::GetReportsRequest] get_reports_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
# #
@ -66,22 +66,22 @@ 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 batch_get_reports(get_reports_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) def batch_get_reports(get_reports_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v4/reports:batchGet', options) command = make_simple_command(:post, 'v4/reports:batchGet', options)
command.request_representation = Google::Apis::AnalyticsreportingV4::GetReportsRequest::Representation command.request_representation = Google::Apis::AnalyticsreportingV4::GetReportsRequest::Representation
command.request_object = get_reports_request_object command.request_object = get_reports_request_object
command.response_representation = Google::Apis::AnalyticsreportingV4::GetReportsResponse::Representation command.response_representation = Google::Apis::AnalyticsreportingV4::GetReportsResponse::Representation
command.response_class = Google::Apis::AnalyticsreportingV4::GetReportsResponse command.response_class = Google::Apis::AnalyticsreportingV4::GetReportsResponse
command.query['quotaUser'] = quota_user unless quota_user.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) execute_or_queue_command(command, &block)
end end
protected protected
def apply_command_defaults(command) def apply_command_defaults(command)
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['key'] = key unless key.nil? command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
end end
end end
end end

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 = '20170607' REVISION = '20170706'
# Manage corporate Android devices # Manage corporate Android devices
AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise' AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise'

View File

@ -26,16 +26,16 @@ module Google
# @see https://cloud.google.com/appengine/docs/admin-api/ # @see https://cloud.google.com/appengine/docs/admin-api/
module AppengineV1 module AppengineV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20170601' REVISION = '20170626'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
# View and manage your applications deployed on Google App Engine # View and manage your applications deployed on Google App Engine
AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin' AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin'
# 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'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
end end
end end
end end

File diff suppressed because it is too large Load Diff

View File

@ -22,24 +22,6 @@ module Google
module Apis module Apis
module AppengineV1 module AppengineV1
class OperationMetadataV1Alpha
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UrlDispatchRule
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListVersionsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ApiEndpointHandler class ApiEndpointHandler
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -82,19 +64,13 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class EndpointsApiService
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UrlMap class UrlMap
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 ApiConfigHandler class EndpointsApiService
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
@ -106,13 +82,13 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class StaticFilesHandler class ApiConfigHandler
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 DiskUtilization class StaticFilesHandler
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
@ -124,19 +100,25 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class DiskUtilization
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CpuUtilization class CpuUtilization
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 IdentityAwareProxy class Status
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 IdentityAwareProxy
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
@ -292,13 +274,13 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class Deployment class Resources
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 Resources class Deployment
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
@ -317,34 +299,21 @@ module Google
end end
class OperationMetadataV1Alpha class OperationMetadataV1Alpha
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
property :end_time, as: 'endTime' include Google::Apis::Core::JsonObjectSupport
collection :warning, as: 'warning'
property :insert_time, as: 'insertTime'
property :user, as: 'user'
property :target, as: 'target'
property :ephemeral_message, as: 'ephemeralMessage'
property :method_prop, as: 'method'
end
end end
class UrlDispatchRule class UrlDispatchRule
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
property :domain, as: 'domain' include Google::Apis::Core::JsonObjectSupport
property :service, as: 'service'
property :path, as: 'path'
end
end end
class ListVersionsResponse class ListVersionsResponse
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
collection :versions, as: 'versions', class: Google::Apis::AppengineV1::Version, decorator: Google::Apis::AppengineV1::Version::Representation
property :next_page_token, as: 'nextPageToken' include Google::Apis::Core::JsonObjectSupport
end
end end
class ApiEndpointHandler class ApiEndpointHandler
@ -357,12 +326,6 @@ module Google
class AutomaticScaling class AutomaticScaling
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :request_utilization, as: 'requestUtilization', class: Google::Apis::AppengineV1::RequestUtilization, decorator: Google::Apis::AppengineV1::RequestUtilization::Representation
property :max_idle_instances, as: 'maxIdleInstances'
property :min_idle_instances, as: 'minIdleInstances'
property :max_total_instances, as: 'maxTotalInstances'
property :min_total_instances, as: 'minTotalInstances'
property :network_utilization, as: 'networkUtilization', class: Google::Apis::AppengineV1::NetworkUtilization, decorator: Google::Apis::AppengineV1::NetworkUtilization::Representation property :network_utilization, as: 'networkUtilization', class: Google::Apis::AppengineV1::NetworkUtilization, decorator: Google::Apis::AppengineV1::NetworkUtilization::Representation
property :max_concurrent_requests, as: 'maxConcurrentRequests' property :max_concurrent_requests, as: 'maxConcurrentRequests'
@ -373,6 +336,12 @@ module Google
property :disk_utilization, as: 'diskUtilization', class: Google::Apis::AppengineV1::DiskUtilization, decorator: Google::Apis::AppengineV1::DiskUtilization::Representation property :disk_utilization, as: 'diskUtilization', class: Google::Apis::AppengineV1::DiskUtilization, decorator: Google::Apis::AppengineV1::DiskUtilization::Representation
property :min_pending_latency, as: 'minPendingLatency' property :min_pending_latency, as: 'minPendingLatency'
property :max_idle_instances, as: 'maxIdleInstances'
property :request_utilization, as: 'requestUtilization', class: Google::Apis::AppengineV1::RequestUtilization, decorator: Google::Apis::AppengineV1::RequestUtilization::Representation
property :min_idle_instances, as: 'minIdleInstances'
property :max_total_instances, as: 'maxTotalInstances'
property :min_total_instances, as: 'minTotalInstances'
end end
end end
@ -387,8 +356,8 @@ module Google
class Library class Library
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :version, as: 'version'
property :name, as: 'name' property :name, as: 'name'
property :version, as: 'version'
end end
end end
@ -416,14 +385,6 @@ module Google
end end
end end
class EndpointsApiService
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :config_id, as: 'configId'
end
end
class UrlMap class UrlMap
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -441,34 +402,42 @@ module Google
end end
end end
class ApiConfigHandler class EndpointsApiService
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :login, as: 'login' property :config_id, as: 'configId'
property :url, as: 'url' property :name, as: 'name'
property :security_level, as: 'securityLevel'
property :auth_fail_action, as: 'authFailAction'
property :script, as: 'script'
end end
end end
class Operation class Operation
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
hash :response, as: 'response'
property :name, as: 'name'
property :error, as: 'error', class: Google::Apis::AppengineV1::Status, decorator: Google::Apis::AppengineV1::Status::Representation property :error, as: 'error', class: Google::Apis::AppengineV1::Status, decorator: Google::Apis::AppengineV1::Status::Representation
hash :metadata, as: 'metadata' hash :metadata, as: 'metadata'
property :done, as: 'done' property :done, as: 'done'
hash :response, as: 'response' end
property :name, as: 'name' end
class ApiConfigHandler
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :url, as: 'url'
property :security_level, as: 'securityLevel'
property :auth_fail_action, as: 'authFailAction'
property :script, as: 'script'
property :login, as: 'login'
end end
end end
class StaticFilesHandler class StaticFilesHandler
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
hash :http_headers, as: 'httpHeaders'
property :application_readable, as: 'applicationReadable' property :application_readable, as: 'applicationReadable'
hash :http_headers, as: 'httpHeaders'
property :upload_path_regex, as: 'uploadPathRegex' property :upload_path_regex, as: 'uploadPathRegex'
property :path, as: 'path' property :path, as: 'path'
property :mime_type, as: 'mimeType' property :mime_type, as: 'mimeType'
@ -477,21 +446,21 @@ module Google
end end
end end
class DiskUtilization
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :target_write_ops_per_second, as: 'targetWriteOpsPerSecond'
property :target_write_bytes_per_second, as: 'targetWriteBytesPerSecond'
property :target_read_bytes_per_second, as: 'targetReadBytesPerSecond'
property :target_read_ops_per_second, as: 'targetReadOpsPerSecond'
end
end
class BasicScaling class BasicScaling
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :idle_timeout, as: 'idleTimeout'
property :max_instances, as: 'maxInstances' property :max_instances, as: 'maxInstances'
property :idle_timeout, as: 'idleTimeout'
end
end
class DiskUtilization
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :target_read_ops_per_second, as: 'targetReadOpsPerSecond'
property :target_read_bytes_per_second, as: 'targetReadBytesPerSecond'
property :target_write_ops_per_second, as: 'targetWriteOpsPerSecond'
property :target_write_bytes_per_second, as: 'targetWriteBytesPerSecond'
end end
end end
@ -503,6 +472,15 @@ module Google
end end
end end
class Status
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :details, as: 'details'
property :code, as: 'code'
property :message, as: 'message'
end
end
class IdentityAwareProxy class IdentityAwareProxy
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -513,15 +491,6 @@ module Google
end end
end end
class Status
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :details, as: 'details'
property :code, as: 'code'
property :message, as: 'message'
end
end
class ManualScaling class ManualScaling
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -532,60 +501,60 @@ module Google
class LocationMetadata class LocationMetadata
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :standard_environment_available, as: 'standardEnvironmentAvailable'
property :flexible_environment_available, as: 'flexibleEnvironmentAvailable' property :flexible_environment_available, as: 'flexibleEnvironmentAvailable'
property :standard_environment_available, as: 'standardEnvironmentAvailable'
end end
end end
class Service class Service
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
property :name, as: 'name'
property :split, as: 'split', class: Google::Apis::AppengineV1::TrafficSplit, decorator: Google::Apis::AppengineV1::TrafficSplit::Representation property :split, as: 'split', class: Google::Apis::AppengineV1::TrafficSplit, decorator: Google::Apis::AppengineV1::TrafficSplit::Representation
property :id, as: 'id'
property :name, as: 'name'
end end
end end
class ListOperationsResponse class ListOperationsResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :operations, as: 'operations', class: Google::Apis::AppengineV1::Operation, decorator: Google::Apis::AppengineV1::Operation::Representation collection :operations, as: 'operations', class: Google::Apis::AppengineV1::Operation, decorator: Google::Apis::AppengineV1::Operation::Representation
property :next_page_token, as: 'nextPageToken'
end end
end end
class OperationMetadata class OperationMetadata
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :insert_time, as: 'insertTime'
property :user, as: 'user' property :user, as: 'user'
property :target, as: 'target' property :target, as: 'target'
property :method_prop, as: 'method' property :method_prop, as: 'method'
property :end_time, as: 'endTime' property :end_time, as: 'endTime'
property :operation_type, as: 'operationType' property :operation_type, as: 'operationType'
property :insert_time, as: 'insertTime'
end end
end end
class OperationMetadataV1 class OperationMetadataV1
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :target, as: 'target'
property :user, as: 'user'
property :ephemeral_message, as: 'ephemeralMessage' property :ephemeral_message, as: 'ephemeralMessage'
property :method_prop, as: 'method' property :method_prop, as: 'method'
property :end_time, as: 'endTime' property :end_time, as: 'endTime'
collection :warning, as: 'warning'
property :insert_time, as: 'insertTime' property :insert_time, as: 'insertTime'
property :user, as: 'user' collection :warning, as: 'warning'
property :target, as: 'target'
end end
end end
class ErrorHandler class ErrorHandler
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :error_code, as: 'errorCode'
property :mime_type, as: 'mimeType' property :mime_type, as: 'mimeType'
property :error_code, as: 'errorCode'
property :static_file, as: 'staticFile' property :static_file, as: 'staticFile'
end end
end end
@ -593,9 +562,9 @@ module Google
class Network class Network
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
collection :forwarded_ports, as: 'forwardedPorts'
property :instance_tag, as: 'instanceTag'
property :subnetwork_name, as: 'subnetworkName' property :subnetwork_name, as: 'subnetworkName'
property :instance_tag, as: 'instanceTag'
collection :forwarded_ports, as: 'forwardedPorts'
property :name, as: 'name' property :name, as: 'name'
end end
end end
@ -603,88 +572,88 @@ module Google
class Application class Application
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name' property :auth_domain, as: 'authDomain'
property :id, as: 'id'
property :default_cookie_expiration, as: 'defaultCookieExpiration'
property :location_id, as: 'locationId'
property :serving_status, as: 'servingStatus'
property :default_hostname, as: 'defaultHostname'
property :iap, as: 'iap', class: Google::Apis::AppengineV1::IdentityAwareProxy, decorator: Google::Apis::AppengineV1::IdentityAwareProxy::Representation property :iap, as: 'iap', class: Google::Apis::AppengineV1::IdentityAwareProxy, decorator: Google::Apis::AppengineV1::IdentityAwareProxy::Representation
property :auth_domain, as: 'authDomain'
property :code_bucket, as: 'codeBucket' property :code_bucket, as: 'codeBucket'
property :default_bucket, as: 'defaultBucket' property :default_bucket, as: 'defaultBucket'
collection :dispatch_rules, as: 'dispatchRules', class: Google::Apis::AppengineV1::UrlDispatchRule, decorator: Google::Apis::AppengineV1::UrlDispatchRule::Representation collection :dispatch_rules, as: 'dispatchRules', class: Google::Apis::AppengineV1::UrlDispatchRule, decorator: Google::Apis::AppengineV1::UrlDispatchRule::Representation
property :gcr_domain, as: 'gcrDomain' property :gcr_domain, as: 'gcrDomain'
property :name, as: 'name'
property :default_cookie_expiration, as: 'defaultCookieExpiration'
property :id, as: 'id'
property :location_id, as: 'locationId'
property :serving_status, as: 'servingStatus'
property :default_hostname, as: 'defaultHostname'
end end
end end
class Instance class Instance
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :vm_id, as: 'vmId'
property :qps, as: 'qps'
property :vm_zone_name, as: 'vmZoneName'
property :name, as: 'name'
property :average_latency, as: 'averageLatency' property :average_latency, as: 'averageLatency'
property :vm_ip, as: 'vmIp' property :vm_ip, as: 'vmIp'
property :memory_usage, :numeric_string => true, as: 'memoryUsage' property :memory_usage, :numeric_string => true, as: 'memoryUsage'
property :id, as: 'id' property :id, as: 'id'
property :vm_status, as: 'vmStatus'
property :errors, as: 'errors' property :errors, as: 'errors'
property :availability, as: 'availability' property :availability, as: 'availability'
property :vm_status, as: 'vmStatus'
property :start_time, as: 'startTime' property :start_time, as: 'startTime'
property :vm_debug_enabled, as: 'vmDebugEnabled' property :vm_debug_enabled, as: 'vmDebugEnabled'
property :requests, as: 'requests' property :requests, as: 'requests'
property :app_engine_release, as: 'appEngineRelease' property :app_engine_release, as: 'appEngineRelease'
property :vm_name, as: 'vmName' property :vm_name, as: 'vmName'
property :vm_id, as: 'vmId'
property :qps, as: 'qps'
property :vm_zone_name, as: 'vmZoneName'
property :name, as: 'name'
end end
end end
class LivenessCheck class LivenessCheck
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :check_interval, as: 'checkInterval'
property :timeout, as: 'timeout'
property :failure_threshold, as: 'failureThreshold'
property :initial_delay, as: 'initialDelay' property :initial_delay, as: 'initialDelay'
property :path, as: 'path' property :path, as: 'path'
property :success_threshold, as: 'successThreshold' property :success_threshold, as: 'successThreshold'
property :host, as: 'host' property :host, as: 'host'
property :check_interval, as: 'checkInterval'
property :failure_threshold, as: 'failureThreshold'
property :timeout, as: 'timeout'
end end
end end
class NetworkUtilization class NetworkUtilization
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :target_sent_packets_per_second, as: 'targetSentPacketsPerSecond'
property :target_received_bytes_per_second, as: 'targetReceivedBytesPerSecond'
property :target_received_packets_per_second, as: 'targetReceivedPacketsPerSecond' property :target_received_packets_per_second, as: 'targetReceivedPacketsPerSecond'
property :target_sent_bytes_per_second, as: 'targetSentBytesPerSecond' property :target_sent_bytes_per_second, as: 'targetSentBytesPerSecond'
property :target_received_bytes_per_second, as: 'targetReceivedBytesPerSecond'
property :target_sent_packets_per_second, as: 'targetSentPacketsPerSecond'
end end
end end
class Location class Location
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
hash :labels, as: 'labels'
property :name, as: 'name'
property :location_id, as: 'locationId' property :location_id, as: 'locationId'
hash :metadata, as: 'metadata' hash :metadata, as: 'metadata'
hash :labels, as: 'labels'
property :name, as: 'name'
end end
end end
class HealthCheck class HealthCheck
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :timeout, as: 'timeout'
property :unhealthy_threshold, as: 'unhealthyThreshold' property :unhealthy_threshold, as: 'unhealthyThreshold'
property :disable_health_check, as: 'disableHealthCheck' property :disable_health_check, as: 'disableHealthCheck'
property :host, as: 'host' property :host, as: 'host'
property :restart_threshold, as: 'restartThreshold' property :restart_threshold, as: 'restartThreshold'
property :healthy_threshold, as: 'healthyThreshold' property :healthy_threshold, as: 'healthyThreshold'
property :check_interval, as: 'checkInterval' property :check_interval, as: 'checkInterval'
property :timeout, as: 'timeout'
end end
end end
@ -692,8 +661,8 @@ module Google
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :path, as: 'path' property :path, as: 'path'
property :host, as: 'host'
property :success_threshold, as: 'successThreshold' property :success_threshold, as: 'successThreshold'
property :host, as: 'host'
property :check_interval, as: 'checkInterval' property :check_interval, as: 'checkInterval'
property :failure_threshold, as: 'failureThreshold' property :failure_threshold, as: 'failureThreshold'
property :timeout, as: 'timeout' property :timeout, as: 'timeout'
@ -710,35 +679,20 @@ module Google
class OperationMetadataV1Beta5 class OperationMetadataV1Beta5
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :method_prop, as: 'method'
property :insert_time, as: 'insertTime' property :insert_time, as: 'insertTime'
property :end_time, as: 'endTime' property :end_time, as: 'endTime'
property :user, as: 'user'
property :target, as: 'target' property :target, as: 'target'
property :method_prop, as: 'method' property :user, as: 'user'
end end
end end
class Version class Version
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :manual_scaling, as: 'manualScaling', class: Google::Apis::AppengineV1::ManualScaling, decorator: Google::Apis::AppengineV1::ManualScaling::Representation
property :name, as: 'name'
property :api_config, as: 'apiConfig', class: Google::Apis::AppengineV1::ApiConfigHandler, decorator: Google::Apis::AppengineV1::ApiConfigHandler::Representation
property :endpoints_api_service, as: 'endpointsApiService', class: Google::Apis::AppengineV1::EndpointsApiService, decorator: Google::Apis::AppengineV1::EndpointsApiService::Representation
property :version_url, as: 'versionUrl'
property :vm, as: 'vm'
property :instance_class, as: 'instanceClass'
property :serving_status, as: 'servingStatus'
property :runtime_api_version, as: 'runtimeApiVersion'
property :deployment, as: 'deployment', class: Google::Apis::AppengineV1::Deployment, decorator: Google::Apis::AppengineV1::Deployment::Representation
property :create_time, as: 'createTime'
collection :inbound_services, as: 'inboundServices'
property :resources, as: 'resources', class: Google::Apis::AppengineV1::Resources, decorator: Google::Apis::AppengineV1::Resources::Representation property :resources, as: 'resources', class: Google::Apis::AppengineV1::Resources, decorator: Google::Apis::AppengineV1::Resources::Representation
collection :inbound_services, as: 'inboundServices'
collection :error_handlers, as: 'errorHandlers', class: Google::Apis::AppengineV1::ErrorHandler, decorator: Google::Apis::AppengineV1::ErrorHandler::Representation collection :error_handlers, as: 'errorHandlers', class: Google::Apis::AppengineV1::ErrorHandler, decorator: Google::Apis::AppengineV1::ErrorHandler::Representation
property :default_expiration, as: 'defaultExpiration' property :default_expiration, as: 'defaultExpiration'
@ -767,6 +721,21 @@ module Google
property :threadsafe, as: 'threadsafe' property :threadsafe, as: 'threadsafe'
property :readiness_check, as: 'readinessCheck', class: Google::Apis::AppengineV1::ReadinessCheck, decorator: Google::Apis::AppengineV1::ReadinessCheck::Representation property :readiness_check, as: 'readinessCheck', class: Google::Apis::AppengineV1::ReadinessCheck, decorator: Google::Apis::AppengineV1::ReadinessCheck::Representation
property :manual_scaling, as: 'manualScaling', class: Google::Apis::AppengineV1::ManualScaling, decorator: Google::Apis::AppengineV1::ManualScaling::Representation
property :name, as: 'name'
property :api_config, as: 'apiConfig', class: Google::Apis::AppengineV1::ApiConfigHandler, decorator: Google::Apis::AppengineV1::ApiConfigHandler::Representation
property :endpoints_api_service, as: 'endpointsApiService', class: Google::Apis::AppengineV1::EndpointsApiService, decorator: Google::Apis::AppengineV1::EndpointsApiService::Representation
property :vm, as: 'vm'
property :version_url, as: 'versionUrl'
property :instance_class, as: 'instanceClass'
property :serving_status, as: 'servingStatus'
property :runtime_api_version, as: 'runtimeApiVersion'
property :deployment, as: 'deployment', class: Google::Apis::AppengineV1::Deployment, decorator: Google::Apis::AppengineV1::Deployment::Representation
property :create_time, as: 'createTime'
end end
end end
@ -786,28 +755,28 @@ module Google
class FileInfo class FileInfo
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :source_url, as: 'sourceUrl'
property :sha1_sum, as: 'sha1Sum' property :sha1_sum, as: 'sha1Sum'
property :mime_type, as: 'mimeType' property :mime_type, as: 'mimeType'
property :source_url, as: 'sourceUrl'
end end
end end
class OperationMetadataExperimental class OperationMetadataExperimental
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :user, as: 'user'
property :target, as: 'target'
property :method_prop, as: 'method'
property :insert_time, as: 'insertTime' property :insert_time, as: 'insertTime'
property :end_time, as: 'endTime' property :end_time, as: 'endTime'
property :target, as: 'target'
property :user, as: 'user'
property :method_prop, as: 'method'
end end
end end
class TrafficSplit class TrafficSplit
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :shard_by, as: 'shardBy'
hash :allocations, as: 'allocations' hash :allocations, as: 'allocations'
property :shard_by, as: 'shardBy'
end end
end end
@ -827,20 +796,8 @@ module Google
class ListServicesResponse class ListServicesResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
collection :services, as: 'services', class: Google::Apis::AppengineV1::Service, decorator: Google::Apis::AppengineV1::Service::Representation
property :next_page_token, as: 'nextPageToken' property :next_page_token, as: 'nextPageToken'
end collection :services, as: 'services', class: Google::Apis::AppengineV1::Service, decorator: Google::Apis::AppengineV1::Service::Representation
end
class Deployment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :files, as: 'files', class: Google::Apis::AppengineV1::FileInfo, decorator: Google::Apis::AppengineV1::FileInfo::Representation
property :zip, as: 'zip', class: Google::Apis::AppengineV1::ZipInfo, decorator: Google::Apis::AppengineV1::ZipInfo::Representation
property :container, as: 'container', class: Google::Apis::AppengineV1::ContainerInfo, decorator: Google::Apis::AppengineV1::ContainerInfo::Representation
end end
end end
@ -848,20 +805,32 @@ module Google
class Resources class Resources
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :memory_gb, as: 'memoryGb'
property :cpu, as: 'cpu'
collection :volumes, as: 'volumes', class: Google::Apis::AppengineV1::Volume, decorator: Google::Apis::AppengineV1::Volume::Representation collection :volumes, as: 'volumes', class: Google::Apis::AppengineV1::Volume, decorator: Google::Apis::AppengineV1::Volume::Representation
property :disk_gb, as: 'diskGb' property :disk_gb, as: 'diskGb'
property :cpu, as: 'cpu' end
property :memory_gb, as: 'memoryGb' end
class Deployment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :zip, as: 'zip', class: Google::Apis::AppengineV1::ZipInfo, decorator: Google::Apis::AppengineV1::ZipInfo::Representation
property :container, as: 'container', class: Google::Apis::AppengineV1::ContainerInfo, decorator: Google::Apis::AppengineV1::ContainerInfo::Representation
hash :files, as: 'files', class: Google::Apis::AppengineV1::FileInfo, decorator: Google::Apis::AppengineV1::FileInfo::Representation
end end
end end
class Volume class Volume
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :volume_type, as: 'volumeType'
property :size_gb, as: 'sizeGb' property :size_gb, as: 'sizeGb'
property :name, as: 'name' property :name, as: 'name'
property :volume_type, as: 'volumeType'
end end
end end
@ -873,6 +842,37 @@ module Google
property :next_page_token, as: 'nextPageToken' property :next_page_token, as: 'nextPageToken'
end end
end end
class OperationMetadataV1Alpha
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :warning, as: 'warning'
property :insert_time, as: 'insertTime'
property :target, as: 'target'
property :user, as: 'user'
property :ephemeral_message, as: 'ephemeralMessage'
property :method_prop, as: 'method'
property :end_time, as: 'endTime'
end
end
class UrlDispatchRule
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :path, as: 'path'
property :service, as: 'service'
property :domain, as: 'domain'
end
end
class ListVersionsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :versions, as: 'versions', class: Google::Apis::AppengineV1::Version, decorator: Google::Apis::AppengineV1::Version::Representation
end
end
end end
end end
end end

View File

@ -48,9 +48,13 @@ module Google
@batch_path = 'batch' @batch_path = 'batch'
end end
# Gets information about an application. # Recreates the required App Engine features for the specified App Engine
# application, for example a Cloud Storage bucket or App Engine service account.
# Use this method if you receive an error message about a missing feature, for
# example, Error retrieving the App Engine service account.
# @param [String] apps_id # @param [String] apps_id
# Part of `name`. Name of the Application resource to get. Example: apps/myapp. # Part of `name`. Name of the application to repair. Example: apps/myapp
# @param [Google::Apis::AppengineV1::RepairApplicationRequest] repair_application_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
@ -60,18 +64,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 [Google::Apis::AppengineV1::Application] parsed result object # @yieldparam result [Google::Apis::AppengineV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed # @yieldparam err [StandardError] error object if request failed
# #
# @return [Google::Apis::AppengineV1::Application] # @return [Google::Apis::AppengineV1::Operation]
# #
# @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_app(apps_id, fields: nil, quota_user: nil, options: nil, &block) def repair_application(apps_id, repair_application_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/apps/{appsId}', options) command = make_simple_command(:post, 'v1/apps/{appsId}:repair', options)
command.response_representation = Google::Apis::AppengineV1::Application::Representation command.request_representation = Google::Apis::AppengineV1::RepairApplicationRequest::Representation
command.response_class = Google::Apis::AppengineV1::Application command.request_object = repair_application_request_object
command.response_representation = Google::Apis::AppengineV1::Operation::Representation
command.response_class = Google::Apis::AppengineV1::Operation
command.params['appsId'] = apps_id unless apps_id.nil? command.params['appsId'] = apps_id unless apps_id.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?
@ -119,6 +125,36 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets information about an application.
# @param [String] apps_id
# Part of `name`. Name of the Application resource to get. Example: apps/myapp.
# @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::AppengineV1::Application] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1::Application]
#
# @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_app(apps_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/apps/{appsId}', options)
command.response_representation = Google::Apis::AppengineV1::Application::Representation
command.response_class = Google::Apis::AppengineV1::Application
command.params['appsId'] = apps_id unless apps_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 an App Engine application for a Google Cloud Platform project. # Creates an App Engine application for a Google Cloud Platform project.
# Required fields: # Required fields:
# id - The ID of the target Cloud Platform project. # id - The ID of the target Cloud Platform project.
@ -155,88 +191,6 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Recreates the required App Engine features for the specified App Engine
# application, for example a Cloud Storage bucket or App Engine service account.
# Use this method if you receive an error message about a missing feature, for
# example, Error retrieving the App Engine service account.
# @param [String] apps_id
# Part of `name`. Name of the application to repair. Example: apps/myapp
# @param [Google::Apis::AppengineV1::RepairApplicationRequest] repair_application_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::AppengineV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1::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 repair_application(apps_id, repair_application_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/apps/{appsId}:repair', options)
command.request_representation = Google::Apis::AppengineV1::RepairApplicationRequest::Representation
command.request_object = repair_application_request_object
command.response_representation = Google::Apis::AppengineV1::Operation::Representation
command.response_class = Google::Apis::AppengineV1::Operation
command.params['appsId'] = apps_id unless apps_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
# Lists operations that match the specified filter in the request. If the server
# doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding
# allows API services to override the binding to use different resource name
# schemes, such as users/*/operations. To override the binding, API services can
# add a binding such as "/v1/`name=users/*`/operations" to their service
# configuration. For backwards compatibility, the default name includes the
# operations collection id, however overriding users must ensure the name
# binding is the parent resource, without the operations collection id.
# @param [String] apps_id
# Part of `name`. The name of the operation's parent resource.
# @param [String] page_token
# The standard list page token.
# @param [Fixnum] page_size
# The standard list page size.
# @param [String] filter
# The standard list filter.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AppengineV1::ListOperationsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1::ListOperationsResponse]
#
# @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_app_operations(apps_id, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/apps/{appsId}/operations', options)
command.response_representation = Google::Apis::AppengineV1::ListOperationsResponse::Representation
command.response_class = Google::Apis::AppengineV1::ListOperationsResponse
command.params['appsId'] = apps_id unless apps_id.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['filter'] = filter unless filter.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
@ -271,15 +225,22 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Lists information about the supported locations for this service. # Lists operations that match the specified filter in the request. If the server
# doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding
# allows API services to override the binding to use different resource name
# schemes, such as users/*/operations. To override the binding, API services can
# add a binding such as "/v1/`name=users/*`/operations" to their service
# configuration. For backwards compatibility, the default name includes the
# operations collection id, however overriding users must ensure the name
# binding is the parent resource, without the operations collection id.
# @param [String] apps_id # @param [String] apps_id
# Part of `name`. The resource that owns the locations collection, if applicable. # Part of `name`. The name of the operation's parent resource.
# @param [String] page_token
# The standard list page token.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# The standard list page size. # The standard list page size.
# @param [String] filter # @param [String] filter
# The standard list filter. # The standard list filter.
# @param [String] page_token
# The standard list 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
@ -289,22 +250,22 @@ 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 [Google::Apis::AppengineV1::ListLocationsResponse] parsed result object # @yieldparam result [Google::Apis::AppengineV1::ListOperationsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed # @yieldparam err [StandardError] error object if request failed
# #
# @return [Google::Apis::AppengineV1::ListLocationsResponse] # @return [Google::Apis::AppengineV1::ListOperationsResponse]
# #
# @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_app_locations(apps_id, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block) def list_app_operations(apps_id, page_size: nil, filter: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/apps/{appsId}/locations', options) command = make_simple_command(:get, 'v1/apps/{appsId}/operations', options)
command.response_representation = Google::Apis::AppengineV1::ListLocationsResponse::Representation command.response_representation = Google::Apis::AppengineV1::ListOperationsResponse::Representation
command.response_class = Google::Apis::AppengineV1::ListLocationsResponse command.response_class = Google::Apis::AppengineV1::ListOperationsResponse
command.params['appsId'] = apps_id unless apps_id.nil? command.params['appsId'] = apps_id unless apps_id.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['filter'] = filter unless filter.nil? command.query['filter'] = filter unless filter.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?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
@ -343,6 +304,45 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Lists information about the supported locations for this service.
# @param [String] apps_id
# Part of `name`. The resource that owns the locations collection, if applicable.
# @param [String] filter
# The standard list filter.
# @param [String] page_token
# The standard list page token.
# @param [Fixnum] page_size
# The standard list page size.
# @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::AppengineV1::ListLocationsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1::ListLocationsResponse]
#
# @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_app_locations(apps_id, filter: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/apps/{appsId}/locations', options)
command.response_representation = Google::Apis::AppengineV1::ListLocationsResponse::Representation
command.response_class = Google::Apis::AppengineV1::ListLocationsResponse
command.params['appsId'] = apps_id unless apps_id.nil?
command.query['filter'] = filter unless filter.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?
execute_or_queue_command(command, &block)
end
# Deletes the specified service and all enclosed versions. # Deletes the specified service and all enclosed versions.
# @param [String] apps_id # @param [String] apps_id
# Part of `name`. Name of the resource requested. Example: apps/myapp/services/ # Part of `name`. Name of the resource requested. Example: apps/myapp/services/
@ -377,76 +377,6 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Lists all the services in the application.
# @param [String] apps_id
# Part of `parent`. Name of the parent Application resource. Example: apps/myapp.
# @param [String] page_token
# Continuation token for fetching the next page of results.
# @param [Fixnum] page_size
# Maximum results to return per page.
# @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::AppengineV1::ListServicesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1::ListServicesResponse]
#
# @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_app_services(apps_id, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/apps/{appsId}/services', options)
command.response_representation = Google::Apis::AppengineV1::ListServicesResponse::Representation
command.response_class = Google::Apis::AppengineV1::ListServicesResponse
command.params['appsId'] = apps_id unless apps_id.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?
execute_or_queue_command(command, &block)
end
# Gets the current configuration of the specified service.
# @param [String] apps_id
# Part of `name`. Name of the resource requested. Example: apps/myapp/services/
# default.
# @param [String] services_id
# Part of `name`. See documentation of `appsId`.
# @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::AppengineV1::Service] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1::Service]
#
# @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_app_service(apps_id, services_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/apps/{appsId}/services/{servicesId}', options)
command.response_representation = Google::Apis::AppengineV1::Service::Representation
command.response_class = Google::Apis::AppengineV1::Service
command.params['appsId'] = apps_id unless apps_id.nil?
command.params['servicesId'] = services_id unless services_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
# Updates the configuration of the specified service. # Updates the configuration of the specified service.
# @param [String] apps_id # @param [String] apps_id
# Part of `name`. Name of the resource to update. Example: apps/myapp/services/ # Part of `name`. Name of the resource to update. Example: apps/myapp/services/
@ -501,6 +431,113 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets the current configuration of the specified service.
# @param [String] apps_id
# Part of `name`. Name of the resource requested. Example: apps/myapp/services/
# default.
# @param [String] services_id
# Part of `name`. See documentation of `appsId`.
# @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::AppengineV1::Service] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1::Service]
#
# @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_app_service(apps_id, services_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/apps/{appsId}/services/{servicesId}', options)
command.response_representation = Google::Apis::AppengineV1::Service::Representation
command.response_class = Google::Apis::AppengineV1::Service
command.params['appsId'] = apps_id unless apps_id.nil?
command.params['servicesId'] = services_id unless services_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
# Lists all the services in the application.
# @param [String] apps_id
# Part of `parent`. Name of the parent Application resource. Example: apps/myapp.
# @param [String] page_token
# Continuation token for fetching the next page of results.
# @param [Fixnum] page_size
# Maximum results to return per page.
# @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::AppengineV1::ListServicesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1::ListServicesResponse]
#
# @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_app_services(apps_id, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/apps/{appsId}/services', options)
command.response_representation = Google::Apis::AppengineV1::ListServicesResponse::Representation
command.response_class = Google::Apis::AppengineV1::ListServicesResponse
command.params['appsId'] = apps_id unless apps_id.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?
execute_or_queue_command(command, &block)
end
# Deploys code and resource files to a new version.
# @param [String] apps_id
# Part of `parent`. Name of the parent resource to create this version under.
# Example: apps/myapp/services/default.
# @param [String] services_id
# Part of `parent`. See documentation of `appsId`.
# @param [Google::Apis::AppengineV1::Version] version_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::AppengineV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1::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_app_service_version(apps_id, services_id, version_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/apps/{appsId}/services/{servicesId}/versions', options)
command.request_representation = Google::Apis::AppengineV1::Version::Representation
command.request_object = version_object
command.response_representation = Google::Apis::AppengineV1::Operation::Representation
command.response_class = Google::Apis::AppengineV1::Operation
command.params['appsId'] = apps_id unless apps_id.nil?
command.params['servicesId'] = services_id unless services_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
# Deletes an existing Version resource. # Deletes an existing Version resource.
# @param [String] apps_id # @param [String] apps_id
# Part of `name`. Name of the resource requested. Example: apps/myapp/services/ # Part of `name`. Name of the resource requested. Example: apps/myapp/services/
@ -538,90 +575,6 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Lists the versions of a service.
# @param [String] apps_id
# Part of `parent`. Name of the parent Service resource. Example: apps/myapp/
# services/default.
# @param [String] services_id
# Part of `parent`. See documentation of `appsId`.
# @param [String] page_token
# Continuation token for fetching the next page of results.
# @param [Fixnum] page_size
# Maximum results to return per page.
# @param [String] view
# Controls the set of fields returned in the List 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::AppengineV1::ListVersionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1::ListVersionsResponse]
#
# @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_app_service_versions(apps_id, services_id, page_token: nil, page_size: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/apps/{appsId}/services/{servicesId}/versions', options)
command.response_representation = Google::Apis::AppengineV1::ListVersionsResponse::Representation
command.response_class = Google::Apis::AppengineV1::ListVersionsResponse
command.params['appsId'] = apps_id unless apps_id.nil?
command.params['servicesId'] = services_id unless services_id.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['pageSize'] = page_size unless page_size.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
# Gets the specified Version resource. By default, only a BASIC_VIEW will be
# returned. Specify the FULL_VIEW parameter to get the full resource.
# @param [String] apps_id
# Part of `name`. Name of the resource requested. Example: apps/myapp/services/
# default/versions/v1.
# @param [String] services_id
# Part of `name`. See documentation of `appsId`.
# @param [String] versions_id
# Part of `name`. See documentation of `appsId`.
# @param [String] view
# Controls the set of fields returned in the Get 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::AppengineV1::Version] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1::Version]
#
# @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_app_service_version(apps_id, services_id, versions_id, view: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}', options)
command.response_representation = Google::Apis::AppengineV1::Version::Representation
command.response_class = Google::Apis::AppengineV1::Version
command.params['appsId'] = apps_id unless apps_id.nil?
command.params['servicesId'] = services_id unless services_id.nil?
command.params['versionsId'] = versions_id unless versions_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 specified Version resource. You can specify the following fields # Updates the specified Version resource. You can specify the following fields
# depending on the App Engine environment and type of scaling that the version # depending on the App Engine environment and type of scaling that the version
# resource uses: # resource uses:
@ -682,13 +635,17 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Deploys code and resource files to a new version. # Gets the specified Version resource. By default, only a BASIC_VIEW will be
# returned. Specify the FULL_VIEW parameter to get the full resource.
# @param [String] apps_id # @param [String] apps_id
# Part of `parent`. Name of the parent resource to create this version under. # Part of `name`. Name of the resource requested. Example: apps/myapp/services/
# Example: apps/myapp/services/default. # default/versions/v1.
# @param [String] services_id # @param [String] services_id
# Part of `parent`. See documentation of `appsId`. # Part of `name`. See documentation of `appsId`.
# @param [Google::Apis::AppengineV1::Version] version_object # @param [String] versions_id
# Part of `name`. See documentation of `appsId`.
# @param [String] view
# Controls the set of fields returned in the Get 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
@ -698,22 +655,65 @@ 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 [Google::Apis::AppengineV1::Operation] parsed result object # @yieldparam result [Google::Apis::AppengineV1::Version] parsed result object
# @yieldparam err [StandardError] error object if request failed # @yieldparam err [StandardError] error object if request failed
# #
# @return [Google::Apis::AppengineV1::Operation] # @return [Google::Apis::AppengineV1::Version]
# #
# @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_app_service_version(apps_id, services_id, version_object = nil, fields: nil, quota_user: nil, options: nil, &block) def get_app_service_version(apps_id, services_id, versions_id, view: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/apps/{appsId}/services/{servicesId}/versions', options) command = make_simple_command(:get, 'v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}', options)
command.request_representation = Google::Apis::AppengineV1::Version::Representation command.response_representation = Google::Apis::AppengineV1::Version::Representation
command.request_object = version_object command.response_class = Google::Apis::AppengineV1::Version
command.response_representation = Google::Apis::AppengineV1::Operation::Representation
command.response_class = Google::Apis::AppengineV1::Operation
command.params['appsId'] = apps_id unless apps_id.nil? command.params['appsId'] = apps_id unless apps_id.nil?
command.params['servicesId'] = services_id unless services_id.nil? command.params['servicesId'] = services_id unless services_id.nil?
command.params['versionsId'] = versions_id unless versions_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
# Lists the versions of a service.
# @param [String] apps_id
# Part of `parent`. Name of the parent Service resource. Example: apps/myapp/
# services/default.
# @param [String] services_id
# Part of `parent`. See documentation of `appsId`.
# @param [String] page_token
# Continuation token for fetching the next page of results.
# @param [Fixnum] page_size
# Maximum results to return per page.
# @param [String] view
# Controls the set of fields returned in the List 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::AppengineV1::ListVersionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1::ListVersionsResponse]
#
# @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_app_service_versions(apps_id, services_id, page_token: nil, page_size: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/apps/{appsId}/services/{servicesId}/versions', options)
command.response_representation = Google::Apis::AppengineV1::ListVersionsResponse::Representation
command.response_class = Google::Apis::AppengineV1::ListVersionsResponse
command.params['appsId'] = apps_id unless apps_id.nil?
command.params['servicesId'] = services_id unless services_id.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['view'] = view unless view.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)
@ -759,6 +759,46 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets instance information.
# @param [String] apps_id
# Part of `name`. Name of the resource requested. Example: apps/myapp/services/
# default/versions/v1/instances/instance-1.
# @param [String] services_id
# Part of `name`. See documentation of `appsId`.
# @param [String] versions_id
# Part of `name`. See documentation of `appsId`.
# @param [String] instances_id
# Part of `name`. See documentation of `appsId`.
# @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::AppengineV1::Instance] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1::Instance]
#
# @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_app_service_version_instance(apps_id, services_id, versions_id, instances_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}', options)
command.response_representation = Google::Apis::AppengineV1::Instance::Representation
command.response_class = Google::Apis::AppengineV1::Instance
command.params['appsId'] = apps_id unless apps_id.nil?
command.params['servicesId'] = services_id unless services_id.nil?
command.params['versionsId'] = versions_id unless versions_id.nil?
command.params['instancesId'] = instances_id unless instances_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
# Lists the instances of a version.Tip: To aggregate details about instances # Lists the instances of a version.Tip: To aggregate details about instances
# over time, see the Stackdriver Monitoring API (https://cloud.google.com/ # over time, see the Stackdriver Monitoring API (https://cloud.google.com/
# monitoring/api/ref_v3/rest/v3/projects.timeSeries/list). # monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
@ -804,46 +844,6 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets instance information.
# @param [String] apps_id
# Part of `name`. Name of the resource requested. Example: apps/myapp/services/
# default/versions/v1/instances/instance-1.
# @param [String] services_id
# Part of `name`. See documentation of `appsId`.
# @param [String] versions_id
# Part of `name`. See documentation of `appsId`.
# @param [String] instances_id
# Part of `name`. See documentation of `appsId`.
# @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::AppengineV1::Instance] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1::Instance]
#
# @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_app_service_version_instance(apps_id, services_id, versions_id, instances_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}', options)
command.response_representation = Google::Apis::AppengineV1::Instance::Representation
command.response_class = Google::Apis::AppengineV1::Instance
command.params['appsId'] = apps_id unless apps_id.nil?
command.params['servicesId'] = services_id unless services_id.nil?
command.params['versionsId'] = versions_id unless versions_id.nil?
command.params['instancesId'] = instances_id unless instances_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
# Enables debugging on a VM instance. This allows you to use the SSH command to # Enables debugging on a VM instance. This allows you to use the SSH command to
# connect to the virtual machine where the instance lives. While in "debug mode", # connect to the virtual machine where the instance lives. While in "debug mode",
# the instance continues to serve live traffic. You should delete the instance # the instance continues to serve live traffic. You should delete the instance

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 = '20170215' REVISION = '20170619'
# 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://developers.google.com/games/services/web/api/states # @see https://developers.google.com/games/services/web/api/states
module AppstateV1 module AppstateV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20170601' REVISION = '20170710'
# View and manage your data for this application # View and manage your data for this application
AUTH_APPSTATE = 'https://www.googleapis.com/auth/appstate' AUTH_APPSTATE = 'https://www.googleapis.com/auth/appstate'

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 = '20170604' REVISION = '20170622'
# 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

@ -2903,6 +2903,11 @@ module Google
# @return [Google::Apis::BigqueryV2::TableReference] # @return [Google::Apis::BigqueryV2::TableReference]
attr_accessor :table_reference attr_accessor :table_reference
# [Experimental] The time-based partitioning for this table.
# Corresponds to the JSON property `timePartitioning`
# @return [Google::Apis::BigqueryV2::TimePartitioning]
attr_accessor :time_partitioning
# The type of table. Possible values are: TABLE, VIEW. # The type of table. Possible values are: TABLE, VIEW.
# Corresponds to the JSON property `type` # Corresponds to the JSON property `type`
# @return [String] # @return [String]
@ -2924,6 +2929,7 @@ module Google
@kind = args[:kind] if args.key?(:kind) @kind = args[:kind] if args.key?(:kind)
@labels = args[:labels] if args.key?(:labels) @labels = args[:labels] if args.key?(:labels)
@table_reference = args[:table_reference] if args.key?(:table_reference) @table_reference = args[:table_reference] if args.key?(:table_reference)
@time_partitioning = args[:time_partitioning] if args.key?(:time_partitioning)
@type = args[:type] if args.key?(:type) @type = args[:type] if args.key?(:type)
@view = args[:view] if args.key?(:view) @view = args[:view] if args.key?(:view)
end end

View File

@ -1040,6 +1040,8 @@ module Google
hash :labels, as: 'labels' hash :labels, as: 'labels'
property :table_reference, as: 'tableReference', class: Google::Apis::BigqueryV2::TableReference, decorator: Google::Apis::BigqueryV2::TableReference::Representation property :table_reference, as: 'tableReference', class: Google::Apis::BigqueryV2::TableReference, decorator: Google::Apis::BigqueryV2::TableReference::Representation
property :time_partitioning, as: 'timePartitioning', class: Google::Apis::BigqueryV2::TimePartitioning, decorator: Google::Apis::BigqueryV2::TimePartitioning::Representation
property :type, as: 'type' property :type, as: 'type'
property :view, as: 'view', class: Google::Apis::BigqueryV2::TableList::Table::View, decorator: Google::Apis::BigqueryV2::TableList::Table::View::Representation property :view, as: 'view', class: Google::Apis::BigqueryV2::TableList::Table::View, decorator: Google::Apis::BigqueryV2::TableList::Table::View::Representation

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 = '20170528' REVISION = '20170613'
# 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,10 +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 = '20170612' REVISION = '20170710'
# View the email addresses of people in your classes
AUTH_CLASSROOM_PROFILE_EMAILS = 'https://www.googleapis.com/auth/classroom.profile.emails'
# Manage your course work and view your grades in Google Classroom # Manage your course work and view your grades in Google Classroom
AUTH_CLASSROOM_COURSEWORK_ME = 'https://www.googleapis.com/auth/classroom.coursework.me' AUTH_CLASSROOM_COURSEWORK_ME = 'https://www.googleapis.com/auth/classroom.coursework.me'
@ -60,17 +57,20 @@ module Google
# View your course work and grades in Google Classroom # View your course work and grades in Google Classroom
AUTH_CLASSROOM_STUDENT_SUBMISSIONS_ME_READONLY = 'https://www.googleapis.com/auth/classroom.student-submissions.me.readonly' AUTH_CLASSROOM_STUDENT_SUBMISSIONS_ME_READONLY = 'https://www.googleapis.com/auth/classroom.student-submissions.me.readonly'
# Manage course work and grades for students in the Google Classroom classes you teach and view the course work and grades for classes you administer
AUTH_CLASSROOM_COURSEWORK_STUDENTS = 'https://www.googleapis.com/auth/classroom.coursework.students'
# View your Google Classroom guardians # View your Google Classroom guardians
AUTH_CLASSROOM_GUARDIANLINKS_ME_READONLY = 'https://www.googleapis.com/auth/classroom.guardianlinks.me.readonly' AUTH_CLASSROOM_GUARDIANLINKS_ME_READONLY = 'https://www.googleapis.com/auth/classroom.guardianlinks.me.readonly'
# View course work and grades for students in the Google Classroom classes you teach or administer # View course work and grades for students in the Google Classroom classes you teach or administer
AUTH_CLASSROOM_COURSEWORK_STUDENTS_READONLY = 'https://www.googleapis.com/auth/classroom.coursework.students.readonly' AUTH_CLASSROOM_COURSEWORK_STUDENTS_READONLY = 'https://www.googleapis.com/auth/classroom.coursework.students.readonly'
# Manage course work and grades for students in the Google Classroom classes you teach and view the course work and grades for classes you administer
AUTH_CLASSROOM_COURSEWORK_STUDENTS = 'https://www.googleapis.com/auth/classroom.coursework.students'
# View your course work and grades in Google Classroom # View your course work and grades in Google Classroom
AUTH_CLASSROOM_COURSEWORK_ME_READONLY = 'https://www.googleapis.com/auth/classroom.coursework.me.readonly' AUTH_CLASSROOM_COURSEWORK_ME_READONLY = 'https://www.googleapis.com/auth/classroom.coursework.me.readonly'
# View the email addresses of people in your classes
AUTH_CLASSROOM_PROFILE_EMAILS = 'https://www.googleapis.com/auth/classroom.profile.emails'
end end
end end
end end

File diff suppressed because it is too large Load Diff

View File

@ -22,30 +22,6 @@ module Google
module Apis module Apis
module ClassroomV1 module ClassroomV1
class Date
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MultipleChoiceSubmission
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CourseMaterial
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Name
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Assignment class Assignment
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -82,13 +58,13 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class GlobalPermission class ReturnStudentSubmissionRequest
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 ReturnStudentSubmissionRequest class GlobalPermission
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
@ -130,13 +106,13 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class UserProfile class ListStudentsResponse
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 ListStudentsResponse class UserProfile
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
@ -166,12 +142,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class StudentSubmission
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TurnInStudentSubmissionRequest class TurnInStudentSubmissionRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -184,7 +154,7 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ModifyAttachmentsRequest class StudentSubmission
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
@ -196,6 +166,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ModifyAttachmentsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class YouTubeVideo class YouTubeVideo
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -208,13 +184,13 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class Attachment class GuardianInvitation
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 GuardianInvitation class Attachment
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
@ -262,6 +238,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class CourseAlias
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListCourseAliasesResponse class ListCourseAliasesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -274,49 +256,28 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class CourseAlias class Date
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 Date
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :year, as: 'year'
property :day, as: 'day'
property :month, as: 'month'
end
end
class MultipleChoiceSubmission class MultipleChoiceSubmission
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
property :answer, as: 'answer' include Google::Apis::Core::JsonObjectSupport
end
end end
class CourseMaterial class CourseMaterial
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
property :drive_file, as: 'driveFile', class: Google::Apis::ClassroomV1::DriveFile, decorator: Google::Apis::ClassroomV1::DriveFile::Representation
property :you_tube_video, as: 'youTubeVideo', class: Google::Apis::ClassroomV1::YouTubeVideo, decorator: Google::Apis::ClassroomV1::YouTubeVideo::Representation include Google::Apis::Core::JsonObjectSupport
property :form, as: 'form', class: Google::Apis::ClassroomV1::Form, decorator: Google::Apis::ClassroomV1::Form::Representation
property :link, as: 'link', class: Google::Apis::ClassroomV1::Link, decorator: Google::Apis::ClassroomV1::Link::Representation
end
end end
class Name class Name
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
property :given_name, as: 'givenName' include Google::Apis::Core::JsonObjectSupport
property :family_name, as: 'familyName'
property :full_name, as: 'fullName'
end
end end
class Assignment class Assignment
@ -330,9 +291,9 @@ module Google
class SharedDriveFile class SharedDriveFile
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :share_mode, as: 'shareMode'
property :drive_file, as: 'driveFile', class: Google::Apis::ClassroomV1::DriveFile, decorator: Google::Apis::ClassroomV1::DriveFile::Representation property :drive_file, as: 'driveFile', class: Google::Apis::ClassroomV1::DriveFile, decorator: Google::Apis::ClassroomV1::DriveFile::Representation
property :share_mode, as: 'shareMode'
end end
end end
@ -352,8 +313,8 @@ module Google
class Course class Course
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :calendar_id, as: 'calendarId'
property :update_time, as: 'updateTime' property :update_time, as: 'updateTime'
property :calendar_id, as: 'calendarId'
property :alternate_link, as: 'alternateLink' property :alternate_link, as: 'alternateLink'
property :guardians_enabled, as: 'guardiansEnabled' property :guardians_enabled, as: 'guardiansEnabled'
property :owner_id, as: 'ownerId' property :owner_id, as: 'ownerId'
@ -378,10 +339,16 @@ module Google
class DriveFile class DriveFile
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :thumbnail_url, as: 'thumbnailUrl'
property :id, as: 'id' property :id, as: 'id'
property :title, as: 'title' property :title, as: 'title'
property :alternate_link, as: 'alternateLink' property :alternate_link, as: 'alternateLink'
property :thumbnail_url, as: 'thumbnailUrl'
end
end
class ReturnStudentSubmissionRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end end
end end
@ -392,19 +359,13 @@ module Google
end end
end end
class ReturnStudentSubmissionRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class Teacher class Teacher
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :course_id, as: 'courseId'
property :profile, as: 'profile', class: Google::Apis::ClassroomV1::UserProfile, decorator: Google::Apis::ClassroomV1::UserProfile::Representation property :profile, as: 'profile', class: Google::Apis::ClassroomV1::UserProfile, decorator: Google::Apis::ClassroomV1::UserProfile::Representation
property :user_id, as: 'userId' property :user_id, as: 'userId'
property :course_id, as: 'courseId'
end end
end end
@ -425,54 +386,63 @@ module Google
class Material class Material
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :youtube_video, as: 'youtubeVideo', class: Google::Apis::ClassroomV1::YouTubeVideo, decorator: Google::Apis::ClassroomV1::YouTubeVideo::Representation
property :drive_file, as: 'driveFile', class: Google::Apis::ClassroomV1::SharedDriveFile, decorator: Google::Apis::ClassroomV1::SharedDriveFile::Representation property :drive_file, as: 'driveFile', class: Google::Apis::ClassroomV1::SharedDriveFile, decorator: Google::Apis::ClassroomV1::SharedDriveFile::Representation
property :form, as: 'form', class: Google::Apis::ClassroomV1::Form, decorator: Google::Apis::ClassroomV1::Form::Representation property :form, as: 'form', class: Google::Apis::ClassroomV1::Form, decorator: Google::Apis::ClassroomV1::Form::Representation
property :link, as: 'link', class: Google::Apis::ClassroomV1::Link, decorator: Google::Apis::ClassroomV1::Link::Representation property :link, as: 'link', class: Google::Apis::ClassroomV1::Link, decorator: Google::Apis::ClassroomV1::Link::Representation
property :youtube_video, as: 'youtubeVideo', class: Google::Apis::ClassroomV1::YouTubeVideo, decorator: Google::Apis::ClassroomV1::YouTubeVideo::Representation
end end
end end
class CourseWork class CourseWork
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :course_id, as: 'courseId' property :associated_with_developer, as: 'associatedWithDeveloper'
property :id, as: 'id'
property :due_time, as: 'dueTime', class: Google::Apis::ClassroomV1::TimeOfDay, decorator: Google::Apis::ClassroomV1::TimeOfDay::Representation
property :title, as: 'title'
collection :materials, as: 'materials', class: Google::Apis::ClassroomV1::Material, decorator: Google::Apis::ClassroomV1::Material::Representation collection :materials, as: 'materials', class: Google::Apis::ClassroomV1::Material, decorator: Google::Apis::ClassroomV1::Material::Representation
property :associated_with_developer, as: 'associatedWithDeveloper'
property :update_time, as: 'updateTime' property :update_time, as: 'updateTime'
property :alternate_link, as: 'alternateLink' property :alternate_link, as: 'alternateLink'
property :max_points, as: 'maxPoints' property :max_points, as: 'maxPoints'
property :assignment, as: 'assignment', class: Google::Apis::ClassroomV1::Assignment, decorator: Google::Apis::ClassroomV1::Assignment::Representation
property :work_type, as: 'workType' property :work_type, as: 'workType'
property :multiple_choice_question, as: 'multipleChoiceQuestion', class: Google::Apis::ClassroomV1::MultipleChoiceQuestion, decorator: Google::Apis::ClassroomV1::MultipleChoiceQuestion::Representation property :multiple_choice_question, as: 'multipleChoiceQuestion', class: Google::Apis::ClassroomV1::MultipleChoiceQuestion, decorator: Google::Apis::ClassroomV1::MultipleChoiceQuestion::Representation
property :assignment, as: 'assignment', class: Google::Apis::ClassroomV1::Assignment, decorator: Google::Apis::ClassroomV1::Assignment::Representation
property :description, as: 'description'
property :scheduled_time, as: 'scheduledTime' property :scheduled_time, as: 'scheduledTime'
property :description, as: 'description'
property :creation_time, as: 'creationTime' property :creation_time, as: 'creationTime'
property :due_date, as: 'dueDate', class: Google::Apis::ClassroomV1::Date, decorator: Google::Apis::ClassroomV1::Date::Representation property :due_date, as: 'dueDate', class: Google::Apis::ClassroomV1::Date, decorator: Google::Apis::ClassroomV1::Date::Representation
property :submission_modification_mode, as: 'submissionModificationMode' property :submission_modification_mode, as: 'submissionModificationMode'
property :state, as: 'state' property :state, as: 'state'
property :course_id, as: 'courseId'
property :id, as: 'id'
property :due_time, as: 'dueTime', class: Google::Apis::ClassroomV1::TimeOfDay, decorator: Google::Apis::ClassroomV1::TimeOfDay::Representation
property :title, as: 'title'
end end
end end
class Guardian class Guardian
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :student_id, as: 'studentId'
property :guardian_id, as: 'guardianId'
property :invited_email_address, as: 'invitedEmailAddress' property :invited_email_address, as: 'invitedEmailAddress'
property :guardian_id, as: 'guardianId'
property :guardian_profile, as: 'guardianProfile', class: Google::Apis::ClassroomV1::UserProfile, decorator: Google::Apis::ClassroomV1::UserProfile::Representation property :guardian_profile, as: 'guardianProfile', class: Google::Apis::ClassroomV1::UserProfile, decorator: Google::Apis::ClassroomV1::UserProfile::Representation
property :student_id, as: 'studentId'
end
end
class ListStudentsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :students, as: 'students', class: Google::Apis::ClassroomV1::Student, decorator: Google::Apis::ClassroomV1::Student::Representation
end end
end end
@ -490,43 +460,34 @@ module Google
end end
end end
class ListStudentsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :students, as: 'students', class: Google::Apis::ClassroomV1::Student, decorator: Google::Apis::ClassroomV1::Student::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class Student class Student
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :course_id, as: 'courseId'
property :profile, as: 'profile', class: Google::Apis::ClassroomV1::UserProfile, decorator: Google::Apis::ClassroomV1::UserProfile::Representation
property :student_work_folder, as: 'studentWorkFolder', class: Google::Apis::ClassroomV1::DriveFolder, decorator: Google::Apis::ClassroomV1::DriveFolder::Representation property :student_work_folder, as: 'studentWorkFolder', class: Google::Apis::ClassroomV1::DriveFolder, decorator: Google::Apis::ClassroomV1::DriveFolder::Representation
property :profile, as: 'profile', class: Google::Apis::ClassroomV1::UserProfile, decorator: Google::Apis::ClassroomV1::UserProfile::Representation
property :user_id, as: 'userId' property :user_id, as: 'userId'
property :course_id, as: 'courseId'
end end
end end
class Invitation class Invitation
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :user_id, as: 'userId'
property :course_id, as: 'courseId' property :course_id, as: 'courseId'
property :id, as: 'id' property :id, as: 'id'
property :role, as: 'role' property :role, as: 'role'
property :user_id, as: 'userId'
end end
end end
class DriveFolder class DriveFolder
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
property :title, as: 'title' property :title, as: 'title'
property :alternate_link, as: 'alternateLink' property :alternate_link, as: 'alternateLink'
property :id, as: 'id'
end end
end end
@ -537,31 +498,6 @@ module Google
end end
end end
class StudentSubmission
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :late, as: 'late'
property :draft_grade, as: 'draftGrade'
property :course_work_type, as: 'courseWorkType'
property :creation_time, as: 'creationTime'
property :state, as: 'state'
property :user_id, as: 'userId'
property :course_work_id, as: 'courseWorkId'
property :course_id, as: 'courseId'
property :id, as: 'id'
property :assigned_grade, as: 'assignedGrade'
property :multiple_choice_submission, as: 'multipleChoiceSubmission', class: Google::Apis::ClassroomV1::MultipleChoiceSubmission, decorator: Google::Apis::ClassroomV1::MultipleChoiceSubmission::Representation
property :assignment_submission, as: 'assignmentSubmission', class: Google::Apis::ClassroomV1::AssignmentSubmission, decorator: Google::Apis::ClassroomV1::AssignmentSubmission::Representation
property :associated_with_developer, as: 'associatedWithDeveloper'
property :short_answer_submission, as: 'shortAnswerSubmission', class: Google::Apis::ClassroomV1::ShortAnswerSubmission, decorator: Google::Apis::ClassroomV1::ShortAnswerSubmission::Representation
property :update_time, as: 'updateTime'
property :alternate_link, as: 'alternateLink'
end
end
class TurnInStudentSubmissionRequest class TurnInStudentSubmissionRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -577,11 +513,28 @@ module Google
end end
end end
class ModifyAttachmentsRequest class StudentSubmission
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
collection :add_attachments, as: 'addAttachments', class: Google::Apis::ClassroomV1::Attachment, decorator: Google::Apis::ClassroomV1::Attachment::Representation property :course_work_id, as: 'courseWorkId'
property :course_id, as: 'courseId'
property :id, as: 'id'
property :assigned_grade, as: 'assignedGrade'
property :multiple_choice_submission, as: 'multipleChoiceSubmission', class: Google::Apis::ClassroomV1::MultipleChoiceSubmission, decorator: Google::Apis::ClassroomV1::MultipleChoiceSubmission::Representation
property :assignment_submission, as: 'assignmentSubmission', class: Google::Apis::ClassroomV1::AssignmentSubmission, decorator: Google::Apis::ClassroomV1::AssignmentSubmission::Representation
property :associated_with_developer, as: 'associatedWithDeveloper'
property :short_answer_submission, as: 'shortAnswerSubmission', class: Google::Apis::ClassroomV1::ShortAnswerSubmission, decorator: Google::Apis::ClassroomV1::ShortAnswerSubmission::Representation
property :update_time, as: 'updateTime'
property :alternate_link, as: 'alternateLink'
property :late, as: 'late'
property :draft_grade, as: 'draftGrade'
property :course_work_type, as: 'courseWorkType'
property :creation_time, as: 'creationTime'
property :state, as: 'state'
property :user_id, as: 'userId'
end end
end end
@ -594,75 +547,83 @@ module Google
end end
end end
class ModifyAttachmentsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :add_attachments, as: 'addAttachments', class: Google::Apis::ClassroomV1::Attachment, decorator: Google::Apis::ClassroomV1::Attachment::Representation
end
end
class YouTubeVideo class YouTubeVideo
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :title, as: 'title'
property :alternate_link, as: 'alternateLink' property :alternate_link, as: 'alternateLink'
property :thumbnail_url, as: 'thumbnailUrl' property :thumbnail_url, as: 'thumbnailUrl'
property :id, as: 'id' property :id, as: 'id'
property :title, as: 'title'
end end
end end
class ListInvitationsResponse class ListInvitationsResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :invitations, as: 'invitations', class: Google::Apis::ClassroomV1::Invitation, decorator: Google::Apis::ClassroomV1::Invitation::Representation collection :invitations, as: 'invitations', class: Google::Apis::ClassroomV1::Invitation, decorator: Google::Apis::ClassroomV1::Invitation::Representation
end property :next_page_token, as: 'nextPageToken'
end
class Attachment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :form, as: 'form', class: Google::Apis::ClassroomV1::Form, decorator: Google::Apis::ClassroomV1::Form::Representation
property :link, as: 'link', class: Google::Apis::ClassroomV1::Link, decorator: Google::Apis::ClassroomV1::Link::Representation
property :drive_file, as: 'driveFile', class: Google::Apis::ClassroomV1::DriveFile, decorator: Google::Apis::ClassroomV1::DriveFile::Representation
property :you_tube_video, as: 'youTubeVideo', class: Google::Apis::ClassroomV1::YouTubeVideo, decorator: Google::Apis::ClassroomV1::YouTubeVideo::Representation
end end
end end
class GuardianInvitation class GuardianInvitation
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :student_id, as: 'studentId'
property :state, as: 'state' property :state, as: 'state'
property :student_id, as: 'studentId'
property :invited_email_address, as: 'invitedEmailAddress' property :invited_email_address, as: 'invitedEmailAddress'
property :creation_time, as: 'creationTime' property :creation_time, as: 'creationTime'
property :invitation_id, as: 'invitationId' property :invitation_id, as: 'invitationId'
end end
end end
class Attachment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :link, as: 'link', class: Google::Apis::ClassroomV1::Link, decorator: Google::Apis::ClassroomV1::Link::Representation
property :you_tube_video, as: 'youTubeVideo', class: Google::Apis::ClassroomV1::YouTubeVideo, decorator: Google::Apis::ClassroomV1::YouTubeVideo::Representation
property :drive_file, as: 'driveFile', class: Google::Apis::ClassroomV1::DriveFile, decorator: Google::Apis::ClassroomV1::DriveFile::Representation
property :form, as: 'form', class: Google::Apis::ClassroomV1::Form, decorator: Google::Apis::ClassroomV1::Form::Representation
end
end
class CourseMaterialSet class CourseMaterialSet
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :title, as: 'title'
collection :materials, as: 'materials', class: Google::Apis::ClassroomV1::CourseMaterial, decorator: Google::Apis::ClassroomV1::CourseMaterial::Representation collection :materials, as: 'materials', class: Google::Apis::ClassroomV1::CourseMaterial, decorator: Google::Apis::ClassroomV1::CourseMaterial::Representation
property :title, as: 'title'
end end
end end
class TimeOfDay class TimeOfDay
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :hours, as: 'hours'
property :nanos, as: 'nanos'
property :seconds, as: 'seconds' property :seconds, as: 'seconds'
property :minutes, as: 'minutes' property :minutes, as: 'minutes'
property :hours, as: 'hours'
property :nanos, as: 'nanos'
end end
end end
class ListCoursesResponse class ListCoursesResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :courses, as: 'courses', class: Google::Apis::ClassroomV1::Course, decorator: Google::Apis::ClassroomV1::Course::Representation collection :courses, as: 'courses', class: Google::Apis::ClassroomV1::Course, decorator: Google::Apis::ClassroomV1::Course::Representation
property :next_page_token, as: 'nextPageToken'
end end
end end
@ -679,27 +640,34 @@ module Google
class ListTeachersResponse class ListTeachersResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :teachers, as: 'teachers', class: Google::Apis::ClassroomV1::Teacher, decorator: Google::Apis::ClassroomV1::Teacher::Representation collection :teachers, as: 'teachers', class: Google::Apis::ClassroomV1::Teacher, decorator: Google::Apis::ClassroomV1::Teacher::Representation
property :next_page_token, as: 'nextPageToken'
end end
end end
class Link class Link
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :title, as: 'title'
property :thumbnail_url, as: 'thumbnailUrl' property :thumbnail_url, as: 'thumbnailUrl'
property :url, as: 'url' property :url, as: 'url'
property :title, as: 'title'
end end
end end
class ListGuardiansResponse class ListGuardiansResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :guardians, as: 'guardians', class: Google::Apis::ClassroomV1::Guardian, decorator: Google::Apis::ClassroomV1::Guardian::Representation collection :guardians, as: 'guardians', class: Google::Apis::ClassroomV1::Guardian, decorator: Google::Apis::ClassroomV1::Guardian::Representation
property :next_page_token, as: 'nextPageToken' end
end
class CourseAlias
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :alias, as: 'alias'
end end
end end
@ -715,16 +683,48 @@ module Google
class ListGuardianInvitationsResponse class ListGuardianInvitationsResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :guardian_invitations, as: 'guardianInvitations', class: Google::Apis::ClassroomV1::GuardianInvitation, decorator: Google::Apis::ClassroomV1::GuardianInvitation::Representation collection :guardian_invitations, as: 'guardianInvitations', class: Google::Apis::ClassroomV1::GuardianInvitation, decorator: Google::Apis::ClassroomV1::GuardianInvitation::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class Date
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :day, as: 'day'
property :year, as: 'year'
property :month, as: 'month'
end
end
class MultipleChoiceSubmission
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :answer, as: 'answer'
end
end
class CourseMaterial
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :you_tube_video, as: 'youTubeVideo', class: Google::Apis::ClassroomV1::YouTubeVideo, decorator: Google::Apis::ClassroomV1::YouTubeVideo::Representation
property :drive_file, as: 'driveFile', class: Google::Apis::ClassroomV1::DriveFile, decorator: Google::Apis::ClassroomV1::DriveFile::Representation
property :form, as: 'form', class: Google::Apis::ClassroomV1::Form, decorator: Google::Apis::ClassroomV1::Form::Representation
property :link, as: 'link', class: Google::Apis::ClassroomV1::Link, decorator: Google::Apis::ClassroomV1::Link::Representation
end end
end end
class CourseAlias class Name
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :alias, as: 'alias' property :family_name, as: 'familyName'
property :given_name, as: 'givenName'
property :full_name, as: 'fullName'
end end
end end
end end

File diff suppressed because it is too large Load Diff

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 = '20170614' REVISION = '20170712'
# 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,185 +22,6 @@ module Google
module Apis module Apis
module CloudbuildV1 module CloudbuildV1
# Request to cancel an ongoing build.
class CancelBuildRequest
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Response including listed builds.
class ListBuildsResponse
include Google::Apis::Core::Hashable
# Token to receive the next page of results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# Builds will be sorted by create_time, descending.
# Corresponds to the JSON property `builds`
# @return [Array<Google::Apis::CloudbuildV1::Build>]
attr_accessor :builds
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)
@builds = args[:builds] if args.key?(:builds)
end
end
# The response message for Operations.ListOperations.
class ListOperationsResponse
include Google::Apis::Core::Hashable
# A list of operations that matches the specified filter in the request.
# Corresponds to the JSON property `operations`
# @return [Array<Google::Apis::CloudbuildV1::Operation>]
attr_accessor :operations
# The standard List next-page token.
# 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)
@operations = args[:operations] if args.key?(:operations)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# Source describes the location of the source in a supported storage
# service.
class Source
include Google::Apis::Core::Hashable
# StorageSource describes the location of the source in an archive file in
# Google Cloud Storage.
# Corresponds to the JSON property `storageSource`
# @return [Google::Apis::CloudbuildV1::StorageSource]
attr_accessor :storage_source
# RepoSource describes the location of the source in a Google Cloud Source
# Repository.
# Corresponds to the JSON property `repoSource`
# @return [Google::Apis::CloudbuildV1::RepoSource]
attr_accessor :repo_source
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@storage_source = args[:storage_source] if args.key?(:storage_source)
@repo_source = args[:repo_source] if args.key?(:repo_source)
end
end
# Optional arguments to enable specific features of builds.
class BuildOptions
include Google::Apis::Core::Hashable
# Requested hash for SourceProvenance.
# Corresponds to the JSON property `sourceProvenanceHash`
# @return [Array<String>]
attr_accessor :source_provenance_hash
# Requested verifiability options.
# Corresponds to the JSON property `requestedVerifyOption`
# @return [String]
attr_accessor :requested_verify_option
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@source_provenance_hash = args[:source_provenance_hash] if args.key?(:source_provenance_hash)
@requested_verify_option = args[:requested_verify_option] if args.key?(:requested_verify_option)
end
end
# StorageSource describes the location of the source in an archive file in
# Google Cloud Storage.
class StorageSource
include Google::Apis::Core::Hashable
# Google Cloud Storage generation for the object. If the generation is
# omitted, the latest generation will be used.
# Corresponds to the JSON property `generation`
# @return [Fixnum]
attr_accessor :generation
# Google Cloud Storage bucket containing source (see
# [Bucket Name
# Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)
# ).
# Corresponds to the JSON property `bucket`
# @return [String]
attr_accessor :bucket
# Google Cloud Storage object containing source.
# This object must be a gzipped archive file (.tar.gz) containing source to
# build.
# Corresponds to the JSON property `object`
# @return [String]
attr_accessor :object
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@generation = args[:generation] if args.key?(:generation)
@bucket = args[:bucket] if args.key?(:bucket)
@object = args[:object] if args.key?(:object)
end
end
# Results describes the artifacts created by the build pipeline.
class Results
include Google::Apis::Core::Hashable
# Images that were built as a part of the build.
# Corresponds to the JSON property `images`
# @return [Array<Google::Apis::CloudbuildV1::BuiltImage>]
attr_accessor :images
# List of build step digests, in order corresponding to build step indices.
# Corresponds to the JSON property `buildStepImages`
# @return [Array<String>]
attr_accessor :build_step_images
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@images = args[:images] if args.key?(:images)
@build_step_images = args[:build_step_images] if args.key?(:build_step_images)
end
end
# Metadata for build operations. # Metadata for build operations.
class BuildOperationMetadata class BuildOperationMetadata
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -237,12 +58,6 @@ module Google
class SourceProvenance class SourceProvenance
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# RepoSource describes the location of the source in a Google Cloud Source
# Repository.
# Corresponds to the JSON property `resolvedRepoSource`
# @return [Google::Apis::CloudbuildV1::RepoSource]
attr_accessor :resolved_repo_source
# StorageSource describes the location of the source in an archive file in # StorageSource describes the location of the source in an archive file in
# Google Cloud Storage. # Google Cloud Storage.
# Corresponds to the JSON property `resolvedStorageSource` # Corresponds to the JSON property `resolvedStorageSource`
@ -261,15 +76,21 @@ module Google
# @return [Hash<String,Google::Apis::CloudbuildV1::FileHashes>] # @return [Hash<String,Google::Apis::CloudbuildV1::FileHashes>]
attr_accessor :file_hashes attr_accessor :file_hashes
# RepoSource describes the location of the source in a Google Cloud Source
# Repository.
# Corresponds to the JSON property `resolvedRepoSource`
# @return [Google::Apis::CloudbuildV1::RepoSource]
attr_accessor :resolved_repo_source
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@resolved_repo_source = args[:resolved_repo_source] if args.key?(:resolved_repo_source)
@resolved_storage_source = args[:resolved_storage_source] if args.key?(:resolved_storage_source) @resolved_storage_source = args[:resolved_storage_source] if args.key?(:resolved_storage_source)
@file_hashes = args[:file_hashes] if args.key?(:file_hashes) @file_hashes = args[:file_hashes] if args.key?(:file_hashes)
@resolved_repo_source = args[:resolved_repo_source] if args.key?(:resolved_repo_source)
end end
end end
@ -286,19 +107,30 @@ module Google
end end
end end
# Response containing existing BuildTriggers.
class ListBuildTriggersResponse
include Google::Apis::Core::Hashable
# BuildTriggers for the project, sorted by create_time descending.
# Corresponds to the JSON property `triggers`
# @return [Array<Google::Apis::CloudbuildV1::BuildTrigger>]
attr_accessor :triggers
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@triggers = args[:triggers] if args.key?(:triggers)
end
end
# This resource represents a long-running operation that is the result of a # This resource represents a long-running operation that is the result of a
# network API call. # network API call.
class Operation class Operation
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# 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 normal response of the operation in case of success. If the original # 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 # method returns no data on success, such as `Delete`, the response is
# `google.protobuf.Empty`. If the original method is standard # `google.protobuf.Empty`. If the original method is standard
@ -369,36 +201,25 @@ module Google
# @return [Hash<String,Object>] # @return [Hash<String,Object>]
attr_accessor :metadata 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
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@done = args[:done] if args.key?(:done)
@response = args[:response] if args.key?(:response) @response = args[:response] if args.key?(:response)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@error = args[:error] if args.key?(:error) @error = args[:error] if args.key?(:error)
@metadata = args[:metadata] if args.key?(:metadata) @metadata = args[:metadata] if args.key?(:metadata)
end @done = args[:done] if args.key?(:done)
end
# Response containing existing BuildTriggers.
class ListBuildTriggersResponse
include Google::Apis::Core::Hashable
# BuildTriggers for the project, sorted by create_time descending.
# Corresponds to the JSON property `triggers`
# @return [Array<Google::Apis::CloudbuildV1::BuildTrigger>]
attr_accessor :triggers
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@triggers = args[:triggers] if args.key?(:triggers)
end end
end end
@ -428,22 +249,94 @@ module Google
end end
end end
# Container message for hash values.
class HashProp
include Google::Apis::Core::Hashable
# The hash value.
# Corresponds to the JSON property `value`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
attr_accessor :value
# The type of hash that was performed.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@value = args[:value] if args.key?(:value)
@type = args[:type] if args.key?(:type)
end
end
# RepoSource describes the location of the source in a Google Cloud Source
# Repository.
class RepoSource
include Google::Apis::Core::Hashable
# Explicit commit SHA to build.
# Corresponds to the JSON property `commitSha`
# @return [String]
attr_accessor :commit_sha
# Name of the tag to build.
# Corresponds to the JSON property `tagName`
# @return [String]
attr_accessor :tag_name
# Name of the branch to build.
# Corresponds to the JSON property `branchName`
# @return [String]
attr_accessor :branch_name
# Name of the repo. If omitted, the name "default" is assumed.
# Corresponds to the JSON property `repoName`
# @return [String]
attr_accessor :repo_name
# ID of the project that owns the repo. If omitted, the project ID requesting
# the build is assumed.
# Corresponds to the JSON property `projectId`
# @return [String]
attr_accessor :project_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@commit_sha = args[:commit_sha] if args.key?(:commit_sha)
@tag_name = args[:tag_name] if args.key?(:tag_name)
@branch_name = args[:branch_name] if args.key?(:branch_name)
@repo_name = args[:repo_name] if args.key?(:repo_name)
@project_id = args[:project_id] if args.key?(:project_id)
end
end
# BuildStep describes a step to perform in the build pipeline. # BuildStep describes a step to perform in the build pipeline.
class BuildStep class BuildStep
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Optional unique identifier for this build step, used in wait_for to
# reference this build step as a dependency.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# Working directory (relative to project source root) to use when running # Working directory (relative to project source root) to use when running
# this operation's container. # this operation's container.
# Corresponds to the JSON property `dir` # Corresponds to the JSON property `dir`
# @return [String] # @return [String]
attr_accessor :dir attr_accessor :dir
# 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`
# @return [Array<String>]
attr_accessor :env
# The ID(s) of the step(s) that this build step depends on. # The ID(s) of the step(s) that this build step depends on.
# This build step will not start until all the build steps in wait_for # This build step will not start until all the build steps in wait_for
# have completed successfully. If wait_for is empty, this build step will # have completed successfully. If wait_for is empty, this build step will
@ -453,13 +346,6 @@ module Google
# @return [Array<String>] # @return [Array<String>]
attr_accessor :wait_for attr_accessor :wait_for
# 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`
# @return [Array<String>]
attr_accessor :env
# A list of arguments that will be presented to the step when it is started. # 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 # 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 # will be used as arguments to that entrypoint. If the image does not define
@ -493,90 +379,32 @@ module Google
# @return [String] # @return [String]
attr_accessor :entrypoint attr_accessor :entrypoint
# Optional unique identifier for this build step, used in wait_for to
# reference this build step as a dependency.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# A list of environment variables which are encrypted using a Cloud KMS
# crypto key. These values must be specified in the build's secrets.
# Corresponds to the JSON property `secretEnv`
# @return [Array<String>]
attr_accessor :secret_env
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@id = args[:id] if args.key?(:id)
@dir = args[:dir] if args.key?(:dir) @dir = args[:dir] if args.key?(:dir)
@wait_for = args[:wait_for] if args.key?(:wait_for)
@env = args[:env] if args.key?(:env) @env = args[:env] if args.key?(:env)
@wait_for = args[:wait_for] if args.key?(:wait_for)
@args = args[:args] if args.key?(:args) @args = args[:args] if args.key?(:args)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@entrypoint = args[:entrypoint] if args.key?(:entrypoint) @entrypoint = args[:entrypoint] if args.key?(:entrypoint)
end @id = args[:id] if args.key?(:id)
end @secret_env = args[:secret_env] if args.key?(:secret_env)
# RepoSource describes the location of the source in a Google Cloud Source
# Repository.
class RepoSource
include Google::Apis::Core::Hashable
# Name of the tag to build.
# Corresponds to the JSON property `tagName`
# @return [String]
attr_accessor :tag_name
# Explicit commit SHA to build.
# Corresponds to the JSON property `commitSha`
# @return [String]
attr_accessor :commit_sha
# ID of the project that owns the repo. If omitted, the project ID requesting
# the build is assumed.
# Corresponds to the JSON property `projectId`
# @return [String]
attr_accessor :project_id
# Name of the repo. If omitted, the name "default" is assumed.
# Corresponds to the JSON property `repoName`
# @return [String]
attr_accessor :repo_name
# Name of the branch to build.
# Corresponds to the JSON property `branchName`
# @return [String]
attr_accessor :branch_name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@tag_name = args[:tag_name] if args.key?(:tag_name)
@commit_sha = args[:commit_sha] if args.key?(:commit_sha)
@project_id = args[:project_id] if args.key?(:project_id)
@repo_name = args[:repo_name] if args.key?(:repo_name)
@branch_name = args[:branch_name] if args.key?(:branch_name)
end
end
# Container message for hash values.
class HashProp
include Google::Apis::Core::Hashable
# The hash value.
# Corresponds to the JSON property `value`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
attr_accessor :value
# The type of hash that was performed.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@value = args[:value] if args.key?(:value)
@type = args[:type] if args.key?(:type)
end end
end end
@ -600,6 +428,36 @@ module Google
end end
end end
# Secret pairs a set of secret environment variables containing encrypted
# values with the Cloud KMS key to use to decrypt the value.
class Secret
include Google::Apis::Core::Hashable
# Map of environment variable name to its encrypted value.
# Secret environment variables must be unique across all of a build's
# secrets, and must be used by at least one build step. Values can be at most
# 1 KB in size. There can be at most ten secret values across all of a
# build's secrets.
# Corresponds to the JSON property `secretEnv`
# @return [Hash<String,String>]
attr_accessor :secret_env
# Cloud KMS key name to use to decrypt these envs.
# Corresponds to the JSON property `kmsKeyName`
# @return [String]
attr_accessor :kms_key_name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@secret_env = args[:secret_env] if args.key?(:secret_env)
@kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
end
end
# The `Status` type defines a logical error model that is suitable for different # 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 # programming environments, including REST APIs and RPC APIs. It is used by
# [gRPC](https://github.com/grpc). The error model is designed to be: # [gRPC](https://github.com/grpc). The error model is designed to be:
@ -642,11 +500,6 @@ module Google
class Status 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.
# Corresponds to the JSON property `code`
# @return [Fixnum]
attr_accessor :code
# A developer-facing error message, which should be in English. Any # A developer-facing error message, which should be in English. Any
# user-facing error message should be localized and sent in the # user-facing error message should be localized and sent in the
# google.rpc.Status.details field, or localized by the client. # google.rpc.Status.details field, or localized by the client.
@ -654,21 +507,26 @@ module Google
# @return [String] # @return [String]
attr_accessor :message attr_accessor :message
# A list of messages that carry the error details. There will be a # A list of messages that carry the error details. There is a common set of
# common set of message types for APIs to use. # message types for APIs to use.
# Corresponds to the JSON property `details` # Corresponds to the JSON property `details`
# @return [Array<Hash<String,Object>>] # @return [Array<Hash<String,Object>>]
attr_accessor :details attr_accessor :details
# The status code, which should be an enum value of google.rpc.Code.
# Corresponds to the JSON property `code`
# @return [Fixnum]
attr_accessor :code
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@code = args[:code] if args.key?(:code)
@message = args[:message] if args.key?(:message) @message = args[:message] if args.key?(:message)
@details = args[:details] if args.key?(:details) @details = args[:details] if args.key?(:details)
@code = args[:code] if args.key?(:code)
end end
end end
@ -786,62 +644,10 @@ module Google
class Build class Build
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Customer-readable message about the current status. # Substitutions data for Build resource.
# @OutputOnly # Corresponds to the JSON property `substitutions`
# Corresponds to the JSON property `statusDetail` # @return [Hash<String,String>]
# @return [String] attr_accessor :substitutions
attr_accessor :status_detail
# Status of the build.
# @OutputOnly
# Corresponds to the JSON property `status`
# @return [String]
attr_accessor :status
# Amount of time that this build should be allowed to run, to second
# granularity. If this amount of time elapses, work on the build will cease
# and the build status will be TIMEOUT.
# Default time is ten minutes.
# Corresponds to the JSON property `timeout`
# @return [String]
attr_accessor :timeout
# Google Cloud Storage bucket where logs should be written (see
# [Bucket Name
# Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)
# ).
# Logs file names will be of the format `$`logs_bucket`/log-$`build_id`.txt`.
# Corresponds to the JSON property `logsBucket`
# @return [String]
attr_accessor :logs_bucket
# Results describes the artifacts created by the build pipeline.
# Corresponds to the JSON property `results`
# @return [Google::Apis::CloudbuildV1::Results]
attr_accessor :results
# Describes the operations to be performed on the workspace.
# Corresponds to the JSON property `steps`
# @return [Array<Google::Apis::CloudbuildV1::BuildStep>]
attr_accessor :steps
# The ID of the BuildTrigger that triggered this build, if it was
# triggered automatically.
# @OutputOnly
# Corresponds to the JSON property `buildTriggerId`
# @return [String]
attr_accessor :build_trigger_id
# Tags for annotation of a Build. These are not docker tags.
# Corresponds to the JSON property `tags`
# @return [Array<String>]
attr_accessor :tags
# Unique identifier of the build.
# @OutputOnly
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# Time at which execution of the build was started. # Time at which execution of the build was started.
# @OutputOnly # @OutputOnly
@ -849,10 +655,11 @@ module Google
# @return [String] # @return [String]
attr_accessor :start_time attr_accessor :start_time
# Substitutions data for Build resource. # Provenance of the source. Ways to find the original source, or verify that
# Corresponds to the JSON property `substitutions` # some source was used for this build.
# @return [Hash<String,String>] # Corresponds to the JSON property `sourceProvenance`
attr_accessor :substitutions # @return [Google::Apis::CloudbuildV1::SourceProvenance]
attr_accessor :source_provenance
# Time at which the request to create the build was received. # Time at which the request to create the build was received.
# @OutputOnly # @OutputOnly
@ -860,12 +667,6 @@ module Google
# @return [String] # @return [String]
attr_accessor :create_time attr_accessor :create_time
# Provenance of the source. Ways to find the original source, or verify that
# some source was used for this build.
# Corresponds to the JSON property `sourceProvenance`
# @return [Google::Apis::CloudbuildV1::SourceProvenance]
attr_accessor :source_provenance
# A list of images to be pushed upon the successful completion of all build # A list of images to be pushed upon the successful completion of all build
# steps. # steps.
# The images will be pushed using the builder service account's credentials. # The images will be pushed using the builder service account's credentials.
@ -907,31 +708,279 @@ module Google
# @return [Google::Apis::CloudbuildV1::BuildOptions] # @return [Google::Apis::CloudbuildV1::BuildOptions]
attr_accessor :options attr_accessor :options
# Amount of time that this build should be allowed to run, to second
# granularity. If this amount of time elapses, work on the build will cease
# and the build status will be TIMEOUT.
# Default time is ten minutes.
# Corresponds to the JSON property `timeout`
# @return [String]
attr_accessor :timeout
# Status of the build.
# @OutputOnly
# Corresponds to the JSON property `status`
# @return [String]
attr_accessor :status
# Customer-readable message about the current status.
# @OutputOnly
# Corresponds to the JSON property `statusDetail`
# @return [String]
attr_accessor :status_detail
# Secrets to decrypt using Cloud KMS.
# Corresponds to the JSON property `secrets`
# @return [Array<Google::Apis::CloudbuildV1::Secret>]
attr_accessor :secrets
# Results describes the artifacts created by the build pipeline.
# Corresponds to the JSON property `results`
# @return [Google::Apis::CloudbuildV1::Results]
attr_accessor :results
# Google Cloud Storage bucket where logs should be written (see
# [Bucket Name
# Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)
# ).
# Logs file names will be of the format `$`logs_bucket`/log-$`build_id`.txt`.
# Corresponds to the JSON property `logsBucket`
# @return [String]
attr_accessor :logs_bucket
# Describes the operations to be performed on the workspace.
# Corresponds to the JSON property `steps`
# @return [Array<Google::Apis::CloudbuildV1::BuildStep>]
attr_accessor :steps
# The ID of the BuildTrigger that triggered this build, if it was
# triggered automatically.
# @OutputOnly
# Corresponds to the JSON property `buildTriggerId`
# @return [String]
attr_accessor :build_trigger_id
# Unique identifier of the build.
# @OutputOnly
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# Tags for annotation of a Build. These are not docker tags.
# Corresponds to the JSON property `tags`
# @return [Array<String>]
attr_accessor :tags
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@status_detail = args[:status_detail] if args.key?(:status_detail)
@status = args[:status] if args.key?(:status)
@timeout = args[:timeout] if args.key?(:timeout)
@logs_bucket = args[:logs_bucket] if args.key?(:logs_bucket)
@results = args[:results] if args.key?(:results)
@steps = args[:steps] if args.key?(:steps)
@build_trigger_id = args[:build_trigger_id] if args.key?(:build_trigger_id)
@tags = args[:tags] if args.key?(:tags)
@id = args[:id] if args.key?(:id)
@start_time = args[:start_time] if args.key?(:start_time)
@substitutions = args[:substitutions] if args.key?(:substitutions) @substitutions = args[:substitutions] if args.key?(:substitutions)
@create_time = args[:create_time] if args.key?(:create_time) @start_time = args[:start_time] if args.key?(:start_time)
@source_provenance = args[:source_provenance] if args.key?(:source_provenance) @source_provenance = args[:source_provenance] if args.key?(:source_provenance)
@create_time = args[:create_time] if args.key?(:create_time)
@images = args[:images] if args.key?(:images) @images = args[:images] if args.key?(:images)
@project_id = args[:project_id] if args.key?(:project_id) @project_id = args[:project_id] if args.key?(:project_id)
@finish_time = args[:finish_time] if args.key?(:finish_time) @finish_time = args[:finish_time] if args.key?(:finish_time)
@log_url = args[:log_url] if args.key?(:log_url) @log_url = args[:log_url] if args.key?(:log_url)
@source = args[:source] if args.key?(:source) @source = args[:source] if args.key?(:source)
@options = args[:options] if args.key?(:options) @options = args[:options] if args.key?(:options)
@timeout = args[:timeout] if args.key?(:timeout)
@status = args[:status] if args.key?(:status)
@status_detail = args[:status_detail] if args.key?(:status_detail)
@secrets = args[:secrets] if args.key?(:secrets)
@results = args[:results] if args.key?(:results)
@logs_bucket = args[:logs_bucket] if args.key?(:logs_bucket)
@steps = args[:steps] if args.key?(:steps)
@build_trigger_id = args[:build_trigger_id] if args.key?(:build_trigger_id)
@id = args[:id] if args.key?(:id)
@tags = args[:tags] if args.key?(:tags)
end
end
# Request to cancel an ongoing build.
class CancelBuildRequest
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Response including listed builds.
class ListBuildsResponse
include Google::Apis::Core::Hashable
# Token to receive the next page of results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# Builds will be sorted by create_time, descending.
# Corresponds to the JSON property `builds`
# @return [Array<Google::Apis::CloudbuildV1::Build>]
attr_accessor :builds
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)
@builds = args[:builds] if args.key?(:builds)
end
end
# The response message for Operations.ListOperations.
class ListOperationsResponse
include Google::Apis::Core::Hashable
# The standard List next-page token.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# A list of operations that matches the specified filter in the request.
# Corresponds to the JSON property `operations`
# @return [Array<Google::Apis::CloudbuildV1::Operation>]
attr_accessor :operations
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)
@operations = args[:operations] if args.key?(:operations)
end
end
# Source describes the location of the source in a supported storage
# service.
class Source
include Google::Apis::Core::Hashable
# StorageSource describes the location of the source in an archive file in
# Google Cloud Storage.
# Corresponds to the JSON property `storageSource`
# @return [Google::Apis::CloudbuildV1::StorageSource]
attr_accessor :storage_source
# RepoSource describes the location of the source in a Google Cloud Source
# Repository.
# Corresponds to the JSON property `repoSource`
# @return [Google::Apis::CloudbuildV1::RepoSource]
attr_accessor :repo_source
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@storage_source = args[:storage_source] if args.key?(:storage_source)
@repo_source = args[:repo_source] if args.key?(:repo_source)
end
end
# Optional arguments to enable specific features of builds.
class BuildOptions
include Google::Apis::Core::Hashable
# Requested hash for SourceProvenance.
# Corresponds to the JSON property `sourceProvenanceHash`
# @return [Array<String>]
attr_accessor :source_provenance_hash
# SubstitutionOption to allow unmatch substitutions.
# Corresponds to the JSON property `substitutionOption`
# @return [String]
attr_accessor :substitution_option
# Requested verifiability options.
# Corresponds to the JSON property `requestedVerifyOption`
# @return [String]
attr_accessor :requested_verify_option
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@source_provenance_hash = args[:source_provenance_hash] if args.key?(:source_provenance_hash)
@substitution_option = args[:substitution_option] if args.key?(:substitution_option)
@requested_verify_option = args[:requested_verify_option] if args.key?(:requested_verify_option)
end
end
# StorageSource describes the location of the source in an archive file in
# Google Cloud Storage.
class StorageSource
include Google::Apis::Core::Hashable
# Google Cloud Storage generation for the object. If the generation is
# omitted, the latest generation will be used.
# Corresponds to the JSON property `generation`
# @return [Fixnum]
attr_accessor :generation
# Google Cloud Storage bucket containing source (see
# [Bucket Name
# Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)
# ).
# Corresponds to the JSON property `bucket`
# @return [String]
attr_accessor :bucket
# Google Cloud Storage object containing source.
# This object must be a gzipped archive file (.tar.gz) containing source to
# build.
# Corresponds to the JSON property `object`
# @return [String]
attr_accessor :object
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@generation = args[:generation] if args.key?(:generation)
@bucket = args[:bucket] if args.key?(:bucket)
@object = args[:object] if args.key?(:object)
end
end
# Results describes the artifacts created by the build pipeline.
class Results
include Google::Apis::Core::Hashable
# List of build step digests, in order corresponding to build step indices.
# Corresponds to the JSON property `buildStepImages`
# @return [Array<String>]
attr_accessor :build_step_images
# Images that were built as a part of the build.
# Corresponds to the JSON property `images`
# @return [Array<Google::Apis::CloudbuildV1::BuiltImage>]
attr_accessor :images
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@build_step_images = args[:build_step_images] if args.key?(:build_step_images)
@images = args[:images] if args.key?(:images)
end end
end end
end end

View File

@ -22,48 +22,6 @@ module Google
module Apis module Apis
module CloudbuildV1 module CloudbuildV1
class CancelBuildRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListBuildsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListOperationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Source
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BuildOptions
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class StorageSource
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Results
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BuildOperationMetadata class BuildOperationMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -82,13 +40,13 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class Operation class ListBuildTriggersResponse
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 ListBuildTriggersResponse class Operation
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
@ -100,7 +58,7 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class BuildStep class HashProp
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
@ -112,7 +70,7 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class HashProp class BuildStep
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
@ -124,6 +82,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class Secret
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Status class Status
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -149,63 +113,45 @@ module Google
end end
class CancelBuildRequest class CancelBuildRequest
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
end include Google::Apis::Core::JsonObjectSupport
end end
class ListBuildsResponse class ListBuildsResponse
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :builds, as: 'builds', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
end include Google::Apis::Core::JsonObjectSupport
end end
class ListOperationsResponse class ListOperationsResponse
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
collection :operations, as: 'operations', class: Google::Apis::CloudbuildV1::Operation, decorator: Google::Apis::CloudbuildV1::Operation::Representation
property :next_page_token, as: 'nextPageToken' include Google::Apis::Core::JsonObjectSupport
end
end end
class Source class Source
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
property :storage_source, as: 'storageSource', class: Google::Apis::CloudbuildV1::StorageSource, decorator: Google::Apis::CloudbuildV1::StorageSource::Representation
property :repo_source, as: 'repoSource', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation include Google::Apis::Core::JsonObjectSupport
end
end end
class BuildOptions class BuildOptions
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
collection :source_provenance_hash, as: 'sourceProvenanceHash' include Google::Apis::Core::JsonObjectSupport
property :requested_verify_option, as: 'requestedVerifyOption'
end
end end
class StorageSource class StorageSource
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
property :generation, :numeric_string => true, as: 'generation' include Google::Apis::Core::JsonObjectSupport
property :bucket, as: 'bucket'
property :object, as: 'object'
end
end end
class Results class Results
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
collection :images, as: 'images', class: Google::Apis::CloudbuildV1::BuiltImage, decorator: Google::Apis::CloudbuildV1::BuiltImage::Representation
collection :build_step_images, as: 'buildStepImages' include Google::Apis::Core::JsonObjectSupport
end
end end
class BuildOperationMetadata class BuildOperationMetadata
@ -219,12 +165,12 @@ module Google
class SourceProvenance class SourceProvenance
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :resolved_repo_source, as: 'resolvedRepoSource', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
property :resolved_storage_source, as: 'resolvedStorageSource', class: Google::Apis::CloudbuildV1::StorageSource, decorator: Google::Apis::CloudbuildV1::StorageSource::Representation property :resolved_storage_source, as: 'resolvedStorageSource', class: Google::Apis::CloudbuildV1::StorageSource, decorator: Google::Apis::CloudbuildV1::StorageSource::Representation
hash :file_hashes, as: 'fileHashes', class: Google::Apis::CloudbuildV1::FileHashes, decorator: Google::Apis::CloudbuildV1::FileHashes::Representation hash :file_hashes, as: 'fileHashes', class: Google::Apis::CloudbuildV1::FileHashes, decorator: Google::Apis::CloudbuildV1::FileHashes::Representation
property :resolved_repo_source, as: 'resolvedRepoSource', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
end end
end end
@ -234,18 +180,6 @@ module Google
end end
end end
class Operation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :done, as: 'done'
hash :response, as: 'response'
property :name, as: 'name'
property :error, as: 'error', class: Google::Apis::CloudbuildV1::Status, decorator: Google::Apis::CloudbuildV1::Status::Representation
hash :metadata, as: 'metadata'
end
end
class ListBuildTriggersResponse class ListBuildTriggersResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -254,6 +188,18 @@ module Google
end end
end end
class Operation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :response, as: 'response'
property :name, as: 'name'
property :error, as: 'error', class: Google::Apis::CloudbuildV1::Status, decorator: Google::Apis::CloudbuildV1::Status::Representation
hash :metadata, as: 'metadata'
property :done, as: 'done'
end
end
class BuiltImage class BuiltImage
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -262,30 +208,6 @@ module Google
end end
end end
class BuildStep
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
property :dir, as: 'dir'
collection :wait_for, as: 'waitFor'
collection :env, as: 'env'
collection :args, as: 'args'
property :name, as: 'name'
property :entrypoint, as: 'entrypoint'
end
end
class RepoSource
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :tag_name, as: 'tagName'
property :commit_sha, as: 'commitSha'
property :project_id, as: 'projectId'
property :repo_name, as: 'repoName'
property :branch_name, as: 'branchName'
end
end
class HashProp class HashProp
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -294,6 +216,31 @@ module Google
end end
end end
class RepoSource
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :commit_sha, as: 'commitSha'
property :tag_name, as: 'tagName'
property :branch_name, as: 'branchName'
property :repo_name, as: 'repoName'
property :project_id, as: 'projectId'
end
end
class BuildStep
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :dir, as: 'dir'
collection :env, as: 'env'
collection :wait_for, as: 'waitFor'
collection :args, as: 'args'
property :name, as: 'name'
property :entrypoint, as: 'entrypoint'
property :id, as: 'id'
collection :secret_env, as: 'secretEnv'
end
end
class FileHashes class FileHashes
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -302,12 +249,20 @@ module Google
end end
end end
class Secret
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :secret_env, as: 'secretEnv'
property :kms_key_name, as: 'kmsKeyName'
end
end
class Status class Status
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
property :message, as: 'message' property :message, as: 'message'
collection :details, as: 'details' collection :details, as: 'details'
property :code, as: 'code'
end end
end end
@ -336,22 +291,11 @@ module Google
class Build class Build
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :status_detail, as: 'statusDetail'
property :status, as: 'status'
property :timeout, as: 'timeout'
property :logs_bucket, as: 'logsBucket'
property :results, as: 'results', class: Google::Apis::CloudbuildV1::Results, decorator: Google::Apis::CloudbuildV1::Results::Representation
collection :steps, as: 'steps', class: Google::Apis::CloudbuildV1::BuildStep, decorator: Google::Apis::CloudbuildV1::BuildStep::Representation
property :build_trigger_id, as: 'buildTriggerId'
collection :tags, as: 'tags'
property :id, as: 'id'
property :start_time, as: 'startTime'
hash :substitutions, as: 'substitutions' hash :substitutions, as: 'substitutions'
property :create_time, as: 'createTime' property :start_time, as: 'startTime'
property :source_provenance, as: 'sourceProvenance', class: Google::Apis::CloudbuildV1::SourceProvenance, decorator: Google::Apis::CloudbuildV1::SourceProvenance::Representation property :source_provenance, as: 'sourceProvenance', class: Google::Apis::CloudbuildV1::SourceProvenance, decorator: Google::Apis::CloudbuildV1::SourceProvenance::Representation
property :create_time, as: 'createTime'
collection :images, as: 'images' collection :images, as: 'images'
property :project_id, as: 'projectId' property :project_id, as: 'projectId'
property :finish_time, as: 'finishTime' property :finish_time, as: 'finishTime'
@ -360,6 +304,80 @@ module Google
property :options, as: 'options', class: Google::Apis::CloudbuildV1::BuildOptions, decorator: Google::Apis::CloudbuildV1::BuildOptions::Representation property :options, as: 'options', class: Google::Apis::CloudbuildV1::BuildOptions, decorator: Google::Apis::CloudbuildV1::BuildOptions::Representation
property :timeout, as: 'timeout'
property :status, as: 'status'
property :status_detail, as: 'statusDetail'
collection :secrets, as: 'secrets', class: Google::Apis::CloudbuildV1::Secret, decorator: Google::Apis::CloudbuildV1::Secret::Representation
property :results, as: 'results', class: Google::Apis::CloudbuildV1::Results, decorator: Google::Apis::CloudbuildV1::Results::Representation
property :logs_bucket, as: 'logsBucket'
collection :steps, as: 'steps', class: Google::Apis::CloudbuildV1::BuildStep, decorator: Google::Apis::CloudbuildV1::BuildStep::Representation
property :build_trigger_id, as: 'buildTriggerId'
property :id, as: 'id'
collection :tags, as: 'tags'
end
end
class CancelBuildRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class ListBuildsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :builds, as: 'builds', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
end
end
class ListOperationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :operations, as: 'operations', class: Google::Apis::CloudbuildV1::Operation, decorator: Google::Apis::CloudbuildV1::Operation::Representation
end
end
class Source
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :storage_source, as: 'storageSource', class: Google::Apis::CloudbuildV1::StorageSource, decorator: Google::Apis::CloudbuildV1::StorageSource::Representation
property :repo_source, as: 'repoSource', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
end
end
class BuildOptions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :source_provenance_hash, as: 'sourceProvenanceHash'
property :substitution_option, as: 'substitutionOption'
property :requested_verify_option, as: 'requestedVerifyOption'
end
end
class StorageSource
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :generation, :numeric_string => true, as: 'generation'
property :bucket, as: 'bucket'
property :object, as: 'object'
end
end
class Results
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :build_step_images, as: 'buildStepImages'
collection :images, as: 'images', class: Google::Apis::CloudbuildV1::BuiltImage, decorator: Google::Apis::CloudbuildV1::BuiltImage::Representation
end end
end end
end end

View File

@ -47,18 +47,17 @@ module Google
@batch_path = 'batch' @batch_path = 'batch'
end end
# Returns information about a previously requested build. # Cancels a requested build in progress.
# The Build that is returned includes its status (e.g., success or failure,
# or in-progress), and timing information.
# @param [String] project_id # @param [String] project_id
# ID of the project. # ID of the project.
# @param [String] id # @param [String] id
# ID of the build. # ID of the build.
# @param [Google::Apis::CloudbuildV1::CancelBuildRequest] cancel_build_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
# #
@ -71,14 +70,16 @@ 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_build(project_id, id, quota_user: nil, fields: nil, options: nil, &block) def cancel_build(project_id, id, cancel_build_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/projects/{projectId}/builds/{id}', options) command = make_simple_command(:post, 'v1/projects/{projectId}/builds/{id}:cancel', options)
command.request_representation = Google::Apis::CloudbuildV1::CancelBuildRequest::Representation
command.request_object = cancel_build_request_object
command.response_representation = Google::Apis::CloudbuildV1::Build::Representation command.response_representation = Google::Apis::CloudbuildV1::Build::Representation
command.response_class = Google::Apis::CloudbuildV1::Build command.response_class = Google::Apis::CloudbuildV1::Build
command.params['projectId'] = project_id unless project_id.nil? command.params['projectId'] = project_id unless project_id.nil?
command.params['id'] = id unless id.nil? command.params['id'] = id unless id.nil?
command.query['quotaUser'] = quota_user unless quota_user.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) execute_or_queue_command(command, &block)
end end
@ -87,17 +88,17 @@ module Google
# successfully or unsuccessfully. # successfully or unsuccessfully.
# @param [String] project_id # @param [String] project_id
# ID of the project. # ID of the project.
# @param [String] filter
# The raw filter text to constrain the results.
# @param [String] page_token # @param [String] page_token
# Token to provide to skip to a particular spot in the list. # Token to provide to skip to a particular spot in the list.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Number of results to return in the list. # Number of results to return in the list.
# @param [String] filter # @param [String] fields
# The raw filter text to constrain the results. # 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
# #
@ -110,66 +111,31 @@ 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_builds(project_id, page_token: nil, page_size: nil, filter: nil, quota_user: nil, fields: nil, options: nil, &block) def list_project_builds(project_id, filter: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/projects/{projectId}/builds', options) command = make_simple_command(:get, 'v1/projects/{projectId}/builds', options)
command.response_representation = Google::Apis::CloudbuildV1::ListBuildsResponse::Representation command.response_representation = Google::Apis::CloudbuildV1::ListBuildsResponse::Representation
command.response_class = Google::Apis::CloudbuildV1::ListBuildsResponse command.response_class = Google::Apis::CloudbuildV1::ListBuildsResponse
command.params['projectId'] = project_id unless project_id.nil? command.params['projectId'] = project_id unless project_id.nil?
command.query['filter'] = filter unless filter.nil?
command.query['pageToken'] = page_token unless page_token.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['filter'] = filter unless filter.nil?
command.query['quotaUser'] = quota_user unless quota_user.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) execute_or_queue_command(command, &block)
end end
# Starts a build with the specified configuration. # Returns information about a previously requested build.
# The long-running Operation returned by this method will include the ID of # The Build that is returned includes its status (e.g., success or failure,
# the build, which can be passed to GetBuild to determine its status (e.g., # or in-progress), and timing information.
# success or failure).
# @param [String] project_id
# ID of the project.
# @param [Google::Apis::CloudbuildV1::Build] build_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::CloudbuildV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudbuildV1::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_build(project_id, build_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/projects/{projectId}/builds', options)
command.request_representation = Google::Apis::CloudbuildV1::Build::Representation
command.request_object = build_object
command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
command.response_class = Google::Apis::CloudbuildV1::Operation
command.params['projectId'] = project_id unless project_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
# Cancels a requested build in progress.
# @param [String] project_id # @param [String] project_id
# ID of the project. # ID of the project.
# @param [String] id # @param [String] id
# ID of the build. # ID of the build.
# @param [Google::Apis::CloudbuildV1::CancelBuildRequest] cancel_build_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
# #
@ -182,246 +148,29 @@ 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 cancel_build(project_id, id, cancel_build_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) def get_project_build(project_id, id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/projects/{projectId}/builds/{id}:cancel', options) command = make_simple_command(:get, 'v1/projects/{projectId}/builds/{id}', options)
command.request_representation = Google::Apis::CloudbuildV1::CancelBuildRequest::Representation
command.request_object = cancel_build_request_object
command.response_representation = Google::Apis::CloudbuildV1::Build::Representation command.response_representation = Google::Apis::CloudbuildV1::Build::Representation
command.response_class = Google::Apis::CloudbuildV1::Build command.response_class = Google::Apis::CloudbuildV1::Build
command.params['projectId'] = project_id unless project_id.nil? command.params['projectId'] = project_id unless project_id.nil?
command.params['id'] = id unless id.nil? command.params['id'] = id unless id.nil?
command.query['quotaUser'] = quota_user unless quota_user.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) execute_or_queue_command(command, &block)
end end
# Deletes an BuildTrigger by its project ID and trigger ID. # Starts a build with the specified configuration.
# This API is experimental. # The long-running Operation returned by this method will include the ID of
# the build, which can be passed to GetBuild to determine its status (e.g.,
# success or failure).
# @param [String] project_id # @param [String] project_id
# ID of the project that owns the trigger. # ID of the project.
# @param [String] trigger_id # @param [Google::Apis::CloudbuildV1::Build] build_object
# ID of the BuildTrigger to delete. # @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
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudbuildV1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudbuildV1::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_trigger(project_id, trigger_id, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1/projects/{projectId}/triggers/{triggerId}', options)
command.response_representation = Google::Apis::CloudbuildV1::Empty::Representation
command.response_class = Google::Apis::CloudbuildV1::Empty
command.params['projectId'] = project_id unless project_id.nil?
command.params['triggerId'] = trigger_id unless trigger_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 information about a BuildTrigger.
# This API is experimental.
# @param [String] project_id
# ID of the project that owns the trigger.
# @param [String] trigger_id
# ID of the BuildTrigger to get.
# @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::CloudbuildV1::BuildTrigger] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudbuildV1::BuildTrigger]
#
# @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_trigger(project_id, trigger_id, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/projects/{projectId}/triggers/{triggerId}', options)
command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
command.params['projectId'] = project_id unless project_id.nil?
command.params['triggerId'] = trigger_id unless trigger_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 existing BuildTrigger.
# This API is experimental.
# @param [String] project_id
# ID of the project for which to list BuildTriggers.
# @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::CloudbuildV1::ListBuildTriggersResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudbuildV1::ListBuildTriggersResponse]
#
# @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_triggers(project_id, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/projects/{projectId}/triggers', options)
command.response_representation = Google::Apis::CloudbuildV1::ListBuildTriggersResponse::Representation
command.response_class = Google::Apis::CloudbuildV1::ListBuildTriggersResponse
command.params['projectId'] = project_id unless project_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
# Updates an BuildTrigger by its project ID and trigger ID.
# This API is experimental.
# @param [String] project_id
# ID of the project that owns the trigger.
# @param [String] trigger_id
# ID of the BuildTrigger to update.
# @param [Google::Apis::CloudbuildV1::BuildTrigger] build_trigger_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::CloudbuildV1::BuildTrigger] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudbuildV1::BuildTrigger]
#
# @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_project_trigger(project_id, trigger_id, build_trigger_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1/projects/{projectId}/triggers/{triggerId}', options)
command.request_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
command.request_object = build_trigger_object
command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
command.params['projectId'] = project_id unless project_id.nil?
command.params['triggerId'] = trigger_id unless trigger_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 BuildTrigger.
# This API is experimental.
# @param [String] project_id
# ID of the project for which to configure automatic builds.
# @param [Google::Apis::CloudbuildV1::BuildTrigger] build_trigger_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::CloudbuildV1::BuildTrigger] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudbuildV1::BuildTrigger]
#
# @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_trigger(project_id, build_trigger_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/projects/{projectId}/triggers', options)
command.request_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
command.request_object = build_trigger_object
command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
command.params['projectId'] = project_id unless project_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 operations that match the specified filter in the request. If the
# server doesn't support this method, it returns `UNIMPLEMENTED`.
# NOTE: the `name` binding allows API services to override the binding
# to use different resource name schemes, such as `users/*/operations`. To
# override the binding, API services can add a binding such as
# `"/v1/`name=users/*`/operations"` to their service configuration.
# For backwards compatibility, the default name includes the operations
# collection id, however overriding users must ensure the name binding
# is the parent resource, without the operations collection id.
# @param [String] name
# The name of the operation's parent resource.
# @param [String] filter
# The standard list filter.
# @param [String] page_token
# The standard list page token.
# @param [Fixnum] page_size
# The standard list page size.
# @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::CloudbuildV1::ListOperationsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudbuildV1::ListOperationsResponse]
#
# @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_operations(name, filter: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::CloudbuildV1::ListOperationsResponse::Representation
command.response_class = Google::Apis::CloudbuildV1::ListOperationsResponse
command.params['name'] = name unless name.nil?
command.query['filter'] = filter unless filter.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['pageSize'] = page_size unless page_size.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 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] 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
# #
@ -434,13 +183,185 @@ 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_operation(name, quota_user: nil, fields: nil, options: nil, &block) def create_project_build(project_id, build_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options) command = make_simple_command(:post, 'v1/projects/{projectId}/builds', options)
command.request_representation = Google::Apis::CloudbuildV1::Build::Representation
command.request_object = build_object
command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
command.response_class = Google::Apis::CloudbuildV1::Operation command.response_class = Google::Apis::CloudbuildV1::Operation
command.params['name'] = name unless name.nil? command.params['projectId'] = project_id unless project_id.nil?
command.query['quotaUser'] = quota_user unless quota_user.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 new BuildTrigger.
# This API is experimental.
# @param [String] project_id
# ID of the project for which to configure automatic builds.
# @param [Google::Apis::CloudbuildV1::BuildTrigger] build_trigger_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::CloudbuildV1::BuildTrigger] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudbuildV1::BuildTrigger]
#
# @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_trigger(project_id, build_trigger_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/projects/{projectId}/triggers', options)
command.request_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
command.request_object = build_trigger_object
command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
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
# Deletes an BuildTrigger by its project ID and trigger ID.
# This API is experimental.
# @param [String] project_id
# ID of the project that owns the trigger.
# @param [String] trigger_id
# ID of the BuildTrigger to delete.
# @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::CloudbuildV1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudbuildV1::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_trigger(project_id, trigger_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1/projects/{projectId}/triggers/{triggerId}', options)
command.response_representation = Google::Apis::CloudbuildV1::Empty::Representation
command.response_class = Google::Apis::CloudbuildV1::Empty
command.params['projectId'] = project_id unless project_id.nil?
command.params['triggerId'] = trigger_id unless trigger_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
# Updates an BuildTrigger by its project ID and trigger ID.
# This API is experimental.
# @param [String] project_id
# ID of the project that owns the trigger.
# @param [String] trigger_id
# ID of the BuildTrigger to update.
# @param [Google::Apis::CloudbuildV1::BuildTrigger] build_trigger_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::CloudbuildV1::BuildTrigger] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudbuildV1::BuildTrigger]
#
# @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_project_trigger(project_id, trigger_id, build_trigger_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1/projects/{projectId}/triggers/{triggerId}', options)
command.request_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
command.request_object = build_trigger_object
command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
command.params['projectId'] = project_id unless project_id.nil?
command.params['triggerId'] = trigger_id unless trigger_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
# Lists existing BuildTrigger.
# This API is experimental.
# @param [String] project_id
# ID of the project for which to list BuildTriggers.
# @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::CloudbuildV1::ListBuildTriggersResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudbuildV1::ListBuildTriggersResponse]
#
# @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_triggers(project_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/projects/{projectId}/triggers', options)
command.response_representation = Google::Apis::CloudbuildV1::ListBuildTriggersResponse::Representation
command.response_class = Google::Apis::CloudbuildV1::ListBuildTriggersResponse
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
# Gets information about a BuildTrigger.
# This API is experimental.
# @param [String] project_id
# ID of the project that owns the trigger.
# @param [String] trigger_id
# ID of the BuildTrigger to get.
# @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::CloudbuildV1::BuildTrigger] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudbuildV1::BuildTrigger]
#
# @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_trigger(project_id, trigger_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/projects/{projectId}/triggers/{triggerId}', options)
command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
command.params['projectId'] = project_id unless project_id.nil?
command.params['triggerId'] = trigger_id unless trigger_id.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
@ -457,11 +378,11 @@ module Google
# @param [String] name # @param [String] name
# The name of the operation resource to be cancelled. # The name of the operation resource to be cancelled.
# @param [Google::Apis::CloudbuildV1::CancelOperationRequest] cancel_operation_request_object # @param [Google::Apis::CloudbuildV1::CancelOperationRequest] cancel_operation_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
# #
@ -474,15 +395,94 @@ 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 cancel_operation(name, cancel_operation_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+name}:cancel', options) command = make_simple_command(:post, 'v1/{+name}:cancel', options)
command.request_representation = Google::Apis::CloudbuildV1::CancelOperationRequest::Representation command.request_representation = Google::Apis::CloudbuildV1::CancelOperationRequest::Representation
command.request_object = cancel_operation_request_object command.request_object = cancel_operation_request_object
command.response_representation = Google::Apis::CloudbuildV1::Empty::Representation command.response_representation = Google::Apis::CloudbuildV1::Empty::Representation
command.response_class = Google::Apis::CloudbuildV1::Empty command.response_class = Google::Apis::CloudbuildV1::Empty
command.params['name'] = name unless name.nil? command.params['name'] = name unless name.nil?
command.query['quotaUser'] = quota_user unless quota_user.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
# 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::CloudbuildV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudbuildV1::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::CloudbuildV1::Operation::Representation
command.response_class = Google::Apis::CloudbuildV1::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
# Lists operations that match the specified filter in the request. If the
# server doesn't support this method, it returns `UNIMPLEMENTED`.
# NOTE: the `name` binding allows API services to override the binding
# to use different resource name schemes, such as `users/*/operations`. To
# override the binding, API services can add a binding such as
# `"/v1/`name=users/*`/operations"` to their service configuration.
# For backwards compatibility, the default name includes the operations
# collection id, however overriding users must ensure the name binding
# is the parent resource, without the operations collection id.
# @param [String] name
# The name of the operation's parent resource.
# @param [String] page_token
# The standard list page token.
# @param [Fixnum] page_size
# The standard list page size.
# @param [String] filter
# The standard list filter.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudbuildV1::ListOperationsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudbuildV1::ListOperationsResponse]
#
# @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_operations(name, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::CloudbuildV1::ListOperationsResponse::Representation
command.response_class = Google::Apis::CloudbuildV1::ListOperationsResponse
command.params['name'] = name unless name.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['filter'] = filter unless filter.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

View File

@ -26,7 +26,7 @@ module Google
# @see http://cloud.google.com/debugger # @see http://cloud.google.com/debugger
module ClouddebuggerV2 module ClouddebuggerV2
VERSION = 'V2' VERSION = 'V2'
REVISION = '20170518' REVISION = '20170621'
# Manage cloud debugger # Manage cloud debugger
AUTH_CLOUD_DEBUGGER = 'https://www.googleapis.com/auth/cloud_debugger' AUTH_CLOUD_DEBUGGER = 'https://www.googleapis.com/auth/cloud_debugger'

File diff suppressed because it is too large Load Diff

View File

@ -22,6 +22,66 @@ module Google
module Apis module Apis
module ClouddebuggerV2 module ClouddebuggerV2
class CloudWorkspaceId
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListBreakpointsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Breakpoint
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UpdateActiveBreakpointRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SetBreakpointResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SourceContext
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CloudRepoSourceContext
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RegisterDebuggeeResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RegisterDebuggeeRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GetBreakpointResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class StatusMessage class StatusMessage
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -125,71 +185,122 @@ module Google
end end
class CloudWorkspaceId class CloudWorkspaceId
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
property :repo_id, as: 'repoId', class: Google::Apis::ClouddebuggerV2::RepoId, decorator: Google::Apis::ClouddebuggerV2::RepoId::Representation
include Google::Apis::Core::JsonObjectSupport property :name, as: 'name'
end
end end
class ListBreakpointsResponse class ListBreakpointsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :breakpoints, as: 'breakpoints', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation
include Google::Apis::Core::JsonObjectSupport property :next_wait_token, as: 'nextWaitToken'
end
end end
class Breakpoint class Breakpoint
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
property :user_email, as: 'userEmail'
property :action, as: 'action'
property :log_level, as: 'logLevel'
property :id, as: 'id'
property :location, as: 'location', class: Google::Apis::ClouddebuggerV2::SourceLocation, decorator: Google::Apis::ClouddebuggerV2::SourceLocation::Representation
include Google::Apis::Core::JsonObjectSupport property :final_time, as: 'finalTime'
collection :variable_table, as: 'variableTable', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
hash :labels, as: 'labels'
property :log_message_format, as: 'logMessageFormat'
property :create_time, as: 'createTime'
collection :expressions, as: 'expressions'
collection :evaluated_expressions, as: 'evaluatedExpressions', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
property :is_final_state, as: 'isFinalState'
collection :stack_frames, as: 'stackFrames', class: Google::Apis::ClouddebuggerV2::StackFrame, decorator: Google::Apis::ClouddebuggerV2::StackFrame::Representation
property :condition, as: 'condition'
property :status, as: 'status', class: Google::Apis::ClouddebuggerV2::StatusMessage, decorator: Google::Apis::ClouddebuggerV2::StatusMessage::Representation
end
end end
class UpdateActiveBreakpointRequest class UpdateActiveBreakpointRequest
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
property :breakpoint, as: 'breakpoint', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation
include Google::Apis::Core::JsonObjectSupport end
end end
class SetBreakpointResponse class SetBreakpointResponse
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
property :breakpoint, as: 'breakpoint', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation
include Google::Apis::Core::JsonObjectSupport end
end end
class SourceContext class SourceContext
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
property :gerrit, as: 'gerrit', class: Google::Apis::ClouddebuggerV2::GerritSourceContext, decorator: Google::Apis::ClouddebuggerV2::GerritSourceContext::Representation
include Google::Apis::Core::JsonObjectSupport property :cloud_workspace, as: 'cloudWorkspace', class: Google::Apis::ClouddebuggerV2::CloudWorkspaceSourceContext, decorator: Google::Apis::ClouddebuggerV2::CloudWorkspaceSourceContext::Representation
property :cloud_repo, as: 'cloudRepo', class: Google::Apis::ClouddebuggerV2::CloudRepoSourceContext, decorator: Google::Apis::ClouddebuggerV2::CloudRepoSourceContext::Representation
property :git, as: 'git', class: Google::Apis::ClouddebuggerV2::GitSourceContext, decorator: Google::Apis::ClouddebuggerV2::GitSourceContext::Representation
end
end end
class CloudRepoSourceContext class CloudRepoSourceContext
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
property :repo_id, as: 'repoId', class: Google::Apis::ClouddebuggerV2::RepoId, decorator: Google::Apis::ClouddebuggerV2::RepoId::Representation
include Google::Apis::Core::JsonObjectSupport property :alias_context, as: 'aliasContext', class: Google::Apis::ClouddebuggerV2::AliasContext, decorator: Google::Apis::ClouddebuggerV2::AliasContext::Representation
property :revision_id, as: 'revisionId'
property :alias_name, as: 'aliasName'
end
end end
class RegisterDebuggeeResponse class RegisterDebuggeeResponse
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
property :debuggee, as: 'debuggee', class: Google::Apis::ClouddebuggerV2::Debuggee, decorator: Google::Apis::ClouddebuggerV2::Debuggee::Representation
include Google::Apis::Core::JsonObjectSupport end
end end
class RegisterDebuggeeRequest class RegisterDebuggeeRequest
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
property :debuggee, as: 'debuggee', class: Google::Apis::ClouddebuggerV2::Debuggee, decorator: Google::Apis::ClouddebuggerV2::Debuggee::Representation
include Google::Apis::Core::JsonObjectSupport end
end end
class GetBreakpointResponse class GetBreakpointResponse
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
property :breakpoint, as: 'breakpoint', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation
include Google::Apis::Core::JsonObjectSupport end
end end
class StatusMessage class StatusMessage
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :is_error, as: 'isError'
property :description, as: 'description', class: Google::Apis::ClouddebuggerV2::FormatMessage, decorator: Google::Apis::ClouddebuggerV2::FormatMessage::Representation property :description, as: 'description', class: Google::Apis::ClouddebuggerV2::FormatMessage, decorator: Google::Apis::ClouddebuggerV2::FormatMessage::Representation
property :is_error, as: 'isError'
property :refers_to, as: 'refersTo' property :refers_to, as: 'refersTo'
end end
end end
@ -205,14 +316,14 @@ module Google
class Variable class Variable
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :var_table_index, as: 'varTableIndex'
property :value, as: 'value'
collection :members, as: 'members', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation collection :members, as: 'members', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
property :status, as: 'status', class: Google::Apis::ClouddebuggerV2::StatusMessage, decorator: Google::Apis::ClouddebuggerV2::StatusMessage::Representation property :status, as: 'status', class: Google::Apis::ClouddebuggerV2::StatusMessage, decorator: Google::Apis::ClouddebuggerV2::StatusMessage::Representation
property :name, as: 'name' property :name, as: 'name'
property :type, as: 'type' property :type, as: 'type'
property :var_table_index, as: 'varTableIndex'
property :value, as: 'value'
end end
end end
@ -232,9 +343,9 @@ module Google
class RepoId class RepoId
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :uid, as: 'uid'
property :project_repo_id, as: 'projectRepoId', class: Google::Apis::ClouddebuggerV2::ProjectRepoId, decorator: Google::Apis::ClouddebuggerV2::ProjectRepoId::Representation property :project_repo_id, as: 'projectRepoId', class: Google::Apis::ClouddebuggerV2::ProjectRepoId, decorator: Google::Apis::ClouddebuggerV2::ProjectRepoId::Representation
property :uid, as: 'uid'
end end
end end
@ -280,14 +391,18 @@ module Google
class SourceLocation class SourceLocation
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :line, as: 'line'
property :path, as: 'path' property :path, as: 'path'
property :line, as: 'line'
end end
end end
class Debuggee class Debuggee
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :uniquifier, as: 'uniquifier'
collection :source_contexts, as: 'sourceContexts', class: Google::Apis::ClouddebuggerV2::SourceContext, decorator: Google::Apis::ClouddebuggerV2::SourceContext::Representation
collection :ext_source_contexts, as: 'extSourceContexts', class: Google::Apis::ClouddebuggerV2::ExtendedSourceContext, decorator: Google::Apis::ClouddebuggerV2::ExtendedSourceContext::Representation collection :ext_source_contexts, as: 'extSourceContexts', class: Google::Apis::ClouddebuggerV2::ExtendedSourceContext, decorator: Google::Apis::ClouddebuggerV2::ExtendedSourceContext::Representation
hash :labels, as: 'labels' hash :labels, as: 'labels'
@ -295,31 +410,27 @@ module Google
property :status, as: 'status', class: Google::Apis::ClouddebuggerV2::StatusMessage, decorator: Google::Apis::ClouddebuggerV2::StatusMessage::Representation property :status, as: 'status', class: Google::Apis::ClouddebuggerV2::StatusMessage, decorator: Google::Apis::ClouddebuggerV2::StatusMessage::Representation
property :project, as: 'project' property :project, as: 'project'
property :id, as: 'id'
property :agent_version, as: 'agentVersion'
property :is_disabled, as: 'isDisabled' property :is_disabled, as: 'isDisabled'
property :description, as: 'description' property :agent_version, as: 'agentVersion'
property :uniquifier, as: 'uniquifier' property :id, as: 'id'
collection :source_contexts, as: 'sourceContexts', class: Google::Apis::ClouddebuggerV2::SourceContext, decorator: Google::Apis::ClouddebuggerV2::SourceContext::Representation
end end
end end
class ProjectRepoId class ProjectRepoId
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :project_id, as: 'projectId'
property :repo_name, as: 'repoName' property :repo_name, as: 'repoName'
property :project_id, as: 'projectId'
end end
end end
class ListActiveBreakpointsResponse class ListActiveBreakpointsResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :wait_expired, as: 'waitExpired'
property :next_wait_token, as: 'nextWaitToken' property :next_wait_token, as: 'nextWaitToken'
collection :breakpoints, as: 'breakpoints', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation collection :breakpoints, as: 'breakpoints', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation
property :wait_expired, as: 'waitExpired'
end end
end end
@ -341,123 +452,12 @@ module Google
class GerritSourceContext class GerritSourceContext
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :gerrit_project, as: 'gerritProject' property :revision_id, as: 'revisionId'
property :alias_context, as: 'aliasContext', class: Google::Apis::ClouddebuggerV2::AliasContext, decorator: Google::Apis::ClouddebuggerV2::AliasContext::Representation
property :host_uri, as: 'hostUri' property :host_uri, as: 'hostUri'
property :revision_id, as: 'revisionId'
property :alias_name, as: 'aliasName' property :alias_name, as: 'aliasName'
end
end
class CloudWorkspaceId
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :repo_id, as: 'repoId', class: Google::Apis::ClouddebuggerV2::RepoId, decorator: Google::Apis::ClouddebuggerV2::RepoId::Representation
end
end
class ListBreakpointsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_wait_token, as: 'nextWaitToken'
collection :breakpoints, as: 'breakpoints', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation
end
end
class Breakpoint
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :user_email, as: 'userEmail'
property :action, as: 'action'
property :log_level, as: 'logLevel'
property :id, as: 'id'
property :location, as: 'location', class: Google::Apis::ClouddebuggerV2::SourceLocation, decorator: Google::Apis::ClouddebuggerV2::SourceLocation::Representation
property :final_time, as: 'finalTime'
collection :variable_table, as: 'variableTable', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
property :create_time, as: 'createTime'
property :log_message_format, as: 'logMessageFormat'
hash :labels, as: 'labels'
collection :expressions, as: 'expressions'
collection :evaluated_expressions, as: 'evaluatedExpressions', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
property :is_final_state, as: 'isFinalState'
collection :stack_frames, as: 'stackFrames', class: Google::Apis::ClouddebuggerV2::StackFrame, decorator: Google::Apis::ClouddebuggerV2::StackFrame::Representation
property :condition, as: 'condition'
property :status, as: 'status', class: Google::Apis::ClouddebuggerV2::StatusMessage, decorator: Google::Apis::ClouddebuggerV2::StatusMessage::Representation
end
end
class UpdateActiveBreakpointRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :breakpoint, as: 'breakpoint', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation
end
end
class SetBreakpointResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :breakpoint, as: 'breakpoint', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation
end
end
class SourceContext
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :gerrit, as: 'gerrit', class: Google::Apis::ClouddebuggerV2::GerritSourceContext, decorator: Google::Apis::ClouddebuggerV2::GerritSourceContext::Representation
property :cloud_repo, as: 'cloudRepo', class: Google::Apis::ClouddebuggerV2::CloudRepoSourceContext, decorator: Google::Apis::ClouddebuggerV2::CloudRepoSourceContext::Representation
property :cloud_workspace, as: 'cloudWorkspace', class: Google::Apis::ClouddebuggerV2::CloudWorkspaceSourceContext, decorator: Google::Apis::ClouddebuggerV2::CloudWorkspaceSourceContext::Representation
property :git, as: 'git', class: Google::Apis::ClouddebuggerV2::GitSourceContext, decorator: Google::Apis::ClouddebuggerV2::GitSourceContext::Representation
end
end
class CloudRepoSourceContext
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :revision_id, as: 'revisionId'
property :alias_name, as: 'aliasName'
property :repo_id, as: 'repoId', class: Google::Apis::ClouddebuggerV2::RepoId, decorator: Google::Apis::ClouddebuggerV2::RepoId::Representation
property :alias_context, as: 'aliasContext', class: Google::Apis::ClouddebuggerV2::AliasContext, decorator: Google::Apis::ClouddebuggerV2::AliasContext::Representation property :alias_context, as: 'aliasContext', class: Google::Apis::ClouddebuggerV2::AliasContext, decorator: Google::Apis::ClouddebuggerV2::AliasContext::Representation
end property :gerrit_project, as: 'gerritProject'
end
class RegisterDebuggeeResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :debuggee, as: 'debuggee', class: Google::Apis::ClouddebuggerV2::Debuggee, decorator: Google::Apis::ClouddebuggerV2::Debuggee::Representation
end
end
class RegisterDebuggeeRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :debuggee, as: 'debuggee', class: Google::Apis::ClouddebuggerV2::Debuggee, decorator: Google::Apis::ClouddebuggerV2::Debuggee::Representation
end
end
class GetBreakpointResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :breakpoint, as: 'breakpoint', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation
end end
end end
end end

View File

@ -57,11 +57,11 @@ module Google
# result includes only debuggees that are active. # result includes only debuggees that are active.
# @param [String] project # @param [String] project
# Project number of a Google Cloud project whose debuggees to list. # Project number of a Google Cloud project whose debuggees to list.
# @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
# #
@ -74,141 +74,21 @@ 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_debugger_debuggees(client_version: nil, include_inactive: nil, project: nil, quota_user: nil, fields: nil, options: nil, &block) def list_debugger_debuggees(client_version: nil, include_inactive: nil, project: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2/debugger/debuggees', options) command = make_simple_command(:get, 'v2/debugger/debuggees', options)
command.response_representation = Google::Apis::ClouddebuggerV2::ListDebuggeesResponse::Representation command.response_representation = Google::Apis::ClouddebuggerV2::ListDebuggeesResponse::Representation
command.response_class = Google::Apis::ClouddebuggerV2::ListDebuggeesResponse command.response_class = Google::Apis::ClouddebuggerV2::ListDebuggeesResponse
command.query['clientVersion'] = client_version unless client_version.nil? command.query['clientVersion'] = client_version unless client_version.nil?
command.query['includeInactive'] = include_inactive unless include_inactive.nil? command.query['includeInactive'] = include_inactive unless include_inactive.nil?
command.query['project'] = project unless project.nil? command.query['project'] = project unless project.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Sets the breakpoint to the debuggee.
# @param [String] debuggee_id
# ID of the debuggee where the breakpoint is to be set.
# @param [Google::Apis::ClouddebuggerV2::Breakpoint] breakpoint_object
# @param [String] client_version
# The client version making the call.
# Following: `domain/type/version` (e.g., `google.com/intellij/v1`).
# @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::ClouddebuggerV2::SetBreakpointResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClouddebuggerV2::SetBreakpointResponse]
#
# @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_debugger_debuggee_breakpoint(debuggee_id, breakpoint_object = nil, client_version: nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/debugger/debuggees/{debuggeeId}/breakpoints/set', options)
command.request_representation = Google::Apis::ClouddebuggerV2::Breakpoint::Representation
command.request_object = breakpoint_object
command.response_representation = Google::Apis::ClouddebuggerV2::SetBreakpointResponse::Representation
command.response_class = Google::Apis::ClouddebuggerV2::SetBreakpointResponse
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
command.query['clientVersion'] = client_version unless client_version.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 the breakpoint from the debuggee.
# @param [String] debuggee_id
# ID of the debuggee whose breakpoint to delete.
# @param [String] breakpoint_id
# ID of the breakpoint to delete.
# @param [String] client_version
# The client version making the call.
# Following: `domain/type/version` (e.g., `google.com/intellij/v1`).
# @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::ClouddebuggerV2::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClouddebuggerV2::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_debugger_debuggee_breakpoint(debuggee_id, breakpoint_id, client_version: nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:delete, 'v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}', options)
command.response_representation = Google::Apis::ClouddebuggerV2::Empty::Representation
command.response_class = Google::Apis::ClouddebuggerV2::Empty
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
command.params['breakpointId'] = breakpoint_id unless breakpoint_id.nil?
command.query['clientVersion'] = client_version unless client_version.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 breakpoint information.
# @param [String] debuggee_id
# ID of the debuggee whose breakpoint to get.
# @param [String] breakpoint_id
# ID of the breakpoint to get.
# @param [String] client_version
# The client version making the call.
# Following: `domain/type/version` (e.g., `google.com/intellij/v1`).
# @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::ClouddebuggerV2::GetBreakpointResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClouddebuggerV2::GetBreakpointResponse]
#
# @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_debugger_debuggee_breakpoint(debuggee_id, breakpoint_id, client_version: nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}', options)
command.response_representation = Google::Apis::ClouddebuggerV2::GetBreakpointResponse::Representation
command.response_class = Google::Apis::ClouddebuggerV2::GetBreakpointResponse
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
command.params['breakpointId'] = breakpoint_id unless breakpoint_id.nil?
command.query['clientVersion'] = client_version unless client_version.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 all breakpoints for the debuggee. # Lists all breakpoints for the debuggee.
# @param [String] debuggee_id # @param [String] debuggee_id
# ID of the debuggee whose breakpoints to list. # ID of the debuggee whose breakpoints to list.
# @param [Boolean] include_all_users
# When set to `true`, the response includes the list of breakpoints set by
# any user. Otherwise, it includes only breakpoints set by the caller.
# @param [Boolean] include_inactive
# When set to `true`, the response includes active and inactive
# breakpoints. Otherwise, it includes only active breakpoints.
# @param [Boolean] strip_results
# This field is deprecated. The following fields are always stripped out of
# the result: `stack_frames`, `evaluated_expressions` and `variable_table`.
# @param [String] wait_token # @param [String] wait_token
# A wait token that, if specified, blocks the call until the breakpoints # A wait token that, if specified, blocks the call until the breakpoints
# list has changed, or a server selected timeout has expired. The value # list has changed, or a server selected timeout has expired. The value
@ -220,11 +100,20 @@ module Google
# Following: `domain/type/version` (e.g., `google.com/intellij/v1`). # Following: `domain/type/version` (e.g., `google.com/intellij/v1`).
# @param [String] action_value # @param [String] action_value
# Only breakpoints with the specified action will pass the filter. # Only breakpoints with the specified action will pass the filter.
# @param [Boolean] include_inactive
# When set to `true`, the response includes active and inactive
# breakpoints. Otherwise, it includes only active breakpoints.
# @param [Boolean] include_all_users
# When set to `true`, the response includes the list of breakpoints set by
# any user. Otherwise, it includes only breakpoints set by the caller.
# @param [Boolean] strip_results
# This field is deprecated. The following fields are always stripped out of
# the result: `stack_frames`, `evaluated_expressions` and `variable_table`.
# @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
# #
@ -237,19 +126,130 @@ 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_debugger_debuggee_breakpoints(debuggee_id, include_all_users: nil, include_inactive: nil, strip_results: nil, wait_token: nil, client_version: nil, action_value: nil, quota_user: nil, fields: nil, options: nil, &block) def list_debugger_debuggee_breakpoints(debuggee_id, wait_token: nil, client_version: nil, action_value: nil, include_inactive: nil, include_all_users: nil, strip_results: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2/debugger/debuggees/{debuggeeId}/breakpoints', options) command = make_simple_command(:get, 'v2/debugger/debuggees/{debuggeeId}/breakpoints', options)
command.response_representation = Google::Apis::ClouddebuggerV2::ListBreakpointsResponse::Representation command.response_representation = Google::Apis::ClouddebuggerV2::ListBreakpointsResponse::Representation
command.response_class = Google::Apis::ClouddebuggerV2::ListBreakpointsResponse command.response_class = Google::Apis::ClouddebuggerV2::ListBreakpointsResponse
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil? command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
command.query['includeAllUsers'] = include_all_users unless include_all_users.nil?
command.query['includeInactive'] = include_inactive unless include_inactive.nil?
command.query['stripResults'] = strip_results unless strip_results.nil?
command.query['waitToken'] = wait_token unless wait_token.nil? command.query['waitToken'] = wait_token unless wait_token.nil?
command.query['clientVersion'] = client_version unless client_version.nil? command.query['clientVersion'] = client_version unless client_version.nil?
command.query['action.value'] = action_value unless action_value.nil? command.query['action.value'] = action_value unless action_value.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['includeInactive'] = include_inactive unless include_inactive.nil?
command.query['includeAllUsers'] = include_all_users unless include_all_users.nil?
command.query['stripResults'] = strip_results unless strip_results.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
# Gets breakpoint information.
# @param [String] debuggee_id
# ID of the debuggee whose breakpoint to get.
# @param [String] breakpoint_id
# ID of the breakpoint to get.
# @param [String] client_version
# The client version making the call.
# Following: `domain/type/version` (e.g., `google.com/intellij/v1`).
# @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::ClouddebuggerV2::GetBreakpointResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClouddebuggerV2::GetBreakpointResponse]
#
# @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_debugger_debuggee_breakpoint(debuggee_id, breakpoint_id, client_version: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}', options)
command.response_representation = Google::Apis::ClouddebuggerV2::GetBreakpointResponse::Representation
command.response_class = Google::Apis::ClouddebuggerV2::GetBreakpointResponse
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
command.params['breakpointId'] = breakpoint_id unless breakpoint_id.nil?
command.query['clientVersion'] = client_version unless client_version.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 the breakpoint from the debuggee.
# @param [String] debuggee_id
# ID of the debuggee whose breakpoint to delete.
# @param [String] breakpoint_id
# ID of the breakpoint to delete.
# @param [String] client_version
# The client version making the call.
# Following: `domain/type/version` (e.g., `google.com/intellij/v1`).
# @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::ClouddebuggerV2::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClouddebuggerV2::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_debugger_debuggee_breakpoint(debuggee_id, breakpoint_id, client_version: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}', options)
command.response_representation = Google::Apis::ClouddebuggerV2::Empty::Representation
command.response_class = Google::Apis::ClouddebuggerV2::Empty
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
command.params['breakpointId'] = breakpoint_id unless breakpoint_id.nil?
command.query['clientVersion'] = client_version unless client_version.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 breakpoint to the debuggee.
# @param [String] debuggee_id
# ID of the debuggee where the breakpoint is to be set.
# @param [Google::Apis::ClouddebuggerV2::Breakpoint] breakpoint_object
# @param [String] client_version
# The client version making the call.
# Following: `domain/type/version` (e.g., `google.com/intellij/v1`).
# @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::ClouddebuggerV2::SetBreakpointResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClouddebuggerV2::SetBreakpointResponse]
#
# @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_debugger_debuggee_breakpoint(debuggee_id, breakpoint_object = nil, client_version: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/debugger/debuggees/{debuggeeId}/breakpoints/set', options)
command.request_representation = Google::Apis::ClouddebuggerV2::Breakpoint::Representation
command.request_object = breakpoint_object
command.response_representation = Google::Apis::ClouddebuggerV2::SetBreakpointResponse::Representation
command.response_class = Google::Apis::ClouddebuggerV2::SetBreakpointResponse
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
command.query['clientVersion'] = client_version unless client_version.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
@ -262,11 +262,11 @@ module Google
# data loss. If the debuggee is disabled by the server, the response will # data loss. If the debuggee is disabled by the server, the response will
# have `is_disabled` set to `true`. # have `is_disabled` set to `true`.
# @param [Google::Apis::ClouddebuggerV2::RegisterDebuggeeRequest] register_debuggee_request_object # @param [Google::Apis::ClouddebuggerV2::RegisterDebuggeeRequest] register_debuggee_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
# #
@ -279,57 +279,14 @@ 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 register_debuggee(register_debuggee_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) def register_debuggee(register_debuggee_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/controller/debuggees/register', options) command = make_simple_command(:post, 'v2/controller/debuggees/register', options)
command.request_representation = Google::Apis::ClouddebuggerV2::RegisterDebuggeeRequest::Representation command.request_representation = Google::Apis::ClouddebuggerV2::RegisterDebuggeeRequest::Representation
command.request_object = register_debuggee_request_object command.request_object = register_debuggee_request_object
command.response_representation = Google::Apis::ClouddebuggerV2::RegisterDebuggeeResponse::Representation command.response_representation = Google::Apis::ClouddebuggerV2::RegisterDebuggeeResponse::Representation
command.response_class = Google::Apis::ClouddebuggerV2::RegisterDebuggeeResponse command.response_class = Google::Apis::ClouddebuggerV2::RegisterDebuggeeResponse
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Updates the breakpoint state or mutable fields.
# The entire Breakpoint message must be sent back to the controller
# service.
# Updates to active breakpoint fields are only allowed if the new value
# does not change the breakpoint specification. Updates to the `location`,
# `condition` and `expression` fields should not alter the breakpoint
# semantics. These may only make changes such as canonicalizing a value
# or snapping the location to the correct line of code.
# @param [String] debuggee_id
# Identifies the debuggee being debugged.
# @param [String] id
# Breakpoint identifier, unique in the scope of the debuggee.
# @param [Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointRequest] update_active_breakpoint_request_object
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse]
#
# @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_active_breakpoint(debuggee_id, id, update_active_breakpoint_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:put, 'v2/controller/debuggees/{debuggeeId}/breakpoints/{id}', options)
command.request_representation = Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointRequest::Representation
command.request_object = update_active_breakpoint_request_object
command.response_representation = Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse::Representation
command.response_class = Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
command.params['id'] = id unless id.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
@ -356,11 +313,11 @@ module Google
# A wait token that, if specified, blocks the method call until the list # A wait token that, if specified, blocks the method call until the list
# of active breakpoints has changed, or a server selected timeout has # of active breakpoints has changed, or a server selected timeout has
# expired. The value should be set from the last returned response. # expired. The value should be set from the last returned response.
# @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
# #
@ -373,15 +330,58 @@ 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_controller_debuggee_breakpoints(debuggee_id, success_on_timeout: nil, wait_token: nil, quota_user: nil, fields: nil, options: nil, &block) def list_controller_debuggee_breakpoints(debuggee_id, success_on_timeout: nil, wait_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2/controller/debuggees/{debuggeeId}/breakpoints', options) command = make_simple_command(:get, 'v2/controller/debuggees/{debuggeeId}/breakpoints', options)
command.response_representation = Google::Apis::ClouddebuggerV2::ListActiveBreakpointsResponse::Representation command.response_representation = Google::Apis::ClouddebuggerV2::ListActiveBreakpointsResponse::Representation
command.response_class = Google::Apis::ClouddebuggerV2::ListActiveBreakpointsResponse command.response_class = Google::Apis::ClouddebuggerV2::ListActiveBreakpointsResponse
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil? command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
command.query['successOnTimeout'] = success_on_timeout unless success_on_timeout.nil? command.query['successOnTimeout'] = success_on_timeout unless success_on_timeout.nil?
command.query['waitToken'] = wait_token unless wait_token.nil? command.query['waitToken'] = wait_token unless wait_token.nil?
command.query['quotaUser'] = quota_user unless quota_user.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
# Updates the breakpoint state or mutable fields.
# The entire Breakpoint message must be sent back to the controller
# service.
# Updates to active breakpoint fields are only allowed if the new value
# does not change the breakpoint specification. Updates to the `location`,
# `condition` and `expression` fields should not alter the breakpoint
# semantics. These may only make changes such as canonicalizing a value
# or snapping the location to the correct line of code.
# @param [String] debuggee_id
# Identifies the debuggee being debugged.
# @param [String] id
# Breakpoint identifier, unique in the scope of the debuggee.
# @param [Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointRequest] update_active_breakpoint_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::ClouddebuggerV2::UpdateActiveBreakpointResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse]
#
# @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_active_breakpoint(debuggee_id, id, update_active_breakpoint_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:put, 'v2/controller/debuggees/{debuggeeId}/breakpoints/{id}', options)
command.request_representation = Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointRequest::Representation
command.request_object = update_active_breakpoint_request_object
command.response_representation = Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse::Representation
command.response_class = Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
command.params['id'] = id unless id.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

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/error-reporting/ # @see https://cloud.google.com/error-reporting/
module ClouderrorreportingV1beta1 module ClouderrorreportingV1beta1
VERSION = 'V1beta1' VERSION = 'V1beta1'
REVISION = '20170602' REVISION = '20170618'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -26,6 +26,13 @@ module Google
class ListGroupStatsResponse class ListGroupStatsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# If non-empty, more results are available.
# Pass this token, along with the same query parameters as the first
# request, to view the next page of results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# The timestamp specifies the start time to which the request was restricted. # The timestamp specifies the start time to which the request was restricted.
# The start time is set based on the requested time range. It may be adjusted # The start time is set based on the requested time range. It may be adjusted
# to a later time if a project has exceeded the storage quota and older data # to a later time if a project has exceeded the storage quota and older data
@ -39,22 +46,15 @@ module Google
# @return [Array<Google::Apis::ClouderrorreportingV1beta1::ErrorGroupStats>] # @return [Array<Google::Apis::ClouderrorreportingV1beta1::ErrorGroupStats>]
attr_accessor :error_group_stats attr_accessor :error_group_stats
# If non-empty, more results are available.
# Pass this token, along with the same query parameters as the first
# request, to view the next page of results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@time_range_begin = args[:time_range_begin] if args.key?(:time_range_begin) @time_range_begin = args[:time_range_begin] if args.key?(:time_range_begin)
@error_group_stats = args[:error_group_stats] if args.key?(:error_group_stats) @error_group_stats = args[:error_group_stats] if args.key?(:error_group_stats)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end end
end end
@ -63,26 +63,26 @@ module Google
class SourceReference class SourceReference
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Optional. A URI string identifying the repository.
# Example: "https://github.com/GoogleCloudPlatform/kubernetes.git"
# Corresponds to the JSON property `repository`
# @return [String]
attr_accessor :repository
# The canonical and persistent identifier of the deployed revision. # The canonical and persistent identifier of the deployed revision.
# Example (git): "0035781c50ec7aa23385dc841529ce8a4b70db1b" # Example (git): "0035781c50ec7aa23385dc841529ce8a4b70db1b"
# Corresponds to the JSON property `revisionId` # Corresponds to the JSON property `revisionId`
# @return [String] # @return [String]
attr_accessor :revision_id attr_accessor :revision_id
# Optional. A URI string identifying the repository.
# Example: "https://github.com/GoogleCloudPlatform/kubernetes.git"
# Corresponds to the JSON property `repository`
# @return [String]
attr_accessor :repository
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@repository = args[:repository] if args.key?(:repository)
@revision_id = args[:revision_id] if args.key?(:revision_id) @revision_id = args[:revision_id] if args.key?(:revision_id)
@repository = args[:repository] if args.key?(:repository)
end end
end end
@ -103,6 +103,12 @@ module Google
class ErrorEvent class ErrorEvent
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Describes a running service that sends errors.
# Its version changes over time and multiple versions can run in parallel.
# Corresponds to the JSON property `serviceContext`
# @return [Google::Apis::ClouderrorreportingV1beta1::ServiceContext]
attr_accessor :service_context
# Time when the event occurred as provided in the error report. # Time when the event occurred as provided in the error report.
# If the report did not contain a timestamp, the time the error was received # If the report did not contain a timestamp, the time the error was received
# by the Error Reporting system is used. # by the Error Reporting system is used.
@ -123,22 +129,16 @@ module Google
# @return [String] # @return [String]
attr_accessor :message attr_accessor :message
# Describes a running service that sends errors.
# Its version changes over time and multiple versions can run in parallel.
# Corresponds to the JSON property `serviceContext`
# @return [Google::Apis::ClouderrorreportingV1beta1::ServiceContext]
attr_accessor :service_context
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@service_context = args[:service_context] if args.key?(:service_context)
@event_time = args[:event_time] if args.key?(:event_time) @event_time = args[:event_time] if args.key?(:event_time)
@context = args[:context] if args.key?(:context) @context = args[:context] if args.key?(:context)
@message = args[:message] if args.key?(:message) @message = args[:message] if args.key?(:message)
@service_context = args[:service_context] if args.key?(:service_context)
end end
end end
@ -146,6 +146,14 @@ module Google
class ReportedErrorEvent class ReportedErrorEvent
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# A description of the context in which an error occurred.
# This data should be provided by the application when reporting an error,
# unless the
# error report has been generated automatically from Google App Engine logs.
# Corresponds to the JSON property `context`
# @return [Google::Apis::ClouderrorreportingV1beta1::ErrorContext]
attr_accessor :context
# [Required] The error message. # [Required] The error message.
# If no `context.reportLocation` is provided, the message must contain a # If no `context.reportLocation` is provided, the message must contain a
# header (typically consisting of the exception type name and an error # header (typically consisting of the exception type name and an error
@ -187,24 +195,16 @@ module Google
# @return [String] # @return [String]
attr_accessor :event_time attr_accessor :event_time
# A description of the context in which an error occurred.
# This data should be provided by the application when reporting an error,
# unless the
# error report has been generated automatically from Google App Engine logs.
# Corresponds to the JSON property `context`
# @return [Google::Apis::ClouderrorreportingV1beta1::ErrorContext]
attr_accessor :context
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@context = args[:context] if args.key?(:context)
@message = args[:message] if args.key?(:message) @message = args[:message] if args.key?(:message)
@service_context = args[:service_context] if args.key?(:service_context) @service_context = args[:service_context] if args.key?(:service_context)
@event_time = args[:event_time] if args.key?(:event_time) @event_time = args[:event_time] if args.key?(:event_time)
@context = args[:context] if args.key?(:context)
end end
end end
@ -215,6 +215,28 @@ module Google
class ErrorContext class ErrorContext
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Source code that was used to build the executable which has
# caused the given error message.
# Corresponds to the JSON property `sourceReferences`
# @return [Array<Google::Apis::ClouderrorreportingV1beta1::SourceReference>]
attr_accessor :source_references
# Indicates a location in the source code of the service for which errors are
# reported. `functionName` must be provided by the application when reporting
# an error, unless the error report contains a `message` with a supported
# exception stack trace. All fields are optional for the later case.
# Corresponds to the JSON property `reportLocation`
# @return [Google::Apis::ClouderrorreportingV1beta1::SourceLocation]
attr_accessor :report_location
# HTTP request data that is related to a reported error.
# This data should be provided by the application when reporting an error,
# unless the
# error report has been generated automatically from Google App Engine logs.
# Corresponds to the JSON property `httpRequest`
# @return [Google::Apis::ClouderrorreportingV1beta1::HttpRequestContext]
attr_accessor :http_request
# The user who caused or was affected by the crash. # The user who caused or was affected by the crash.
# This can be a user ID, an email address, or an arbitrary token that # This can be a user ID, an email address, or an arbitrary token that
# uniquely identifies the user. # uniquely identifies the user.
@ -227,38 +249,16 @@ module Google
# @return [String] # @return [String]
attr_accessor :user attr_accessor :user
# Indicates a location in the source code of the service for which errors are
# reported. `functionName` must be provided by the application when reporting
# an error, unless the error report contains a `message` with a supported
# exception stack trace. All fields are optional for the later case.
# Corresponds to the JSON property `reportLocation`
# @return [Google::Apis::ClouderrorreportingV1beta1::SourceLocation]
attr_accessor :report_location
# Source code that was used to build the executable which has
# caused the given error message.
# Corresponds to the JSON property `sourceReferences`
# @return [Array<Google::Apis::ClouderrorreportingV1beta1::SourceReference>]
attr_accessor :source_references
# HTTP request data that is related to a reported error.
# This data should be provided by the application when reporting an error,
# unless the
# error report has been generated automatically from Google App Engine logs.
# Corresponds to the JSON property `httpRequest`
# @return [Google::Apis::ClouderrorreportingV1beta1::HttpRequestContext]
attr_accessor :http_request
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@user = args[:user] if args.key?(:user)
@report_location = args[:report_location] if args.key?(:report_location)
@source_references = args[:source_references] if args.key?(:source_references) @source_references = args[:source_references] if args.key?(:source_references)
@report_location = args[:report_location] if args.key?(:report_location)
@http_request = args[:http_request] if args.key?(:http_request) @http_request = args[:http_request] if args.key?(:http_request)
@user = args[:user] if args.key?(:user)
end end
end end
@ -287,6 +287,18 @@ module Google
class ErrorGroupStats class ErrorGroupStats
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Description of a group of similar error events.
# Corresponds to the JSON property `group`
# @return [Google::Apis::ClouderrorreportingV1beta1::ErrorGroup]
attr_accessor :group
# Approximate first occurrence that was ever seen for this group
# and which matches the given filter criteria, ignoring the
# time_range that was specified in the request.
# Corresponds to the JSON property `firstSeenTime`
# @return [String]
attr_accessor :first_seen_time
# Approximate total number of events in the given group that match # Approximate total number of events in the given group that match
# the filter criteria. # the filter criteria.
# Corresponds to the JSON property `count` # Corresponds to the JSON property `count`
@ -316,6 +328,12 @@ module Google
# @return [String] # @return [String]
attr_accessor :last_seen_time attr_accessor :last_seen_time
# The total number of services with a non-zero error count for the given
# filter criteria.
# Corresponds to the JSON property `numAffectedServices`
# @return [Fixnum]
attr_accessor :num_affected_services
# Service contexts with a non-zero error count for the given filter # Service contexts with a non-zero error count for the given filter
# criteria. This list can be truncated if multiple services are affected. # criteria. This list can be truncated if multiple services are affected.
# Refer to `num_affected_services` for the total count. # Refer to `num_affected_services` for the total count.
@ -323,12 +341,6 @@ module Google
# @return [Array<Google::Apis::ClouderrorreportingV1beta1::ServiceContext>] # @return [Array<Google::Apis::ClouderrorreportingV1beta1::ServiceContext>]
attr_accessor :affected_services attr_accessor :affected_services
# The total number of services with a non-zero error count for the given
# filter criteria.
# Corresponds to the JSON property `numAffectedServices`
# @return [Fixnum]
attr_accessor :num_affected_services
# An error event which is returned by the Error Reporting system. # An error event which is returned by the Error Reporting system.
# Corresponds to the JSON property `representative` # Corresponds to the JSON property `representative`
# @return [Google::Apis::ClouderrorreportingV1beta1::ErrorEvent] # @return [Google::Apis::ClouderrorreportingV1beta1::ErrorEvent]
@ -343,33 +355,21 @@ module Google
# @return [Array<Google::Apis::ClouderrorreportingV1beta1::TimedCount>] # @return [Array<Google::Apis::ClouderrorreportingV1beta1::TimedCount>]
attr_accessor :timed_counts attr_accessor :timed_counts
# Description of a group of similar error events.
# Corresponds to the JSON property `group`
# @return [Google::Apis::ClouderrorreportingV1beta1::ErrorGroup]
attr_accessor :group
# Approximate first occurrence that was ever seen for this group
# and which matches the given filter criteria, ignoring the
# time_range that was specified in the request.
# Corresponds to the JSON property `firstSeenTime`
# @return [String]
attr_accessor :first_seen_time
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@group = args[:group] if args.key?(:group)
@first_seen_time = args[:first_seen_time] if args.key?(:first_seen_time)
@count = args[:count] if args.key?(:count) @count = args[:count] if args.key?(:count)
@affected_users_count = args[:affected_users_count] if args.key?(:affected_users_count) @affected_users_count = args[:affected_users_count] if args.key?(:affected_users_count)
@last_seen_time = args[:last_seen_time] if args.key?(:last_seen_time) @last_seen_time = args[:last_seen_time] if args.key?(:last_seen_time)
@affected_services = args[:affected_services] if args.key?(:affected_services)
@num_affected_services = args[:num_affected_services] if args.key?(:num_affected_services) @num_affected_services = args[:num_affected_services] if args.key?(:num_affected_services)
@affected_services = args[:affected_services] if args.key?(:affected_services)
@representative = args[:representative] if args.key?(:representative) @representative = args[:representative] if args.key?(:representative)
@timed_counts = args[:timed_counts] if args.key?(:timed_counts) @timed_counts = args[:timed_counts] if args.key?(:timed_counts)
@group = args[:group] if args.key?(:group)
@first_seen_time = args[:first_seen_time] if args.key?(:first_seen_time)
end end
end end
@ -377,6 +377,11 @@ module Google
class ListEventsResponse class ListEventsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The timestamp specifies the start time to which the request was restricted.
# Corresponds to the JSON property `timeRangeBegin`
# @return [String]
attr_accessor :time_range_begin
# The error events which match the given request. # The error events which match the given request.
# Corresponds to the JSON property `errorEvents` # Corresponds to the JSON property `errorEvents`
# @return [Array<Google::Apis::ClouderrorreportingV1beta1::ErrorEvent>] # @return [Array<Google::Apis::ClouderrorreportingV1beta1::ErrorEvent>]
@ -389,20 +394,15 @@ module Google
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
# The timestamp specifies the start time to which the request was restricted.
# Corresponds to the JSON property `timeRangeBegin`
# @return [String]
attr_accessor :time_range_begin
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@time_range_begin = args[:time_range_begin] if args.key?(:time_range_begin)
@error_events = args[:error_events] if args.key?(:error_events) @error_events = args[:error_events] if args.key?(:error_events)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token) @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@time_range_begin = args[:time_range_begin] if args.key?(:time_range_begin)
end end
end end
@ -412,20 +412,20 @@ module Google
class TimedCount class TimedCount
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Approximate number of occurrences in the given time period. # End of the time period to which `count` refers (excluded).
# Corresponds to the JSON property `count` # Corresponds to the JSON property `endTime`
# @return [Fixnum] # @return [String]
attr_accessor :count attr_accessor :end_time
# Start of the time period to which `count` refers (included). # Start of the time period to which `count` refers (included).
# Corresponds to the JSON property `startTime` # Corresponds to the JSON property `startTime`
# @return [String] # @return [String]
attr_accessor :start_time attr_accessor :start_time
# End of the time period to which `count` refers (excluded). # Approximate number of occurrences in the given time period.
# Corresponds to the JSON property `endTime` # Corresponds to the JSON property `count`
# @return [String] # @return [Fixnum]
attr_accessor :end_time attr_accessor :count
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
@ -433,9 +433,9 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@count = args[:count] if args.key?(:count)
@start_time = args[:start_time] if args.key?(:start_time)
@end_time = args[:end_time] if args.key?(:end_time) @end_time = args[:end_time] if args.key?(:end_time)
@start_time = args[:start_time] if args.key?(:start_time)
@count = args[:count] if args.key?(:count)
end end
end end
@ -449,17 +449,17 @@ module Google
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# Associated tracking issues.
# Corresponds to the JSON property `trackingIssues`
# @return [Array<Google::Apis::ClouderrorreportingV1beta1::TrackingIssue>]
attr_accessor :tracking_issues
# Group IDs are unique for a given project. If the same kind of error # Group IDs are unique for a given project. If the same kind of error
# occurs in different service contexts, it will receive the same group ID. # occurs in different service contexts, it will receive the same group ID.
# Corresponds to the JSON property `groupId` # Corresponds to the JSON property `groupId`
# @return [String] # @return [String]
attr_accessor :group_id attr_accessor :group_id
# Associated tracking issues.
# Corresponds to the JSON property `trackingIssues`
# @return [Array<Google::Apis::ClouderrorreportingV1beta1::TrackingIssue>]
attr_accessor :tracking_issues
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -467,45 +467,8 @@ 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) @name = args[:name] if args.key?(:name)
@group_id = args[:group_id] if args.key?(:group_id)
@tracking_issues = args[:tracking_issues] if args.key?(:tracking_issues) @tracking_issues = args[:tracking_issues] if args.key?(:tracking_issues)
end @group_id = args[:group_id] if args.key?(:group_id)
end
# Indicates a location in the source code of the service for which errors are
# reported. `functionName` must be provided by the application when reporting
# an error, unless the error report contains a `message` with a supported
# exception stack trace. All fields are optional for the later case.
class SourceLocation
include Google::Apis::Core::Hashable
# The source code filename, which can include a truncated relative
# path, or a full path from a production machine.
# Corresponds to the JSON property `filePath`
# @return [String]
attr_accessor :file_path
# 1-based. 0 indicates that the line number is unknown.
# Corresponds to the JSON property `lineNumber`
# @return [Fixnum]
attr_accessor :line_number
# Human-readable name of a function or method.
# The value can include optional context like the class or package name.
# For example, `my.package.MyClass.method` in case of Java.
# Corresponds to the JSON property `functionName`
# @return [String]
attr_accessor :function_name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@file_path = args[:file_path] if args.key?(:file_path)
@line_number = args[:line_number] if args.key?(:line_number)
@function_name = args[:function_name] if args.key?(:function_name)
end end
end end
@ -552,6 +515,43 @@ module Google
end end
end end
# Indicates a location in the source code of the service for which errors are
# reported. `functionName` must be provided by the application when reporting
# an error, unless the error report contains a `message` with a supported
# exception stack trace. All fields are optional for the later case.
class SourceLocation
include Google::Apis::Core::Hashable
# Human-readable name of a function or method.
# The value can include optional context like the class or package name.
# For example, `my.package.MyClass.method` in case of Java.
# Corresponds to the JSON property `functionName`
# @return [String]
attr_accessor :function_name
# The source code filename, which can include a truncated relative
# path, or a full path from a production machine.
# Corresponds to the JSON property `filePath`
# @return [String]
attr_accessor :file_path
# 1-based. 0 indicates that the line number is unknown.
# Corresponds to the JSON property `lineNumber`
# @return [Fixnum]
attr_accessor :line_number
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@function_name = args[:function_name] if args.key?(:function_name)
@file_path = args[:file_path] if args.key?(:file_path)
@line_number = args[:line_number] if args.key?(:line_number)
end
end
# Response for reporting an individual error event. # Response for reporting an individual error event.
# Data may be added to this message in the future. # Data may be added to this message in the future.
class ReportErrorEventResponse class ReportErrorEventResponse
@ -573,6 +573,16 @@ module Google
class HttpRequestContext class HttpRequestContext
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The URL of the request.
# Corresponds to the JSON property `url`
# @return [String]
attr_accessor :url
# The HTTP response status code for the request.
# Corresponds to the JSON property `responseStatusCode`
# @return [Fixnum]
attr_accessor :response_status_code
# The type of HTTP request, such as `GET`, `POST`, etc. # The type of HTTP request, such as `GET`, `POST`, etc.
# Corresponds to the JSON property `method` # Corresponds to the JSON property `method`
# @return [String] # @return [String]
@ -596,28 +606,18 @@ module Google
# @return [String] # @return [String]
attr_accessor :user_agent attr_accessor :user_agent
# The URL of the request.
# Corresponds to the JSON property `url`
# @return [String]
attr_accessor :url
# The HTTP response status code for the request.
# Corresponds to the JSON property `responseStatusCode`
# @return [Fixnum]
attr_accessor :response_status_code
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@url = args[:url] if args.key?(:url)
@response_status_code = args[:response_status_code] if args.key?(:response_status_code)
@method_prop = args[:method_prop] if args.key?(:method_prop) @method_prop = args[:method_prop] if args.key?(:method_prop)
@remote_ip = args[:remote_ip] if args.key?(:remote_ip) @remote_ip = args[:remote_ip] if args.key?(:remote_ip)
@referrer = args[:referrer] if args.key?(:referrer) @referrer = args[:referrer] if args.key?(:referrer)
@user_agent = args[:user_agent] if args.key?(:user_agent) @user_agent = args[:user_agent] if args.key?(:user_agent)
@url = args[:url] if args.key?(:url)
@response_status_code = args[:response_status_code] if args.key?(:response_status_code)
end end
end end
end end

View File

@ -88,13 +88,13 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class SourceLocation class ServiceContext
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 ServiceContext 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
@ -115,18 +115,18 @@ module Google
class ListGroupStatsResponse class ListGroupStatsResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
property :time_range_begin, as: 'timeRangeBegin' property :time_range_begin, as: 'timeRangeBegin'
collection :error_group_stats, as: 'errorGroupStats', class: Google::Apis::ClouderrorreportingV1beta1::ErrorGroupStats, decorator: Google::Apis::ClouderrorreportingV1beta1::ErrorGroupStats::Representation collection :error_group_stats, as: 'errorGroupStats', class: Google::Apis::ClouderrorreportingV1beta1::ErrorGroupStats, decorator: Google::Apis::ClouderrorreportingV1beta1::ErrorGroupStats::Representation
property :next_page_token, as: 'nextPageToken'
end end
end end
class SourceReference class SourceReference
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :repository, as: 'repository'
property :revision_id, as: 'revisionId' property :revision_id, as: 'revisionId'
property :repository, as: 'repository'
end end
end end
@ -139,37 +139,37 @@ module Google
class ErrorEvent class ErrorEvent
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :service_context, as: 'serviceContext', class: Google::Apis::ClouderrorreportingV1beta1::ServiceContext, decorator: Google::Apis::ClouderrorreportingV1beta1::ServiceContext::Representation
property :event_time, as: 'eventTime' property :event_time, as: 'eventTime'
property :context, as: 'context', class: Google::Apis::ClouderrorreportingV1beta1::ErrorContext, decorator: Google::Apis::ClouderrorreportingV1beta1::ErrorContext::Representation property :context, as: 'context', class: Google::Apis::ClouderrorreportingV1beta1::ErrorContext, decorator: Google::Apis::ClouderrorreportingV1beta1::ErrorContext::Representation
property :message, as: 'message' property :message, as: 'message'
property :service_context, as: 'serviceContext', class: Google::Apis::ClouderrorreportingV1beta1::ServiceContext, decorator: Google::Apis::ClouderrorreportingV1beta1::ServiceContext::Representation
end end
end end
class ReportedErrorEvent class ReportedErrorEvent
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :context, as: 'context', class: Google::Apis::ClouderrorreportingV1beta1::ErrorContext, decorator: Google::Apis::ClouderrorreportingV1beta1::ErrorContext::Representation
property :message, as: 'message' property :message, as: 'message'
property :service_context, as: 'serviceContext', class: Google::Apis::ClouderrorreportingV1beta1::ServiceContext, decorator: Google::Apis::ClouderrorreportingV1beta1::ServiceContext::Representation property :service_context, as: 'serviceContext', class: Google::Apis::ClouderrorreportingV1beta1::ServiceContext, decorator: Google::Apis::ClouderrorreportingV1beta1::ServiceContext::Representation
property :event_time, as: 'eventTime' property :event_time, as: 'eventTime'
property :context, as: 'context', class: Google::Apis::ClouderrorreportingV1beta1::ErrorContext, decorator: Google::Apis::ClouderrorreportingV1beta1::ErrorContext::Representation
end end
end end
class ErrorContext class ErrorContext
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :user, as: 'user'
property :report_location, as: 'reportLocation', class: Google::Apis::ClouderrorreportingV1beta1::SourceLocation, decorator: Google::Apis::ClouderrorreportingV1beta1::SourceLocation::Representation
collection :source_references, as: 'sourceReferences', class: Google::Apis::ClouderrorreportingV1beta1::SourceReference, decorator: Google::Apis::ClouderrorreportingV1beta1::SourceReference::Representation collection :source_references, as: 'sourceReferences', class: Google::Apis::ClouderrorreportingV1beta1::SourceReference, decorator: Google::Apis::ClouderrorreportingV1beta1::SourceReference::Representation
property :report_location, as: 'reportLocation', class: Google::Apis::ClouderrorreportingV1beta1::SourceLocation, decorator: Google::Apis::ClouderrorreportingV1beta1::SourceLocation::Representation
property :http_request, as: 'httpRequest', class: Google::Apis::ClouderrorreportingV1beta1::HttpRequestContext, decorator: Google::Apis::ClouderrorreportingV1beta1::HttpRequestContext::Representation property :http_request, as: 'httpRequest', class: Google::Apis::ClouderrorreportingV1beta1::HttpRequestContext, decorator: Google::Apis::ClouderrorreportingV1beta1::HttpRequestContext::Representation
property :user, as: 'user'
end end
end end
@ -183,38 +183,38 @@ module Google
class ErrorGroupStats class ErrorGroupStats
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :group, as: 'group', class: Google::Apis::ClouderrorreportingV1beta1::ErrorGroup, decorator: Google::Apis::ClouderrorreportingV1beta1::ErrorGroup::Representation
property :first_seen_time, as: 'firstSeenTime'
property :count, :numeric_string => true, as: 'count' property :count, :numeric_string => true, as: 'count'
property :affected_users_count, :numeric_string => true, as: 'affectedUsersCount' property :affected_users_count, :numeric_string => true, as: 'affectedUsersCount'
property :last_seen_time, as: 'lastSeenTime' property :last_seen_time, as: 'lastSeenTime'
property :num_affected_services, as: 'numAffectedServices'
collection :affected_services, as: 'affectedServices', class: Google::Apis::ClouderrorreportingV1beta1::ServiceContext, decorator: Google::Apis::ClouderrorreportingV1beta1::ServiceContext::Representation collection :affected_services, as: 'affectedServices', class: Google::Apis::ClouderrorreportingV1beta1::ServiceContext, decorator: Google::Apis::ClouderrorreportingV1beta1::ServiceContext::Representation
property :num_affected_services, as: 'numAffectedServices'
property :representative, as: 'representative', class: Google::Apis::ClouderrorreportingV1beta1::ErrorEvent, decorator: Google::Apis::ClouderrorreportingV1beta1::ErrorEvent::Representation property :representative, as: 'representative', class: Google::Apis::ClouderrorreportingV1beta1::ErrorEvent, decorator: Google::Apis::ClouderrorreportingV1beta1::ErrorEvent::Representation
collection :timed_counts, as: 'timedCounts', class: Google::Apis::ClouderrorreportingV1beta1::TimedCount, decorator: Google::Apis::ClouderrorreportingV1beta1::TimedCount::Representation collection :timed_counts, as: 'timedCounts', class: Google::Apis::ClouderrorreportingV1beta1::TimedCount, decorator: Google::Apis::ClouderrorreportingV1beta1::TimedCount::Representation
property :group, as: 'group', class: Google::Apis::ClouderrorreportingV1beta1::ErrorGroup, decorator: Google::Apis::ClouderrorreportingV1beta1::ErrorGroup::Representation
property :first_seen_time, as: 'firstSeenTime'
end end
end end
class ListEventsResponse class ListEventsResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :time_range_begin, as: 'timeRangeBegin'
collection :error_events, as: 'errorEvents', class: Google::Apis::ClouderrorreportingV1beta1::ErrorEvent, decorator: Google::Apis::ClouderrorreportingV1beta1::ErrorEvent::Representation collection :error_events, as: 'errorEvents', class: Google::Apis::ClouderrorreportingV1beta1::ErrorEvent, decorator: Google::Apis::ClouderrorreportingV1beta1::ErrorEvent::Representation
property :next_page_token, as: 'nextPageToken' property :next_page_token, as: 'nextPageToken'
property :time_range_begin, as: 'timeRangeBegin'
end end
end end
class TimedCount class TimedCount
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :count, :numeric_string => true, as: 'count'
property :start_time, as: 'startTime'
property :end_time, as: 'endTime' property :end_time, as: 'endTime'
property :start_time, as: 'startTime'
property :count, :numeric_string => true, as: 'count'
end end
end end
@ -222,18 +222,9 @@ module Google
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name' property :name, as: 'name'
property :group_id, as: 'groupId'
collection :tracking_issues, as: 'trackingIssues', class: Google::Apis::ClouderrorreportingV1beta1::TrackingIssue, decorator: Google::Apis::ClouderrorreportingV1beta1::TrackingIssue::Representation collection :tracking_issues, as: 'trackingIssues', class: Google::Apis::ClouderrorreportingV1beta1::TrackingIssue, decorator: Google::Apis::ClouderrorreportingV1beta1::TrackingIssue::Representation
end property :group_id, as: 'groupId'
end
class SourceLocation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :file_path, as: 'filePath'
property :line_number, as: 'lineNumber'
property :function_name, as: 'functionName'
end end
end end
@ -246,6 +237,15 @@ module Google
end end
end end
class SourceLocation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :function_name, as: 'functionName'
property :file_path, as: 'filePath'
property :line_number, as: 'lineNumber'
end
end
class ReportErrorEventResponse class ReportErrorEventResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -255,12 +255,12 @@ module Google
class HttpRequestContext class HttpRequestContext
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :url, as: 'url'
property :response_status_code, as: 'responseStatusCode'
property :method_prop, as: 'method' property :method_prop, as: 'method'
property :remote_ip, as: 'remoteIp' property :remote_ip, as: 'remoteIp'
property :referrer, as: 'referrer' property :referrer, as: 'referrer'
property :user_agent, as: 'userAgent' property :user_agent, as: 'userAgent'
property :url, as: 'url'
property :response_status_code, as: 'responseStatusCode'
end end
end end
end end

View File

@ -82,6 +82,86 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Lists the specified groups.
# @param [String] project_name
# [Required] The resource name of the Google Cloud Platform project. Written
# as <code>projects/</code> plus the
# <a href="https://support.google.com/cloud/answer/6158840">Google Cloud
# Platform project ID</a>.
# Example: <code>projects/my-project-123</code>.
# @param [String] alignment
# [Optional] The alignment of the timed counts to be returned.
# Default is `ALIGNMENT_EQUAL_AT_END`.
# @param [Array<String>, String] group_id
# [Optional] List all <code>ErrorGroupStats</code> with these IDs.
# @param [String] service_filter_service
# [Optional] The exact value to match against
# [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/
# ServiceContext#FIELDS.service).
# @param [Fixnum] page_size
# [Optional] The maximum number of results to return per response.
# Default is 20.
# @param [String] order
# [Optional] The sort order in which the results are returned.
# Default is `COUNT_DESC`.
# @param [String] service_filter_version
# [Optional] The exact value to match against
# [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/
# ServiceContext#FIELDS.version).
# @param [String] alignment_time
# [Optional] Time where the timed counts shall be aligned if rounded
# alignment is chosen. Default is 00:00 UTC.
# @param [String] service_filter_resource_type
# [Optional] The exact value to match against
# [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/
# ServiceContext#FIELDS.resource_type).
# @param [String] timed_count_duration
# [Optional] The preferred duration for a single returned `TimedCount`.
# If not set, no timed counts are returned.
# @param [String] page_token
# [Optional] A `next_page_token` provided by a previous response. To view
# additional results, pass this token along with the identical query
# parameters as the first request.
# @param [String] time_range_period
# Restricts the query to the specified time range.
# @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::ClouderrorreportingV1beta1::ListGroupStatsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClouderrorreportingV1beta1::ListGroupStatsResponse]
#
# @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_group_stats(project_name, alignment: nil, group_id: nil, service_filter_service: nil, page_size: nil, order: nil, service_filter_version: nil, alignment_time: nil, service_filter_resource_type: nil, timed_count_duration: nil, page_token: nil, time_range_period: nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+projectName}/groupStats', options)
command.response_representation = Google::Apis::ClouderrorreportingV1beta1::ListGroupStatsResponse::Representation
command.response_class = Google::Apis::ClouderrorreportingV1beta1::ListGroupStatsResponse
command.params['projectName'] = project_name unless project_name.nil?
command.query['alignment'] = alignment unless alignment.nil?
command.query['groupId'] = group_id unless group_id.nil?
command.query['serviceFilter.service'] = service_filter_service unless service_filter_service.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['order'] = order unless order.nil?
command.query['serviceFilter.version'] = service_filter_version unless service_filter_version.nil?
command.query['alignmentTime'] = alignment_time unless alignment_time.nil?
command.query['serviceFilter.resourceType'] = service_filter_resource_type unless service_filter_resource_type.nil?
command.query['timedCountDuration'] = timed_count_duration unless timed_count_duration.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['timeRange.period'] = time_range_period unless time_range_period.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Get the specified group. # Get the specified group.
# @param [String] group_name # @param [String] group_name
# [Required] The group resource name. Written as # [Required] The group resource name. Written as
@ -153,86 +233,6 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Lists the specified groups.
# @param [String] project_name
# [Required] The resource name of the Google Cloud Platform project. Written
# as <code>projects/</code> plus the
# <a href="https://support.google.com/cloud/answer/6158840">Google Cloud
# Platform project ID</a>.
# Example: <code>projects/my-project-123</code>.
# @param [String] alignment_time
# [Optional] Time where the timed counts shall be aligned if rounded
# alignment is chosen. Default is 00:00 UTC.
# @param [String] service_filter_resource_type
# [Optional] The exact value to match against
# [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/
# ServiceContext#FIELDS.resource_type).
# @param [String] timed_count_duration
# [Optional] The preferred duration for a single returned `TimedCount`.
# If not set, no timed counts are returned.
# @param [String] page_token
# [Optional] A `next_page_token` provided by a previous response. To view
# additional results, pass this token along with the identical query
# parameters as the first request.
# @param [String] time_range_period
# Restricts the query to the specified time range.
# @param [String] alignment
# [Optional] The alignment of the timed counts to be returned.
# Default is `ALIGNMENT_EQUAL_AT_END`.
# @param [Array<String>, String] group_id
# [Optional] List all <code>ErrorGroupStats</code> with these IDs.
# @param [String] service_filter_service
# [Optional] The exact value to match against
# [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/
# ServiceContext#FIELDS.service).
# @param [Fixnum] page_size
# [Optional] The maximum number of results to return per response.
# Default is 20.
# @param [String] order
# [Optional] The sort order in which the results are returned.
# Default is `COUNT_DESC`.
# @param [String] service_filter_version
# [Optional] The exact value to match against
# [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/
# ServiceContext#FIELDS.version).
# @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::ClouderrorreportingV1beta1::ListGroupStatsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClouderrorreportingV1beta1::ListGroupStatsResponse]
#
# @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_group_stats(project_name, alignment_time: nil, service_filter_resource_type: nil, timed_count_duration: nil, page_token: nil, time_range_period: nil, alignment: nil, group_id: nil, service_filter_service: nil, page_size: nil, order: nil, service_filter_version: nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+projectName}/groupStats', options)
command.response_representation = Google::Apis::ClouderrorreportingV1beta1::ListGroupStatsResponse::Representation
command.response_class = Google::Apis::ClouderrorreportingV1beta1::ListGroupStatsResponse
command.params['projectName'] = project_name unless project_name.nil?
command.query['alignmentTime'] = alignment_time unless alignment_time.nil?
command.query['serviceFilter.resourceType'] = service_filter_resource_type unless service_filter_resource_type.nil?
command.query['timedCountDuration'] = timed_count_duration unless timed_count_duration.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['timeRange.period'] = time_range_period unless time_range_period.nil?
command.query['alignment'] = alignment unless alignment.nil?
command.query['groupId'] = group_id unless group_id.nil?
command.query['serviceFilter.service'] = service_filter_service unless service_filter_service.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['order'] = order unless order.nil?
command.query['serviceFilter.version'] = service_filter_version unless service_filter_version.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 the specified events. # Lists the specified events.
# @param [String] project_name # @param [String] project_name
# [Required] The resource name of the Google Cloud Platform project. Written # [Required] The resource name of the Google Cloud Platform project. Written
@ -240,14 +240,12 @@ module Google
# [Google Cloud Platform project # [Google Cloud Platform project
# ID](https://support.google.com/cloud/answer/6158840). # ID](https://support.google.com/cloud/answer/6158840).
# Example: `projects/my-project-123`. # Example: `projects/my-project-123`.
# @param [String] group_id
# [Required] The group for which events shall be returned.
# @param [String] page_token
# [Optional] A `next_page_token` provided by a previous response.
# @param [String] service_filter_service # @param [String] service_filter_service
# [Optional] The exact value to match against # [Optional] The exact value to match against
# [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/ # [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/
# ServiceContext#FIELDS.service). # ServiceContext#FIELDS.service).
# @param [String] page_token
# [Optional] A `next_page_token` provided by a previous response.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# [Optional] The maximum number of results to return per response. # [Optional] The maximum number of results to return per response.
# @param [String] service_filter_version # @param [String] service_filter_version
@ -260,6 +258,8 @@ module Google
# ServiceContext#FIELDS.resource_type). # ServiceContext#FIELDS.resource_type).
# @param [String] time_range_period # @param [String] time_range_period
# Restricts the query to the specified time range. # Restricts the query to the specified time range.
# @param [String] group_id
# [Required] The group for which events shall be returned.
# @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.
@ -277,18 +277,18 @@ 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_events(project_name, group_id: nil, page_token: nil, service_filter_service: nil, page_size: nil, service_filter_version: nil, service_filter_resource_type: nil, time_range_period: nil, quota_user: nil, fields: nil, options: nil, &block) def list_project_events(project_name, service_filter_service: nil, page_token: nil, page_size: nil, service_filter_version: nil, service_filter_resource_type: nil, time_range_period: nil, group_id: nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+projectName}/events', options) command = make_simple_command(:get, 'v1beta1/{+projectName}/events', options)
command.response_representation = Google::Apis::ClouderrorreportingV1beta1::ListEventsResponse::Representation command.response_representation = Google::Apis::ClouderrorreportingV1beta1::ListEventsResponse::Representation
command.response_class = Google::Apis::ClouderrorreportingV1beta1::ListEventsResponse command.response_class = Google::Apis::ClouderrorreportingV1beta1::ListEventsResponse
command.params['projectName'] = project_name unless project_name.nil? command.params['projectName'] = project_name unless project_name.nil?
command.query['groupId'] = group_id unless group_id.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['serviceFilter.service'] = service_filter_service unless service_filter_service.nil? command.query['serviceFilter.service'] = service_filter_service unless service_filter_service.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['serviceFilter.version'] = service_filter_version unless service_filter_version.nil? command.query['serviceFilter.version'] = service_filter_version unless service_filter_version.nil?
command.query['serviceFilter.resourceType'] = service_filter_resource_type unless service_filter_resource_type.nil? command.query['serviceFilter.resourceType'] = service_filter_resource_type unless service_filter_resource_type.nil?
command.query['timeRange.period'] = time_range_period unless time_range_period.nil? command.query['timeRange.period'] = time_range_period unless time_range_period.nil?
command.query['groupId'] = group_id unless group_id.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? command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/functions # @see https://cloud.google.com/functions
module CloudfunctionsV1 module CloudfunctionsV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20170529' REVISION = '20170711'
end end
end end
end end

View File

@ -33,16 +33,16 @@ module Google
# #
# @see https://cloud.google.com/functions # @see https://cloud.google.com/functions
class CloudFunctionsService < Google::Apis::Core::BaseService class CloudFunctionsService < Google::Apis::Core::BaseService
# @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
# @return [String] # @return [String]
# API key. Your API key identifies your project and provides you with API access, # 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. # quota, and reports. Required unless you provide an OAuth 2.0 token.
attr_accessor :key 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 def initialize
super('https://cloudfunctions.googleapis.com/', '') super('https://cloudfunctions.googleapis.com/', '')
@batch_path = 'batch' @batch_path = 'batch'
@ -51,8 +51,8 @@ module Google
protected protected
def apply_command_defaults(command) def apply_command_defaults(command)
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['key'] = key unless key.nil? command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
end end
end end
end end

View File

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

File diff suppressed because it is too large Load Diff

View File

@ -22,90 +22,6 @@ module Google
module Apis module Apis
module CloudkmsV1 module CloudkmsV1
class CloudAuditOptions
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 Expr
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class EncryptRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListCryptoKeyVersionsResponse
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 DestroyCryptoKeyVersionRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CryptoKey
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Rule
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LogConfig
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 DecryptRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Location
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListCryptoKeysResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Condition class Condition
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -148,19 +64,13 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class Policy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListLocationsResponse class ListLocationsResponse
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 RestoreCryptoKeyVersionRequest class Policy
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
@ -172,6 +82,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class RestoreCryptoKeyVersionRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DataAccessOptions class DataAccessOptions
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -197,157 +113,106 @@ module Google
end end
class CloudAuditOptions class CloudAuditOptions
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
property :log_name, as: 'logName' include Google::Apis::Core::JsonObjectSupport
end
end end
class Binding class Binding
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
collection :members, as: 'members'
property :role, as: 'role'
property :condition, as: 'condition', class: Google::Apis::CloudkmsV1::Expr, decorator: Google::Apis::CloudkmsV1::Expr::Representation
end include Google::Apis::Core::JsonObjectSupport
end end
class Expr class Expr
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
property :title, as: 'title' include Google::Apis::Core::JsonObjectSupport
property :location, as: 'location'
property :description, as: 'description'
property :expression, as: 'expression'
end
end end
class EncryptRequest class EncryptRequest
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
property :additional_authenticated_data, :base64 => true, as: 'additionalAuthenticatedData' include Google::Apis::Core::JsonObjectSupport
property :plaintext, :base64 => true, as: 'plaintext'
end
end end
class ListCryptoKeyVersionsResponse class ListCryptoKeyVersionsResponse
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
collection :crypto_key_versions, as: 'cryptoKeyVersions', class: Google::Apis::CloudkmsV1::CryptoKeyVersion, decorator: Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
property :next_page_token, as: 'nextPageToken' include Google::Apis::Core::JsonObjectSupport
property :total_size, as: 'totalSize'
end
end end
class TestIamPermissionsResponse class TestIamPermissionsResponse
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
collection :permissions, as: 'permissions' include Google::Apis::Core::JsonObjectSupport
end
end end
class DestroyCryptoKeyVersionRequest class DestroyCryptoKeyVersionRequest
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
end include Google::Apis::Core::JsonObjectSupport
end end
class CryptoKey class CryptoKey
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
property :purpose, as: 'purpose'
property :next_rotation_time, as: 'nextRotationTime'
property :create_time, as: 'createTime'
property :rotation_period, as: 'rotationPeriod'
property :primary, as: 'primary', class: Google::Apis::CloudkmsV1::CryptoKeyVersion, decorator: Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
property :name, as: 'name' include Google::Apis::Core::JsonObjectSupport
end
end end
class Rule class Rule
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
collection :not_in, as: 'notIn'
property :description, as: 'description'
collection :conditions, as: 'conditions', class: Google::Apis::CloudkmsV1::Condition, decorator: Google::Apis::CloudkmsV1::Condition::Representation
collection :log_config, as: 'logConfig', class: Google::Apis::CloudkmsV1::LogConfig, decorator: Google::Apis::CloudkmsV1::LogConfig::Representation include Google::Apis::Core::JsonObjectSupport
collection :in, as: 'in'
collection :permissions, as: 'permissions'
property :action, as: 'action'
end
end end
class LogConfig class LogConfig
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
property :counter, as: 'counter', class: Google::Apis::CloudkmsV1::CounterOptions, decorator: Google::Apis::CloudkmsV1::CounterOptions::Representation
property :data_access, as: 'dataAccess', class: Google::Apis::CloudkmsV1::DataAccessOptions, decorator: Google::Apis::CloudkmsV1::DataAccessOptions::Representation include Google::Apis::Core::JsonObjectSupport
property :cloud_audit, as: 'cloudAudit', class: Google::Apis::CloudkmsV1::CloudAuditOptions, decorator: Google::Apis::CloudkmsV1::CloudAuditOptions::Representation
end
end end
class SetIamPolicyRequest class SetIamPolicyRequest
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
property :policy, as: 'policy', class: Google::Apis::CloudkmsV1::Policy, decorator: Google::Apis::CloudkmsV1::Policy::Representation
property :update_mask, as: 'updateMask' include Google::Apis::Core::JsonObjectSupport
end
end end
class DecryptRequest class DecryptRequest
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
property :ciphertext, :base64 => true, as: 'ciphertext' include Google::Apis::Core::JsonObjectSupport
property :additional_authenticated_data, :base64 => true, as: 'additionalAuthenticatedData'
end
end end
class Location class Location
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
property :location_id, as: 'locationId' include Google::Apis::Core::JsonObjectSupport
hash :metadata, as: 'metadata'
hash :labels, as: 'labels'
property :name, as: 'name'
end
end end
class ListCryptoKeysResponse class ListCryptoKeysResponse
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :crypto_keys, as: 'cryptoKeys', class: Google::Apis::CloudkmsV1::CryptoKey, decorator: Google::Apis::CloudkmsV1::CryptoKey::Representation
property :total_size, as: 'totalSize' include Google::Apis::Core::JsonObjectSupport
end
end end
class Condition class Condition
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :op, as: 'op'
property :svc, as: 'svc' property :svc, as: 'svc'
property :sys, as: 'sys'
property :value, as: 'value' property :value, as: 'value'
property :iam, as: 'iam' property :sys, as: 'sys'
collection :values, as: 'values' collection :values, as: 'values'
property :iam, as: 'iam'
property :op, as: 'op'
end end
end end
class CounterOptions class CounterOptions
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :metric, as: 'metric'
property :field, as: 'field' property :field, as: 'field'
property :metric, as: 'metric'
end end
end end
@ -376,8 +241,8 @@ module Google
class EncryptResponse class EncryptResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :ciphertext, :base64 => true, as: 'ciphertext' property :ciphertext, :base64 => true, as: 'ciphertext'
property :name, as: 'name'
end end
end end
@ -389,33 +254,27 @@ module Google
end end
end end
class ListLocationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :locations, as: 'locations', class: Google::Apis::CloudkmsV1::Location, decorator: Google::Apis::CloudkmsV1::Location::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class Policy class Policy
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :etag, :base64 => true, as: 'etag'
property :iam_owned, as: 'iamOwned'
collection :rules, as: 'rules', class: Google::Apis::CloudkmsV1::Rule, decorator: Google::Apis::CloudkmsV1::Rule::Representation
property :version, as: 'version' property :version, as: 'version'
collection :audit_configs, as: 'auditConfigs', class: Google::Apis::CloudkmsV1::AuditConfig, decorator: Google::Apis::CloudkmsV1::AuditConfig::Representation collection :audit_configs, as: 'auditConfigs', class: Google::Apis::CloudkmsV1::AuditConfig, decorator: Google::Apis::CloudkmsV1::AuditConfig::Representation
collection :bindings, as: 'bindings', class: Google::Apis::CloudkmsV1::Binding, decorator: Google::Apis::CloudkmsV1::Binding::Representation collection :bindings, as: 'bindings', class: Google::Apis::CloudkmsV1::Binding, decorator: Google::Apis::CloudkmsV1::Binding::Representation
end property :etag, :base64 => true, as: 'etag'
end property :iam_owned, as: 'iamOwned'
collection :rules, as: 'rules', class: Google::Apis::CloudkmsV1::Rule, decorator: Google::Apis::CloudkmsV1::Rule::Representation
class ListLocationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :locations, as: 'locations', class: Google::Apis::CloudkmsV1::Location, decorator: Google::Apis::CloudkmsV1::Location::Representation
end
end
class RestoreCryptoKeyVersionRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end end
end end
@ -426,6 +285,12 @@ module Google
end end
end end
class RestoreCryptoKeyVersionRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class DataAccessOptions class DataAccessOptions
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -445,21 +310,156 @@ module Google
class AuditConfig class AuditConfig
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
collection :exempted_members, as: 'exemptedMembers'
property :service, as: 'service' property :service, as: 'service'
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::CloudkmsV1::AuditLogConfig, decorator: Google::Apis::CloudkmsV1::AuditLogConfig::Representation collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::CloudkmsV1::AuditLogConfig, decorator: Google::Apis::CloudkmsV1::AuditLogConfig::Representation
collection :exempted_members, as: 'exemptedMembers'
end end
end end
class CryptoKeyVersion class CryptoKeyVersion
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
property :state, as: 'state' property :state, as: 'state'
property :name, as: 'name' property :name, as: 'name'
property :destroy_event_time, as: 'destroyEventTime' property :destroy_event_time, as: 'destroyEventTime'
property :destroy_time, as: 'destroyTime' property :destroy_time, as: 'destroyTime'
end
end
class CloudAuditOptions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :log_name, as: 'logName'
end
end
class Binding
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :condition, as: 'condition', class: Google::Apis::CloudkmsV1::Expr, decorator: Google::Apis::CloudkmsV1::Expr::Representation
collection :members, as: 'members'
property :role, as: 'role'
end
end
class Expr
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :location, as: 'location'
property :title, as: 'title'
property :description, as: 'description'
property :expression, as: 'expression'
end
end
class EncryptRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :plaintext, :base64 => true, as: 'plaintext'
property :additional_authenticated_data, :base64 => true, as: 'additionalAuthenticatedData'
end
end
class ListCryptoKeyVersionsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
property :total_size, as: 'totalSize'
collection :crypto_key_versions, as: 'cryptoKeyVersions', class: Google::Apis::CloudkmsV1::CryptoKeyVersion, decorator: Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
end
end
class TestIamPermissionsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :permissions, as: 'permissions'
end
end
class DestroyCryptoKeyVersionRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class CryptoKey
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :purpose, as: 'purpose'
property :next_rotation_time, as: 'nextRotationTime'
property :create_time, as: 'createTime' property :create_time, as: 'createTime'
property :rotation_period, as: 'rotationPeriod'
property :primary, as: 'primary', class: Google::Apis::CloudkmsV1::CryptoKeyVersion, decorator: Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
end
end
class Rule
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
collection :conditions, as: 'conditions', class: Google::Apis::CloudkmsV1::Condition, decorator: Google::Apis::CloudkmsV1::Condition::Representation
collection :log_config, as: 'logConfig', class: Google::Apis::CloudkmsV1::LogConfig, decorator: Google::Apis::CloudkmsV1::LogConfig::Representation
collection :in, as: 'in'
collection :permissions, as: 'permissions'
property :action, as: 'action'
collection :not_in, as: 'notIn'
end
end
class LogConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :counter, as: 'counter', class: Google::Apis::CloudkmsV1::CounterOptions, decorator: Google::Apis::CloudkmsV1::CounterOptions::Representation
property :data_access, as: 'dataAccess', class: Google::Apis::CloudkmsV1::DataAccessOptions, decorator: Google::Apis::CloudkmsV1::DataAccessOptions::Representation
property :cloud_audit, as: 'cloudAudit', class: Google::Apis::CloudkmsV1::CloudAuditOptions, decorator: Google::Apis::CloudkmsV1::CloudAuditOptions::Representation
end
end
class SetIamPolicyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :policy, as: 'policy', class: Google::Apis::CloudkmsV1::Policy, decorator: Google::Apis::CloudkmsV1::Policy::Representation
property :update_mask, as: 'updateMask'
end
end
class DecryptRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :additional_authenticated_data, :base64 => true, as: 'additionalAuthenticatedData'
property :ciphertext, :base64 => true, as: 'ciphertext'
end
end
class Location
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :labels, as: 'labels'
property :name, as: 'name'
property :location_id, as: 'locationId'
hash :metadata, as: 'metadata'
end
end
class ListCryptoKeysResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
property :total_size, as: 'totalSize'
collection :crypto_keys, as: 'cryptoKeys', class: Google::Apis::CloudkmsV1::CryptoKey, decorator: Google::Apis::CloudkmsV1::CryptoKey::Representation
end end
end end
end end

File diff suppressed because it is too large Load Diff

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 = '20170607' REVISION = '20170705'
# 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'

File diff suppressed because it is too large Load Diff

View File

@ -22,156 +22,6 @@ module Google
module Apis module Apis
module CloudresourcemanagerV1 module CloudresourcemanagerV1
class GetEffectiveOrgPolicyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListOrgPoliciesRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AuditConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Operation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListLiensResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Constraint
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 Binding
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GetOrgPolicyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RestoreDefault
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ClearOrgPolicyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UndeleteProjectRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ProjectCreationStatus
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BooleanConstraint
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 GetIamPolicyRequest
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 ListProjectsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Project
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 ListOrgPoliciesResponse
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 OrgPolicy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BooleanPolicy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Lien
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Ancestor class Ancestor
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -250,7 +100,7 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class FolderOperation class ListAvailableOrgPolicyConstraintsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
@ -262,7 +112,7 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ListAvailableOrgPolicyConstraintsRequest 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
@ -275,225 +125,153 @@ module Google
end end
class GetEffectiveOrgPolicyRequest class GetEffectiveOrgPolicyRequest
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
property :constraint, as: 'constraint' include Google::Apis::Core::JsonObjectSupport
end
end end
class ListOrgPoliciesRequest class ListOrgPoliciesRequest
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
property :page_token, as: 'pageToken' include Google::Apis::Core::JsonObjectSupport
property :page_size, as: 'pageSize'
end
end end
class AuditConfig class AuditConfig
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::CloudresourcemanagerV1::AuditLogConfig, decorator: Google::Apis::CloudresourcemanagerV1::AuditLogConfig::Representation
property :service, as: 'service' include Google::Apis::Core::JsonObjectSupport
end
end end
class Operation class Operation
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
property :done, as: 'done'
hash :response, as: 'response'
property :name, as: 'name'
property :error, as: 'error', class: Google::Apis::CloudresourcemanagerV1::Status, decorator: Google::Apis::CloudresourcemanagerV1::Status::Representation
hash :metadata, as: 'metadata' include Google::Apis::Core::JsonObjectSupport
end
end
class ListLiensResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :liens, as: 'liens', class: Google::Apis::CloudresourcemanagerV1::Lien, decorator: Google::Apis::CloudresourcemanagerV1::Lien::Representation
end
end end
class Constraint class Constraint
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
property :version, as: 'version'
property :list_constraint, as: 'listConstraint', class: Google::Apis::CloudresourcemanagerV1::ListConstraint, decorator: Google::Apis::CloudresourcemanagerV1::ListConstraint::Representation
property :display_name, as: 'displayName' include Google::Apis::Core::JsonObjectSupport
property :description, as: 'description' end
property :boolean_constraint, as: 'booleanConstraint', class: Google::Apis::CloudresourcemanagerV1::BooleanConstraint, decorator: Google::Apis::CloudresourcemanagerV1::BooleanConstraint::Representation
property :constraint_default, as: 'constraintDefault' class ListLiensResponse
property :name, as: 'name' class Representation < Google::Apis::Core::JsonRepresentation; end
end
include Google::Apis::Core::JsonObjectSupport
end end
class Status class Status
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
collection :details, as: 'details' include Google::Apis::Core::JsonObjectSupport
property :code, as: 'code'
property :message, as: 'message'
end
end end
class Binding class Binding
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
collection :members, as: 'members'
property :role, as: 'role'
end
end
class GetOrgPolicyRequest include Google::Apis::Core::JsonObjectSupport
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :constraint, as: 'constraint'
end
end end
class RestoreDefault class RestoreDefault
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
end include Google::Apis::Core::JsonObjectSupport
end
class GetOrgPolicyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end end
class ClearOrgPolicyRequest class ClearOrgPolicyRequest
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
property :etag, :base64 => true, as: 'etag' include Google::Apis::Core::JsonObjectSupport
property :constraint, as: 'constraint'
end
end end
class UndeleteProjectRequest class UndeleteProjectRequest
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
end include Google::Apis::Core::JsonObjectSupport
end end
class ProjectCreationStatus class ProjectCreationStatus
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
property :ready, as: 'ready' include Google::Apis::Core::JsonObjectSupport
property :create_time, as: 'createTime'
property :gettable, as: 'gettable'
end
end end
class BooleanConstraint class BooleanConstraint
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
end include Google::Apis::Core::JsonObjectSupport
end end
class TestIamPermissionsResponse class TestIamPermissionsResponse
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
collection :permissions, as: 'permissions' include Google::Apis::Core::JsonObjectSupport
end
end end
class GetIamPolicyRequest class GetIamPolicyRequest
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
end include Google::Apis::Core::JsonObjectSupport
end end
class OrganizationOwner class OrganizationOwner
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
property :directory_customer_id, as: 'directoryCustomerId' include Google::Apis::Core::JsonObjectSupport
end
end end
class ListProjectsResponse class ListProjectsResponse
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
collection :projects, as: 'projects', class: Google::Apis::CloudresourcemanagerV1::Project, decorator: Google::Apis::CloudresourcemanagerV1::Project::Representation
property :next_page_token, as: 'nextPageToken' include Google::Apis::Core::JsonObjectSupport
end
end end
class Project class Project
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
property :project_number, :numeric_string => true, as: 'projectNumber'
property :parent, as: 'parent', class: Google::Apis::CloudresourcemanagerV1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1::ResourceId::Representation
property :create_time, as: 'createTime' include Google::Apis::Core::JsonObjectSupport
hash :labels, as: 'labels'
property :name, as: 'name'
property :project_id, as: 'projectId'
property :lifecycle_state, as: 'lifecycleState'
end
end
class SearchOrganizationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :organizations, as: 'organizations', class: Google::Apis::CloudresourcemanagerV1::Organization, decorator: Google::Apis::CloudresourcemanagerV1::Organization::Representation
end
end end
class ListOrgPoliciesResponse class ListOrgPoliciesResponse
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
collection :policies, as: 'policies', class: Google::Apis::CloudresourcemanagerV1::OrgPolicy, decorator: Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
property :next_page_token, as: 'nextPageToken' include Google::Apis::Core::JsonObjectSupport
end end
class SearchOrganizationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end end
class FolderOperationError class FolderOperationError
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
property :error_message_id, as: 'errorMessageId' include Google::Apis::Core::JsonObjectSupport
end
end end
class OrgPolicy class OrgPolicy
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
property :version, as: 'version'
property :restore_default, as: 'restoreDefault', class: Google::Apis::CloudresourcemanagerV1::RestoreDefault, decorator: Google::Apis::CloudresourcemanagerV1::RestoreDefault::Representation
property :list_policy, as: 'listPolicy', class: Google::Apis::CloudresourcemanagerV1::ListPolicy, decorator: Google::Apis::CloudresourcemanagerV1::ListPolicy::Representation include Google::Apis::Core::JsonObjectSupport
property :etag, :base64 => true, as: 'etag'
property :constraint, as: 'constraint'
property :boolean_policy, as: 'booleanPolicy', class: Google::Apis::CloudresourcemanagerV1::BooleanPolicy, decorator: Google::Apis::CloudresourcemanagerV1::BooleanPolicy::Representation
property :update_time, as: 'updateTime'
end
end end
class BooleanPolicy class BooleanPolicy
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
property :enforced, as: 'enforced' include Google::Apis::Core::JsonObjectSupport
end
end end
class Lien class Lien
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
property :parent, as: 'parent' include Google::Apis::Core::JsonObjectSupport
property :create_time, as: 'createTime'
property :origin, as: 'origin'
property :name, as: 'name'
property :reason, as: 'reason'
collection :restrictions, as: 'restrictions'
end
end end
class Ancestor class Ancestor
@ -537,12 +315,12 @@ module Google
class Organization class Organization
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :creation_time, as: 'creationTime' property :lifecycle_state, as: 'lifecycleState'
property :owner, as: 'owner', class: Google::Apis::CloudresourcemanagerV1::OrganizationOwner, decorator: Google::Apis::CloudresourcemanagerV1::OrganizationOwner::Representation property :owner, as: 'owner', class: Google::Apis::CloudresourcemanagerV1::OrganizationOwner, decorator: Google::Apis::CloudresourcemanagerV1::OrganizationOwner::Representation
property :lifecycle_state, as: 'lifecycleState'
property :name, as: 'name' property :name, as: 'name'
property :display_name, as: 'displayName' property :display_name, as: 'displayName'
property :creation_time, as: 'creationTime'
end end
end end
@ -558,11 +336,11 @@ module Google
class ListPolicy class ListPolicy
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :inherit_from_parent, as: 'inheritFromParent'
property :suggested_value, as: 'suggestedValue'
collection :denied_values, as: 'deniedValues'
property :all_values, as: 'allValues' property :all_values, as: 'allValues'
collection :allowed_values, as: 'allowedValues' collection :allowed_values, as: 'allowedValues'
property :suggested_value, as: 'suggestedValue'
property :inherit_from_parent, as: 'inheritFromParent'
collection :denied_values, as: 'deniedValues'
end end
end end
@ -577,8 +355,8 @@ module Google
class AuditLogConfig class AuditLogConfig
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
collection :exempted_members, as: 'exemptedMembers'
property :log_type, as: 'logType' property :log_type, as: 'logType'
collection :exempted_members, as: 'exemptedMembers'
end end
end end
@ -604,33 +382,33 @@ module Google
end end
end end
class FolderOperation class ListAvailableOrgPolicyConstraintsRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :operation_type, as: 'operationType' property :page_token, as: 'pageToken'
property :display_name, as: 'displayName' property :page_size, as: 'pageSize'
property :source_parent, as: 'sourceParent'
property :destination_parent, as: 'destinationParent'
end end
end end
class Policy class Policy
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :etag, :base64 => true, as: 'etag'
property :version, as: 'version' property :version, as: 'version'
collection :audit_configs, as: 'auditConfigs', class: Google::Apis::CloudresourcemanagerV1::AuditConfig, decorator: Google::Apis::CloudresourcemanagerV1::AuditConfig::Representation collection :audit_configs, as: 'auditConfigs', class: Google::Apis::CloudresourcemanagerV1::AuditConfig, decorator: Google::Apis::CloudresourcemanagerV1::AuditConfig::Representation
collection :bindings, as: 'bindings', class: Google::Apis::CloudresourcemanagerV1::Binding, decorator: Google::Apis::CloudresourcemanagerV1::Binding::Representation collection :bindings, as: 'bindings', class: Google::Apis::CloudresourcemanagerV1::Binding, decorator: Google::Apis::CloudresourcemanagerV1::Binding::Representation
property :etag, :base64 => true, as: 'etag'
end end
end end
class ListAvailableOrgPolicyConstraintsRequest class FolderOperation
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :page_token, as: 'pageToken' property :operation_type, as: 'operationType'
property :page_size, as: 'pageSize' property :source_parent, as: 'sourceParent'
property :display_name, as: 'displayName'
property :destination_parent, as: 'destinationParent'
end end
end end
@ -641,6 +419,228 @@ module Google
property :id, as: 'id' property :id, as: 'id'
end end
end end
class GetEffectiveOrgPolicyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :constraint, as: 'constraint'
end
end
class ListOrgPoliciesRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :page_token, as: 'pageToken'
property :page_size, as: 'pageSize'
end
end
class AuditConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :service, as: 'service'
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::CloudresourcemanagerV1::AuditLogConfig, decorator: Google::Apis::CloudresourcemanagerV1::AuditLogConfig::Representation
end
end
class Operation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :metadata, as: 'metadata'
property :done, as: 'done'
hash :response, as: 'response'
property :name, as: 'name'
property :error, as: 'error', class: Google::Apis::CloudresourcemanagerV1::Status, decorator: Google::Apis::CloudresourcemanagerV1::Status::Representation
end
end
class Constraint
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :list_constraint, as: 'listConstraint', class: Google::Apis::CloudresourcemanagerV1::ListConstraint, decorator: Google::Apis::CloudresourcemanagerV1::ListConstraint::Representation
property :version, as: 'version'
property :display_name, as: 'displayName'
property :description, as: 'description'
property :boolean_constraint, as: 'booleanConstraint', class: Google::Apis::CloudresourcemanagerV1::BooleanConstraint, decorator: Google::Apis::CloudresourcemanagerV1::BooleanConstraint::Representation
property :constraint_default, as: 'constraintDefault'
property :name, as: 'name'
end
end
class ListLiensResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :liens, as: 'liens', class: Google::Apis::CloudresourcemanagerV1::Lien, decorator: Google::Apis::CloudresourcemanagerV1::Lien::Representation
property :next_page_token, as: 'nextPageToken'
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
class Binding
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :members, as: 'members'
property :role, as: 'role'
end
end
class RestoreDefault
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class GetOrgPolicyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :constraint, as: 'constraint'
end
end
class ClearOrgPolicyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :etag, :base64 => true, as: 'etag'
property :constraint, as: 'constraint'
end
end
class UndeleteProjectRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class ProjectCreationStatus
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :ready, as: 'ready'
property :gettable, as: 'gettable'
property :create_time, as: 'createTime'
end
end
class BooleanConstraint
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class TestIamPermissionsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :permissions, as: 'permissions'
end
end
class GetIamPolicyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class OrganizationOwner
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :directory_customer_id, as: 'directoryCustomerId'
end
end
class ListProjectsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :projects, as: 'projects', class: Google::Apis::CloudresourcemanagerV1::Project, decorator: Google::Apis::CloudresourcemanagerV1::Project::Representation
end
end
class Project
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :project_id, as: 'projectId'
property :lifecycle_state, as: 'lifecycleState'
property :project_number, :numeric_string => true, as: 'projectNumber'
property :parent, as: 'parent', class: Google::Apis::CloudresourcemanagerV1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1::ResourceId::Representation
hash :labels, as: 'labels'
property :create_time, as: 'createTime'
end
end
class ListOrgPoliciesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :policies, as: 'policies', class: Google::Apis::CloudresourcemanagerV1::OrgPolicy, decorator: Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class SearchOrganizationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :organizations, as: 'organizations', class: Google::Apis::CloudresourcemanagerV1::Organization, decorator: Google::Apis::CloudresourcemanagerV1::Organization::Representation
end
end
class FolderOperationError
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :error_message_id, as: 'errorMessageId'
end
end
class OrgPolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :update_time, as: 'updateTime'
property :version, as: 'version'
property :restore_default, as: 'restoreDefault', class: Google::Apis::CloudresourcemanagerV1::RestoreDefault, decorator: Google::Apis::CloudresourcemanagerV1::RestoreDefault::Representation
property :list_policy, as: 'listPolicy', class: Google::Apis::CloudresourcemanagerV1::ListPolicy, decorator: Google::Apis::CloudresourcemanagerV1::ListPolicy::Representation
property :etag, :base64 => true, as: 'etag'
property :constraint, as: 'constraint'
property :boolean_policy, as: 'booleanPolicy', class: Google::Apis::CloudresourcemanagerV1::BooleanPolicy, decorator: Google::Apis::CloudresourcemanagerV1::BooleanPolicy::Representation
end
end
class BooleanPolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :enforced, as: 'enforced'
end
end
class Lien
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :reason, as: 'reason'
property :origin, as: 'origin'
collection :restrictions, as: 'restrictions'
property :parent, as: 'parent'
property :create_time, as: 'createTime'
end
end
end end
end end
end end

View File

@ -48,11 +48,10 @@ module Google
@batch_path = 'batch' @batch_path = 'batch'
end end
# Searches Organization resources that are visible to the user and satisfy # Lists all the `Policies` set for a particular resource.
# the specified filter. This method returns Organizations in an unspecified # @param [String] resource
# order. New Organizations do not necessarily appear at the end of the # Name of the resource to list Policies for.
# results. # @param [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest] list_org_policies_request_object
# @param [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsRequest] search_organizations_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
# arbitrary string assigned to a user, but should not exceed 40 characters. # arbitrary string assigned to a user, but should not exceed 40 characters.
@ -62,20 +61,92 @@ 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 [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse] parsed result object # @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed # @yieldparam err [StandardError] error object if request failed
# #
# @return [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse] # @return [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse]
# #
# @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 search_organizations(search_organizations_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) def list_organization_org_policies(resource, list_org_policies_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/organizations:search', options) command = make_simple_command(:post, 'v1/{+resource}:listOrgPolicies', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1::SearchOrganizationsRequest::Representation command.request_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest::Representation
command.request_object = search_organizations_request_object command.request_object = list_org_policies_request_object
command.response_representation = Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse::Representation command.response_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse command.response_class = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse
command.params['resource'] = resource unless resource.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 `Constraints` that could be applied on the specified resource.
# @param [String] resource
# Name of the resource to list `Constraints` for.
# @param [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsRequest] list_available_org_policy_constraints_request_object
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse]
#
# @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_organization_available_org_policy_constraints(resource, list_available_org_policy_constraints_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+resource}:listAvailableOrgPolicyConstraints', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsRequest::Representation
command.request_object = list_available_org_policy_constraints_request_object
command.response_representation = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse
command.params['resource'] = resource unless resource.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 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".
# Authorization requires the Google IAM permission
# `resourcemanager.organizations.getIamPolicy` on the specified organization
# @param [String] resource
# REQUIRED: The resource for which the policy is being requested.
# See the operation documentation for the appropriate value for this field.
# @param [Google::Apis::CloudresourcemanagerV1::GetIamPolicyRequest] get_iam_policy_request_object
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::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, quota_user: nil, fields: 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['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
@ -118,9 +189,13 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Fetches an Organization resource identified by the specified resource name. # Searches Organization resources that are visible to the user and satisfy
# @param [String] name # the specified filter. This method returns Organizations in an unspecified
# The resource name of the Organization to fetch, e.g. "organizations/1234". # order. New Organizations do not necessarily appear at the end of the
# results.
# Search will only return organizations on which the user has the permission
# `resourcemanager.organizations.get`
# @param [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsRequest] search_organizations_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
# arbitrary string assigned to a user, but should not exceed 40 characters. # arbitrary string assigned to a user, but should not exceed 40 characters.
@ -130,19 +205,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 [Google::Apis::CloudresourcemanagerV1::Organization] parsed result object # @yieldparam result [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed # @yieldparam err [StandardError] error object if request failed
# #
# @return [Google::Apis::CloudresourcemanagerV1::Organization] # @return [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse]
# #
# @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_organization(name, quota_user: nil, fields: nil, options: nil, &block) def search_organizations(search_organizations_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options) command = make_simple_command(:post, 'v1/organizations:search', options)
command.response_representation = Google::Apis::CloudresourcemanagerV1::Organization::Representation command.request_representation = Google::Apis::CloudresourcemanagerV1::SearchOrganizationsRequest::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1::Organization command.request_object = search_organizations_request_object
command.params['name'] = name unless name.nil? command.response_representation = Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse
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? command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
@ -183,9 +259,40 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end 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] 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::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, quota_user: nil, fields: 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['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Returns permissions that a caller has on the specified Organization. # Returns permissions that a caller has on the specified Organization.
# The `resource` field should be the organization's resource name, # The `resource` field should be the organization's resource name,
# e.g. "organizations/123". # e.g. "organizations/123".
# There are no permissions required for making this API call.
# @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.
# See the operation documentation for the appropriate value for this field. # See the operation documentation for the appropriate value for this field.
@ -291,6 +398,8 @@ 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". # name, e.g. "organizations/123".
# Authorization requires the Google IAM permission
# `resourcemanager.organizations.setIamPolicy` on the specified organization
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy is being specified. # REQUIRED: The resource for which the policy is being specified.
# See the operation documentation for the appropriate value for this field. # See the operation documentation for the appropriate value for this field.
@ -324,10 +433,11 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Lists all the `Policies` set for a particular resource. # Gets the latest state of a long-running operation. Clients can use this
# @param [String] resource # method to poll the operation result at intervals as recommended by the API
# Name of the resource to list Policies for. # service.
# @param [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest] list_org_policies_request_object # @param [String] name
# The name of the operation resource.
# @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.
@ -337,90 +447,19 @@ 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 [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse] parsed result object # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed # @yieldparam err [StandardError] error object if request failed
# #
# @return [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse] # @return [Google::Apis::CloudresourcemanagerV1::Operation]
# #
# @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_organization_org_policies(resource, list_org_policies_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) def get_operation(name, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+resource}:listOrgPolicies', options) command = make_simple_command(:get, 'v1/{+name}', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest::Representation command.response_representation = Google::Apis::CloudresourcemanagerV1::Operation::Representation
command.request_object = list_org_policies_request_object command.response_class = Google::Apis::CloudresourcemanagerV1::Operation
command.response_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse::Representation command.params['name'] = name unless name.nil?
command.response_class = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse
command.params['resource'] = resource unless resource.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 `Constraints` that could be applied on the specified resource.
# @param [String] resource
# Name of the resource to list `Constraints` for.
# @param [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsRequest] list_available_org_policy_constraints_request_object
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse]
#
# @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_organization_available_org_policy_constraints(resource, list_available_org_policy_constraints_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+resource}:listAvailableOrgPolicyConstraints', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsRequest::Representation
command.request_object = list_available_org_policy_constraints_request_object
command.response_representation = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse
command.params['resource'] = resource unless resource.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 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.
# See the operation documentation for the appropriate value for this field.
# @param [Google::Apis::CloudresourcemanagerV1::GetIamPolicyRequest] get_iam_policy_request_object
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::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, quota_user: nil, fields: 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['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
@ -463,13 +502,13 @@ module Google
# Callers of this method will require permission on the `parent` resource. # Callers of this method will require permission on the `parent` resource.
# For example, a Lien with a `parent` of `projects/1234` requires permission # For example, a Lien with a `parent` of `projects/1234` requires permission
# `resourcemanager.projects.get`. # `resourcemanager.projects.get`.
# @param [String] parent
# The name of the resource to list all attached Liens.
# For example, `projects/1234`.
# @param [String] page_token # @param [String] page_token
# The `next_page_token` value returned from a previous List request, if any. # The `next_page_token` value returned from a previous List request, if any.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# The maximum number of items to return. This is a suggestion for the server. # The maximum number of items to return. This is a suggestion for the server.
# @param [String] parent
# The name of the resource to list all attached Liens.
# For example, `projects/1234`.
# @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.
@ -487,13 +526,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_liens(page_token: nil, page_size: nil, parent: nil, quota_user: nil, fields: nil, options: nil, &block) def list_liens(parent: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/liens', options) command = make_simple_command(:get, 'v1/liens', options)
command.response_representation = Google::Apis::CloudresourcemanagerV1::ListLiensResponse::Representation command.response_representation = Google::Apis::CloudresourcemanagerV1::ListLiensResponse::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1::ListLiensResponse command.response_class = Google::Apis::CloudresourcemanagerV1::ListLiensResponse
command.query['parent'] = parent unless parent.nil?
command.query['pageToken'] = page_token unless page_token.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['parent'] = parent unless parent.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? command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
@ -533,73 +572,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] 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::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, quota_user: nil, fields: 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['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Gets the effective `Policy` on a resource. This is the result of merging
# `Policies` in the resource hierarchy. The returned `Policy` will not have
# an `etag`set because it is a computed `Policy` across multiple resources.
# @param [String] resource
# The name of the resource to start computing the effective `Policy`.
# @param [Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest] get_effective_org_policy_request_object
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
#
# @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_folder_effective_org_policy(resource, get_effective_org_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+resource}:getEffectiveOrgPolicy', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest::Representation
command.request_object = get_effective_org_policy_request_object
command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
command.params['resource'] = resource unless resource.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Clears a `Policy` from a resource. # Clears a `Policy` from a resource.
# @param [String] resource # @param [String] resource
# Name of the resource for the `Policy` to clear. # Name of the resource for the `Policy` to clear.
@ -669,39 +641,6 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Lists all the `Policies` set for a particular resource.
# @param [String] resource
# Name of the resource to list Policies for.
# @param [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest] list_org_policies_request_object
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse]
#
# @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_folder_org_policies(resource, list_org_policies_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+resource}:listOrgPolicies', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest::Representation
command.request_object = list_org_policies_request_object
command.response_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse
command.params['resource'] = resource unless resource.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 `Constraints` that could be applied on the specified resource. # Lists `Constraints` that could be applied on the specified resource.
# @param [String] resource # @param [String] resource
# Name of the resource to list `Constraints` for. # Name of the resource to list `Constraints` for.
@ -735,6 +674,39 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Lists all the `Policies` set for a particular resource.
# @param [String] resource
# Name of the resource to list Policies for.
# @param [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest] list_org_policies_request_object
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse]
#
# @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_folder_org_policies(resource, list_org_policies_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+resource}:listOrgPolicies', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest::Representation
command.request_object = list_org_policies_request_object
command.response_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse
command.params['resource'] = resource unless resource.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 `Policy` on a resource. # Gets a `Policy` on a resource.
# If no `Policy` is set on the resource, a `Policy` is returned with default # If no `Policy` is set on the resource, a `Policy` is returned with default
# values including `POLICY_TYPE_NOT_SET` for the `policy_type oneof`. The # values including `POLICY_TYPE_NOT_SET` for the `policy_type oneof`. The
@ -772,59 +744,12 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Marks the Project identified by the specified # Gets the effective `Policy` on a resource. This is the result of merging
# `project_id` (for example, `my-project-123`) for deletion. # `Policies` in the resource hierarchy. The returned `Policy` will not have
# This method will only affect the Project if the following criteria are met: # an `etag`set because it is a computed `Policy` across multiple resources.
# + The Project does not have a billing account associated with it.
# + The Project has a lifecycle state of
# ACTIVE.
# This method changes the Project's lifecycle state from
# ACTIVE
# to DELETE_REQUESTED.
# The deletion starts at an unspecified time,
# at which point the Project is no longer accessible.
# Until the deletion completes, you can check the lifecycle state
# checked by retrieving the Project with GetProject,
# and the Project remains visible to ListProjects.
# However, you cannot update the project.
# After the deletion completes, the Project is not retrievable by
# the GetProject and
# ListProjects methods.
# The caller must have modify permissions for this Project.
# @param [String] project_id
# The Project ID (for example, `foo-bar-123`).
# 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::CloudresourcemanagerV1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1::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(project_id, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1/projects/{projectId}', options)
command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1::Empty
command.params['projectId'] = project_id unless project_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
# Clears a `Policy` from a resource.
# @param [String] resource # @param [String] resource
# Name of the resource for the `Policy` to clear. # The name of the resource to start computing the effective `Policy`.
# @param [Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest] clear_org_policy_request_object # @param [Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest] get_effective_org_policy_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
# arbitrary string assigned to a user, but should not exceed 40 characters. # arbitrary string assigned to a user, but should not exceed 40 characters.
@ -834,20 +759,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 [Google::Apis::CloudresourcemanagerV1::Empty] parsed result object # @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
# @yieldparam err [StandardError] error object if request failed # @yieldparam err [StandardError] error object if request failed
# #
# @return [Google::Apis::CloudresourcemanagerV1::Empty] # @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
# #
# @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 clear_project_org_policy(resource, clear_org_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) def get_folder_effective_org_policy(resource, get_effective_org_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+resource}:clearOrgPolicy', options) command = make_simple_command(:post, 'v1/{+resource}:getEffectiveOrgPolicy', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest::Representation command.request_representation = Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest::Representation
command.request_object = clear_org_policy_request_object command.request_object = get_effective_org_policy_request_object
command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1::Empty command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
command.params['resource'] = resource unless resource.nil? command.params['resource'] = resource unless resource.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? command.query['fields'] = fields unless fields.nil?
@ -883,6 +808,8 @@ module Google
# can render services completely inoperable. It is important to understand # can render services completely inoperable. It is important to understand
# how the service account is being used before removing or updating its # how the service account is being used before removing or updating its
# roles. # roles.
# Authorization requires the Google IAM permission
# `resourcemanager.projects.setIamPolicy` on the project
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy is being specified. # REQUIRED: The resource for which the policy is being specified.
# See the operation documentation for the appropriate value for this field. # See the operation documentation for the appropriate value for this field.
@ -951,6 +878,8 @@ module Google
# Returns the IAM access control policy for the specified Project. # Returns the IAM access control policy for the specified Project.
# Permission is denied if the policy or the resource does not exist. # Permission is denied if the policy or the resource does not exist.
# Authorization requires the Google IAM permission
# `resourcemanager.projects.getIamPolicy` on the project
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy is being requested. # REQUIRED: The resource for which the policy is being requested.
# See the operation documentation for the appropriate value for this field. # See the operation documentation for the appropriate value for this field.
@ -1134,6 +1063,11 @@ module Google
# Lists Projects that are visible to the user and satisfy the # Lists Projects that are visible to the user and satisfy the
# specified filter. This method returns Projects in an unspecified order. # specified filter. This method returns Projects in an unspecified order.
# New Projects do not necessarily appear at the end of the list. # New Projects do not necessarily appear at the end of the list.
# @param [Fixnum] page_size
# The maximum number of Projects to return in the response.
# The server can return fewer Projects than requested.
# If unspecified, server picks an appropriate default.
# Optional.
# @param [String] filter # @param [String] filter
# An expression for filtering the results of the request. Filter rules are # An expression for filtering the results of the request. Filter rules are
# case insensitive. The fields eligible for filtering are: # case insensitive. The fields eligible for filtering are:
@ -1151,16 +1085,19 @@ module Google
# |labels.color:red|The project's label `color` has the value `red`.| # |labels.color:red|The project's label `color` has the value `red`.|
# |labels.color:red&nbsp;labels.size:big|The project's label `color` has the # |labels.color:red&nbsp;labels.size:big|The project's label `color` has the
# value `red` and its label `size` has the value `big`. # value `red` and its label `size` has the value `big`.
# If you specify a filter that has both `parent.type` and `parent.id`, then
# the `resourcemanager.projects.list` permission is checked on the parent.
# If the user has this permission, all projects under the parent will be
# returned after remaining filters have been applied. If the user lacks this
# permission, then all projects for which the user has the
# `resourcemanager.projects.get` permission will be returned after remaining
# filters have been applied. If no filter is specified, the call will return
# projects for which the user has `resourcemanager.projects.get` permissions.
# Optional. # Optional.
# @param [String] page_token # @param [String] page_token
# A pagination token returned from a previous call to ListProjects # A pagination token returned from a previous call to ListProjects
# that indicates from where listing should continue. # that indicates from where listing should continue.
# Optional. # Optional.
# @param [Fixnum] page_size
# The maximum number of Projects to return in the response.
# The server can return fewer Projects than requested.
# If unspecified, server picks an appropriate default.
# Optional.
# @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.
@ -1178,13 +1115,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_projects(filter: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block) def list_projects(page_size: nil, filter: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/projects', options) command = make_simple_command(:get, 'v1/projects', options)
command.response_representation = Google::Apis::CloudresourcemanagerV1::ListProjectsResponse::Representation command.response_representation = Google::Apis::CloudresourcemanagerV1::ListProjectsResponse::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1::ListProjectsResponse command.response_class = Google::Apis::CloudresourcemanagerV1::ListProjectsResponse
command.query['pageSize'] = page_size unless page_size.nil?
command.query['filter'] = filter unless filter.nil? command.query['filter'] = filter unless filter.nil?
command.query['pageToken'] = page_token unless page_token.nil? command.query['pageToken'] = page_token unless page_token.nil?
command.query['pageSize'] = page_size unless page_size.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? command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
@ -1233,6 +1170,9 @@ module Google
# percentile. As of 2016-08-29, we are observing 6 seconds 50th percentile # percentile. As of 2016-08-29, we are observing 6 seconds 50th percentile
# latency. 95th percentile latency is around 11 seconds. We recommend # latency. 95th percentile latency is around 11 seconds. We recommend
# polling at the 5th second with an exponential backoff. # polling at the 5th second with an exponential backoff.
# Authorization requires the Google IAM permission
# `resourcemanager.projects.create` on the specified parent for the new
# project.
# @param [Google::Apis::CloudresourcemanagerV1::Project] project_object # @param [Google::Apis::CloudresourcemanagerV1::Project] project_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
@ -1365,6 +1305,7 @@ module Google
end end
# Returns permissions that a caller has on the specified Project. # Returns permissions that a caller has on the specified Project.
# There are no permissions required for making this API call.
# @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.
# See the operation documentation for the appropriate value for this field. # See the operation documentation for the appropriate value for this field.
@ -1397,6 +1338,88 @@ module Google
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Marks the Project identified by the specified
# `project_id` (for example, `my-project-123`) for deletion.
# This method will only affect the Project if the following criteria are met:
# + The Project does not have a billing account associated with it.
# + The Project has a lifecycle state of
# ACTIVE.
# This method changes the Project's lifecycle state from
# ACTIVE
# to DELETE_REQUESTED.
# The deletion starts at an unspecified time,
# at which point the Project is no longer accessible.
# Until the deletion completes, you can check the lifecycle state
# checked by retrieving the Project with GetProject,
# and the Project remains visible to ListProjects.
# However, you cannot update the project.
# After the deletion completes, the Project is not retrievable by
# the GetProject and
# ListProjects methods.
# The caller must have modify permissions for this Project.
# @param [String] project_id
# The Project ID (for example, `foo-bar-123`).
# 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::CloudresourcemanagerV1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1::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(project_id, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1/projects/{projectId}', options)
command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1::Empty
command.params['projectId'] = project_id unless project_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
# Clears a `Policy` from a resource.
# @param [String] resource
# Name of the resource for the `Policy` to clear.
# @param [Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest] clear_org_policy_request_object
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1::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 clear_project_org_policy(resource, clear_org_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+resource}:clearOrgPolicy', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest::Representation
command.request_object = clear_org_policy_request_object
command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1::Empty
command.params['resource'] = resource unless resource.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 protected

View File

@ -26,13 +26,13 @@ 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 = '20170607' REVISION = '20170705'
# View your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
# 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 your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
end end
end end
end end

View File

@ -22,286 +22,6 @@ module Google
module Apis module Apis
module CloudresourcemanagerV1beta1 module CloudresourcemanagerV1beta1
# The request sent to the
# GetAncestry
# method.
class GetAncestryRequest
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# A Project is a high-level Google Cloud Platform entity. It is a
# container for ACLs, APIs, App Engine Apps, VMs, and other
# Google Cloud Platform resources.
class Project
include Google::Apis::Core::Hashable
# The number uniquely identifying the project.
# Example: <code>415104041262</code>
# Read-only.
# Corresponds to the JSON property `projectNumber`
# @return [Fixnum]
attr_accessor :project_number
# A container to reference an id for any resource type. A `resource` in Google
# Cloud Platform is a generic term for something you (a developer) may want to
# interact with through one of our API's. Some examples are an App Engine app,
# a Compute Engine instance, a Cloud SQL database, and so on.
# Corresponds to the JSON property `parent`
# @return [Google::Apis::CloudresourcemanagerV1beta1::ResourceId]
attr_accessor :parent
# Creation time.
# Read-only.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# The labels associated with this Project.
# Label keys must be between 1 and 63 characters long and must conform
# to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
# Label values must be between 0 and 63 characters long and must conform
# to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
# No more than 256 labels can be associated with a given resource.
# Clients should store labels in a representation such as JSON that does not
# depend on specific characters being disallowed.
# Example: <code>"environment" : "dev"</code>
# Read-write.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
# The user-assigned display name of the Project.
# It must be 4 to 30 characters.
# Allowed characters are: lowercase and uppercase letters, numbers,
# hyphen, single-quote, double-quote, space, and exclamation point.
# Example: <code>My Project</code>
# Read-write.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The unique, user-assigned ID of the Project.
# It must be 6 to 30 lowercase letters, digits, or hyphens.
# It must start with a letter.
# Trailing hyphens are prohibited.
# Example: <code>tokyo-rain-123</code>
# Read-only after creation.
# Corresponds to the JSON property `projectId`
# @return [String]
attr_accessor :project_id
# The Project lifecycle state.
# Read-only.
# 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)
@project_number = args[:project_number] if args.key?(:project_number)
@parent = args[:parent] if args.key?(:parent)
@create_time = args[:create_time] if args.key?(:create_time)
@labels = args[:labels] if args.key?(:labels)
@name = args[:name] if args.key?(:name)
@project_id = args[:project_id] if args.key?(:project_id)
@lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
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
# Metadata describing a long running folder operation
class FolderOperation
include Google::Apis::Core::Hashable
# The type of this operation.
# Corresponds to the JSON property `operationType`
# @return [String]
attr_accessor :operation_type
# The display name of the folder.
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
# 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)
@operation_type = args[:operation_type] if args.key?(:operation_type)
@display_name = args[:display_name] if args.key?(:display_name)
@source_parent = args[:source_parent] if args.key?(:source_parent)
@destination_parent = args[:destination_parent] if args.key?(:destination_parent)
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
# `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`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
attr_accessor :etag
# Version of the `Policy`. The default version is 0.
# Corresponds to the JSON property `version`
# @return [Fixnum]
attr_accessor :version
# Specifies cloud audit logging configuration for this policy.
# Corresponds to the JSON property `auditConfigs`
# @return [Array<Google::Apis::CloudresourcemanagerV1beta1::AuditConfig>]
attr_accessor :audit_configs
# Associates a list of `members` to a `role`.
# `bindings` with no members will result in an error.
# Corresponds to the JSON property `bindings`
# @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Binding>]
attr_accessor :bindings
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@etag = args[:etag] if args.key?(:etag)
@version = args[:version] if args.key?(:version)
@audit_configs = args[:audit_configs] if args.key?(:audit_configs)
@bindings = args[:bindings] if args.key?(:bindings)
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
# A container to reference an id for any resource type. A `resource` in Google
# Cloud Platform is a generic term for something you (a developer) may want to
# interact with through one of our API's. Some examples are an App Engine app,
# a Compute Engine instance, a Cloud SQL database, and so on.
class ResourceId
include Google::Apis::Core::Hashable
# Required field representing the resource type this id is for.
# At present, the valid types are "project" and "organization".
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
# Required field for the type-specific id. This should correspond to the id
# used in the type-specific API's.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@type = args[:type] if args.key?(:type)
@id = args[:id] if args.key?(:id)
end
end
# Specifies the audit configuration for a service. # Specifies the audit configuration for a service.
# The configuration determines which permission types are logged, and what # The configuration determines which permission types are logged, and what
# identities, if any, are exempted from logging. # identities, if any, are exempted from logging.
@ -398,6 +118,35 @@ module Google
end end
end end
# The response returned from the `ListOrganizations` method.
class ListOrganizationsResponse
include Google::Apis::Core::Hashable
# 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
# The list of Organizations that matched the list query, possibly paginated.
# Corresponds to the JSON property `organizations`
# @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Organization>]
attr_accessor :organizations
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)
@organizations = args[:organizations] if args.key?(:organizations)
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
@ -452,35 +201,6 @@ module Google
end end
end end
# The response returned from the `ListOrganizations` method.
class ListOrganizationsResponse
include Google::Apis::Core::Hashable
# 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
# The list of Organizations that matched the list query, possibly paginated.
# Corresponds to the JSON property `organizations`
# @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Organization>]
attr_accessor :organizations
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)
@organizations = args[:organizations] if args.key?(:organizations)
end
end
# Associates `members` with a `role`. # Associates `members` with a `role`.
class Binding class Binding
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -559,6 +279,12 @@ module Google
class Organization class Organization
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Timestamp when the Organization was created. Assigned by the server.
# @OutputOnly
# Corresponds to the JSON property `creationTime`
# @return [String]
attr_accessor :creation_time
# The entity that owns an Organization. The lifetime of the Organization and # The entity that owns an Organization. The lifetime of the Organization and
# all of its descendants are bound to the `OrganizationOwner`. If the # all of its descendants are bound to the `OrganizationOwner`. If the
# `OrganizationOwner` is deleted, the Organization and all its descendants will # `OrganizationOwner` is deleted, the Organization and all its descendants will
@ -596,24 +322,18 @@ module Google
# @return [String] # @return [String]
attr_accessor :display_name attr_accessor :display_name
# Timestamp when the Organization was created. Assigned by the server.
# @OutputOnly
# Corresponds to the JSON property `creationTime`
# @return [String]
attr_accessor :creation_time
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@creation_time = args[:creation_time] if args.key?(:creation_time)
@owner = args[:owner] if args.key?(:owner) @owner = args[:owner] if args.key?(:owner)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@organization_id = args[:organization_id] if args.key?(:organization_id) @organization_id = args[:organization_id] if args.key?(:organization_id)
@lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state) @lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
@display_name = args[:display_name] if args.key?(:display_name) @display_name = args[:display_name] if args.key?(:display_name)
@creation_time = args[:creation_time] if args.key?(:creation_time)
end end
end end
@ -623,10 +343,11 @@ module Google
class ProjectCreationStatus class ProjectCreationStatus
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Creation time of the project creation workflow. # True if the project creation process is complete.
# Corresponds to the JSON property `createTime` # Corresponds to the JSON property `ready`
# @return [String] # @return [Boolean]
attr_accessor :create_time attr_accessor :ready
alias_method :ready?, :ready
# True if the project can be retrieved using GetProject. No other operations # True if the project can be retrieved using GetProject. No other operations
# on the project are guaranteed to work until the project creation is # on the project are guaranteed to work until the project creation is
@ -636,11 +357,10 @@ module Google
attr_accessor :gettable attr_accessor :gettable
alias_method :gettable?, :gettable alias_method :gettable?, :gettable
# True if the project creation process is complete. # Creation time of the project creation workflow.
# Corresponds to the JSON property `ready` # Corresponds to the JSON property `createTime`
# @return [Boolean] # @return [String]
attr_accessor :ready attr_accessor :create_time
alias_method :ready?, :ready
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
@ -648,22 +368,9 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) 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) @ready = args[:ready] if args.key?(:ready)
end @gettable = args[:gettable] if args.key?(:gettable)
end @create_time = args[:create_time] if args.key?(:create_time)
# 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
end end
@ -687,6 +394,19 @@ module Google
end end
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
# Response from the GetAncestry method. # Response from the GetAncestry method.
class GetAncestryResponse class GetAncestryResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -730,6 +450,44 @@ module Google
end end
end end
# A page of the response received from the
# ListProjects
# method.
# A paginated response where more pages are available has
# `next_page_token` set. This token can be used in a subsequent request to
# retrieve the next request page.
class ListProjectsResponse
include Google::Apis::Core::Hashable
# The list of Projects that matched the list filter. This list can
# be paginated.
# Corresponds to the JSON property `projects`
# @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Project>]
attr_accessor :projects
# Pagination token.
# If the result set is too large to fit in a single response, this token
# is returned. It encodes the position of the current result cursor.
# Feeding this value into a new list request with the `page_token` parameter
# gives the next page of the results.
# When `next_page_token` is not filled in, there is no next page and
# the list returned is the last page in the result set.
# Pagination tokens have a limited lifetime.
# 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)
@projects = args[:projects] if args.key?(:projects)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# Provides the configuration for logging a type of permissions. # Provides the configuration for logging a type of permissions.
# Example: # Example:
# ` # `
@ -773,41 +531,283 @@ module Google
end end
end end
# A page of the response received from the # The request sent to the
# ListProjects # GetAncestry
# method. # method.
# A paginated response where more pages are available has class GetAncestryRequest
# `next_page_token` set. This token can be used in a subsequent request to
# retrieve the next request page.
class ListProjectsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The list of Projects that matched the list filter. This list can
# be paginated.
# Corresponds to the JSON property `projects`
# @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Project>]
attr_accessor :projects
# Pagination token.
# If the result set is too large to fit in a single response, this token
# is returned. It encodes the position of the current result cursor.
# Feeding this value into a new list request with the `page_token` parameter
# gives the next page of the results.
# When `next_page_token` is not filled in, there is no next page and
# the list returned is the last page in the result set.
# Pagination tokens have a limited lifetime.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@projects = args[:projects] if args.key?(:projects) end
@next_page_token = args[:next_page_token] if args.key?(:next_page_token) end
# A Project is a high-level Google Cloud Platform entity. It is a
# container for ACLs, APIs, App Engine Apps, VMs, and other
# Google Cloud Platform resources.
class Project
include Google::Apis::Core::Hashable
# The Project lifecycle state.
# Read-only.
# Corresponds to the JSON property `lifecycleState`
# @return [String]
attr_accessor :lifecycle_state
# The number uniquely identifying the project.
# Example: <code>415104041262</code>
# Read-only.
# Corresponds to the JSON property `projectNumber`
# @return [Fixnum]
attr_accessor :project_number
# A container to reference an id for any resource type. A `resource` in Google
# Cloud Platform is a generic term for something you (a developer) may want to
# interact with through one of our API's. Some examples are an App Engine app,
# a Compute Engine instance, a Cloud SQL database, and so on.
# Corresponds to the JSON property `parent`
# @return [Google::Apis::CloudresourcemanagerV1beta1::ResourceId]
attr_accessor :parent
# The labels associated with this Project.
# Label keys must be between 1 and 63 characters long and must conform
# to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
# Label values must be between 0 and 63 characters long and must conform
# to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
# No more than 256 labels can be associated with a given resource.
# Clients should store labels in a representation such as JSON that does not
# depend on specific characters being disallowed.
# Example: <code>"environment" : "dev"</code>
# Read-write.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
# Creation time.
# Read-only.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# The user-assigned display name of the Project.
# It must be 4 to 30 characters.
# Allowed characters are: lowercase and uppercase letters, numbers,
# hyphen, single-quote, double-quote, space, and exclamation point.
# Example: <code>My Project</code>
# Read-write.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The unique, user-assigned ID of the Project.
# It must be 6 to 30 lowercase letters, digits, or hyphens.
# It must start with a letter.
# Trailing hyphens are prohibited.
# Example: <code>tokyo-rain-123</code>
# Read-only after creation.
# Corresponds to the JSON property `projectId`
# @return [String]
attr_accessor :project_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
@project_number = args[:project_number] if args.key?(:project_number)
@parent = args[:parent] if args.key?(:parent)
@labels = args[:labels] if args.key?(:labels)
@create_time = args[:create_time] if args.key?(:create_time)
@name = args[:name] if args.key?(:name)
@project_id = args[:project_id] if args.key?(:project_id)
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
# 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
# Metadata describing a long running folder operation
class FolderOperation
include Google::Apis::Core::Hashable
# 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 display name of the folder.
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
# 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)
@operation_type = args[:operation_type] if args.key?(:operation_type)
@source_parent = args[:source_parent] if args.key?(:source_parent)
@display_name = args[:display_name] if args.key?(:display_name)
@destination_parent = args[:destination_parent] if args.key?(:destination_parent)
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
# `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`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
attr_accessor :etag
# Version of the `Policy`. The default version is 0.
# Corresponds to the JSON property `version`
# @return [Fixnum]
attr_accessor :version
# Specifies cloud audit logging configuration for this policy.
# Corresponds to the JSON property `auditConfigs`
# @return [Array<Google::Apis::CloudresourcemanagerV1beta1::AuditConfig>]
attr_accessor :audit_configs
# Associates a list of `members` to a `role`.
# `bindings` with no members will result in an error.
# Corresponds to the JSON property `bindings`
# @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Binding>]
attr_accessor :bindings
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@etag = args[:etag] if args.key?(:etag)
@version = args[:version] if args.key?(:version)
@audit_configs = args[:audit_configs] if args.key?(:audit_configs)
@bindings = args[:bindings] if args.key?(:bindings)
end
end
# A container to reference an id for any resource type. A `resource` in Google
# Cloud Platform is a generic term for something you (a developer) may want to
# interact with through one of our API's. Some examples are an App Engine app,
# a Compute Engine instance, a Cloud SQL database, and so on.
class ResourceId
include Google::Apis::Core::Hashable
# Required field representing the resource type this id is for.
# At present, the valid types are "project" and "organization".
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
# Required field for the type-specific id. This should correspond to the id
# used in the type-specific API's.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@type = args[:type] if args.key?(:type)
@id = args[:id] if args.key?(:id)
end end
end end
end end

View File

@ -22,48 +22,6 @@ module Google
module Apis module Apis
module CloudresourcemanagerV1beta1 module CloudresourcemanagerV1beta1
class GetAncestryRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Project
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 FolderOperation
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 FolderOperationError
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ResourceId
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AuditConfig class AuditConfig
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -76,13 +34,13 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class SetIamPolicyRequest class ListOrganizationsResponse
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 ListOrganizationsResponse class SetIamPolicyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
@ -118,13 +76,13 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class GetIamPolicyRequest 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 TestIamPermissionsResponse class GetIamPolicyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
@ -142,80 +100,58 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class AuditLogConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListProjectsResponse class ListProjectsResponse
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 AuditLogConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GetAncestryRequest class GetAncestryRequest
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
end include Google::Apis::Core::JsonObjectSupport
end end
class Project class Project
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
property :project_number, :numeric_string => true, as: 'projectNumber'
property :parent, as: 'parent', class: Google::Apis::CloudresourcemanagerV1beta1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1beta1::ResourceId::Representation
property :create_time, as: 'createTime' include Google::Apis::Core::JsonObjectSupport
hash :labels, as: 'labels'
property :name, as: 'name'
property :project_id, as: 'projectId'
property :lifecycle_state, as: 'lifecycleState'
end
end end
class TestIamPermissionsRequest class TestIamPermissionsRequest
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
collection :permissions, as: 'permissions'
end
end
class FolderOperation include Google::Apis::Core::JsonObjectSupport
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :operation_type, as: 'operationType'
property :display_name, as: 'displayName'
property :source_parent, as: 'sourceParent'
property :destination_parent, as: 'destinationParent'
end
end
class Policy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :etag, :base64 => true, as: 'etag'
property :version, as: 'version'
collection :audit_configs, as: 'auditConfigs', class: Google::Apis::CloudresourcemanagerV1beta1::AuditConfig, decorator: Google::Apis::CloudresourcemanagerV1beta1::AuditConfig::Representation
collection :bindings, as: 'bindings', class: Google::Apis::CloudresourcemanagerV1beta1::Binding, decorator: Google::Apis::CloudresourcemanagerV1beta1::Binding::Representation
end
end end
class FolderOperationError class FolderOperationError
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
property :error_message_id, as: 'errorMessageId' include Google::Apis::Core::JsonObjectSupport
end end
class FolderOperation
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 end
class ResourceId class ResourceId
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
property :type, as: 'type' include Google::Apis::Core::JsonObjectSupport
property :id, as: 'id'
end
end end
class AuditConfig class AuditConfig
@ -235,15 +171,6 @@ module Google
end end
end end
class SetIamPolicyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :policy, as: 'policy', class: Google::Apis::CloudresourcemanagerV1beta1::Policy, decorator: Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
property :update_mask, as: 'updateMask'
end
end
class ListOrganizationsResponse class ListOrganizationsResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -253,6 +180,15 @@ module Google
end end
end end
class SetIamPolicyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :policy, as: 'policy', class: Google::Apis::CloudresourcemanagerV1beta1::Policy, decorator: Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
property :update_mask, as: 'updateMask'
end
end
class Binding class Binding
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -276,28 +212,22 @@ module Google
class Organization class Organization
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :creation_time, as: 'creationTime'
property :owner, as: 'owner', class: Google::Apis::CloudresourcemanagerV1beta1::OrganizationOwner, decorator: Google::Apis::CloudresourcemanagerV1beta1::OrganizationOwner::Representation property :owner, as: 'owner', class: Google::Apis::CloudresourcemanagerV1beta1::OrganizationOwner, decorator: Google::Apis::CloudresourcemanagerV1beta1::OrganizationOwner::Representation
property :name, as: 'name' property :name, as: 'name'
property :organization_id, as: 'organizationId' property :organization_id, as: 'organizationId'
property :lifecycle_state, as: 'lifecycleState' property :lifecycle_state, as: 'lifecycleState'
property :display_name, as: 'displayName' property :display_name, as: 'displayName'
property :creation_time, as: 'creationTime'
end end
end end
class ProjectCreationStatus 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' property :ready, as: 'ready'
end property :gettable, as: 'gettable'
end property :create_time, as: 'createTime'
class GetIamPolicyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end end
end end
@ -308,6 +238,12 @@ module Google
end end
end end
class GetIamPolicyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class GetAncestryResponse class GetAncestryResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -323,14 +259,6 @@ module Google
end end
end end
class AuditLogConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :exempted_members, as: 'exemptedMembers'
property :log_type, as: 'logType'
end
end
class ListProjectsResponse class ListProjectsResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -339,6 +267,78 @@ module Google
property :next_page_token, as: 'nextPageToken' property :next_page_token, as: 'nextPageToken'
end end
end end
class AuditLogConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :exempted_members, as: 'exemptedMembers'
property :log_type, as: 'logType'
end
end
class GetAncestryRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class Project
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :lifecycle_state, as: 'lifecycleState'
property :project_number, :numeric_string => true, as: 'projectNumber'
property :parent, as: 'parent', class: Google::Apis::CloudresourcemanagerV1beta1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1beta1::ResourceId::Representation
hash :labels, as: 'labels'
property :create_time, as: 'createTime'
property :name, as: 'name'
property :project_id, as: 'projectId'
end
end
class TestIamPermissionsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :permissions, as: 'permissions'
end
end
class FolderOperationError
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :error_message_id, as: 'errorMessageId'
end
end
class FolderOperation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :operation_type, as: 'operationType'
property :source_parent, as: 'sourceParent'
property :display_name, as: 'displayName'
property :destination_parent, as: 'destinationParent'
end
end
class Policy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :etag, :base64 => true, as: 'etag'
property :version, as: 'version'
collection :audit_configs, as: 'auditConfigs', class: Google::Apis::CloudresourcemanagerV1beta1::AuditConfig, decorator: Google::Apis::CloudresourcemanagerV1beta1::AuditConfig::Representation
collection :bindings, as: 'bindings', class: Google::Apis::CloudresourcemanagerV1beta1::Binding, decorator: Google::Apis::CloudresourcemanagerV1beta1::Binding::Representation
end
end
class ResourceId
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :type, as: 'type'
property :id, as: 'id'
end
end
end end
end end
end end

View File

@ -48,186 +48,6 @@ module Google
@batch_path = 'batch' @batch_path = 'batch'
end end
# Returns permissions that a caller has on the specified Project.
# @param [String] resource
# REQUIRED: The resource for which the policy detail is being requested.
# See the operation documentation for the appropriate value for this field.
# @param [Google::Apis::CloudresourcemanagerV1beta1::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::CloudresourcemanagerV1beta1::TestIamPermissionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1beta1::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_project_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/projects/{resource}:testIamPermissions', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest::Representation
command.request_object = test_iam_permissions_request_object
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::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
# Marks the Project identified by the specified
# `project_id` (for example, `my-project-123`) for deletion.
# This method will only affect the Project if the following criteria are met:
# + The Project does not have a billing account associated with it.
# + The Project has a lifecycle state of
# ACTIVE.
# This method changes the Project's lifecycle state from
# ACTIVE
# to DELETE_REQUESTED.
# The deletion starts at an unspecified time, at which point the project is
# no longer accessible.
# Until the deletion completes, you can check the lifecycle state
# checked by retrieving the Project with GetProject,
# and the Project remains visible to ListProjects.
# However, you cannot update the project.
# After the deletion completes, the Project is not retrievable by
# the GetProject and
# ListProjects methods.
# The caller must have modify permissions for this Project.
# @param [String] project_id
# The Project ID (for example, `foo-bar-123`).
# Required.
# @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::CloudresourcemanagerV1beta1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1beta1::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(project_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1beta1/projects/{projectId}', options)
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Empty::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Empty
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
# Lists Projects that are visible to the user and satisfy the
# specified filter. This method returns Projects in an unspecified order.
# New Projects do not necessarily appear at the end of the list.
# @param [String] filter
# An expression for filtering the results of the request. Filter rules are
# case insensitive. The fields eligible for filtering are:
# + `name`
# + `id`
# + <code>labels.<em>key</em></code> where *key* is the name of a label
# Some examples of using labels as filters:
# |Filter|Description|
# |------|-----------|
# |name:how*|The project's name starts with "how".|
# |name:Howl|The project's name is `Howl` or `howl`.|
# |name:HOWL|Equivalent to above.|
# |NAME:howl|Equivalent to above.|
# |labels.color:*|The project has the label `color`.|
# |labels.color:red|The project's label `color` has the value `red`.|
# |labels.color:red&nbsp;labels.size:big|The project's label `color` has the
# value `red` and its label `size` has the value `big`.
# Optional.
# @param [String] page_token
# A pagination token returned from a previous call to ListProjects
# that indicates from where listing should continue.
# Optional.
# @param [Fixnum] page_size
# The maximum number of Projects to return in the response.
# The server can return fewer Projects than requested.
# If unspecified, server picks an appropriate default.
# Optional.
# @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::CloudresourcemanagerV1beta1::ListProjectsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse]
#
# @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_projects(filter: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/projects', options)
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse
command.query['filter'] = filter unless filter.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?
execute_or_queue_command(command, &block)
end
# Creates a Project resource.
# Initially, the Project resource is owned by its creator exclusively.
# The creator can later grant permission to others to read or update the
# Project.
# Several APIs are activated automatically for the Project, including
# Google Cloud Storage.
# @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
# 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::CloudresourcemanagerV1beta1::Project] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1beta1::Project]
#
# @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, use_legacy_stack: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/projects', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
command.request_object = project_object
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
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['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Sets the IAM access control policy for the specified Project. Replaces # Sets the IAM access control policy for the specified Project. Replaces
# any existing policy. # any existing policy.
# The following constraints apply when using `setIamPolicy()`: # The following constraints apply when using `setIamPolicy()`:
@ -260,11 +80,11 @@ module Google
# REQUIRED: The resource for which the policy is being specified. # REQUIRED: The resource for which the policy is being specified.
# See the operation documentation for the appropriate value for this field. # See the operation documentation for the appropriate value for this field.
# @param [Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest] set_iam_policy_request_object # @param [Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest] set_iam_policy_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
# #
@ -277,15 +97,53 @@ 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 set_project_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) def set_project_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/projects/{resource}:setIamPolicy', options) command = make_simple_command(:post, 'v1beta1/projects/{resource}:setIamPolicy', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest::Representation command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest::Representation
command.request_object = set_iam_policy_request_object command.request_object = set_iam_policy_request_object
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy
command.params['resource'] = resource unless resource.nil? command.params['resource'] = resource unless resource.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
# Creates a Project resource.
# Initially, the Project resource is owned by its creator exclusively.
# The creator can later grant permission to others to read or update the
# Project.
# Several APIs are activated automatically for the Project, including
# Google Cloud Storage.
# @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] 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::CloudresourcemanagerV1beta1::Project] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1beta1::Project]
#
# @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, use_legacy_stack: nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/projects', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
command.request_object = project_object
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Project
command.query['useLegacyStack'] = use_legacy_stack unless use_legacy_stack.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
@ -295,11 +153,11 @@ module Google
# REQUIRED: The resource for which the policy is being requested. # REQUIRED: The resource for which the policy is being requested.
# See the operation documentation for the appropriate value for this field. # See the operation documentation for the appropriate value for this field.
# @param [Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest] get_iam_policy_request_object # @param [Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest] get_iam_policy_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
# #
@ -312,15 +170,15 @@ 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_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) def get_project_iam_policy(resource, get_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/projects/{resource}:getIamPolicy', options) command = make_simple_command(:post, 'v1beta1/projects/{resource}:getIamPolicy', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest::Representation command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest::Representation
command.request_object = get_iam_policy_request_object command.request_object = get_iam_policy_request_object
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy
command.params['resource'] = resource unless resource.nil? command.params['resource'] = resource unless resource.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
@ -334,11 +192,11 @@ module Google
# The project ID (for example, `foo-bar-123`). # The project ID (for example, `foo-bar-123`).
# Required. # Required.
# @param [Google::Apis::CloudresourcemanagerV1beta1::UndeleteProjectRequest] undelete_project_request_object # @param [Google::Apis::CloudresourcemanagerV1beta1::UndeleteProjectRequest] undelete_project_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
# #
@ -351,15 +209,15 @@ 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 undelete_project(project_id, undelete_project_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) def undelete_project(project_id, undelete_project_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/projects/{projectId}:undelete', options) command = make_simple_command(:post, 'v1beta1/projects/{projectId}:undelete', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::UndeleteProjectRequest::Representation command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::UndeleteProjectRequest::Representation
command.request_object = undelete_project_request_object command.request_object = undelete_project_request_object
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Empty::Representation command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Empty::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Empty command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Empty
command.params['projectId'] = project_id unless project_id.nil? 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? 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
@ -369,11 +227,11 @@ module Google
# @param [String] project_id # @param [String] project_id
# The Project ID (for example, `my-project-123`). # The Project ID (for example, `my-project-123`).
# Required. # Required.
# @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
# #
@ -386,13 +244,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 get_project(project_id, fields: nil, quota_user: nil, options: nil, &block) def get_project(project_id, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/projects/{projectId}', options) command = make_simple_command(:get, 'v1beta1/projects/{projectId}', options)
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.params['projectId'] = project_id unless project_id.nil? 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? 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
@ -403,11 +261,11 @@ module Google
# The Project ID (for example, `my-project-123`). # The Project ID (for example, `my-project-123`).
# Required. # Required.
# @param [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryRequest] get_ancestry_request_object # @param [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryRequest] get_ancestry_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
# #
@ -420,15 +278,15 @@ 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_ancestry(project_id, get_ancestry_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) def get_project_ancestry(project_id, get_ancestry_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/projects/{projectId}:getAncestry', options) command = make_simple_command(:post, 'v1beta1/projects/{projectId}:getAncestry', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryRequest::Representation command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryRequest::Representation
command.request_object = get_ancestry_request_object command.request_object = get_ancestry_request_object
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse::Representation command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse command.response_class = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse
command.params['projectId'] = project_id unless project_id.nil? 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? 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
@ -439,11 +297,11 @@ module Google
# The project ID (for example, `my-project-123`). # The project ID (for example, `my-project-123`).
# Required. # Required.
# @param [Google::Apis::CloudresourcemanagerV1beta1::Project] project_object # @param [Google::Apis::CloudresourcemanagerV1beta1::Project] project_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
# #
@ -456,221 +314,28 @@ 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 update_project(project_id, project_object = nil, fields: nil, quota_user: nil, options: nil, &block) def update_project(project_id, project_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:put, 'v1beta1/projects/{projectId}', options) command = make_simple_command(:put, 'v1beta1/projects/{projectId}', 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.params['projectId'] = project_id unless project_id.nil? 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? 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 Organization resources that are visible to the user and satisfy # Returns permissions that a caller has on the specified Project.
# the specified filter. This method returns Organizations in an unspecified
# order. New Organizations do not necessarily appear at the end of the list.
# @param [String] page_token
# A pagination token returned from a previous call to `ListOrganizations`
# that indicates from where listing should continue.
# This field is optional.
# @param [Fixnum] page_size
# The maximum number of Organizations to return in the response.
# This field is optional.
# @param [String] filter
# 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.
# @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::CloudresourcemanagerV1beta1::ListOrganizationsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse]
#
# @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_organizations(page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/organizations', options)
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse
command.query['pageToken'] = page_token unless page_token.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['filter'] = filter unless filter.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.
# See the operation documentation for the appropriate value for this field.
# @param [Google::Apis::CloudresourcemanagerV1beta1::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::CloudresourcemanagerV1beta1::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1beta1::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, 'v1beta1/{+resource}:setIamPolicy', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest::Representation
command.request_object = set_iam_policy_request_object
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::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.
# See the operation documentation for the appropriate value for this field.
# @param [Google::Apis::CloudresourcemanagerV1beta1::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::CloudresourcemanagerV1beta1::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1beta1::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, 'v1beta1/{+resource}:getIamPolicy', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest::Representation
command.request_object = get_iam_policy_request_object
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::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
# 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] organization_id
# The id of the Organization resource to fetch.
# This field is deprecated and will be removed in v1. Use name instead.
# @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::CloudresourcemanagerV1beta1::Organization] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1beta1::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, organization_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+name}', options)
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Organization
command.params['name'] = name unless name.nil?
command.query['organizationId'] = organization_id unless organization_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
# Updates an Organization resource identified by the specified resource name.
# @param [String] name
# 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".
# @param [Google::Apis::CloudresourcemanagerV1beta1::Organization] organization_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::CloudresourcemanagerV1beta1::Organization] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1beta1::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 update_organization(name, organization_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:put, 'v1beta1/{+name}', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
command.request_object = organization_object
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::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
# 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 # @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.
# See the operation documentation for the appropriate value for this field. # See the operation documentation for the appropriate value for this field.
# @param [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object # @param [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest] test_iam_permissions_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
# #
@ -683,15 +348,358 @@ 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 test_organization_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) def test_project_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/projects/{resource}:testIamPermissions', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest::Representation
command.request_object = test_iam_permissions_request_object
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse
command.params['resource'] = resource unless resource.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Marks the Project identified by the specified
# `project_id` (for example, `my-project-123`) for deletion.
# This method will only affect the Project if the following criteria are met:
# + The Project does not have a billing account associated with it.
# + The Project has a lifecycle state of
# ACTIVE.
# This method changes the Project's lifecycle state from
# ACTIVE
# to DELETE_REQUESTED.
# The deletion starts at an unspecified time, at which point the project is
# no longer accessible.
# Until the deletion completes, you can check the lifecycle state
# checked by retrieving the Project with GetProject,
# and the Project remains visible to ListProjects.
# However, you cannot update the project.
# After the deletion completes, the Project is not retrievable by
# the GetProject and
# ListProjects methods.
# The caller must have modify permissions for this Project.
# @param [String] project_id
# The Project ID (for example, `foo-bar-123`).
# 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::CloudresourcemanagerV1beta1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1beta1::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(project_id, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1beta1/projects/{projectId}', options)
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Empty::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Empty
command.params['projectId'] = project_id unless project_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 Projects that are visible to the user and satisfy the
# specified filter. This method returns Projects in an unspecified order.
# New Projects do not necessarily appear at the end of the list.
# @param [String] filter
# An expression for filtering the results of the request. Filter rules are
# case insensitive. The fields eligible for filtering are:
# + `name`
# + `id`
# + <code>labels.<em>key</em></code> where *key* is the name of a label
# Some examples of using labels as filters:
# |Filter|Description|
# |------|-----------|
# |name:how*|The project's name starts with "how".|
# |name:Howl|The project's name is `Howl` or `howl`.|
# |name:HOWL|Equivalent to above.|
# |NAME:howl|Equivalent to above.|
# |labels.color:*|The project has the label `color`.|
# |labels.color:red|The project's label `color` has the value `red`.|
# |labels.color:red&nbsp;labels.size:big|The project's label `color` has the
# value `red` and its label `size` has the value `big`.
# If you specify a filter that has both `parent.type` and `parent.id`, then
# the `resourcemanager.projects.list` permission is checked on the parent.
# If the user has this permission, all projects under the parent will be
# returned after remaining filters have been applied. If the user lacks this
# permission, then all projects for which the user has the
# `resourcemanager.projects.get` permission will be returned after remaining
# filters have been applied. If no filter is specified, the call will return
# projects for which the user has `resourcemanager.projects.get` permissions.
# Optional.
# @param [String] page_token
# A pagination token returned from a previous call to ListProjects
# that indicates from where listing should continue.
# Optional.
# @param [Fixnum] page_size
# The maximum number of Projects to return in the response.
# The server can return fewer Projects than requested.
# If unspecified, server picks an appropriate default.
# Optional.
# @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::CloudresourcemanagerV1beta1::ListProjectsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse]
#
# @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_projects(filter: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/projects', options)
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse
command.query['filter'] = filter unless filter.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['pageSize'] = page_size unless page_size.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 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 list.
# @param [String] filter
# 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.
# @param [String] page_token
# A pagination token returned from a previous call to `ListOrganizations`
# that indicates from where listing should continue.
# This field is optional.
# @param [Fixnum] page_size
# The maximum number of Organizations to return in the response.
# This field is optional.
# @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::CloudresourcemanagerV1beta1::ListOrganizationsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse]
#
# @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_organizations(filter: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/organizations', options)
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse
command.query['filter'] = filter unless filter.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.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.
# See the operation documentation for the appropriate value for this field.
# @param [Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1beta1::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, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest::Representation
command.request_object = set_iam_policy_request_object
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy
command.params['resource'] = resource unless resource.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 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.
# See the operation documentation for the appropriate value for this field.
# @param [Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1beta1::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, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest::Representation
command.request_object = get_iam_policy_request_object
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy
command.params['resource'] = resource unless resource.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.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] organization_id
# The id of the Organization resource to fetch.
# This field is deprecated and will be removed in v1. Use name instead.
# @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::CloudresourcemanagerV1beta1::Organization] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1beta1::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, organization_id: nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+name}', options)
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Organization
command.params['name'] = name unless name.nil?
command.query['organizationId'] = organization_id unless organization_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
# Updates an Organization resource identified by the specified resource name.
# @param [String] name
# 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".
# @param [Google::Apis::CloudresourcemanagerV1beta1::Organization] organization_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::CloudresourcemanagerV1beta1::Organization] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1beta1::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 update_organization(name, organization_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:put, 'v1beta1/{+name}', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
command.request_object = organization_object
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Organization
command.params['name'] = name unless 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
# 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.
# See the operation documentation for the appropriate value for this field.
# @param [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1beta1::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, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options) command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest::Representation command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest::Representation
command.request_object = test_iam_permissions_request_object command.request_object = test_iam_permissions_request_object
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse::Representation command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse command.response_class = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse
command.params['resource'] = resource unless resource.nil? command.params['resource'] = resource unless resource.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

View File

@ -28,16 +28,16 @@ module Google
# @see https://cloud.google.com/trace # @see https://cloud.google.com/trace
module CloudtraceV1 module CloudtraceV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20170531' REVISION = '20170711'
# Read Trace data for a project or application
AUTH_TRACE_READONLY = 'https://www.googleapis.com/auth/trace.readonly'
# Write Trace data for a project or application # Write Trace data for a project or application
AUTH_TRACE_APPEND = 'https://www.googleapis.com/auth/trace.append' AUTH_TRACE_APPEND = 'https://www.googleapis.com/auth/trace.append'
# 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'
# Read Trace data for a project or application
AUTH_TRACE_READONLY = 'https://www.googleapis.com/auth/trace.readonly'
end end
end end
end end

View File

@ -22,6 +22,59 @@ module Google
module Apis module Apis
module CloudtraceV1 module CloudtraceV1
# A trace describes how long it takes for an application to perform an
# operation. It consists of a set of spans, each of which represent a single
# timed event within the operation.
class Trace
include Google::Apis::Core::Hashable
# Collection of spans in the trace.
# Corresponds to the JSON property `spans`
# @return [Array<Google::Apis::CloudtraceV1::TraceSpan>]
attr_accessor :spans
# Project ID of the Cloud project where the trace data is stored.
# Corresponds to the JSON property `projectId`
# @return [String]
attr_accessor :project_id
# Globally unique identifier for the trace. This identifier is a 128-bit
# numeric value formatted as a 32-byte hex string.
# Corresponds to the JSON property `traceId`
# @return [String]
attr_accessor :trace_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@spans = args[:spans] if args.key?(:spans)
@project_id = args[:project_id] if args.key?(:project_id)
@trace_id = args[:trace_id] if args.key?(:trace_id)
end
end
# List of new or updated traces.
class Traces
include Google::Apis::Core::Hashable
# List of traces.
# Corresponds to the JSON property `traces`
# @return [Array<Google::Apis::CloudtraceV1::Trace>]
attr_accessor :traces
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@traces = args[:traces] if args.key?(:traces)
end
end
# A span represents a single timed event within a trace. Spans can be nested # A span represents a single timed event within a trace. Spans can be nested
# and form a trace tree. Often, a trace contains a root span that describes the # and form a trace tree. Often, a trace contains a root span that describes the
# end-to-end latency of an operation and, optionally, one or more subspans for # end-to-end latency of an operation and, optionally, one or more subspans for
@ -30,6 +83,11 @@ module Google
class TraceSpan class TraceSpan
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# ID of the parent span, if any. Optional.
# Corresponds to the JSON property `parentSpanId`
# @return [Fixnum]
attr_accessor :parent_span_id
# End time of the span in nanoseconds from the UNIX epoch. # End time of the span in nanoseconds from the UNIX epoch.
# Corresponds to the JSON property `endTime` # Corresponds to the JSON property `endTime`
# @return [String] # @return [String]
@ -97,51 +155,19 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :span_id attr_accessor :span_id
# ID of the parent span, if any. Optional.
# Corresponds to the JSON property `parentSpanId`
# @return [Fixnum]
attr_accessor :parent_span_id
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@parent_span_id = args[:parent_span_id] if args.key?(:parent_span_id)
@end_time = args[:end_time] if args.key?(:end_time) @end_time = args[:end_time] if args.key?(:end_time)
@start_time = args[:start_time] if args.key?(:start_time) @start_time = args[:start_time] if args.key?(:start_time)
@kind = args[:kind] if args.key?(:kind) @kind = args[:kind] if args.key?(:kind)
@labels = args[:labels] if args.key?(:labels) @labels = args[:labels] if args.key?(:labels)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@span_id = args[:span_id] if args.key?(:span_id) @span_id = args[:span_id] if args.key?(:span_id)
@parent_span_id = args[:parent_span_id] if args.key?(:parent_span_id)
end
end
# The response message for the `ListTraces` method.
class ListTracesResponse
include Google::Apis::Core::Hashable
# List of trace records returned.
# Corresponds to the JSON property `traces`
# @return [Array<Google::Apis::CloudtraceV1::Trace>]
attr_accessor :traces
# If defined, indicates that there are more traces that match the request
# and that this value should be passed to the next request to continue
# retrieving additional traces.
# 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)
@traces = args[:traces] if args.key?(:traces)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end end
end end
@ -164,45 +190,18 @@ module Google
end end
end end
# A trace describes how long it takes for an application to perform an # The response message for the `ListTraces` method.
# operation. It consists of a set of spans, each of which represent a single class ListTracesResponse
# timed event within the operation.
class Trace
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Project ID of the Cloud project where the trace data is stored. # If defined, indicates that there are more traces that match the request
# Corresponds to the JSON property `projectId` # and that this value should be passed to the next request to continue
# retrieving additional traces.
# Corresponds to the JSON property `nextPageToken`
# @return [String] # @return [String]
attr_accessor :project_id attr_accessor :next_page_token
# Collection of spans in the trace. # List of trace records returned.
# Corresponds to the JSON property `spans`
# @return [Array<Google::Apis::CloudtraceV1::TraceSpan>]
attr_accessor :spans
# Globally unique identifier for the trace. This identifier is a 128-bit
# numeric value formatted as a 32-byte hex string.
# Corresponds to the JSON property `traceId`
# @return [String]
attr_accessor :trace_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@project_id = args[:project_id] if args.key?(:project_id)
@spans = args[:spans] if args.key?(:spans)
@trace_id = args[:trace_id] if args.key?(:trace_id)
end
end
# List of new or updated traces.
class Traces
include Google::Apis::Core::Hashable
# List of traces.
# Corresponds to the JSON property `traces` # Corresponds to the JSON property `traces`
# @return [Array<Google::Apis::CloudtraceV1::Trace>] # @return [Array<Google::Apis::CloudtraceV1::Trace>]
attr_accessor :traces attr_accessor :traces
@ -213,6 +212,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@traces = args[:traces] if args.key?(:traces) @traces = args[:traces] if args.key?(:traces)
end end
end end

View File

@ -22,24 +22,6 @@ module Google
module Apis module Apis
module CloudtraceV1 module CloudtraceV1
class TraceSpan
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListTracesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Empty
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Trace class Trace
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -53,39 +35,29 @@ module Google
end end
class TraceSpan class TraceSpan
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
property :end_time, as: 'endTime'
property :start_time, as: 'startTime'
property :kind, as: 'kind'
hash :labels, as: 'labels'
property :name, as: 'name'
property :span_id, :numeric_string => true, as: 'spanId'
property :parent_span_id, :numeric_string => true, as: 'parentSpanId'
end
end
class ListTracesResponse include Google::Apis::Core::JsonObjectSupport
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :traces, as: 'traces', class: Google::Apis::CloudtraceV1::Trace, decorator: Google::Apis::CloudtraceV1::Trace::Representation
property :next_page_token, as: 'nextPageToken'
end
end end
class Empty class Empty
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
end include Google::Apis::Core::JsonObjectSupport
end
class ListTracesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end end
class Trace class Trace
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :project_id, as: 'projectId'
collection :spans, as: 'spans', class: Google::Apis::CloudtraceV1::TraceSpan, decorator: Google::Apis::CloudtraceV1::TraceSpan::Representation collection :spans, as: 'spans', class: Google::Apis::CloudtraceV1::TraceSpan, decorator: Google::Apis::CloudtraceV1::TraceSpan::Representation
property :project_id, as: 'projectId'
property :trace_id, as: 'traceId' property :trace_id, as: 'traceId'
end end
end end
@ -97,6 +69,34 @@ module Google
end end
end end
class TraceSpan
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :parent_span_id, :numeric_string => true, as: 'parentSpanId'
property :end_time, as: 'endTime'
property :start_time, as: 'startTime'
property :kind, as: 'kind'
hash :labels, as: 'labels'
property :name, as: 'name'
property :span_id, :numeric_string => true, as: 'spanId'
end
end
class Empty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class ListTracesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :traces, as: 'traces', class: Google::Apis::CloudtraceV1::Trace, decorator: Google::Apis::CloudtraceV1::Trace::Representation
end
end
end end
end end
end end

View File

@ -35,16 +35,16 @@ module Google
# #
# @see https://cloud.google.com/trace # @see https://cloud.google.com/trace
class CloudTraceService < Google::Apis::Core::BaseService class CloudTraceService < Google::Apis::Core::BaseService
# @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
# @return [String] # @return [String]
# API key. Your API key identifies your project and provides you with API access, # 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. # quota, and reports. Required unless you provide an OAuth 2.0 token.
attr_accessor :key 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 def initialize
super('https://cloudtrace.googleapis.com/', '') super('https://cloudtrace.googleapis.com/', '')
@batch_path = 'batch' @batch_path = 'batch'
@ -87,12 +87,42 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets a single trace by its ID.
# @param [String] project_id
# ID of the Cloud project where the trace data is stored.
# @param [String] trace_id
# ID of the trace to return.
# @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::CloudtraceV1::Trace] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudtraceV1::Trace]
#
# @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_trace(project_id, trace_id, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/projects/{projectId}/traces/{traceId}', options)
command.response_representation = Google::Apis::CloudtraceV1::Trace::Representation
command.response_class = Google::Apis::CloudtraceV1::Trace
command.params['projectId'] = project_id unless project_id.nil?
command.params['traceId'] = trace_id unless trace_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
# Returns of a list of traces that match the specified filter conditions. # Returns of a list of traces that match the specified filter conditions.
# @param [String] project_id # @param [String] project_id
# ID of the Cloud project where the trace data is stored. # ID of the Cloud project where the trace data is stored.
# @param [String] view
# Type of data returned for traces in the list. Optional. Default is
# `MINIMAL`.
# @param [String] order_by # @param [String] order_by
# Field used to sort the returned traces. Optional. # Field used to sort the returned traces. Optional.
# Can be one of the following: # Can be one of the following:
@ -136,16 +166,19 @@ module Google
# @param [String] end_time # @param [String] end_time
# End of the time interval (inclusive) during which the trace data was # End of the time interval (inclusive) during which the trace data was
# collected from the application. # collected from the application.
# @param [String] page_token
# Token identifying the page of results to return. If provided, use the
# value of the `next_page_token` field from a previous request. Optional.
# @param [String] start_time # @param [String] start_time
# Start of the time interval (inclusive) during which the trace data was # Start of the time interval (inclusive) during which the trace data was
# collected from the application. # collected from the application.
# @param [String] page_token
# Token identifying the page of results to return. If provided, use the
# value of the `next_page_token` field from a previous request. Optional.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Maximum number of traces to return. If not specified or <= 0, the # Maximum number of traces to return. If not specified or <= 0, the
# implementation selects a reasonable value. The implementation may # implementation selects a reasonable value. The implementation may
# return fewer traces than the requested page size. Optional. # return fewer traces than the requested page size. Optional.
# @param [String] view
# Type of data returned for traces in the list. Optional. Default is
# `MINIMAL`.
# @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.
@ -163,51 +196,18 @@ 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_traces(project_id, view: nil, order_by: nil, filter: nil, end_time: nil, page_token: nil, start_time: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block) def list_project_traces(project_id, order_by: nil, filter: nil, end_time: nil, start_time: nil, page_token: nil, page_size: nil, view: nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/projects/{projectId}/traces', options) command = make_simple_command(:get, 'v1/projects/{projectId}/traces', options)
command.response_representation = Google::Apis::CloudtraceV1::ListTracesResponse::Representation command.response_representation = Google::Apis::CloudtraceV1::ListTracesResponse::Representation
command.response_class = Google::Apis::CloudtraceV1::ListTracesResponse command.response_class = Google::Apis::CloudtraceV1::ListTracesResponse
command.params['projectId'] = project_id unless project_id.nil? command.params['projectId'] = project_id unless project_id.nil?
command.query['view'] = view unless view.nil?
command.query['orderBy'] = order_by unless order_by.nil? command.query['orderBy'] = order_by unless order_by.nil?
command.query['filter'] = filter unless filter.nil? command.query['filter'] = filter unless filter.nil?
command.query['endTime'] = end_time unless end_time.nil? command.query['endTime'] = end_time unless end_time.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['startTime'] = start_time unless start_time.nil? command.query['startTime'] = start_time unless start_time.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['quotaUser'] = quota_user unless quota_user.nil? command.query['view'] = view unless view.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Gets a single trace by its ID.
# @param [String] project_id
# ID of the Cloud project where the trace data is stored.
# @param [String] trace_id
# ID of the trace to return.
# @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::CloudtraceV1::Trace] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudtraceV1::Trace]
#
# @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_trace(project_id, trace_id, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/projects/{projectId}/traces/{traceId}', options)
command.response_representation = Google::Apis::CloudtraceV1::Trace::Representation
command.response_class = Google::Apis::CloudtraceV1::Trace
command.params['projectId'] = project_id unless project_id.nil?
command.params['traceId'] = trace_id unless trace_id.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? command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
@ -216,8 +216,8 @@ module Google
protected protected
def apply_command_defaults(command) def apply_command_defaults(command)
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['key'] = key unless key.nil? command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
end end
end end
end end

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 = '20170531' REVISION = '20170612'
# 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

@ -1356,6 +1356,35 @@ module Google
class AutoscalingPolicyCustomMetricUtilization class AutoscalingPolicyCustomMetricUtilization
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# A filter string, compatible with a Stackdriver Monitoring filter string for
# TimeSeries.list API call. This filter is used to select a specific TimeSeries
# for the purpose of autoscaling and to determine whether the metric is
# exporting per-instance or global data.
# For the filter to be valid for autoscaling purposes, the following rules apply:
#
# - You can only use the AND operator for joining selectors.
# - You can only use direct equality comparison operator (=) without any
# functions for each selector.
# - You can specify the metric in both the filter string and in the metric field.
# However, if specified in both places, the metric must be identical.
# - The monitored resource type determines what kind of values are expected for
# the metric. If it is a gce_instance, the autoscaler expects the metric to
# include a separate TimeSeries for each instance in a group. In such a case,
# you cannot filter on resource labels.
# If the resource type is any other value, the autoscaler expects this metric to
# contain values that apply to the entire autoscaled instance group and resource
# label filtering can be performed to point autoscaler at the correct TimeSeries
# to scale upon. This is / called a global metric for the purpose of autoscaling.
# If not specified, the type defaults to gce_instance.
# You should provide a filter that is selective enough to pick just one
# TimeSeries for the autoscaled group or for each of the instances (if you are
# using gce_instance resource type). If multiple TimeSeries are returned upon
# the query execution, the autoscaler will sum their respective values to obtain
# its scaling value.
# Corresponds to the JSON property `filter`
# @return [String]
attr_accessor :filter
# The identifier (type) of the Stackdriver Monitoring metric. The metric cannot # The identifier (type) of the Stackdriver Monitoring metric. The metric cannot
# have negative values and should be a utilization metric, which means that the # have negative values and should be a utilization metric, which means that the
# number of virtual machines handling requests should increase or decrease # number of virtual machines handling requests should increase or decrease
@ -1365,6 +1394,21 @@ module Google
# @return [String] # @return [String]
attr_accessor :metric attr_accessor :metric
# If scaling is based on a global metric value that represents the total amount
# of work to be done or resource usage, set this value to an amount assigned for
# a single instance of the scaled group. Autoscaler will keep the number of
# instances proportional to the value of this metric, the metric itself should
# not change value due to group resizing.
# A good metric to use with the target is for example pubsub.googleapis.com/
# subscription/num_undelivered_messages or a custom metric exporting the total
# number of requests coming to your instances.
# A bad example would be a metric exporting an average or median latency, since
# this value can't include a chunk assignable to a single instance, it could be
# better used with utilization_target instead.
# Corresponds to the JSON property `singleInstanceAssignment`
# @return [Float]
attr_accessor :single_instance_assignment
# The target value of the metric that autoscaler should maintain. This must be a # The target value of the metric that autoscaler should maintain. This must be a
# positive value. # positive value.
# For example, a good metric to use as a utilization_target is compute. # For example, a good metric to use as a utilization_target is compute.
@ -1387,7 +1431,9 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@filter = args[:filter] if args.key?(:filter)
@metric = args[:metric] if args.key?(:metric) @metric = args[:metric] if args.key?(:metric)
@single_instance_assignment = args[:single_instance_assignment] if args.key?(:single_instance_assignment)
@utilization_target = args[:utilization_target] if args.key?(:utilization_target) @utilization_target = args[:utilization_target] if args.key?(:utilization_target)
@utilization_target_type = args[:utilization_target_type] if args.key?(:utilization_target_type) @utilization_target_type = args[:utilization_target_type] if args.key?(:utilization_target_type)
end end
@ -1682,7 +1728,8 @@ module Google
# The list of URLs to the HttpHealthCheck or HttpsHealthCheck resource for # The list of URLs to the HttpHealthCheck or HttpsHealthCheck resource for
# health checking this BackendService. Currently at most one health check can be # health checking this BackendService. Currently at most one health check can be
# specified, and a health check is required. # specified, and a health check is required for GCE backend services. A health
# check must not be specified for GAE app backend and Cloud Function backend.
# For internal load balancing, a URL to a HealthCheck resource must be specified # For internal load balancing, a URL to a HealthCheck resource must be specified
# instead. # instead.
# Corresponds to the JSON property `healthChecks` # Corresponds to the JSON property `healthChecks`
@ -3413,8 +3460,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :description attr_accessor :description
# Textual representation of an expression in [Common Expression Language](http:// # Textual representation of an expression in Common Expression Language syntax.
# go/api-expr) syntax.
# The application context of the containing message determines which well-known # The application context of the containing message determines which well-known
# feature set of CEL is supported. # feature set of CEL is supported.
# Corresponds to the JSON property `expression` # Corresponds to the JSON property `expression`
@ -3546,6 +3592,21 @@ module Google
# @return [Array<String>] # @return [Array<String>]
attr_accessor :source_ranges attr_accessor :source_ranges
# If source service accounts are specified, the firewall will apply only to
# traffic originating from an instance with a service account in this list.
# Source service accounts cannot be used to control traffic to an instance's
# external IP address because service accounts are associated with an instance,
# not an IP address. sourceRanges can be set at the same time as
# sourceServiceAccounts. If both are set, the firewall will apply to traffic
# that has source IP address within sourceRanges OR the source IP belongs to an
# instance with service account listed in sourceServiceAccount. The connection
# does not need to match both properties for the firewall to apply.
# sourceServiceAccounts cannot be used at the same time as sourceTags or
# targetTags.
# Corresponds to the JSON property `sourceServiceAccounts`
# @return [Array<String>]
attr_accessor :source_service_accounts
# If source tags are specified, the firewall will apply only to traffic with # If source tags are specified, the firewall will apply only to traffic with
# source IP that belongs to a tag listed in source tags. Source tags cannot be # source IP that belongs to a tag listed in source tags. Source tags cannot be
# used to control traffic to an instance's external IP address. Because tags are # used to control traffic to an instance's external IP address. Because tags are
@ -3558,6 +3619,15 @@ module Google
# @return [Array<String>] # @return [Array<String>]
attr_accessor :source_tags attr_accessor :source_tags
# A list of service accounts indicating sets of instances located in the network
# that may make network connections as specified in allowed[].
# targetServiceAccounts cannot be used at the same time as targetTags or
# sourceTags. If neither targetServiceAccounts nor targetTags are specified, the
# firewall rule applies to all instances on the specified network.
# Corresponds to the JSON property `targetServiceAccounts`
# @return [Array<String>]
attr_accessor :target_service_accounts
# A list of instance tags indicating sets of instances located in the network # A list of instance tags indicating sets of instances located in the network
# that may make network connections as specified in allowed[]. If no targetTags # that may make network connections as specified in allowed[]. If no targetTags
# are specified, the firewall rule applies to all instances on the specified # are specified, the firewall rule applies to all instances on the specified
@ -3585,7 +3655,9 @@ module Google
@priority = args[:priority] if args.key?(:priority) @priority = args[:priority] if args.key?(:priority)
@self_link = args[:self_link] if args.key?(:self_link) @self_link = args[:self_link] if args.key?(:self_link)
@source_ranges = args[:source_ranges] if args.key?(:source_ranges) @source_ranges = args[:source_ranges] if args.key?(:source_ranges)
@source_service_accounts = args[:source_service_accounts] if args.key?(:source_service_accounts)
@source_tags = args[:source_tags] if args.key?(:source_tags) @source_tags = args[:source_tags] if args.key?(:source_tags)
@target_service_accounts = args[:target_service_accounts] if args.key?(:target_service_accounts)
@target_tags = args[:target_tags] if args.key?(:target_tags) @target_tags = args[:target_tags] if args.key?(:target_tags)
end end
@ -5206,8 +5278,9 @@ module Google
# @return [Google::Apis::ComputeBeta::Metadata] # @return [Google::Apis::ComputeBeta::Metadata]
attr_accessor :metadata attr_accessor :metadata
# Minimum cpu/platform to be used by this instance. We may schedule on the # Specifies a minimum CPU platform for the VM instance. Applicable values are
# specified or later cpu/platform. # the friendly names of CPU platforms, such as minCpuPlatform: "Intel Haswell"
# or minCpuPlatform: "Intel Sandy Bridge".
# Corresponds to the JSON property `minCpuPlatform` # Corresponds to the JSON property `minCpuPlatform`
# @return [String] # @return [String]
attr_accessor :min_cpu_platform attr_accessor :min_cpu_platform
@ -6633,7 +6706,10 @@ module Google
attr_accessor :metadata attr_accessor :metadata
# Minimum cpu/platform to be used by this instance. The instance may be # Minimum cpu/platform to be used by this instance. The instance may be
# scheduled on the specified or later cpu/platform. # scheduled on the specified or newer cpu/platform. Applicable values are the
# friendly names of CPU platforms, such as minCpuPlatform: "Intel Haswell" or
# minCpuPlatform: "Intel Sandy Bridge". For more information, read Specifying a
# Minimum CPU Platform.
# Corresponds to the JSON property `minCpuPlatform` # Corresponds to the JSON property `minCpuPlatform`
# @return [String] # @return [String]
attr_accessor :min_cpu_platform attr_accessor :min_cpu_platform

View File

@ -2161,7 +2161,9 @@ module Google
class AutoscalingPolicyCustomMetricUtilization class AutoscalingPolicyCustomMetricUtilization
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :filter, as: 'filter'
property :metric, as: 'metric' property :metric, as: 'metric'
property :single_instance_assignment, as: 'singleInstanceAssignment'
property :utilization_target, as: 'utilizationTarget' property :utilization_target, as: 'utilizationTarget'
property :utilization_target_type, as: 'utilizationTargetType' property :utilization_target_type, as: 'utilizationTargetType'
end end
@ -2672,7 +2674,9 @@ module Google
property :priority, as: 'priority' property :priority, as: 'priority'
property :self_link, as: 'selfLink' property :self_link, as: 'selfLink'
collection :source_ranges, as: 'sourceRanges' collection :source_ranges, as: 'sourceRanges'
collection :source_service_accounts, as: 'sourceServiceAccounts'
collection :source_tags, as: 'sourceTags' collection :source_tags, as: 'sourceTags'
collection :target_service_accounts, as: 'targetServiceAccounts'
collection :target_tags, as: 'targetTags' collection :target_tags, as: 'targetTags'
end end

File diff suppressed because it is too large Load Diff

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 = '20170531' REVISION = '20170612'
# 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

@ -871,6 +871,18 @@ module Google
# @return [String] # @return [String]
attr_accessor :self_link attr_accessor :self_link
# [Output Only] The status of the autoscaler configuration.
# Corresponds to the JSON property `status`
# @return [String]
attr_accessor :status
# [Output Only] Human-readable details about the current state of the autoscaler.
# Read the documentation for Commonly returned status messages for examples of
# status messages you might encounter.
# Corresponds to the JSON property `statusDetails`
# @return [Array<Google::Apis::ComputeV1::AutoscalerStatusDetails>]
attr_accessor :status_details
# URL of the managed instance group that this autoscaler will scale. # URL of the managed instance group that this autoscaler will scale.
# Corresponds to the JSON property `target` # Corresponds to the JSON property `target`
# @return [String] # @return [String]
@ -896,6 +908,8 @@ module Google
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@region = args[:region] if args.key?(:region) @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)
@status = args[:status] if args.key?(:status)
@status_details = args[:status_details] if args.key?(:status_details)
@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)
end end
@ -999,6 +1013,31 @@ module Google
end end
end end
#
class AutoscalerStatusDetails
include Google::Apis::Core::Hashable
# The status message.
# Corresponds to the JSON property `message`
# @return [String]
attr_accessor :message
# The type of error returned.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@message = args[:message] if args.key?(:message)
@type = args[:type] if args.key?(:type)
end
end
# #
class AutoscalersScopedList class AutoscalersScopedList
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1507,7 +1546,8 @@ module Google
# The list of URLs to the HttpHealthCheck or HttpsHealthCheck resource for # The list of URLs to the HttpHealthCheck or HttpsHealthCheck resource for
# health checking this BackendService. Currently at most one health check can be # health checking this BackendService. Currently at most one health check can be
# specified, and a health check is required. # specified, and a health check is required for GCE backend services. A health
# check must not be specified for GAE app backend and Cloud Function backend.
# For internal load balancing, a URL to a HealthCheck resource must be specified # For internal load balancing, a URL to a HealthCheck resource must be specified
# instead. # instead.
# Corresponds to the JSON property `healthChecks` # Corresponds to the JSON property `healthChecks`
@ -1974,6 +2014,306 @@ module Google
end end
end end
# Represents a Commitment resource. Creating a Commitment resource means that
# you are purchasing a committed use contract with an explicit start and end
# time. You can create commitments based on vCPUs and memory usage and receive
# discounted rates. For full details, read Signing Up for Committed Use
# Discounts.
# Committed use discounts are subject to Google Cloud Platform's Service
# Specific Terms. By purchasing a committed use discount, you agree to these
# terms. Committed use discounts will not renew, so you must purchase a new
# commitment to continue receiving discounts.
class Commitment
include Google::Apis::Core::Hashable
# [Output Only] Creation timestamp in RFC3339 text format.
# Corresponds to the JSON property `creationTimestamp`
# @return [String]
attr_accessor :creation_timestamp
# An optional description of this resource. Provide this property when you
# create the resource.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# [Output Only] Commitment end time in RFC3339 text format.
# Corresponds to the JSON property `endTimestamp`
# @return [String]
attr_accessor :end_timestamp
# [Output Only] The unique identifier for the resource. This identifier is
# defined by the server.
# Corresponds to the JSON property `id`
# @return [Fixnum]
attr_accessor :id
# [Output Only] Type of the resource. Always compute#commitment for commitments.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Name of the resource. Provided by the client when the resource is created. The
# name must be 1-63 characters long, and comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a-
# z0-9]*[a-z0-9])? which means the first character must be a lowercase letter,
# and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The plan for this commitment, which determines duration and discount rate. The
# currently supported plans are TWELVE_MONTH (1 year), and THIRTY_SIX_MONTH (3
# years).
# Corresponds to the JSON property `plan`
# @return [String]
attr_accessor :plan
# [Output Only] URL of the region where this commitment may be used.
# Corresponds to the JSON property `region`
# @return [String]
attr_accessor :region
# List of commitment amounts for particular resources. Note that VCPU and MEMORY
# resource commitments must occur together.
# Corresponds to the JSON property `resources`
# @return [Array<Google::Apis::ComputeV1::ResourceCommitment>]
attr_accessor :resources
# [Output Only] Server-defined URL for the resource.
# Corresponds to the JSON property `selfLink`
# @return [String]
attr_accessor :self_link
# [Output Only] Commitment start time in RFC3339 text format.
# Corresponds to the JSON property `startTimestamp`
# @return [String]
attr_accessor :start_timestamp
# [Output Only] Status of the commitment with regards to eventual expiration (
# each commitment has an end date defined). One of the following values:
# NOT_YET_ACTIVE, ACTIVE, EXPIRED.
# Corresponds to the JSON property `status`
# @return [String]
attr_accessor :status
# [Output Only] An optional, human-readable explanation of the status.
# Corresponds to the JSON property `statusMessage`
# @return [String]
attr_accessor :status_message
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@description = args[:description] if args.key?(:description)
@end_timestamp = args[:end_timestamp] if args.key?(:end_timestamp)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
@plan = args[:plan] if args.key?(:plan)
@region = args[:region] if args.key?(:region)
@resources = args[:resources] if args.key?(:resources)
@self_link = args[:self_link] if args.key?(:self_link)
@start_timestamp = args[:start_timestamp] if args.key?(:start_timestamp)
@status = args[:status] if args.key?(:status)
@status_message = args[:status_message] if args.key?(:status_message)
end
end
#
class CommitmentAggregatedList
include Google::Apis::Core::Hashable
# [Output Only] The unique identifier for the resource. This identifier is
# defined by the server.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# Commitments by scope.
# Corresponds to the JSON property `items`
# @return [Hash<String,Google::Apis::ComputeV1::CommitmentsScopedList>]
attr_accessor :items
# [Output Only] Type of resource. Always compute#commitmentAggregatedList for
# aggregated lists of commitments.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# [Output Only] This token allows you to get the next page of results for list
# requests. If the number of results is larger than maxResults, use the
# nextPageToken as a value for the query parameter pageToken in the next list
# request. Subsequent list requests will have their own nextPageToken to
# continue paging through the results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# [Output Only] Server-defined URL for this resource.
# Corresponds to the JSON property `selfLink`
# @return [String]
attr_accessor :self_link
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@id = args[:id] if args.key?(:id)
@items = args[:items] if args.key?(:items)
@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)
end
end
# Contains a list of Commitment resources.
class CommitmentList
include Google::Apis::Core::Hashable
# [Output Only] The unique identifier for the resource. This identifier is
# defined by the server.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# A list of Commitment resources.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::ComputeV1::Commitment>]
attr_accessor :items
# [Output Only] Type of resource. Always compute#commitmentList for lists of
# commitments.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# [Output Only] This token allows you to get the next page of results for list
# requests. If the number of results is larger than maxResults, use the
# nextPageToken as a value for the query parameter pageToken in the next list
# request. Subsequent list requests will have their own nextPageToken to
# continue paging through the results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# [Output Only] Server-defined URL for this resource.
# Corresponds to the JSON property `selfLink`
# @return [String]
attr_accessor :self_link
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@id = args[:id] if args.key?(:id)
@items = args[:items] if args.key?(:items)
@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)
end
end
#
class CommitmentsScopedList
include Google::Apis::Core::Hashable
# [Output Only] List of commitments contained in this scope.
# Corresponds to the JSON property `commitments`
# @return [Array<Google::Apis::ComputeV1::Commitment>]
attr_accessor :commitments
# [Output Only] Informational warning which replaces the list of commitments
# when the list is empty.
# Corresponds to the JSON property `warning`
# @return [Google::Apis::ComputeV1::CommitmentsScopedList::Warning]
attr_accessor :warning
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@commitments = args[:commitments] if args.key?(:commitments)
@warning = args[:warning] if args.key?(:warning)
end
# [Output Only] Informational warning which replaces the list of commitments
# when the list is empty.
class Warning
include Google::Apis::Core::Hashable
# [Output Only] A warning code, if applicable. For example, Compute Engine
# returns NO_RESULTS_ON_PAGE if there are no results in the response.
# Corresponds to the JSON property `code`
# @return [String]
attr_accessor :code
# [Output Only] Metadata about this warning in key: value format. For example:
# "data": [ ` "key": "scope", "value": "zones/us-east1-d" `
# Corresponds to the JSON property `data`
# @return [Array<Google::Apis::ComputeV1::CommitmentsScopedList::Warning::Datum>]
attr_accessor :data
# [Output Only] A human-readable description of the warning code.
# Corresponds to the JSON property `message`
# @return [String]
attr_accessor :message
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@code = args[:code] if args.key?(:code)
@data = args[:data] if args.key?(:data)
@message = args[:message] if args.key?(:message)
end
#
class Datum
include Google::Apis::Core::Hashable
# [Output Only] A key that provides more detail on the warning being returned.
# For example, for warnings where there are no results in a list request for a
# particular zone, this key might be scope and the key value might be the zone
# name. Other examples might be a key indicating a deprecated resource and a
# suggested replacement, or a warning about invalid network settings (for
# example, if an instance attempts to perform IP forwarding but is not enabled
# for IP forwarding).
# Corresponds to the JSON property `key`
# @return [String]
attr_accessor :key
# [Output Only] A warning data value corresponding to the key.
# 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
# Message containing connection draining configuration. # Message containing connection draining configuration.
class ConnectionDraining class ConnectionDraining
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -8278,6 +8618,36 @@ module Google
end end
end end
# Commitment for a particular resource (a Commitment is composed of one or more
# of these).
class ResourceCommitment
include Google::Apis::Core::Hashable
# The amount of the resource purchased (in a type-dependent unit, such as bytes).
# For vCPUs, this can just be an integer. For memory, this must be provided in
# MB. Memory must be a multiple of 256 MB, with up to 6.5GB of memory per every
# vCPU.
# Corresponds to the JSON property `amount`
# @return [Fixnum]
attr_accessor :amount
# Type of resource for which this commitment applies. Possible values are VCPU
# and MEMORY
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@amount = args[:amount] if args.key?(:amount)
@type = args[:type] if args.key?(:type)
end
end
# #
class ResourceGroupReference class ResourceGroupReference
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -136,6 +136,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class AutoscalerStatusDetails
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AutoscalersScopedList class AutoscalersScopedList
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -262,6 +268,42 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class Commitment
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CommitmentAggregatedList
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CommitmentList
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CommitmentsScopedList
class Representation < Google::Apis::Core::JsonRepresentation; end
class Warning
class Representation < Google::Apis::Core::JsonRepresentation; end
class Datum
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class ConnectionDraining class ConnectionDraining
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1084,6 +1126,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ResourceCommitment
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ResourceGroupReference class ResourceGroupReference
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1847,6 +1895,9 @@ module Google
property :name, as: 'name' property :name, as: 'name'
property :region, as: 'region' property :region, as: 'region'
property :self_link, as: 'selfLink' property :self_link, as: 'selfLink'
property :status, as: 'status'
collection :status_details, as: 'statusDetails', class: Google::Apis::ComputeV1::AutoscalerStatusDetails, decorator: Google::Apis::ComputeV1::AutoscalerStatusDetails::Representation
property :target, as: 'target' property :target, as: 'target'
property :zone, as: 'zone' property :zone, as: 'zone'
end end
@ -1876,6 +1927,14 @@ module Google
end end
end end
class AutoscalerStatusDetails
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :message, as: 'message'
property :type, as: 'type'
end
end
class AutoscalersScopedList class AutoscalersScopedList
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -2112,6 +2171,78 @@ module Google
end end
end end
class Commitment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :creation_timestamp, as: 'creationTimestamp'
property :description, as: 'description'
property :end_timestamp, as: 'endTimestamp'
property :id, :numeric_string => true, as: 'id'
property :kind, as: 'kind'
property :name, as: 'name'
property :plan, as: 'plan'
property :region, as: 'region'
collection :resources, as: 'resources', class: Google::Apis::ComputeV1::ResourceCommitment, decorator: Google::Apis::ComputeV1::ResourceCommitment::Representation
property :self_link, as: 'selfLink'
property :start_timestamp, as: 'startTimestamp'
property :status, as: 'status'
property :status_message, as: 'statusMessage'
end
end
class CommitmentAggregatedList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
hash :items, as: 'items', class: Google::Apis::ComputeV1::CommitmentsScopedList, decorator: Google::Apis::ComputeV1::CommitmentsScopedList::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :self_link, as: 'selfLink'
end
end
class CommitmentList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
collection :items, as: 'items', class: Google::Apis::ComputeV1::Commitment, decorator: Google::Apis::ComputeV1::Commitment::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :self_link, as: 'selfLink'
end
end
class CommitmentsScopedList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :commitments, as: 'commitments', class: Google::Apis::ComputeV1::Commitment, decorator: Google::Apis::ComputeV1::Commitment::Representation
property :warning, as: 'warning', class: Google::Apis::ComputeV1::CommitmentsScopedList::Warning, decorator: Google::Apis::ComputeV1::CommitmentsScopedList::Warning::Representation
end
class Warning
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :data, as: 'data', class: Google::Apis::ComputeV1::CommitmentsScopedList::Warning::Datum, decorator: Google::Apis::ComputeV1::CommitmentsScopedList::Warning::Datum::Representation
property :message, as: 'message'
end
class Datum
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :key, as: 'key'
property :value, as: 'value'
end
end
end
end
class ConnectionDraining class ConnectionDraining
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -3659,6 +3790,14 @@ module Google
end end
end end
class ResourceCommitment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :amount, :numeric_string => true, as: 'amount'
property :type, as: 'type'
end
end
class ResourceGroupReference class ResourceGroupReference
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -810,7 +810,8 @@ module Google
end end
# Updates an 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 and uses the JSON merge patch
# format and processing rules.
# @param [String] project # @param [String] project
# Project ID for this request. # Project ID for this request.
# @param [String] zone # @param [String] zone
@ -1093,7 +1094,8 @@ module Google
end end
# Updates the specified BackendBucket resource with the data included in the # Updates the specified BackendBucket resource with the data included in the
# request. This method supports patch semantics. # request. This method supports PATCH semantics and uses the JSON merge patch
# format and processing rules.
# @param [String] project # @param [String] project
# Project ID for this request. # Project ID for this request.
# @param [String] backend_bucket # @param [String] backend_bucket
@ -1491,7 +1493,8 @@ module Google
# Patches the specified BackendService resource with the data included in the # Patches the specified BackendService resource with the data included in the
# request. There are several restrictions and guidelines to keep in mind when # request. There are several restrictions and guidelines to keep in mind when
# updating a backend service. Read Restrictions and Guidelines for more # updating a backend service. Read Restrictions and Guidelines for more
# information. This method supports patch semantics. # information. This method supports PATCH semantics and uses the JSON merge
# patch format and processing rules.
# @param [String] project # @param [String] project
# Project ID for this request. # Project ID for this request.
# @param [String] backend_service # @param [String] backend_service
@ -3645,7 +3648,8 @@ module Google
end end
# Updates a HealthCheck resource in the specified project using the data # Updates a HealthCheck resource in the specified project using the data
# included in the request. This method supports patch semantics. # included in the request. This method supports PATCH semantics and uses the
# JSON merge patch format and processing rules.
# @param [String] project # @param [String] project
# Project ID for this request. # Project ID for this request.
# @param [String] health_check # @param [String] health_check
@ -3922,7 +3926,8 @@ module Google
end end
# Updates a HttpHealthCheck resource in the specified project using the data # Updates a HttpHealthCheck resource in the specified project using the data
# included in the request. This method supports patch semantics. # included in the request. This method supports PATCH semantics and uses the
# JSON merge patch format and processing rules.
# @param [String] project # @param [String] project
# Project ID for this request. # Project ID for this request.
# @param [String] http_health_check # @param [String] http_health_check
@ -4199,7 +4204,8 @@ module Google
end end
# Updates a HttpsHealthCheck resource in the specified project using the data # Updates a HttpsHealthCheck resource in the specified project using the data
# included in the request. This method supports patch semantics. # included in the request. This method supports PATCH semantics and uses the
# JSON merge patch format and processing rules.
# @param [String] project # @param [String] project
# Project ID for this request. # Project ID for this request.
# @param [String] https_health_check # @param [String] https_health_check
@ -8226,7 +8232,8 @@ module Google
end end
# Updates an 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 and uses the JSON merge patch
# format and processing rules.
# @param [String] project # @param [String] project
# Project ID for this request. # Project ID for this request.
# @param [String] region # @param [String] region
@ -8567,7 +8574,8 @@ module Google
# Updates the specified regional BackendService resource with the data included # Updates the specified regional BackendService resource with the data included
# in the request. There are several restrictions and guidelines to keep in mind # in the request. There are several restrictions and guidelines to keep in mind
# when updating a backend service. Read Restrictions and Guidelines for more # when updating a backend service. Read Restrictions and Guidelines for more
# information. This method supports patch semantics. # information. This method supports PATCH semantics and uses the JSON merge
# patch format and processing rules.
# @param [String] project # @param [String] project
# Project ID for this request. # Project ID for this request.
# @param [String] region # @param [String] region
@ -8658,6 +8666,245 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Retrieves an aggregated list of commitments.
# @param [String] project
# Project ID for this request.
# @param [String] filter
# Sets a filter `expression` for filtering listed resources. Your `expression`
# must be in the format: field_name comparison_string literal_string.
# The field_name is the name of the field you want to compare. Only atomic field
# types are supported (string, number, boolean). The comparison_string must be
# either eq (equals) or ne (not equals). The literal_string is the string value
# to filter to. The literal value must be valid for the type of field you are
# filtering by (string, number, boolean). For string fields, the literal value
# is interpreted as a regular expression using RE2 syntax. The literal value
# must match the entire field.
# For example, to filter for instances that do not have a name of example-
# instance, you would use name ne example-instance.
# You can filter on nested fields. For example, you could filter on instances
# that have set the scheduling.automaticRestart field to true. Use filtering on
# nested fields to take advantage of labels to organize and search for results
# based on label values.
# To filter on multiple expressions, provide each separate expression within
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
# central1-f). Multiple expressions are treated as AND expressions, meaning that
# resources must match all expressions to pass the filters.
# @param [Fixnum] max_results
# The maximum number of results per page that should be returned. If the number
# of available results is larger than maxResults, Compute Engine returns a
# nextPageToken that can be used to get the next page of results in subsequent
# list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
# @param [String] order_by
# Sorts list results by a certain order. By default, results are returned in
# alphanumerical order based on the resource name.
# You can also sort results in descending order based on the creation timestamp
# using orderBy="creationTimestamp desc". This sorts results based on the
# creationTimestamp field in reverse chronological order (newest result first).
# Use this to sort resources like operations so that the newest operation is
# returned first.
# Currently, only sorting by name or creationTimestamp desc is supported.
# @param [String] page_token
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
# a previous list request to get the next page of results.
# @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::ComputeV1::CommitmentAggregatedList] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::CommitmentAggregatedList]
#
# @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 aggregated_region_commitment_list(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/aggregated/commitments', options)
command.response_representation = Google::Apis::ComputeV1::CommitmentAggregatedList::Representation
command.response_class = Google::Apis::ComputeV1::CommitmentAggregatedList
command.params['project'] = project unless project.nil?
command.query['filter'] = filter unless filter.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['orderBy'] = order_by unless order_by.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['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Returns the specified commitment resource. Get a list of available commitments
# by making a list() request.
# @param [String] project
# Project ID for this request.
# @param [String] region
# Name of the region for this request.
# @param [String] commitment
# Name of the commitment to return.
# @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::ComputeV1::Commitment] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::Commitment]
#
# @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_region_commitment(project, region, commitment, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/regions/{region}/commitments/{commitment}', options)
command.response_representation = Google::Apis::ComputeV1::Commitment::Representation
command.response_class = Google::Apis::ComputeV1::Commitment
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.params['commitment'] = commitment unless commitment.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
# Creates a commitment in the specified project using the data included in the
# request.
# @param [String] project
# Project ID for this request.
# @param [String] region
# Name of the region for this request.
# @param [Google::Apis::ComputeV1::Commitment] commitment_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::ComputeV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::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 insert_region_commitment(project, region, commitment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/regions/{region}/commitments', options)
command.request_representation = Google::Apis::ComputeV1::Commitment::Representation
command.request_object = commitment_object
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
command.response_class = Google::Apis::ComputeV1::Operation
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.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
# Retrieves a list of commitments contained within the specified region.
# @param [String] project
# Project ID for this request.
# @param [String] region
# Name of the region for this request.
# @param [String] filter
# Sets a filter `expression` for filtering listed resources. Your `expression`
# must be in the format: field_name comparison_string literal_string.
# The field_name is the name of the field you want to compare. Only atomic field
# types are supported (string, number, boolean). The comparison_string must be
# either eq (equals) or ne (not equals). The literal_string is the string value
# to filter to. The literal value must be valid for the type of field you are
# filtering by (string, number, boolean). For string fields, the literal value
# is interpreted as a regular expression using RE2 syntax. The literal value
# must match the entire field.
# For example, to filter for instances that do not have a name of example-
# instance, you would use name ne example-instance.
# You can filter on nested fields. For example, you could filter on instances
# that have set the scheduling.automaticRestart field to true. Use filtering on
# nested fields to take advantage of labels to organize and search for results
# based on label values.
# To filter on multiple expressions, provide each separate expression within
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
# central1-f). Multiple expressions are treated as AND expressions, meaning that
# resources must match all expressions to pass the filters.
# @param [Fixnum] max_results
# The maximum number of results per page that should be returned. If the number
# of available results is larger than maxResults, Compute Engine returns a
# nextPageToken that can be used to get the next page of results in subsequent
# list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
# @param [String] order_by
# Sorts list results by a certain order. By default, results are returned in
# alphanumerical order based on the resource name.
# You can also sort results in descending order based on the creation timestamp
# using orderBy="creationTimestamp desc". This sorts results based on the
# creationTimestamp field in reverse chronological order (newest result first).
# Use this to sort resources like operations so that the newest operation is
# returned first.
# Currently, only sorting by name or creationTimestamp desc is supported.
# @param [String] page_token
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
# a previous list request to get the next page of results.
# @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::ComputeV1::CommitmentList] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::CommitmentList]
#
# @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_region_commitments(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/regions/{region}/commitments', options)
command.response_representation = Google::Apis::ComputeV1::CommitmentList::Representation
command.response_class = Google::Apis::ComputeV1::CommitmentList
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.query['filter'] = filter unless filter.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['orderBy'] = order_by unless order_by.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['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Schedules a group action to remove the specified instances from the managed # Schedules a group action to remove the specified instances from the managed
# instance group. Abandoning an instance does not delete the instance, but it # instance group. Abandoning an instance does not delete the instance, but it
# does remove the instance from any target pools that are applied by the managed # does remove the instance from any target pools that are applied by the managed
@ -13604,7 +13851,8 @@ module Google
end end
# Patches the specified UrlMap resource with the data included in the request. # Patches the specified UrlMap resource with the data included in the request.
# This method supports patch semantics. # This method supports PATCH semantics and uses the JSON merge patch format and
# processing rules.
# @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

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/container-engine/ # @see https://cloud.google.com/container-engine/
module ContainerV1 module ContainerV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20170609' REVISION = '20170627'
# 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'

File diff suppressed because it is too large Load Diff

View File

@ -22,6 +22,72 @@ module Google
module Apis module Apis
module ContainerV1 module ContainerV1
class SetLocationsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RollbackNodePoolUpgradeRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SetNodePoolSizeRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UpdateClusterRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class NetworkPolicy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UpdateMasterRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Cluster
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CreateNodePoolRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListOperationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SetMonitoringServiceRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ServerConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MasterAuth class MasterAuth
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -52,13 +118,13 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class NodePoolAutoscaling class ClientCertificateConfig
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 ClientCertificateConfig class NodePoolAutoscaling
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
@ -70,25 +136,49 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class SetNetworkPolicyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ClusterUpdate class ClusterUpdate
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 IpAllocationPolicy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SetLoggingServiceRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class HorizontalPodAutoscaling class HorizontalPodAutoscaling
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 Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SetNodePoolManagementRequest class SetNodePoolManagementRequest
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 SetNodePoolAutoscalingRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
@ -118,13 +208,19 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class UpdateNodePoolRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LegacyAbac class LegacyAbac
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 SetLabelsRequest class SetAddonsConfigRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
@ -136,6 +232,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class SetLabelsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class NodeManagement class NodeManagement
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -166,64 +268,147 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class RollbackNodePoolUpgradeRequest class SetLocationsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :locations, as: 'locations'
end
end
include Google::Apis::Core::JsonObjectSupport class RollbackNodePoolUpgradeRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end end
class SetNodePoolSizeRequest class SetNodePoolSizeRequest
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
include Google::Apis::Core::JsonObjectSupport property :node_count, as: 'nodeCount'
end
end end
class UpdateClusterRequest class UpdateClusterRequest
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
property :update, as: 'update', class: Google::Apis::ContainerV1::ClusterUpdate, decorator: Google::Apis::ContainerV1::ClusterUpdate::Representation
include Google::Apis::Core::JsonObjectSupport end
end
class NetworkPolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :enabled, as: 'enabled'
property :provider, as: 'provider'
end
end
class UpdateMasterRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :master_version, as: 'masterVersion'
end
end end
class Cluster class Cluster
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
property :current_master_version, as: 'currentMasterVersion'
property :node_config, as: 'nodeConfig', class: Google::Apis::ContainerV1::NodeConfig, decorator: Google::Apis::ContainerV1::NodeConfig::Representation
include Google::Apis::Core::JsonObjectSupport property :addons_config, as: 'addonsConfig', class: Google::Apis::ContainerV1::AddonsConfig, decorator: Google::Apis::ContainerV1::AddonsConfig::Representation
property :status, as: 'status'
property :current_node_version, as: 'currentNodeVersion'
property :subnetwork, as: 'subnetwork'
property :name, as: 'name'
hash :resource_labels, as: 'resourceLabels'
property :initial_cluster_version, as: 'initialClusterVersion'
property :ip_allocation_policy, as: 'ipAllocationPolicy', class: Google::Apis::ContainerV1::IpAllocationPolicy, decorator: Google::Apis::ContainerV1::IpAllocationPolicy::Representation
property :legacy_abac, as: 'legacyAbac', class: Google::Apis::ContainerV1::LegacyAbac, decorator: Google::Apis::ContainerV1::LegacyAbac::Representation
property :endpoint, as: 'endpoint'
property :create_time, as: 'createTime'
property :cluster_ipv4_cidr, as: 'clusterIpv4Cidr'
property :initial_node_count, as: 'initialNodeCount'
collection :node_pools, as: 'nodePools', class: Google::Apis::ContainerV1::NodePool, decorator: Google::Apis::ContainerV1::NodePool::Representation
collection :locations, as: 'locations'
property :self_link, as: 'selfLink'
collection :instance_group_urls, as: 'instanceGroupUrls'
property :services_ipv4_cidr, as: 'servicesIpv4Cidr'
property :network_policy, as: 'networkPolicy', class: Google::Apis::ContainerV1::NetworkPolicy, decorator: Google::Apis::ContainerV1::NetworkPolicy::Representation
property :enable_kubernetes_alpha, as: 'enableKubernetesAlpha'
property :description, as: 'description'
property :current_node_count, as: 'currentNodeCount'
property :monitoring_service, as: 'monitoringService'
property :network, as: 'network'
property :label_fingerprint, as: 'labelFingerprint'
property :zone, as: 'zone'
property :node_ipv4_cidr_size, as: 'nodeIpv4CidrSize'
property :logging_service, as: 'loggingService'
property :expire_time, as: 'expireTime'
property :status_message, as: 'statusMessage'
property :master_auth, as: 'masterAuth', class: Google::Apis::ContainerV1::MasterAuth, decorator: Google::Apis::ContainerV1::MasterAuth::Representation
end
end end
class CreateNodePoolRequest class CreateNodePoolRequest
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
property :node_pool, as: 'nodePool', class: Google::Apis::ContainerV1::NodePool, decorator: Google::Apis::ContainerV1::NodePool::Representation
include Google::Apis::Core::JsonObjectSupport end
end end
class ListOperationsResponse class ListOperationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :operations, as: 'operations', class: Google::Apis::ContainerV1::Operation, decorator: Google::Apis::ContainerV1::Operation::Representation
include Google::Apis::Core::JsonObjectSupport collection :missing_zones, as: 'missingZones'
end
end
class SetMonitoringServiceRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :monitoring_service, as: 'monitoringService'
end
end end
class ServerConfig class ServerConfig
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
include Google::Apis::Core::JsonObjectSupport collection :valid_master_versions, as: 'validMasterVersions'
property :default_image_type, as: 'defaultImageType'
property :default_cluster_version, as: 'defaultClusterVersion'
collection :valid_image_types, as: 'validImageTypes'
collection :valid_node_versions, as: 'validNodeVersions'
end
end end
class MasterAuth class MasterAuth
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :client_certificate, as: 'clientCertificate'
property :username, as: 'username'
property :password, as: 'password' property :password, as: 'password'
property :client_certificate_config, as: 'clientCertificateConfig', class: Google::Apis::ContainerV1::ClientCertificateConfig, decorator: Google::Apis::ContainerV1::ClientCertificateConfig::Representation property :client_certificate_config, as: 'clientCertificateConfig', class: Google::Apis::ContainerV1::ClientCertificateConfig, decorator: Google::Apis::ContainerV1::ClientCertificateConfig::Representation
property :client_key, as: 'clientKey' property :client_key, as: 'clientKey'
property :cluster_ca_certificate, as: 'clusterCaCertificate' property :cluster_ca_certificate, as: 'clusterCaCertificate'
property :client_certificate, as: 'clientCertificate'
property :username, as: 'username'
end end
end end
class NodeConfig class NodeConfig
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :preemptible, as: 'preemptible'
hash :labels, as: 'labels' hash :labels, as: 'labels'
property :local_ssd_count, as: 'localSsdCount' property :local_ssd_count, as: 'localSsdCount'
hash :metadata, as: 'metadata' hash :metadata, as: 'metadata'
@ -233,7 +418,6 @@ module Google
property :machine_type, as: 'machineType' property :machine_type, as: 'machineType'
property :image_type, as: 'imageType' property :image_type, as: 'imageType'
collection :oauth_scopes, as: 'oauthScopes' collection :oauth_scopes, as: 'oauthScopes'
property :preemptible, as: 'preemptible'
end end
end end
@ -248,9 +432,9 @@ module Google
class ListClustersResponse class ListClustersResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
collection :missing_zones, as: 'missingZones'
collection :clusters, as: 'clusters', class: Google::Apis::ContainerV1::Cluster, decorator: Google::Apis::ContainerV1::Cluster::Representation collection :clusters, as: 'clusters', class: Google::Apis::ContainerV1::Cluster, decorator: Google::Apis::ContainerV1::Cluster::Representation
collection :missing_zones, as: 'missingZones'
end end
end end
@ -261,15 +445,6 @@ module Google
end end
end end
class NodePoolAutoscaling
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :enabled, as: 'enabled'
property :max_node_count, as: 'maxNodeCount'
property :min_node_count, as: 'minNodeCount'
end
end
class ClientCertificateConfig class ClientCertificateConfig
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -277,6 +452,15 @@ module Google
end end
end end
class NodePoolAutoscaling
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :max_node_count, as: 'maxNodeCount'
property :min_node_count, as: 'minNodeCount'
property :enabled, as: 'enabled'
end
end
class SetMasterAuthRequest class SetMasterAuthRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -286,19 +470,46 @@ module Google
end end
end end
class SetNetworkPolicyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :network_policy, as: 'networkPolicy', class: Google::Apis::ContainerV1::NetworkPolicy, decorator: Google::Apis::ContainerV1::NetworkPolicy::Representation
end
end
class ClusterUpdate class ClusterUpdate
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
collection :desired_locations, as: 'desiredLocations'
property :desired_node_pool_autoscaling, as: 'desiredNodePoolAutoscaling', class: Google::Apis::ContainerV1::NodePoolAutoscaling, decorator: Google::Apis::ContainerV1::NodePoolAutoscaling::Representation
property :desired_monitoring_service, as: 'desiredMonitoringService'
property :desired_image_type, as: 'desiredImageType' property :desired_image_type, as: 'desiredImageType'
property :desired_addons_config, as: 'desiredAddonsConfig', class: Google::Apis::ContainerV1::AddonsConfig, decorator: Google::Apis::ContainerV1::AddonsConfig::Representation property :desired_addons_config, as: 'desiredAddonsConfig', class: Google::Apis::ContainerV1::AddonsConfig, decorator: Google::Apis::ContainerV1::AddonsConfig::Representation
property :desired_node_pool_id, as: 'desiredNodePoolId' property :desired_node_pool_id, as: 'desiredNodePoolId'
property :desired_node_version, as: 'desiredNodeVersion' property :desired_node_version, as: 'desiredNodeVersion'
property :desired_master_version, as: 'desiredMasterVersion' property :desired_master_version, as: 'desiredMasterVersion'
property :desired_node_pool_autoscaling, as: 'desiredNodePoolAutoscaling', class: Google::Apis::ContainerV1::NodePoolAutoscaling, decorator: Google::Apis::ContainerV1::NodePoolAutoscaling::Representation end
end
collection :desired_locations, as: 'desiredLocations' class IpAllocationPolicy
property :desired_monitoring_service, as: 'desiredMonitoringService' # @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_subnetwork, as: 'createSubnetwork'
property :use_ip_aliases, as: 'useIpAliases'
property :subnetwork_name, as: 'subnetworkName'
property :cluster_ipv4_cidr, as: 'clusterIpv4Cidr'
property :node_ipv4_cidr, as: 'nodeIpv4Cidr'
property :services_ipv4_cidr, as: 'servicesIpv4Cidr'
end
end
class SetLoggingServiceRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :logging_service, as: 'loggingService'
end end
end end
@ -309,6 +520,12 @@ module Google
end end
end end
class Empty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class SetNodePoolManagementRequest class SetNodePoolManagementRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -317,9 +534,11 @@ module Google
end end
end end
class Empty class SetNodePoolAutoscalingRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :autoscaling, as: 'autoscaling', class: Google::Apis::ContainerV1::NodePoolAutoscaling, decorator: Google::Apis::ContainerV1::NodePoolAutoscaling::Representation
end end
end end
@ -351,6 +570,14 @@ module Google
end end
end end
class UpdateNodePoolRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :image_type, as: 'imageType'
property :node_version, as: 'nodeVersion'
end
end
class LegacyAbac class LegacyAbac
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -358,20 +585,17 @@ module Google
end end
end end
class SetLabelsRequest class SetAddonsConfigRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
hash :resource_labels, as: 'resourceLabels' property :addons_config, as: 'addonsConfig', class: Google::Apis::ContainerV1::AddonsConfig, decorator: Google::Apis::ContainerV1::AddonsConfig::Representation
property :label_fingerprint, as: 'labelFingerprint'
end end
end end
class NodePool class NodePool
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :status, as: 'status'
property :config, as: 'config', class: Google::Apis::ContainerV1::NodeConfig, decorator: Google::Apis::ContainerV1::NodeConfig::Representation
property :name, as: 'name' property :name, as: 'name'
property :status_message, as: 'statusMessage' property :status_message, as: 'statusMessage'
property :autoscaling, as: 'autoscaling', class: Google::Apis::ContainerV1::NodePoolAutoscaling, decorator: Google::Apis::ContainerV1::NodePoolAutoscaling::Representation property :autoscaling, as: 'autoscaling', class: Google::Apis::ContainerV1::NodePoolAutoscaling, decorator: Google::Apis::ContainerV1::NodePoolAutoscaling::Representation
@ -382,14 +606,25 @@ module Google
property :self_link, as: 'selfLink' property :self_link, as: 'selfLink'
property :version, as: 'version' property :version, as: 'version'
collection :instance_group_urls, as: 'instanceGroupUrls' collection :instance_group_urls, as: 'instanceGroupUrls'
property :status, as: 'status'
property :config, as: 'config', class: Google::Apis::ContainerV1::NodeConfig, decorator: Google::Apis::ContainerV1::NodeConfig::Representation
end
end
class SetLabelsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :label_fingerprint, as: 'labelFingerprint'
hash :resource_labels, as: 'resourceLabels'
end end
end end
class NodeManagement class NodeManagement
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :auto_upgrade, as: 'autoUpgrade'
property :auto_repair, as: 'autoRepair' property :auto_repair, as: 'autoRepair'
property :auto_upgrade, as: 'autoUpgrade'
property :upgrade_options, as: 'upgradeOptions', class: Google::Apis::ContainerV1::AutoUpgradeOptions, decorator: Google::Apis::ContainerV1::AutoUpgradeOptions::Representation property :upgrade_options, as: 'upgradeOptions', class: Google::Apis::ContainerV1::AutoUpgradeOptions, decorator: Google::Apis::ContainerV1::AutoUpgradeOptions::Representation
end end
@ -411,14 +646,14 @@ module Google
class Operation class Operation
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :zone, as: 'zone'
property :status, as: 'status' property :status, as: 'status'
property :name, as: 'name'
property :status_message, as: 'statusMessage' property :status_message, as: 'statusMessage'
property :name, as: 'name'
property :self_link, as: 'selfLink' property :self_link, as: 'selfLink'
property :target_link, as: 'targetLink' property :target_link, as: 'targetLink'
property :detail, as: 'detail' property :detail, as: 'detail'
property :operation_type, as: 'operationType' property :operation_type, as: 'operationType'
property :zone, as: 'zone'
end end
end end
@ -431,97 +666,6 @@ module Google
end end
end end
class RollbackNodePoolUpgradeRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class SetNodePoolSizeRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :node_count, as: 'nodeCount'
end
end
class UpdateClusterRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :update, as: 'update', class: Google::Apis::ContainerV1::ClusterUpdate, decorator: Google::Apis::ContainerV1::ClusterUpdate::Representation
end
end
class Cluster
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :network, as: 'network'
property :label_fingerprint, as: 'labelFingerprint'
property :zone, as: 'zone'
property :node_ipv4_cidr_size, as: 'nodeIpv4CidrSize'
property :expire_time, as: 'expireTime'
property :logging_service, as: 'loggingService'
property :status_message, as: 'statusMessage'
property :master_auth, as: 'masterAuth', class: Google::Apis::ContainerV1::MasterAuth, decorator: Google::Apis::ContainerV1::MasterAuth::Representation
property :current_master_version, as: 'currentMasterVersion'
property :node_config, as: 'nodeConfig', class: Google::Apis::ContainerV1::NodeConfig, decorator: Google::Apis::ContainerV1::NodeConfig::Representation
property :addons_config, as: 'addonsConfig', class: Google::Apis::ContainerV1::AddonsConfig, decorator: Google::Apis::ContainerV1::AddonsConfig::Representation
property :status, as: 'status'
property :current_node_version, as: 'currentNodeVersion'
property :subnetwork, as: 'subnetwork'
hash :resource_labels, as: 'resourceLabels'
property :name, as: 'name'
property :initial_cluster_version, as: 'initialClusterVersion'
property :endpoint, as: 'endpoint'
property :legacy_abac, as: 'legacyAbac', class: Google::Apis::ContainerV1::LegacyAbac, decorator: Google::Apis::ContainerV1::LegacyAbac::Representation
property :create_time, as: 'createTime'
property :cluster_ipv4_cidr, as: 'clusterIpv4Cidr'
property :initial_node_count, as: 'initialNodeCount'
collection :node_pools, as: 'nodePools', class: Google::Apis::ContainerV1::NodePool, decorator: Google::Apis::ContainerV1::NodePool::Representation
collection :locations, as: 'locations'
property :self_link, as: 'selfLink'
collection :instance_group_urls, as: 'instanceGroupUrls'
property :services_ipv4_cidr, as: 'servicesIpv4Cidr'
property :enable_kubernetes_alpha, as: 'enableKubernetesAlpha'
property :description, as: 'description'
property :current_node_count, as: 'currentNodeCount'
property :monitoring_service, as: 'monitoringService'
end
end
class CreateNodePoolRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :node_pool, as: 'nodePool', class: Google::Apis::ContainerV1::NodePool, decorator: Google::Apis::ContainerV1::NodePool::Representation
end
end
class ListOperationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :operations, as: 'operations', class: Google::Apis::ContainerV1::Operation, decorator: Google::Apis::ContainerV1::Operation::Representation
collection :missing_zones, as: 'missingZones'
end
end
class ServerConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :valid_master_versions, as: 'validMasterVersions'
property :default_cluster_version, as: 'defaultClusterVersion'
property :default_image_type, as: 'defaultImageType'
collection :valid_node_versions, as: 'validNodeVersions'
collection :valid_image_types, as: 'validImageTypes'
end
end
end end
end end
end end

View File

@ -83,17 +83,17 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Start master IP rotation. # Updates the settings of a specific cluster.
# @param [String] project_id # @param [String] project_id
# The Google Developers Console [project ID or project # The Google Developers Console [project ID or project
# number](https://developers.google.com/console/help/new/#projectnumber). # number](https://support.google.com/cloud/answer/6158840).
# @param [String] zone # @param [String] zone
# The name of the Google Compute Engine # The name of the Google Compute Engine
# [zone](/compute/docs/zones#available) in which the cluster # [zone](/compute/docs/zones#available) in which the cluster
# resides. # resides.
# @param [String] cluster_id # @param [String] cluster_id
# The name of the cluster. # The name of the cluster to upgrade.
# @param [Google::Apis::ContainerV1::StartIpRotationRequest] start_ip_rotation_request_object # @param [Google::Apis::ContainerV1::UpdateClusterRequest] update_cluster_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
@ -111,10 +111,94 @@ 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 start_cluster_ip_rotation(project_id, zone, cluster_id, start_ip_rotation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) def update_cluster(project_id, zone, cluster_id, update_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:startIpRotation', options) command = make_simple_command(:put, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}', options)
command.request_representation = Google::Apis::ContainerV1::StartIpRotationRequest::Representation command.request_representation = Google::Apis::ContainerV1::UpdateClusterRequest::Representation
command.request_object = start_ip_rotation_request_object command.request_object = update_cluster_request_object
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
command.response_class = Google::Apis::ContainerV1::Operation
command.params['projectId'] = project_id unless project_id.nil?
command.params['zone'] = zone unless zone.nil?
command.params['clusterId'] = cluster_id unless cluster_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
# Sets the monitoring service of a specific cluster.
# @param [String] project_id
# The Google Developers Console [project ID or project
# number](https://support.google.com/cloud/answer/6158840).
# @param [String] zone
# The name of the Google Compute Engine
# [zone](/compute/docs/zones#available) in which the cluster
# resides.
# @param [String] cluster_id
# The name of the cluster to upgrade.
# @param [Google::Apis::ContainerV1::SetMonitoringServiceRequest] set_monitoring_service_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::ContainerV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContainerV1::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 monitoring_project_zone_cluster(project_id, zone, cluster_id, set_monitoring_service_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/monitoring', options)
command.request_representation = Google::Apis::ContainerV1::SetMonitoringServiceRequest::Representation
command.request_object = set_monitoring_service_request_object
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
command.response_class = Google::Apis::ContainerV1::Operation
command.params['projectId'] = project_id unless project_id.nil?
command.params['zone'] = zone unless zone.nil?
command.params['clusterId'] = cluster_id unless cluster_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
# Updates the master of a specific cluster.
# @param [String] project_id
# The Google Developers Console [project ID or project
# number](https://support.google.com/cloud/answer/6158840).
# @param [String] zone
# The name of the Google Compute Engine
# [zone](/compute/docs/zones#available) in which the cluster
# resides.
# @param [String] cluster_id
# The name of the cluster to upgrade.
# @param [Google::Apis::ContainerV1::UpdateMasterRequest] update_master_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::ContainerV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContainerV1::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 master_project_zone_cluster(project_id, zone, cluster_id, update_master_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/master', options)
command.request_representation = Google::Apis::ContainerV1::UpdateMasterRequest::Representation
command.request_object = update_master_request_object
command.response_representation = Google::Apis::ContainerV1::Operation::Representation command.response_representation = Google::Apis::ContainerV1::Operation::Representation
command.response_class = Google::Apis::ContainerV1::Operation command.response_class = Google::Apis::ContainerV1::Operation
command.params['projectId'] = project_id unless project_id.nil? command.params['projectId'] = project_id unless project_id.nil?
@ -169,13 +253,7 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Deletes the cluster, including the Kubernetes endpoint and all worker # Sets the logging service of a specific cluster.
# nodes.
# Firewalls and routes that were configured during cluster creation
# are also deleted.
# Other Google Compute Engine resources that might be in use by the cluster
# (e.g. load balancer resources) will not be deleted if they weren't present
# at the initial create time.
# @param [String] project_id # @param [String] project_id
# The Google Developers Console [project ID or project # The Google Developers Console [project ID or project
# number](https://support.google.com/cloud/answer/6158840). # number](https://support.google.com/cloud/answer/6158840).
@ -184,7 +262,8 @@ module Google
# [zone](/compute/docs/zones#available) in which the cluster # [zone](/compute/docs/zones#available) in which the cluster
# resides. # resides.
# @param [String] cluster_id # @param [String] cluster_id
# The name of the cluster to delete. # The name of the cluster to upgrade.
# @param [Google::Apis::ContainerV1::SetLoggingServiceRequest] set_logging_service_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
@ -202,8 +281,10 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_zone_cluster(project_id, zone, cluster_id, fields: nil, quota_user: nil, options: nil, &block) def logging_project_zone_cluster(project_id, zone, cluster_id, set_logging_service_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}', options) command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/logging', options)
command.request_representation = Google::Apis::ContainerV1::SetLoggingServiceRequest::Representation
command.request_object = set_logging_service_request_object
command.response_representation = Google::Apis::ContainerV1::Operation::Representation command.response_representation = Google::Apis::ContainerV1::Operation::Representation
command.response_class = Google::Apis::ContainerV1::Operation command.response_class = Google::Apis::ContainerV1::Operation
command.params['projectId'] = project_id unless project_id.nil? command.params['projectId'] = project_id unless project_id.nil?
@ -251,6 +332,48 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Sets labels on a cluster.
# @param [String] project_id
# The Google Developers Console [project ID or project
# number](https://developers.google.com/console/help/new/#projectnumber).
# @param [String] zone
# The name of the Google Compute Engine
# [zone](/compute/docs/zones#available) in which the cluster
# resides.
# @param [String] cluster_id
# The name of the cluster.
# @param [Google::Apis::ContainerV1::SetLabelsRequest] set_labels_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::ContainerV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContainerV1::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 resource_project_zone_cluster_labels(project_id, zone, cluster_id, set_labels_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/resourceLabels', options)
command.request_representation = Google::Apis::ContainerV1::SetLabelsRequest::Representation
command.request_object = set_labels_request_object
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
command.response_class = Google::Apis::ContainerV1::Operation
command.params['projectId'] = project_id unless project_id.nil?
command.params['zone'] = zone unless zone.nil?
command.params['clusterId'] = cluster_id unless cluster_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 cluster, consisting of the specified number and type of Google # Creates a cluster, consisting of the specified number and type of Google
# Compute Engine instances. # Compute Engine instances.
# By default, the cluster is created in the project's # By default, the cluster is created in the project's
@ -299,48 +422,6 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Sets labels on a cluster.
# @param [String] project_id
# The Google Developers Console [project ID or project
# number](https://developers.google.com/console/help/new/#projectnumber).
# @param [String] zone
# The name of the Google Compute Engine
# [zone](/compute/docs/zones#available) in which the cluster
# resides.
# @param [String] cluster_id
# The name of the cluster.
# @param [Google::Apis::ContainerV1::SetLabelsRequest] set_labels_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::ContainerV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContainerV1::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 resource_project_zone_cluster_labels(project_id, zone, cluster_id, set_labels_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/resourceLabels', options)
command.request_representation = Google::Apis::ContainerV1::SetLabelsRequest::Representation
command.request_object = set_labels_request_object
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
command.response_class = Google::Apis::ContainerV1::Operation
command.params['projectId'] = project_id unless project_id.nil?
command.params['zone'] = zone unless zone.nil?
command.params['clusterId'] = cluster_id unless cluster_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
# Completes master IP rotation. # Completes master IP rotation.
# @param [String] project_id # @param [String] project_id
# The Google Developers Console [project ID or project # The Google Developers Console [project ID or project
@ -464,17 +545,17 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Updates the settings of a specific cluster. # Enables/Disables Network Policy for a cluster.
# @param [String] project_id # @param [String] project_id
# The Google Developers Console [project ID or project # The Google Developers Console [project ID or project
# number](https://support.google.com/cloud/answer/6158840). # number](https://developers.google.com/console/help/new/#projectnumber).
# @param [String] zone # @param [String] zone
# The name of the Google Compute Engine # The name of the Google Compute Engine
# [zone](/compute/docs/zones#available) in which the cluster # [zone](/compute/docs/zones#available) in which the cluster
# resides. # resides.
# @param [String] cluster_id # @param [String] cluster_id
# The name of the cluster to upgrade. # The name of the cluster.
# @param [Google::Apis::ContainerV1::UpdateClusterRequest] update_cluster_request_object # @param [Google::Apis::ContainerV1::SetNetworkPolicyRequest] set_network_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.
# @param [String] quota_user # @param [String] quota_user
@ -492,10 +573,10 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def update_cluster(project_id, zone, cluster_id, update_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) def set_cluster_network_policy(project_id, zone, cluster_id, set_network_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:put, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}', options) command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setNetworkPolicy', options)
command.request_representation = Google::Apis::ContainerV1::UpdateClusterRequest::Representation command.request_representation = Google::Apis::ContainerV1::SetNetworkPolicyRequest::Representation
command.request_object = update_cluster_request_object command.request_object = set_network_policy_request_object
command.response_representation = Google::Apis::ContainerV1::Operation::Representation command.response_representation = Google::Apis::ContainerV1::Operation::Representation
command.response_class = Google::Apis::ContainerV1::Operation command.response_class = Google::Apis::ContainerV1::Operation
command.params['projectId'] = project_id unless project_id.nil? command.params['projectId'] = project_id unless project_id.nil?
@ -506,6 +587,436 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Start master IP rotation.
# @param [String] project_id
# The Google Developers Console [project ID or project
# number](https://developers.google.com/console/help/new/#projectnumber).
# @param [String] zone
# The name of the Google Compute Engine
# [zone](/compute/docs/zones#available) in which the cluster
# resides.
# @param [String] cluster_id
# The name of the cluster.
# @param [Google::Apis::ContainerV1::StartIpRotationRequest] start_ip_rotation_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::ContainerV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContainerV1::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 start_cluster_ip_rotation(project_id, zone, cluster_id, start_ip_rotation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:startIpRotation', options)
command.request_representation = Google::Apis::ContainerV1::StartIpRotationRequest::Representation
command.request_object = start_ip_rotation_request_object
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
command.response_class = Google::Apis::ContainerV1::Operation
command.params['projectId'] = project_id unless project_id.nil?
command.params['zone'] = zone unless zone.nil?
command.params['clusterId'] = cluster_id unless cluster_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
# Sets the addons of a specific cluster.
# @param [String] project_id
# The Google Developers Console [project ID or project
# number](https://support.google.com/cloud/answer/6158840).
# @param [String] zone
# The name of the Google Compute Engine
# [zone](/compute/docs/zones#available) in which the cluster
# resides.
# @param [String] cluster_id
# The name of the cluster to upgrade.
# @param [Google::Apis::ContainerV1::SetAddonsConfigRequest] set_addons_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::ContainerV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContainerV1::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 addons_project_zone_cluster(project_id, zone, cluster_id, set_addons_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/addons', options)
command.request_representation = Google::Apis::ContainerV1::SetAddonsConfigRequest::Representation
command.request_object = set_addons_config_request_object
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
command.response_class = Google::Apis::ContainerV1::Operation
command.params['projectId'] = project_id unless project_id.nil?
command.params['zone'] = zone unless zone.nil?
command.params['clusterId'] = cluster_id unless cluster_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
# Deletes the cluster, including the Kubernetes endpoint and all worker
# nodes.
# Firewalls and routes that were configured during cluster creation
# are also deleted.
# Other Google Compute Engine resources that might be in use by the cluster
# (e.g. load balancer resources) will not be deleted if they weren't present
# at the initial create time.
# @param [String] project_id
# The Google Developers Console [project ID or project
# number](https://support.google.com/cloud/answer/6158840).
# @param [String] zone
# The name of the Google Compute Engine
# [zone](/compute/docs/zones#available) in which the cluster
# resides.
# @param [String] cluster_id
# The name of the cluster to delete.
# @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::ContainerV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContainerV1::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 delete_zone_cluster(project_id, zone, cluster_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}', options)
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
command.response_class = Google::Apis::ContainerV1::Operation
command.params['projectId'] = project_id unless project_id.nil?
command.params['zone'] = zone unless zone.nil?
command.params['clusterId'] = cluster_id unless cluster_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
# Sets the locations of a specific cluster.
# @param [String] project_id
# The Google Developers Console [project ID or project
# number](https://support.google.com/cloud/answer/6158840).
# @param [String] zone
# The name of the Google Compute Engine
# [zone](/compute/docs/zones#available) in which the cluster
# resides.
# @param [String] cluster_id
# The name of the cluster to upgrade.
# @param [Google::Apis::ContainerV1::SetLocationsRequest] set_locations_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::ContainerV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContainerV1::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 locations_project_zone_cluster(project_id, zone, cluster_id, set_locations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/locations', options)
command.request_representation = Google::Apis::ContainerV1::SetLocationsRequest::Representation
command.request_object = set_locations_request_object
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
command.response_class = Google::Apis::ContainerV1::Operation
command.params['projectId'] = project_id unless project_id.nil?
command.params['zone'] = zone unless zone.nil?
command.params['clusterId'] = cluster_id unless cluster_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
# Lists the node pools for a cluster.
# @param [String] project_id
# The Google Developers Console [project ID or project
# number](https://developers.google.com/console/help/new/#projectnumber).
# @param [String] zone
# The name of the Google Compute Engine
# [zone](/compute/docs/zones#available) in which the cluster
# resides.
# @param [String] cluster_id
# The name of the cluster.
# @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::ContainerV1::ListNodePoolsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContainerV1::ListNodePoolsResponse]
#
# @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_zone_cluster_node_pools(project_id, zone, cluster_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools', options)
command.response_representation = Google::Apis::ContainerV1::ListNodePoolsResponse::Representation
command.response_class = Google::Apis::ContainerV1::ListNodePoolsResponse
command.params['projectId'] = project_id unless project_id.nil?
command.params['zone'] = zone unless zone.nil?
command.params['clusterId'] = cluster_id unless cluster_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
# Roll back the previously Aborted or Failed NodePool upgrade.
# This will be an no-op if the last upgrade successfully completed.
# @param [String] project_id
# The Google Developers Console [project ID or project
# number](https://support.google.com/cloud/answer/6158840).
# @param [String] zone
# The name of the Google Compute Engine
# [zone](/compute/docs/zones#available) in which the cluster
# resides.
# @param [String] cluster_id
# The name of the cluster to rollback.
# @param [String] node_pool_id
# The name of the node pool to rollback.
# @param [Google::Apis::ContainerV1::RollbackNodePoolUpgradeRequest] rollback_node_pool_upgrade_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::ContainerV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContainerV1::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 rollback_node_pool_upgrade(project_id, zone, cluster_id, node_pool_id, rollback_node_pool_upgrade_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback', options)
command.request_representation = Google::Apis::ContainerV1::RollbackNodePoolUpgradeRequest::Representation
command.request_object = rollback_node_pool_upgrade_request_object
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
command.response_class = Google::Apis::ContainerV1::Operation
command.params['projectId'] = project_id unless project_id.nil?
command.params['zone'] = zone unless zone.nil?
command.params['clusterId'] = cluster_id unless cluster_id.nil?
command.params['nodePoolId'] = node_pool_id unless node_pool_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 node pool for a cluster.
# @param [String] project_id
# The Google Developers Console [project ID or project
# number](https://developers.google.com/console/help/new/#projectnumber).
# @param [String] zone
# The name of the Google Compute Engine
# [zone](/compute/docs/zones#available) in which the cluster
# resides.
# @param [String] cluster_id
# The name of the cluster.
# @param [Google::Apis::ContainerV1::CreateNodePoolRequest] create_node_pool_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::ContainerV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContainerV1::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_node_pool(project_id, zone, cluster_id, create_node_pool_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools', options)
command.request_representation = Google::Apis::ContainerV1::CreateNodePoolRequest::Representation
command.request_object = create_node_pool_request_object
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
command.response_class = Google::Apis::ContainerV1::Operation
command.params['projectId'] = project_id unless project_id.nil?
command.params['zone'] = zone unless zone.nil?
command.params['clusterId'] = cluster_id unless cluster_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
# Sets the autoscaling settings of a specific node pool.
# @param [String] project_id
# The Google Developers Console [project ID or project
# number](https://support.google.com/cloud/answer/6158840).
# @param [String] zone
# The name of the Google Compute Engine
# [zone](/compute/docs/zones#available) in which the cluster
# resides.
# @param [String] cluster_id
# The name of the cluster to upgrade.
# @param [String] node_pool_id
# The name of the node pool to upgrade.
# @param [Google::Apis::ContainerV1::SetNodePoolAutoscalingRequest] set_node_pool_autoscaling_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::ContainerV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContainerV1::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 autoscaling_project_zone_cluster_node_pool(project_id, zone, cluster_id, node_pool_id, set_node_pool_autoscaling_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/autoscaling', options)
command.request_representation = Google::Apis::ContainerV1::SetNodePoolAutoscalingRequest::Representation
command.request_object = set_node_pool_autoscaling_request_object
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
command.response_class = Google::Apis::ContainerV1::Operation
command.params['projectId'] = project_id unless project_id.nil?
command.params['zone'] = zone unless zone.nil?
command.params['clusterId'] = cluster_id unless cluster_id.nil?
command.params['nodePoolId'] = node_pool_id unless node_pool_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
# Retrieves the node pool requested.
# @param [String] project_id
# The Google Developers Console [project ID or project
# number](https://developers.google.com/console/help/new/#projectnumber).
# @param [String] zone
# The name of the Google Compute Engine
# [zone](/compute/docs/zones#available) in which the cluster
# resides.
# @param [String] cluster_id
# The name of the cluster.
# @param [String] node_pool_id
# The name of the node pool.
# @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::ContainerV1::NodePool] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContainerV1::NodePool]
#
# @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_zone_cluster_node_pool(project_id, zone, cluster_id, node_pool_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}', options)
command.response_representation = Google::Apis::ContainerV1::NodePool::Representation
command.response_class = Google::Apis::ContainerV1::NodePool
command.params['projectId'] = project_id unless project_id.nil?
command.params['zone'] = zone unless zone.nil?
command.params['clusterId'] = cluster_id unless cluster_id.nil?
command.params['nodePoolId'] = node_pool_id unless node_pool_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
# Updates the version and/or image type of a specific node pool.
# @param [String] project_id
# The Google Developers Console [project ID or project
# number](https://support.google.com/cloud/answer/6158840).
# @param [String] zone
# The name of the Google Compute Engine
# [zone](/compute/docs/zones#available) in which the cluster
# resides.
# @param [String] cluster_id
# The name of the cluster to upgrade.
# @param [String] node_pool_id
# The name of the node pool to upgrade.
# @param [Google::Apis::ContainerV1::UpdateNodePoolRequest] update_node_pool_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::ContainerV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContainerV1::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_node_pool(project_id, zone, cluster_id, node_pool_id, update_node_pool_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/update', options)
command.request_representation = Google::Apis::ContainerV1::UpdateNodePoolRequest::Representation
command.request_object = update_node_pool_request_object
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
command.response_class = Google::Apis::ContainerV1::Operation
command.params['projectId'] = project_id unless project_id.nil?
command.params['zone'] = zone unless zone.nil?
command.params['clusterId'] = cluster_id unless cluster_id.nil?
command.params['nodePoolId'] = node_pool_id unless node_pool_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
# Deletes a node pool from a cluster. # Deletes a node pool from a cluster.
# @param [String] project_id # @param [String] project_id
# The Google Developers Console [project ID or project # The Google Developers Console [project ID or project
@ -638,47 +1149,7 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Lists the node pools for a cluster. # Gets the specified operation.
# @param [String] project_id
# The Google Developers Console [project ID or project
# number](https://developers.google.com/console/help/new/#projectnumber).
# @param [String] zone
# The name of the Google Compute Engine
# [zone](/compute/docs/zones#available) in which the cluster
# resides.
# @param [String] cluster_id
# The name of the cluster.
# @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::ContainerV1::ListNodePoolsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContainerV1::ListNodePoolsResponse]
#
# @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_zone_cluster_node_pools(project_id, zone, cluster_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools', options)
command.response_representation = Google::Apis::ContainerV1::ListNodePoolsResponse::Representation
command.response_class = Google::Apis::ContainerV1::ListNodePoolsResponse
command.params['projectId'] = project_id unless project_id.nil?
command.params['zone'] = zone unless zone.nil?
command.params['clusterId'] = cluster_id unless cluster_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
# Roll back the previously Aborted or Failed NodePool upgrade.
# This will be an no-op if the last upgrade successfully completed.
# @param [String] project_id # @param [String] project_id
# The Google Developers Console [project ID or project # The Google Developers Console [project ID or project
# number](https://support.google.com/cloud/answer/6158840). # number](https://support.google.com/cloud/answer/6158840).
@ -686,11 +1157,8 @@ module Google
# The name of the Google Compute Engine # The name of the Google Compute Engine
# [zone](/compute/docs/zones#available) in which the cluster # [zone](/compute/docs/zones#available) in which the cluster
# resides. # resides.
# @param [String] cluster_id # @param [String] operation_id
# The name of the cluster to rollback. # The server-assigned `name` of the operation.
# @param [String] node_pool_id
# The name of the node pool to rollback.
# @param [Google::Apis::ContainerV1::RollbackNodePoolUpgradeRequest] rollback_node_pool_upgrade_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
@ -708,32 +1176,25 @@ 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 rollback_node_pool_upgrade(project_id, zone, cluster_id, node_pool_id, rollback_node_pool_upgrade_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) def get_zone_operation(project_id, zone, operation_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback', options) command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/operations/{operationId}', options)
command.request_representation = Google::Apis::ContainerV1::RollbackNodePoolUpgradeRequest::Representation
command.request_object = rollback_node_pool_upgrade_request_object
command.response_representation = Google::Apis::ContainerV1::Operation::Representation command.response_representation = Google::Apis::ContainerV1::Operation::Representation
command.response_class = Google::Apis::ContainerV1::Operation command.response_class = Google::Apis::ContainerV1::Operation
command.params['projectId'] = project_id unless project_id.nil? command.params['projectId'] = project_id unless project_id.nil?
command.params['zone'] = zone unless zone.nil? command.params['zone'] = zone unless zone.nil?
command.params['clusterId'] = cluster_id unless cluster_id.nil? command.params['operationId'] = operation_id unless operation_id.nil?
command.params['nodePoolId'] = node_pool_id unless node_pool_id.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 node pool for a cluster. # Lists all operations in a project in a specific zone or all zones.
# @param [String] project_id # @param [String] project_id
# The Google Developers Console [project ID or project # The Google Developers Console [project ID or project
# number](https://developers.google.com/console/help/new/#projectnumber). # number](https://support.google.com/cloud/answer/6158840).
# @param [String] zone # @param [String] zone
# The name of the Google Compute Engine # The name of the Google Compute Engine [zone](/compute/docs/zones#available)
# [zone](/compute/docs/zones#available) in which the cluster # to return operations for, or `-` for all zones.
# resides.
# @param [String] cluster_id
# The name of the cluster.
# @param [Google::Apis::ContainerV1::CreateNodePoolRequest] create_node_pool_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
@ -743,65 +1204,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 [Google::Apis::ContainerV1::Operation] parsed result object # @yieldparam result [Google::Apis::ContainerV1::ListOperationsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed # @yieldparam err [StandardError] error object if request failed
# #
# @return [Google::Apis::ContainerV1::Operation] # @return [Google::Apis::ContainerV1::ListOperationsResponse]
# #
# @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_node_pool(project_id, zone, cluster_id, create_node_pool_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) def list_zone_operations(project_id, zone, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools', options) command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/operations', options)
command.request_representation = Google::Apis::ContainerV1::CreateNodePoolRequest::Representation command.response_representation = Google::Apis::ContainerV1::ListOperationsResponse::Representation
command.request_object = create_node_pool_request_object command.response_class = Google::Apis::ContainerV1::ListOperationsResponse
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
command.response_class = Google::Apis::ContainerV1::Operation
command.params['projectId'] = project_id unless project_id.nil? command.params['projectId'] = project_id unless project_id.nil?
command.params['zone'] = zone unless zone.nil? command.params['zone'] = zone unless zone.nil?
command.params['clusterId'] = cluster_id unless cluster_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
# Retrieves the node pool requested.
# @param [String] project_id
# The Google Developers Console [project ID or project
# number](https://developers.google.com/console/help/new/#projectnumber).
# @param [String] zone
# The name of the Google Compute Engine
# [zone](/compute/docs/zones#available) in which the cluster
# resides.
# @param [String] cluster_id
# The name of the cluster.
# @param [String] node_pool_id
# The name of the node pool.
# @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::ContainerV1::NodePool] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContainerV1::NodePool]
#
# @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_zone_cluster_node_pool(project_id, zone, cluster_id, node_pool_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}', options)
command.response_representation = Google::Apis::ContainerV1::NodePool::Representation
command.response_class = Google::Apis::ContainerV1::NodePool
command.params['projectId'] = project_id unless project_id.nil?
command.params['zone'] = zone unless zone.nil?
command.params['clusterId'] = cluster_id unless cluster_id.nil?
command.params['nodePoolId'] = node_pool_id unless node_pool_id.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)
@ -847,80 +1263,6 @@ module Google
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
# Lists all operations in a project in a specific zone or all zones.
# @param [String] project_id
# The Google Developers Console [project ID or project
# number](https://support.google.com/cloud/answer/6158840).
# @param [String] zone
# The name of the Google Compute Engine [zone](/compute/docs/zones#available)
# to return operations for, or `-` for all zones.
# @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::ContainerV1::ListOperationsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContainerV1::ListOperationsResponse]
#
# @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_zone_operations(project_id, zone, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/operations', options)
command.response_representation = Google::Apis::ContainerV1::ListOperationsResponse::Representation
command.response_class = Google::Apis::ContainerV1::ListOperationsResponse
command.params['projectId'] = project_id unless project_id.nil?
command.params['zone'] = zone unless zone.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 specified operation.
# @param [String] project_id
# The Google Developers Console [project ID or project
# number](https://support.google.com/cloud/answer/6158840).
# @param [String] zone
# The name of the Google Compute Engine
# [zone](/compute/docs/zones#available) in which the cluster
# resides.
# @param [String] operation_id
# The server-assigned `name` of the operation.
# @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::ContainerV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContainerV1::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_zone_operation(project_id, zone, operation_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/operations/{operationId}', options)
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
command.response_class = Google::Apis::ContainerV1::Operation
command.params['projectId'] = project_id unless project_id.nil?
command.params['zone'] = zone unless zone.nil?
command.params['operationId'] = operation_id unless operation_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 protected

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 = '20170531' REVISION = '20170627'
# 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

@ -87,7 +87,9 @@ module Google
end end
# Claims the website of a Merchant Center sub-account. This method can only be # Claims the website of a Merchant Center sub-account. This method can only be
# called for multi-client accounts. # called for accounts to which the managing account has access: either the
# managing account itself or sub-accounts if the managing account is a multi-
# client account.
# @param [Fixnum] merchant_id # @param [Fixnum] merchant_id
# The ID of the managing account. # The ID of the managing account.
# @param [Fixnum] account_id # @param [Fixnum] account_id

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/custom-search/v1/using_rest # @see https://developers.google.com/custom-search/v1/using_rest
module CustomsearchV1 module CustomsearchV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20170530' REVISION = '20170615'
end end
end end
end end

View File

@ -25,10 +25,7 @@ module Google
# @see https://cloud.google.com/dataflow # @see https://cloud.google.com/dataflow
module DataflowV1b3 module DataflowV1b3
VERSION = 'V1b3' VERSION = 'V1b3'
REVISION = '20170610' REVISION = '20170701'
# View and manage your Google Compute Engine resources
AUTH_COMPUTE = 'https://www.googleapis.com/auth/compute'
# 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'
@ -38,6 +35,9 @@ module Google
# View your Google Compute Engine resources # View your Google Compute Engine resources
AUTH_COMPUTE_READONLY = 'https://www.googleapis.com/auth/compute.readonly' AUTH_COMPUTE_READONLY = 'https://www.googleapis.com/auth/compute.readonly'
# View and manage your Google Compute Engine resources
AUTH_COMPUTE = 'https://www.googleapis.com/auth/compute'
end end
end end
end end

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/dataproc/ # @see https://cloud.google.com/dataproc/
module DataprocV1 module DataprocV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20170606' REVISION = '20170707'
# 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'

File diff suppressed because it is too large Load Diff

View File

@ -22,7 +22,25 @@ module Google
module Apis module Apis
module DataprocV1 module DataprocV1
class JobScheduling class Operation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class JobReference
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SubmitJobRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Status
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
@ -34,7 +52,7 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ListJobsResponse class JobScheduling
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
@ -46,6 +64,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ListJobsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CancelJobRequest class CancelJobRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -221,33 +245,39 @@ module Google
end end
class Operation class Operation
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :error, as: 'error', class: Google::Apis::DataprocV1::Status, decorator: Google::Apis::DataprocV1::Status::Representation
include Google::Apis::Core::JsonObjectSupport hash :metadata, as: 'metadata'
property :done, as: 'done'
hash :response, as: 'response'
end
end end
class JobReference class JobReference
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
include Google::Apis::Core::JsonObjectSupport property :job_id, as: 'jobId'
property :project_id, as: 'projectId'
end
end end
class SubmitJobRequest class SubmitJobRequest
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
property :job, as: 'job', class: Google::Apis::DataprocV1::Job, decorator: Google::Apis::DataprocV1::Job::Representation
include Google::Apis::Core::JsonObjectSupport end
end end
class Status class Status
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class JobScheduling
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :max_failures_per_hour, as: 'maxFailuresPerHour' property :code, as: 'code'
property :message, as: 'message'
collection :details, as: 'details'
end end
end end
@ -268,12 +298,10 @@ module Google
end end
end end
class ListJobsResponse class JobScheduling
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken' property :max_failures_per_hour, as: 'maxFailuresPerHour'
collection :jobs, as: 'jobs', class: Google::Apis::DataprocV1::Job, decorator: Google::Apis::DataprocV1::Job::Representation
end end
end end
@ -285,6 +313,15 @@ module Google
end end
end end
class ListJobsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :jobs, as: 'jobs', class: Google::Apis::DataprocV1::Job, decorator: Google::Apis::DataprocV1::Job::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class CancelJobRequest class CancelJobRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -294,9 +331,9 @@ module Google
class SparkSqlJob class SparkSqlJob
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :query_file_uri, as: 'queryFileUri'
property :query_list, as: 'queryList', class: Google::Apis::DataprocV1::QueryList, decorator: Google::Apis::DataprocV1::QueryList::Representation property :query_list, as: 'queryList', class: Google::Apis::DataprocV1::QueryList, decorator: Google::Apis::DataprocV1::QueryList::Representation
property :query_file_uri, as: 'queryFileUri'
hash :script_variables, as: 'scriptVariables' hash :script_variables, as: 'scriptVariables'
collection :jar_file_uris, as: 'jarFileUris' collection :jar_file_uris, as: 'jarFileUris'
property :logging_config, as: 'loggingConfig', class: Google::Apis::DataprocV1::LoggingConfig, decorator: Google::Apis::DataprocV1::LoggingConfig::Representation property :logging_config, as: 'loggingConfig', class: Google::Apis::DataprocV1::LoggingConfig, decorator: Google::Apis::DataprocV1::LoggingConfig::Representation
@ -309,16 +346,16 @@ module Google
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
hash :labels, as: 'labels' hash :labels, as: 'labels'
property :status, as: 'status', class: Google::Apis::DataprocV1::ClusterStatus, decorator: Google::Apis::DataprocV1::ClusterStatus::Representation
property :metrics, as: 'metrics', class: Google::Apis::DataprocV1::ClusterMetrics, decorator: Google::Apis::DataprocV1::ClusterMetrics::Representation property :metrics, as: 'metrics', class: Google::Apis::DataprocV1::ClusterMetrics, decorator: Google::Apis::DataprocV1::ClusterMetrics::Representation
property :status, as: 'status', class: Google::Apis::DataprocV1::ClusterStatus, decorator: Google::Apis::DataprocV1::ClusterStatus::Representation
collection :status_history, as: 'statusHistory', class: Google::Apis::DataprocV1::ClusterStatus, decorator: Google::Apis::DataprocV1::ClusterStatus::Representation collection :status_history, as: 'statusHistory', class: Google::Apis::DataprocV1::ClusterStatus, decorator: Google::Apis::DataprocV1::ClusterStatus::Representation
property :config, as: 'config', class: Google::Apis::DataprocV1::ClusterConfig, decorator: Google::Apis::DataprocV1::ClusterConfig::Representation property :config, as: 'config', class: Google::Apis::DataprocV1::ClusterConfig, decorator: Google::Apis::DataprocV1::ClusterConfig::Representation
property :cluster_name, as: 'clusterName'
property :cluster_uuid, as: 'clusterUuid' property :cluster_uuid, as: 'clusterUuid'
property :cluster_name, as: 'clusterName'
property :project_id, as: 'projectId' property :project_id, as: 'projectId'
end end
end end
@ -326,9 +363,9 @@ module Google
class ListOperationsResponse class ListOperationsResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :operations, as: 'operations', class: Google::Apis::DataprocV1::Operation, decorator: Google::Apis::DataprocV1::Operation::Representation collection :operations, as: 'operations', class: Google::Apis::DataprocV1::Operation, decorator: Google::Apis::DataprocV1::Operation::Representation
property :next_page_token, as: 'nextPageToken'
end end
end end
@ -361,15 +398,15 @@ module Google
class PigJob class PigJob
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :continue_on_failure, as: 'continueOnFailure'
property :query_list, as: 'queryList', class: Google::Apis::DataprocV1::QueryList, decorator: Google::Apis::DataprocV1::QueryList::Representation
property :query_file_uri, as: 'queryFileUri'
collection :jar_file_uris, as: 'jarFileUris' collection :jar_file_uris, as: 'jarFileUris'
hash :script_variables, as: 'scriptVariables' hash :script_variables, as: 'scriptVariables'
property :logging_config, as: 'loggingConfig', class: Google::Apis::DataprocV1::LoggingConfig, decorator: Google::Apis::DataprocV1::LoggingConfig::Representation property :logging_config, as: 'loggingConfig', class: Google::Apis::DataprocV1::LoggingConfig, decorator: Google::Apis::DataprocV1::LoggingConfig::Representation
hash :properties, as: 'properties' hash :properties, as: 'properties'
property :continue_on_failure, as: 'continueOnFailure'
property :query_file_uri, as: 'queryFileUri'
property :query_list, as: 'queryList', class: Google::Apis::DataprocV1::QueryList, decorator: Google::Apis::DataprocV1::QueryList::Representation
end end
end end
@ -385,6 +422,16 @@ module Google
class Job class Job
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :hive_job, as: 'hiveJob', class: Google::Apis::DataprocV1::HiveJob, decorator: Google::Apis::DataprocV1::HiveJob::Representation
hash :labels, as: 'labels'
property :driver_output_resource_uri, as: 'driverOutputResourceUri'
property :spark_sql_job, as: 'sparkSqlJob', class: Google::Apis::DataprocV1::SparkSqlJob, decorator: Google::Apis::DataprocV1::SparkSqlJob::Representation
collection :status_history, as: 'statusHistory', class: Google::Apis::DataprocV1::JobStatus, decorator: Google::Apis::DataprocV1::JobStatus::Representation
property :spark_job, as: 'sparkJob', class: Google::Apis::DataprocV1::SparkJob, decorator: Google::Apis::DataprocV1::SparkJob::Representation
collection :yarn_applications, as: 'yarnApplications', class: Google::Apis::DataprocV1::YarnApplication, decorator: Google::Apis::DataprocV1::YarnApplication::Representation collection :yarn_applications, as: 'yarnApplications', class: Google::Apis::DataprocV1::YarnApplication, decorator: Google::Apis::DataprocV1::YarnApplication::Representation
property :pyspark_job, as: 'pysparkJob', class: Google::Apis::DataprocV1::PySparkJob, decorator: Google::Apis::DataprocV1::PySparkJob::Representation property :pyspark_job, as: 'pysparkJob', class: Google::Apis::DataprocV1::PySparkJob, decorator: Google::Apis::DataprocV1::PySparkJob::Representation
@ -402,24 +449,12 @@ module Google
property :pig_job, as: 'pigJob', class: Google::Apis::DataprocV1::PigJob, decorator: Google::Apis::DataprocV1::PigJob::Representation property :pig_job, as: 'pigJob', class: Google::Apis::DataprocV1::PigJob, decorator: Google::Apis::DataprocV1::PigJob::Representation
property :hive_job, as: 'hiveJob', class: Google::Apis::DataprocV1::HiveJob, decorator: Google::Apis::DataprocV1::HiveJob::Representation
hash :labels, as: 'labels'
property :driver_output_resource_uri, as: 'driverOutputResourceUri'
property :spark_sql_job, as: 'sparkSqlJob', class: Google::Apis::DataprocV1::SparkSqlJob, decorator: Google::Apis::DataprocV1::SparkSqlJob::Representation
collection :status_history, as: 'statusHistory', class: Google::Apis::DataprocV1::JobStatus, decorator: Google::Apis::DataprocV1::JobStatus::Representation
property :spark_job, as: 'sparkJob', class: Google::Apis::DataprocV1::SparkJob, decorator: Google::Apis::DataprocV1::SparkJob::Representation
end end
end end
class SparkJob class SparkJob
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
collection :args, as: 'args'
collection :file_uris, as: 'fileUris'
property :main_class, as: 'mainClass' property :main_class, as: 'mainClass'
collection :archive_uris, as: 'archiveUris' collection :archive_uris, as: 'archiveUris'
property :main_jar_file_uri, as: 'mainJarFileUri' property :main_jar_file_uri, as: 'mainJarFileUri'
@ -427,16 +462,18 @@ module Google
property :logging_config, as: 'loggingConfig', class: Google::Apis::DataprocV1::LoggingConfig, decorator: Google::Apis::DataprocV1::LoggingConfig::Representation property :logging_config, as: 'loggingConfig', class: Google::Apis::DataprocV1::LoggingConfig, decorator: Google::Apis::DataprocV1::LoggingConfig::Representation
hash :properties, as: 'properties' hash :properties, as: 'properties'
collection :args, as: 'args'
collection :file_uris, as: 'fileUris'
end end
end end
class JobStatus class JobStatus
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :substate, as: 'substate'
property :state_start_time, as: 'stateStartTime'
property :details, as: 'details' property :details, as: 'details'
property :state, as: 'state' property :state, as: 'state'
property :substate, as: 'substate'
property :state_start_time, as: 'stateStartTime'
end end
end end
@ -461,7 +498,6 @@ module Google
class HadoopJob class HadoopJob
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :main_jar_file_uri, as: 'mainJarFileUri'
collection :jar_file_uris, as: 'jarFileUris' collection :jar_file_uris, as: 'jarFileUris'
property :logging_config, as: 'loggingConfig', class: Google::Apis::DataprocV1::LoggingConfig, decorator: Google::Apis::DataprocV1::LoggingConfig::Representation property :logging_config, as: 'loggingConfig', class: Google::Apis::DataprocV1::LoggingConfig, decorator: Google::Apis::DataprocV1::LoggingConfig::Representation
@ -470,6 +506,7 @@ module Google
collection :file_uris, as: 'fileUris' collection :file_uris, as: 'fileUris'
property :main_class, as: 'mainClass' property :main_class, as: 'mainClass'
collection :archive_uris, as: 'archiveUris' collection :archive_uris, as: 'archiveUris'
property :main_jar_file_uri, as: 'mainJarFileUri'
end end
end end
@ -483,10 +520,10 @@ module Google
class YarnApplication class YarnApplication
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :tracking_url, as: 'trackingUrl'
property :progress, as: 'progress'
property :state, as: 'state' property :state, as: 'state'
property :name, as: 'name' property :name, as: 'name'
property :tracking_url, as: 'trackingUrl'
property :progress, as: 'progress'
end end
end end
@ -499,15 +536,14 @@ module Google
class DiskConfig class DiskConfig
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :boot_disk_size_gb, as: 'bootDiskSizeGb'
property :num_local_ssds, as: 'numLocalSsds' property :num_local_ssds, as: 'numLocalSsds'
property :boot_disk_size_gb, as: 'bootDiskSizeGb'
end end
end end
class ClusterOperationMetadata class ClusterOperationMetadata
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
hash :labels, as: 'labels'
property :status, as: 'status', class: Google::Apis::DataprocV1::ClusterOperationStatus, decorator: Google::Apis::DataprocV1::ClusterOperationStatus::Representation property :status, as: 'status', class: Google::Apis::DataprocV1::ClusterOperationStatus, decorator: Google::Apis::DataprocV1::ClusterOperationStatus::Representation
collection :status_history, as: 'statusHistory', class: Google::Apis::DataprocV1::ClusterOperationStatus, decorator: Google::Apis::DataprocV1::ClusterOperationStatus::Representation collection :status_history, as: 'statusHistory', class: Google::Apis::DataprocV1::ClusterOperationStatus, decorator: Google::Apis::DataprocV1::ClusterOperationStatus::Representation
@ -517,14 +553,15 @@ module Google
property :operation_type, as: 'operationType' property :operation_type, as: 'operationType'
property :description, as: 'description' property :description, as: 'description'
collection :warnings, as: 'warnings' collection :warnings, as: 'warnings'
hash :labels, as: 'labels'
end end
end end
class HiveJob class HiveJob
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
hash :script_variables, as: 'scriptVariables'
collection :jar_file_uris, as: 'jarFileUris' collection :jar_file_uris, as: 'jarFileUris'
hash :script_variables, as: 'scriptVariables'
hash :properties, as: 'properties' hash :properties, as: 'properties'
property :continue_on_failure, as: 'continueOnFailure' property :continue_on_failure, as: 'continueOnFailure'
property :query_list, as: 'queryList', class: Google::Apis::DataprocV1::QueryList, decorator: Google::Apis::DataprocV1::QueryList::Representation property :query_list, as: 'queryList', class: Google::Apis::DataprocV1::QueryList, decorator: Google::Apis::DataprocV1::QueryList::Representation
@ -549,6 +586,10 @@ module Google
class ClusterConfig class ClusterConfig
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :master_config, as: 'masterConfig', class: Google::Apis::DataprocV1::InstanceGroupConfig, decorator: Google::Apis::DataprocV1::InstanceGroupConfig::Representation
property :secondary_worker_config, as: 'secondaryWorkerConfig', class: Google::Apis::DataprocV1::InstanceGroupConfig, decorator: Google::Apis::DataprocV1::InstanceGroupConfig::Representation
collection :initialization_actions, as: 'initializationActions', class: Google::Apis::DataprocV1::NodeInitializationAction, decorator: Google::Apis::DataprocV1::NodeInitializationAction::Representation collection :initialization_actions, as: 'initializationActions', class: Google::Apis::DataprocV1::NodeInitializationAction, decorator: Google::Apis::DataprocV1::NodeInitializationAction::Representation
property :config_bucket, as: 'configBucket' property :config_bucket, as: 'configBucket'
@ -558,10 +599,6 @@ module Google
property :software_config, as: 'softwareConfig', class: Google::Apis::DataprocV1::SoftwareConfig, decorator: Google::Apis::DataprocV1::SoftwareConfig::Representation property :software_config, as: 'softwareConfig', class: Google::Apis::DataprocV1::SoftwareConfig, decorator: Google::Apis::DataprocV1::SoftwareConfig::Representation
property :master_config, as: 'masterConfig', class: Google::Apis::DataprocV1::InstanceGroupConfig, decorator: Google::Apis::DataprocV1::InstanceGroupConfig::Representation
property :secondary_worker_config, as: 'secondaryWorkerConfig', class: Google::Apis::DataprocV1::InstanceGroupConfig, decorator: Google::Apis::DataprocV1::InstanceGroupConfig::Representation
end end
end end
@ -597,16 +634,16 @@ module Google
class ClusterMetrics class ClusterMetrics
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
hash :yarn_metrics, as: 'yarnMetrics'
hash :hdfs_metrics, as: 'hdfsMetrics' hash :hdfs_metrics, as: 'hdfsMetrics'
hash :yarn_metrics, as: 'yarnMetrics'
end end
end end
class AcceleratorConfig class AcceleratorConfig
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :accelerator_type_uri, as: 'acceleratorTypeUri'
property :accelerator_count, as: 'acceleratorCount' property :accelerator_count, as: 'acceleratorCount'
property :accelerator_type_uri, as: 'acceleratorTypeUri'
end end
end end
@ -616,43 +653,6 @@ module Google
hash :driver_log_levels, as: 'driverLogLevels' hash :driver_log_levels, as: 'driverLogLevels'
end end
end end
class Operation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :done, as: 'done'
hash :response, as: 'response'
property :name, as: 'name'
property :error, as: 'error', class: Google::Apis::DataprocV1::Status, decorator: Google::Apis::DataprocV1::Status::Representation
hash :metadata, as: 'metadata'
end
end
class JobReference
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :job_id, as: 'jobId'
property :project_id, as: 'projectId'
end
end
class SubmitJobRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :job, as: 'job', class: Google::Apis::DataprocV1::Job, decorator: Google::Apis::DataprocV1::Job::Representation
end
end
class Status
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :details, as: 'details'
property :code, as: 'code'
property :message, as: 'message'
end
end
end end
end end
end end

View File

@ -47,6 +47,43 @@ module Google
@batch_path = 'batch' @batch_path = 'batch'
end end
# Creates a cluster in a project.
# @param [String] project_id
# Required. The ID of the Google Cloud Platform project that the cluster belongs
# to.
# @param [String] region
# Required. The Cloud Dataproc region in which to handle the request.
# @param [Google::Apis::DataprocV1::Cluster] cluster_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::DataprocV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataprocV1::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_cluster(project_id, region, cluster_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/clusters', options)
command.request_representation = Google::Apis::DataprocV1::Cluster::Representation
command.request_object = cluster_object
command.response_representation = Google::Apis::DataprocV1::Operation::Representation
command.response_class = Google::Apis::DataprocV1::Operation
command.params['projectId'] = project_id unless project_id.nil?
command.params['region'] = region unless region.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 resource representation for a cluster in a project. # Gets the resource representation for a cluster in a project.
# @param [String] project_id # @param [String] project_id
# Required. The ID of the Google Cloud Platform project that the cluster belongs # Required. The ID of the Google Cloud Platform project that the cluster belongs
@ -55,11 +92,11 @@ module Google
# Required. The Cloud Dataproc region in which to handle the request. # Required. The Cloud Dataproc region in which to handle the request.
# @param [String] cluster_name # @param [String] cluster_name
# Required. The cluster name. # Required. The cluster name.
# @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
# #
@ -72,15 +109,15 @@ 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_cluster(project_id, region, cluster_name, quota_user: nil, fields: nil, options: nil, &block) def get_cluster(project_id, region, cluster_name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}', options) command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}', options)
command.response_representation = Google::Apis::DataprocV1::Cluster::Representation command.response_representation = Google::Apis::DataprocV1::Cluster::Representation
command.response_class = Google::Apis::DataprocV1::Cluster command.response_class = Google::Apis::DataprocV1::Cluster
command.params['projectId'] = project_id unless project_id.nil? command.params['projectId'] = project_id unless project_id.nil?
command.params['region'] = region unless region.nil? command.params['region'] = region unless region.nil?
command.params['clusterName'] = cluster_name unless cluster_name.nil? command.params['clusterName'] = cluster_name unless cluster_name.nil?
command.query['quotaUser'] = quota_user unless quota_user.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) execute_or_queue_command(command, &block)
end end
@ -121,11 +158,11 @@ module Google
# num_instances</em></strong></td> <td>Resize primary worker group</td> </tr> # num_instances</em></strong></td> <td>Resize primary worker group</td> </tr>
# <tr> <td><strong><em>config.secondary_worker_config.num_instances</em></ # <tr> <td><strong><em>config.secondary_worker_config.num_instances</em></
# strong></td> <td>Resize secondary worker group</td> </tr> </tbody> </table> # strong></td> <td>Resize secondary worker group</td> </tr> </tbody> </table>
# @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
# #
@ -138,7 +175,7 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_cluster(project_id, region, cluster_name, cluster_object = nil, update_mask: nil, quota_user: nil, fields: nil, options: nil, &block) def patch_cluster(project_id, region, cluster_name, cluster_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}', options) command = make_simple_command(:patch, 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}', options)
command.request_representation = Google::Apis::DataprocV1::Cluster::Representation command.request_representation = Google::Apis::DataprocV1::Cluster::Representation
command.request_object = cluster_object command.request_object = cluster_object
@ -148,8 +185,8 @@ module Google
command.params['region'] = region unless region.nil? command.params['region'] = region unless region.nil?
command.params['clusterName'] = cluster_name unless cluster_name.nil? command.params['clusterName'] = cluster_name unless cluster_name.nil?
command.query['updateMask'] = update_mask unless update_mask.nil? command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['quotaUser'] = quota_user unless quota_user.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) execute_or_queue_command(command, &block)
end end
@ -163,11 +200,11 @@ module Google
# @param [String] cluster_name # @param [String] cluster_name
# Required. The cluster name. # Required. The cluster name.
# @param [Google::Apis::DataprocV1::DiagnoseClusterRequest] diagnose_cluster_request_object # @param [Google::Apis::DataprocV1::DiagnoseClusterRequest] diagnose_cluster_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
# #
@ -180,7 +217,7 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def diagnose_cluster(project_id, region, cluster_name, diagnose_cluster_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) def diagnose_cluster(project_id, region, cluster_name, diagnose_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}:diagnose', options) command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}:diagnose', options)
command.request_representation = Google::Apis::DataprocV1::DiagnoseClusterRequest::Representation command.request_representation = Google::Apis::DataprocV1::DiagnoseClusterRequest::Representation
command.request_object = diagnose_cluster_request_object command.request_object = diagnose_cluster_request_object
@ -189,8 +226,8 @@ module Google
command.params['projectId'] = project_id unless project_id.nil? command.params['projectId'] = project_id unless project_id.nil?
command.params['region'] = region unless region.nil? command.params['region'] = region unless region.nil?
command.params['clusterName'] = cluster_name unless cluster_name.nil? command.params['clusterName'] = cluster_name unless cluster_name.nil?
command.query['quotaUser'] = quota_user unless quota_user.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) execute_or_queue_command(command, &block)
end end
@ -202,11 +239,11 @@ module Google
# Required. The Cloud Dataproc region in which to handle the request. # Required. The Cloud Dataproc region in which to handle the request.
# @param [String] cluster_name # @param [String] cluster_name
# Required. The cluster name. # Required. The cluster name.
# @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
# #
@ -219,15 +256,15 @@ 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_cluster(project_id, region, cluster_name, quota_user: nil, fields: nil, options: nil, &block) def delete_cluster(project_id, region, cluster_name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}', options) command = make_simple_command(:delete, 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}', options)
command.response_representation = Google::Apis::DataprocV1::Operation::Representation command.response_representation = Google::Apis::DataprocV1::Operation::Representation
command.response_class = Google::Apis::DataprocV1::Operation command.response_class = Google::Apis::DataprocV1::Operation
command.params['projectId'] = project_id unless project_id.nil? command.params['projectId'] = project_id unless project_id.nil?
command.params['region'] = region unless region.nil? command.params['region'] = region unless region.nil?
command.params['clusterName'] = cluster_name unless cluster_name.nil? command.params['clusterName'] = cluster_name unless cluster_name.nil?
command.query['quotaUser'] = quota_user unless quota_user.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) execute_or_queue_command(command, &block)
end end
@ -237,6 +274,8 @@ module Google
# to. # to.
# @param [String] region # @param [String] region
# Required. The Cloud Dataproc region in which to handle the request. # Required. The Cloud Dataproc region in which to handle the request.
# @param [String] page_token
# Optional. The standard List page token.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Optional. The standard List page size. # Optional. The standard List page size.
# @param [String] filter # @param [String] filter
@ -251,13 +290,11 @@ module Google
# separated items are treated as having an implicit AND operator.Example filter: # separated items are treated as having an implicit AND operator.Example filter:
# status.state = ACTIVE AND clusterName = mycluster AND labels.env = staging AND # status.state = ACTIVE AND clusterName = mycluster AND labels.env = staging AND
# labels.starred = * # labels.starred = *
# @param [String] page_token # @param [String] fields
# Optional. The standard List page token. # 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
# #
@ -270,124 +307,17 @@ 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_clusters(project_id, region, page_size: nil, filter: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block) def list_clusters(project_id, region, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/clusters', options) command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/clusters', options)
command.response_representation = Google::Apis::DataprocV1::ListClustersResponse::Representation command.response_representation = Google::Apis::DataprocV1::ListClustersResponse::Representation
command.response_class = Google::Apis::DataprocV1::ListClustersResponse command.response_class = Google::Apis::DataprocV1::ListClustersResponse
command.params['projectId'] = project_id unless project_id.nil? command.params['projectId'] = project_id unless project_id.nil?
command.params['region'] = region unless region.nil? command.params['region'] = region unless region.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['filter'] = filter unless filter.nil? command.query['filter'] = filter unless filter.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? command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Creates a cluster in a project.
# @param [String] project_id
# Required. The ID of the Google Cloud Platform project that the cluster belongs
# to.
# @param [String] region
# Required. The Cloud Dataproc region in which to handle the request.
# @param [Google::Apis::DataprocV1::Cluster] cluster_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::DataprocV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataprocV1::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_cluster(project_id, region, cluster_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/clusters', options)
command.request_representation = Google::Apis::DataprocV1::Cluster::Representation
command.request_object = cluster_object
command.response_representation = Google::Apis::DataprocV1::Operation::Representation
command.response_class = Google::Apis::DataprocV1::Operation
command.params['projectId'] = project_id unless project_id.nil?
command.params['region'] = region unless region.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
# Starts asynchronous cancellation on a long-running operation. The server makes
# a best effort to cancel the operation, but success is not guaranteed. If the
# server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.
# Clients can use Operations.GetOperation or other methods to check whether the
# cancellation succeeded or whether the operation completed despite cancellation.
# On successful cancellation, the operation is not deleted; instead, it becomes
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
# corresponding to Code.CANCELLED.
# @param [String] name
# The name of the operation resource to be cancelled.
# @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::DataprocV1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataprocV1::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 cancel_operation(name, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
command.response_representation = Google::Apis::DataprocV1::Empty::Representation
command.response_class = Google::Apis::DataprocV1::Empty
command.params['name'] = name unless 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 long-running operation. This method indicates that the client is no
# longer interested in the operation result. It does not cancel the operation.
# If the server doesn't support this method, it returns google.rpc.Code.
# UNIMPLEMENTED.
# @param [String] name
# The name of the operation resource to be deleted.
# @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::DataprocV1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataprocV1::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_operation(name, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1/{+name}', options)
command.response_representation = Google::Apis::DataprocV1::Empty::Representation
command.response_class = Google::Apis::DataprocV1::Empty
command.params['name'] = name unless 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
@ -395,11 +325,11 @@ module Google
# 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] name # @param [String] name
# The name of the operation resource. # The name of the operation resource.
# @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
# #
@ -412,13 +342,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 get_operation(name, quota_user: nil, fields: nil, options: nil, &block) def get_operation(name, 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::DataprocV1::Operation::Representation command.response_representation = Google::Apis::DataprocV1::Operation::Representation
command.response_class = Google::Apis::DataprocV1::Operation command.response_class = Google::Apis::DataprocV1::Operation
command.params['name'] = name unless name.nil? command.params['name'] = name unless name.nil?
command.query['quotaUser'] = quota_user unless quota_user.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) execute_or_queue_command(command, &block)
end end
@ -438,11 +368,11 @@ module Google
# The standard list page token. # The standard list page token.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# The standard list page size. # The standard list page size.
# @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
# #
@ -455,7 +385,7 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_operations(name, filter: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block) def list_operations(name, filter: nil, page_token: nil, page_size: 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::DataprocV1::ListOperationsResponse::Representation command.response_representation = Google::Apis::DataprocV1::ListOperationsResponse::Representation
command.response_class = Google::Apis::DataprocV1::ListOperationsResponse command.response_class = Google::Apis::DataprocV1::ListOperationsResponse
@ -463,142 +393,26 @@ module Google
command.query['filter'] = filter unless filter.nil? command.query['filter'] = filter unless filter.nil?
command.query['pageToken'] = page_token unless page_token.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['quotaUser'] = quota_user unless quota_user.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) execute_or_queue_command(command, &block)
end end
# Updates a job in a project. # Starts asynchronous cancellation on a long-running operation. The server makes
# @param [String] project_id # a best effort to cancel the operation, but success is not guaranteed. If the
# Required. The ID of the Google Cloud Platform project that the job belongs to. # server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.
# @param [String] region # Clients can use Operations.GetOperation or other methods to check whether the
# Required. The Cloud Dataproc region in which to handle the request. # cancellation succeeded or whether the operation completed despite cancellation.
# @param [String] job_id # On successful cancellation, the operation is not deleted; instead, it becomes
# Required. The job ID. # an operation with an Operation.error value with a google.rpc.Status.code of 1,
# @param [Google::Apis::DataprocV1::Job] job_object # corresponding to Code.CANCELLED.
# @param [String] update_mask # @param [String] name
# Required. Specifies the path, relative to <code>Job</code>, of the field to # The name of the operation resource to be cancelled.
# update. For example, to update the labels of a Job the <code>update_mask</code> # @param [String] fields
# parameter would be specified as <code>labels</code>, and the PATCH request # Selector specifying which fields to include in a partial response.
# body would specify the new value. <strong>Note:</strong> Currently, <code>
# labels</code> is the only field that can be updated.
# @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::DataprocV1::Job] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataprocV1::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 patch_project_region_job(project_id, region, job_id, job_object = nil, update_mask: nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}', options)
command.request_representation = Google::Apis::DataprocV1::Job::Representation
command.request_object = job_object
command.response_representation = Google::Apis::DataprocV1::Job::Representation
command.response_class = Google::Apis::DataprocV1::Job
command.params['projectId'] = project_id unless project_id.nil?
command.params['region'] = region unless region.nil?
command.params['jobId'] = job_id unless job_id.nil?
command.query['updateMask'] = update_mask unless update_mask.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 the resource representation for a job in a project.
# @param [String] project_id
# Required. The ID of the Google Cloud Platform project that the job belongs to.
# @param [String] region
# Required. The Cloud Dataproc region in which to handle the request.
# @param [String] job_id
# Required. The job 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::DataprocV1::Job] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataprocV1::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_job(project_id, region, job_id, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}', options)
command.response_representation = Google::Apis::DataprocV1::Job::Representation
command.response_class = Google::Apis::DataprocV1::Job
command.params['projectId'] = project_id unless project_id.nil?
command.params['region'] = region unless region.nil?
command.params['jobId'] = job_id unless job_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
# Submits a job to a cluster.
# @param [String] project_id
# Required. The ID of the Google Cloud Platform project that the job belongs to.
# @param [String] region
# Required. The Cloud Dataproc region in which to handle the request.
# @param [Google::Apis::DataprocV1::SubmitJobRequest] submit_job_request_object
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DataprocV1::Job] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataprocV1::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 submit_job(project_id, region, submit_job_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/jobs:submit', options)
command.request_representation = Google::Apis::DataprocV1::SubmitJobRequest::Representation
command.request_object = submit_job_request_object
command.response_representation = Google::Apis::DataprocV1::Job::Representation
command.response_class = Google::Apis::DataprocV1::Job
command.params['projectId'] = project_id unless project_id.nil?
command.params['region'] = region unless region.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 the job from the project. If the job is active, the delete fails, and
# the response returns FAILED_PRECONDITION.
# @param [String] project_id
# Required. The ID of the Google Cloud Platform project that the job belongs to.
# @param [String] region
# Required. The Cloud Dataproc region in which to handle the request.
# @param [String] job_id
# Required. The job 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 # @param [Google::Apis::RequestOptions] options
# Request-specific options # Request-specific options
# #
@ -611,15 +425,119 @@ 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_job(project_id, region, job_id, quota_user: nil, fields: nil, options: nil, &block) def cancel_operation(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
command.response_representation = Google::Apis::DataprocV1::Empty::Representation
command.response_class = Google::Apis::DataprocV1::Empty
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Deletes a long-running operation. This method indicates that the client is no
# longer interested in the operation result. It does not cancel the operation.
# If the server doesn't support this method, it returns google.rpc.Code.
# UNIMPLEMENTED.
# @param [String] name
# The name of the operation resource to be deleted.
# @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::DataprocV1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataprocV1::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_operation(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1/{+name}', options)
command.response_representation = Google::Apis::DataprocV1::Empty::Representation
command.response_class = Google::Apis::DataprocV1::Empty
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Submits a job to a cluster.
# @param [String] project_id
# Required. The ID of the Google Cloud Platform project that the job belongs to.
# @param [String] region
# Required. The Cloud Dataproc region in which to handle the request.
# @param [Google::Apis::DataprocV1::SubmitJobRequest] submit_job_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::DataprocV1::Job] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataprocV1::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 submit_job(project_id, region, submit_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/jobs:submit', options)
command.request_representation = Google::Apis::DataprocV1::SubmitJobRequest::Representation
command.request_object = submit_job_request_object
command.response_representation = Google::Apis::DataprocV1::Job::Representation
command.response_class = Google::Apis::DataprocV1::Job
command.params['projectId'] = project_id unless project_id.nil?
command.params['region'] = region unless region.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 the job from the project. If the job is active, the delete fails, and
# the response returns FAILED_PRECONDITION.
# @param [String] project_id
# Required. The ID of the Google Cloud Platform project that the job belongs to.
# @param [String] region
# Required. The Cloud Dataproc region in which to handle the request.
# @param [String] job_id
# Required. The job 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::DataprocV1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataprocV1::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_job(project_id, region, job_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}', options) command = make_simple_command(:delete, 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}', options)
command.response_representation = Google::Apis::DataprocV1::Empty::Representation command.response_representation = Google::Apis::DataprocV1::Empty::Representation
command.response_class = Google::Apis::DataprocV1::Empty command.response_class = Google::Apis::DataprocV1::Empty
command.params['projectId'] = project_id unless project_id.nil? command.params['projectId'] = project_id unless project_id.nil?
command.params['region'] = region unless region.nil? command.params['region'] = region unless region.nil?
command.params['jobId'] = job_id unless job_id.nil? command.params['jobId'] = job_id unless job_id.nil?
command.query['quotaUser'] = quota_user unless quota_user.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) execute_or_queue_command(command, &block)
end end
@ -647,11 +565,11 @@ module Google
# @param [String] cluster_name # @param [String] cluster_name
# Optional. If set, the returned jobs list includes only jobs that were # Optional. If set, the returned jobs list includes only jobs that were
# submitted to the named cluster. # submitted to the named cluster.
# @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
# #
@ -664,7 +582,7 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_jobs(project_id, region, filter: nil, job_state_matcher: nil, page_token: nil, page_size: nil, cluster_name: nil, quota_user: nil, fields: nil, options: nil, &block) def list_jobs(project_id, region, filter: nil, job_state_matcher: nil, page_token: nil, page_size: nil, cluster_name: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/jobs', options) command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/jobs', options)
command.response_representation = Google::Apis::DataprocV1::ListJobsResponse::Representation command.response_representation = Google::Apis::DataprocV1::ListJobsResponse::Representation
command.response_class = Google::Apis::DataprocV1::ListJobsResponse command.response_class = Google::Apis::DataprocV1::ListJobsResponse
@ -675,8 +593,8 @@ module Google
command.query['pageToken'] = page_token unless page_token.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['clusterName'] = cluster_name unless cluster_name.nil? command.query['clusterName'] = cluster_name unless cluster_name.nil?
command.query['quotaUser'] = quota_user unless quota_user.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) execute_or_queue_command(command, &block)
end end
@ -689,11 +607,11 @@ module Google
# @param [String] job_id # @param [String] job_id
# Required. The job ID. # Required. The job ID.
# @param [Google::Apis::DataprocV1::CancelJobRequest] cancel_job_request_object # @param [Google::Apis::DataprocV1::CancelJobRequest] cancel_job_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
# #
@ -706,7 +624,7 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def cancel_job(project_id, region, job_id, cancel_job_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) def cancel_job(project_id, region, job_id, cancel_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}:cancel', options) command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}:cancel', options)
command.request_representation = Google::Apis::DataprocV1::CancelJobRequest::Representation command.request_representation = Google::Apis::DataprocV1::CancelJobRequest::Representation
command.request_object = cancel_job_request_object command.request_object = cancel_job_request_object
@ -715,8 +633,90 @@ module Google
command.params['projectId'] = project_id unless project_id.nil? command.params['projectId'] = project_id unless project_id.nil?
command.params['region'] = region unless region.nil? command.params['region'] = region unless region.nil?
command.params['jobId'] = job_id unless job_id.nil? command.params['jobId'] = job_id unless job_id.nil?
command.query['quotaUser'] = quota_user unless quota_user.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
# Gets the resource representation for a job in a project.
# @param [String] project_id
# Required. The ID of the Google Cloud Platform project that the job belongs to.
# @param [String] region
# Required. The Cloud Dataproc region in which to handle the request.
# @param [String] job_id
# Required. The job 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::DataprocV1::Job] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataprocV1::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_job(project_id, region, job_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}', options)
command.response_representation = Google::Apis::DataprocV1::Job::Representation
command.response_class = Google::Apis::DataprocV1::Job
command.params['projectId'] = project_id unless project_id.nil?
command.params['region'] = region unless region.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
# Updates a job in a project.
# @param [String] project_id
# Required. The ID of the Google Cloud Platform project that the job belongs to.
# @param [String] region
# Required. The Cloud Dataproc region in which to handle the request.
# @param [String] job_id
# Required. The job ID.
# @param [Google::Apis::DataprocV1::Job] job_object
# @param [String] update_mask
# Required. Specifies the path, relative to <code>Job</code>, of the field to
# update. For example, to update the labels of a Job the <code>update_mask</code>
# parameter would be specified as <code>labels</code>, and the PATCH request
# body would specify the new value. <strong>Note:</strong> Currently, <code>
# labels</code> is the only field that can 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::DataprocV1::Job] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataprocV1::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 patch_project_region_job(project_id, region, job_id, job_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}', options)
command.request_representation = Google::Apis::DataprocV1::Job::Representation
command.request_object = job_object
command.response_representation = Google::Apis::DataprocV1::Job::Representation
command.response_class = Google::Apis::DataprocV1::Job
command.params['projectId'] = project_id unless project_id.nil?
command.params['region'] = region unless region.nil?
command.params['jobId'] = job_id unless job_id.nil?
command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end

View File

@ -26,13 +26,13 @@ module Google
# @see https://cloud.google.com/datastore/ # @see https://cloud.google.com/datastore/
module DatastoreV1 module DatastoreV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20170606' REVISION = '20170626'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
# View and manage your Google Cloud Datastore data # View and manage your Google Cloud Datastore data
AUTH_DATASTORE = 'https://www.googleapis.com/auth/datastore' AUTH_DATASTORE = 'https://www.googleapis.com/auth/datastore'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
end end
end end
end end

File diff suppressed because it is too large Load Diff

View File

@ -22,6 +22,24 @@ module Google
module Apis module Apis
module DatastoreV1 module DatastoreV1
class MutationResult
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GqlQuery
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Filter
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RunQueryRequest class RunQueryRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -64,13 +82,13 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class CommitResponse class Value
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 Value class CommitResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
@ -88,13 +106,13 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class QueryResultBatch class LookupRequest
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 LookupRequest class QueryResultBatch
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
@ -136,12 +154,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class PropertyOrder
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CommitRequest class CommitRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -154,19 +166,25 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class PropertyOrder
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class KindExpression class KindExpression
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 LatLng class Key
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 Key class LatLng
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
@ -209,30 +227,44 @@ module Google
end end
class MutationResult class MutationResult
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
property :version, :numeric_string => true, as: 'version'
property :conflict_detected, as: 'conflictDetected'
property :key, as: 'key', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
include Google::Apis::Core::JsonObjectSupport end
end end
class GqlQuery class GqlQuery
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :positional_bindings, as: 'positionalBindings', class: Google::Apis::DatastoreV1::GqlQueryParameter, decorator: Google::Apis::DatastoreV1::GqlQueryParameter::Representation
include Google::Apis::Core::JsonObjectSupport hash :named_bindings, as: 'namedBindings', class: Google::Apis::DatastoreV1::GqlQueryParameter, decorator: Google::Apis::DatastoreV1::GqlQueryParameter::Representation
property :allow_literals, as: 'allowLiterals'
property :query_string, as: 'queryString'
end
end end
class Filter class Filter
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
property :property_filter, as: 'propertyFilter', class: Google::Apis::DatastoreV1::PropertyFilter, decorator: Google::Apis::DatastoreV1::PropertyFilter::Representation
include Google::Apis::Core::JsonObjectSupport property :composite_filter, as: 'compositeFilter', class: Google::Apis::DatastoreV1::CompositeFilter, decorator: Google::Apis::DatastoreV1::CompositeFilter::Representation
end
end end
class RunQueryRequest class RunQueryRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :partition_id, as: 'partitionId', class: Google::Apis::DatastoreV1::PartitionId, decorator: Google::Apis::DatastoreV1::PartitionId::Representation
property :gql_query, as: 'gqlQuery', class: Google::Apis::DatastoreV1::GqlQuery, decorator: Google::Apis::DatastoreV1::GqlQuery::Representation property :gql_query, as: 'gqlQuery', class: Google::Apis::DatastoreV1::GqlQuery, decorator: Google::Apis::DatastoreV1::GqlQuery::Representation
property :partition_id, as: 'partitionId', class: Google::Apis::DatastoreV1::PartitionId, decorator: Google::Apis::DatastoreV1::PartitionId::Representation
property :read_options, as: 'readOptions', class: Google::Apis::DatastoreV1::ReadOptions, decorator: Google::Apis::DatastoreV1::ReadOptions::Representation property :read_options, as: 'readOptions', class: Google::Apis::DatastoreV1::ReadOptions, decorator: Google::Apis::DatastoreV1::ReadOptions::Representation
property :query, as: 'query', class: Google::Apis::DatastoreV1::Query, decorator: Google::Apis::DatastoreV1::Query::Representation property :query, as: 'query', class: Google::Apis::DatastoreV1::Query, decorator: Google::Apis::DatastoreV1::Query::Representation
@ -270,9 +302,9 @@ module Google
collection :projection, as: 'projection', class: Google::Apis::DatastoreV1::Projection, decorator: Google::Apis::DatastoreV1::Projection::Representation collection :projection, as: 'projection', class: Google::Apis::DatastoreV1::Projection, decorator: Google::Apis::DatastoreV1::Projection::Representation
property :end_cursor, :base64 => true, as: 'endCursor' property :end_cursor, :base64 => true, as: 'endCursor'
property :limit, as: 'limit'
property :filter, as: 'filter', class: Google::Apis::DatastoreV1::Filter, decorator: Google::Apis::DatastoreV1::Filter::Representation property :filter, as: 'filter', class: Google::Apis::DatastoreV1::Filter, decorator: Google::Apis::DatastoreV1::Filter::Representation
property :limit, as: 'limit'
property :start_cursor, :base64 => true, as: 'startCursor' property :start_cursor, :base64 => true, as: 'startCursor'
property :offset, as: 'offset' property :offset, as: 'offset'
collection :kind, as: 'kind', class: Google::Apis::DatastoreV1::KindExpression, decorator: Google::Apis::DatastoreV1::KindExpression::Representation collection :kind, as: 'kind', class: Google::Apis::DatastoreV1::KindExpression, decorator: Google::Apis::DatastoreV1::KindExpression::Representation
@ -287,38 +319,31 @@ module Google
class PropertyFilter class PropertyFilter
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :op, as: 'op'
property :value, as: 'value', class: Google::Apis::DatastoreV1::Value, decorator: Google::Apis::DatastoreV1::Value::Representation property :value, as: 'value', class: Google::Apis::DatastoreV1::Value, decorator: Google::Apis::DatastoreV1::Value::Representation
property :property, as: 'property', class: Google::Apis::DatastoreV1::PropertyReference, decorator: Google::Apis::DatastoreV1::PropertyReference::Representation property :property, as: 'property', class: Google::Apis::DatastoreV1::PropertyReference, decorator: Google::Apis::DatastoreV1::PropertyReference::Representation
property :op, as: 'op'
end end
end end
class EntityResult class EntityResult
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :cursor, :base64 => true, as: 'cursor'
property :version, :numeric_string => true, as: 'version'
property :entity, as: 'entity', class: Google::Apis::DatastoreV1::Entity, decorator: Google::Apis::DatastoreV1::Entity::Representation property :entity, as: 'entity', class: Google::Apis::DatastoreV1::Entity, decorator: Google::Apis::DatastoreV1::Entity::Representation
end property :cursor, :base64 => true, as: 'cursor'
end property :version, :numeric_string => true, as: 'version'
class CommitResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :mutation_results, as: 'mutationResults', class: Google::Apis::DatastoreV1::MutationResult, decorator: Google::Apis::DatastoreV1::MutationResult::Representation
property :index_updates, as: 'indexUpdates'
end end
end end
class Value class Value
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :boolean_value, as: 'booleanValue' property :double_value, as: 'doubleValue'
property :timestamp_value, as: 'timestampValue'
property :null_value, as: 'nullValue' property :null_value, as: 'nullValue'
property :boolean_value, as: 'booleanValue'
property :blob_value, :base64 => true, as: 'blobValue' property :blob_value, :base64 => true, as: 'blobValue'
property :meaning, as: 'meaning' property :meaning, as: 'meaning'
property :array_value, as: 'arrayValue', class: Google::Apis::DatastoreV1::ArrayValue, decorator: Google::Apis::DatastoreV1::ArrayValue::Representation property :array_value, as: 'arrayValue', class: Google::Apis::DatastoreV1::ArrayValue, decorator: Google::Apis::DatastoreV1::ArrayValue::Representation
@ -332,8 +357,15 @@ module Google
property :integer_value, :numeric_string => true, as: 'integerValue' property :integer_value, :numeric_string => true, as: 'integerValue'
property :string_value, as: 'stringValue' property :string_value, as: 'stringValue'
property :exclude_from_indexes, as: 'excludeFromIndexes' property :exclude_from_indexes, as: 'excludeFromIndexes'
property :double_value, as: 'doubleValue' end
property :timestamp_value, as: 'timestampValue' end
class CommitResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :index_updates, as: 'indexUpdates'
collection :mutation_results, as: 'mutationResults', class: Google::Apis::DatastoreV1::MutationResult, decorator: Google::Apis::DatastoreV1::MutationResult::Representation
end end
end end
@ -355,27 +387,27 @@ module Google
end end
end end
class QueryResultBatch
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :entity_results, as: 'entityResults', class: Google::Apis::DatastoreV1::EntityResult, decorator: Google::Apis::DatastoreV1::EntityResult::Representation
property :end_cursor, :base64 => true, as: 'endCursor'
property :more_results, as: 'moreResults'
property :snapshot_version, :numeric_string => true, as: 'snapshotVersion'
property :skipped_cursor, :base64 => true, as: 'skippedCursor'
property :skipped_results, as: 'skippedResults'
property :entity_result_type, as: 'entityResultType'
end
end
class LookupRequest class LookupRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
collection :keys, as: 'keys', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
property :read_options, as: 'readOptions', class: Google::Apis::DatastoreV1::ReadOptions, decorator: Google::Apis::DatastoreV1::ReadOptions::Representation property :read_options, as: 'readOptions', class: Google::Apis::DatastoreV1::ReadOptions, decorator: Google::Apis::DatastoreV1::ReadOptions::Representation
collection :keys, as: 'keys', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
end
end
class QueryResultBatch
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :skipped_cursor, :base64 => true, as: 'skippedCursor'
property :skipped_results, as: 'skippedResults'
property :entity_result_type, as: 'entityResultType'
collection :entity_results, as: 'entityResults', class: Google::Apis::DatastoreV1::EntityResult, decorator: Google::Apis::DatastoreV1::EntityResult::Representation
property :more_results, as: 'moreResults'
property :end_cursor, :base64 => true, as: 'endCursor'
property :snapshot_version, :numeric_string => true, as: 'snapshotVersion'
end end
end end
@ -391,9 +423,9 @@ module Google
class GqlQueryParameter class GqlQueryParameter
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :cursor, :base64 => true, as: 'cursor'
property :value, as: 'value', class: Google::Apis::DatastoreV1::Value, decorator: Google::Apis::DatastoreV1::Value::Representation property :value, as: 'value', class: Google::Apis::DatastoreV1::Value, decorator: Google::Apis::DatastoreV1::Value::Representation
property :cursor, :base64 => true, as: 'cursor'
end end
end end
@ -415,10 +447,10 @@ module Google
class LookupResponse class LookupResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
collection :found, as: 'found', class: Google::Apis::DatastoreV1::EntityResult, decorator: Google::Apis::DatastoreV1::EntityResult::Representation
collection :missing, as: 'missing', class: Google::Apis::DatastoreV1::EntityResult, decorator: Google::Apis::DatastoreV1::EntityResult::Representation collection :missing, as: 'missing', class: Google::Apis::DatastoreV1::EntityResult, decorator: Google::Apis::DatastoreV1::EntityResult::Representation
collection :found, as: 'found', class: Google::Apis::DatastoreV1::EntityResult, decorator: Google::Apis::DatastoreV1::EntityResult::Representation
collection :deferred, as: 'deferred', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation collection :deferred, as: 'deferred', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
end end
@ -434,22 +466,13 @@ module Google
end end
end end
class PropertyOrder
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :property, as: 'property', class: Google::Apis::DatastoreV1::PropertyReference, decorator: Google::Apis::DatastoreV1::PropertyReference::Representation
property :direction, as: 'direction'
end
end
class CommitRequest class CommitRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :transaction, :base64 => true, as: 'transaction'
property :mode, as: 'mode' property :mode, as: 'mode'
collection :mutations, as: 'mutations', class: Google::Apis::DatastoreV1::Mutation, decorator: Google::Apis::DatastoreV1::Mutation::Representation collection :mutations, as: 'mutations', class: Google::Apis::DatastoreV1::Mutation, decorator: Google::Apis::DatastoreV1::Mutation::Representation
property :transaction, :base64 => true, as: 'transaction'
end end
end end
@ -459,6 +482,15 @@ module Google
end end
end end
class PropertyOrder
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :direction, as: 'direction'
property :property, as: 'property', class: Google::Apis::DatastoreV1::PropertyReference, decorator: Google::Apis::DatastoreV1::PropertyReference::Representation
end
end
class KindExpression class KindExpression
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -466,6 +498,16 @@ module Google
end end
end end
class Key
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :partition_id, as: 'partitionId', class: Google::Apis::DatastoreV1::PartitionId, decorator: Google::Apis::DatastoreV1::PartitionId::Representation
collection :path, as: 'path', class: Google::Apis::DatastoreV1::PathElement, decorator: Google::Apis::DatastoreV1::PathElement::Representation
end
end
class LatLng class LatLng
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -474,16 +516,6 @@ module Google
end end
end end
class Key
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :path, as: 'path', class: Google::Apis::DatastoreV1::PathElement, decorator: Google::Apis::DatastoreV1::PathElement::Representation
property :partition_id, as: 'partitionId', class: Google::Apis::DatastoreV1::PartitionId, decorator: Google::Apis::DatastoreV1::PartitionId::Representation
end
end
class PropertyReference class PropertyReference
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -510,23 +542,23 @@ module Google
class Mutation class Mutation
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :base_version, :numeric_string => true, as: 'baseVersion'
property :insert, as: 'insert', class: Google::Apis::DatastoreV1::Entity, decorator: Google::Apis::DatastoreV1::Entity::Representation
property :update, as: 'update', class: Google::Apis::DatastoreV1::Entity, decorator: Google::Apis::DatastoreV1::Entity::Representation property :update, as: 'update', class: Google::Apis::DatastoreV1::Entity, decorator: Google::Apis::DatastoreV1::Entity::Representation
property :upsert, as: 'upsert', class: Google::Apis::DatastoreV1::Entity, decorator: Google::Apis::DatastoreV1::Entity::Representation property :upsert, as: 'upsert', class: Google::Apis::DatastoreV1::Entity, decorator: Google::Apis::DatastoreV1::Entity::Representation
property :delete, as: 'delete', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation property :delete, as: 'delete', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
property :insert, as: 'insert', class: Google::Apis::DatastoreV1::Entity, decorator: Google::Apis::DatastoreV1::Entity::Representation
property :base_version, :numeric_string => true, as: 'baseVersion'
end end
end end
class ReadOptions class ReadOptions
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :read_consistency, as: 'readConsistency'
property :transaction, :base64 => true, as: 'transaction' property :transaction, :base64 => true, as: 'transaction'
property :read_consistency, as: 'readConsistency'
end end
end end
@ -535,38 +567,6 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
end end
end end
class MutationResult
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :key, as: 'key', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
property :version, :numeric_string => true, as: 'version'
property :conflict_detected, as: 'conflictDetected'
end
end
class GqlQuery
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :query_string, as: 'queryString'
property :allow_literals, as: 'allowLiterals'
hash :named_bindings, as: 'namedBindings', class: Google::Apis::DatastoreV1::GqlQueryParameter, decorator: Google::Apis::DatastoreV1::GqlQueryParameter::Representation
collection :positional_bindings, as: 'positionalBindings', class: Google::Apis::DatastoreV1::GqlQueryParameter, decorator: Google::Apis::DatastoreV1::GqlQueryParameter::Representation
end
end
class Filter
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :composite_filter, as: 'compositeFilter', class: Google::Apis::DatastoreV1::CompositeFilter, decorator: Google::Apis::DatastoreV1::CompositeFilter::Representation
property :property_filter, as: 'propertyFilter', class: Google::Apis::DatastoreV1::PropertyFilter, decorator: Google::Apis::DatastoreV1::PropertyFilter::Representation
end
end
end end
end end
end end

View File

@ -48,6 +48,105 @@ module Google
@batch_path = 'batch' @batch_path = 'batch'
end end
# Queries for entities.
# @param [String] project_id
# The ID of the project against which to make the request.
# @param [Google::Apis::DatastoreV1::RunQueryRequest] run_query_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::DatastoreV1::RunQueryResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DatastoreV1::RunQueryResponse]
#
# @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 run_project_query(project_id, run_query_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/projects/{projectId}:runQuery', options)
command.request_representation = Google::Apis::DatastoreV1::RunQueryRequest::Representation
command.request_object = run_query_request_object
command.response_representation = Google::Apis::DatastoreV1::RunQueryResponse::Representation
command.response_class = Google::Apis::DatastoreV1::RunQueryResponse
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
# Rolls back a transaction.
# @param [String] project_id
# The ID of the project against which to make the request.
# @param [Google::Apis::DatastoreV1::RollbackRequest] rollback_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::DatastoreV1::RollbackResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DatastoreV1::RollbackResponse]
#
# @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 rollback_project(project_id, rollback_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/projects/{projectId}:rollback', options)
command.request_representation = Google::Apis::DatastoreV1::RollbackRequest::Representation
command.request_object = rollback_request_object
command.response_representation = Google::Apis::DatastoreV1::RollbackResponse::Representation
command.response_class = Google::Apis::DatastoreV1::RollbackResponse
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
# Looks up entities by key.
# @param [String] project_id
# The ID of the project against which to make the request.
# @param [Google::Apis::DatastoreV1::LookupRequest] lookup_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::DatastoreV1::LookupResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DatastoreV1::LookupResponse]
#
# @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 lookup_project(project_id, lookup_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/projects/{projectId}:lookup', options)
command.request_representation = Google::Apis::DatastoreV1::LookupRequest::Representation
command.request_object = lookup_request_object
command.response_representation = Google::Apis::DatastoreV1::LookupResponse::Representation
command.response_class = Google::Apis::DatastoreV1::LookupResponse
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
# Allocates IDs for the given keys, which is useful for referencing an entity # Allocates IDs for the given keys, which is useful for referencing an entity
# before it is inserted. # before it is inserted.
# @param [String] project_id # @param [String] project_id
@ -148,105 +247,6 @@ module Google
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
# Queries for entities.
# @param [String] project_id
# The ID of the project against which to make the request.
# @param [Google::Apis::DatastoreV1::RunQueryRequest] run_query_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::DatastoreV1::RunQueryResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DatastoreV1::RunQueryResponse]
#
# @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 run_project_query(project_id, run_query_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/projects/{projectId}:runQuery', options)
command.request_representation = Google::Apis::DatastoreV1::RunQueryRequest::Representation
command.request_object = run_query_request_object
command.response_representation = Google::Apis::DatastoreV1::RunQueryResponse::Representation
command.response_class = Google::Apis::DatastoreV1::RunQueryResponse
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
# Rolls back a transaction.
# @param [String] project_id
# The ID of the project against which to make the request.
# @param [Google::Apis::DatastoreV1::RollbackRequest] rollback_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::DatastoreV1::RollbackResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DatastoreV1::RollbackResponse]
#
# @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 rollback_project(project_id, rollback_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/projects/{projectId}:rollback', options)
command.request_representation = Google::Apis::DatastoreV1::RollbackRequest::Representation
command.request_object = rollback_request_object
command.response_representation = Google::Apis::DatastoreV1::RollbackResponse::Representation
command.response_class = Google::Apis::DatastoreV1::RollbackResponse
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
# Looks up entities by key.
# @param [String] project_id
# The ID of the project against which to make the request.
# @param [Google::Apis::DatastoreV1::LookupRequest] lookup_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::DatastoreV1::LookupResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DatastoreV1::LookupResponse]
#
# @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 lookup_project(project_id, lookup_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/projects/{projectId}:lookup', options)
command.request_representation = Google::Apis::DatastoreV1::LookupRequest::Representation
command.request_object = lookup_request_object
command.response_representation = Google::Apis::DatastoreV1::LookupResponse::Representation
command.response_class = Google::Apis::DatastoreV1::LookupResponse
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 protected

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/deployment-manager/ # @see https://cloud.google.com/deployment-manager/
module DeploymentmanagerV2 module DeploymentmanagerV2
VERSION = 'V2' VERSION = 'V2'
REVISION = '20170501' REVISION = '20170615'
# 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

@ -105,6 +105,13 @@ module Google
class Binding class Binding
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Represents an expression text. Example:
# title: "User account presence" description: "Determines whether the request
# has a user account" expression: "size(request.user) > 0"
# Corresponds to the JSON property `condition`
# @return [Google::Apis::DeploymentmanagerV2::Expr]
attr_accessor :condition
# Specifies the identities requesting access for a Cloud Platform resource. ` # Specifies the identities requesting access for a Cloud Platform resource. `
# members` can have the following values: # members` can have the following values:
# * `allUsers`: A special identifier that represents anyone who is on the # * `allUsers`: A special identifier that represents anyone who is on the
@ -135,6 +142,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@condition = args[:condition] if args.key?(:condition)
@members = args[:members] if args.key?(:members) @members = args[:members] if args.key?(:members)
@role = args[:role] if args.key?(:role) @role = args[:role] if args.key?(:role)
end end
@ -476,6 +484,50 @@ module Google
end end
end end
# Represents an expression text. Example:
# title: "User account presence" description: "Determines whether the request
# has a user account" expression: "size(request.user) > 0"
class Expr
include Google::Apis::Core::Hashable
# An optional description of the expression. This is a longer text which
# describes the expression, e.g. when hovered over it in a UI.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Textual representation of an expression in Common Expression Language syntax.
# The application context of the containing message determines which well-known
# feature set of CEL is supported.
# Corresponds to the JSON property `expression`
# @return [String]
attr_accessor :expression
# An optional string indicating the location of the expression for error
# reporting, e.g. a file name and a position in the file.
# Corresponds to the JSON property `location`
# @return [String]
attr_accessor :location
# An optional title for the expression, i.e. a short string describing its
# purpose. This can be used e.g. in UIs which allow to enter the expression.
# Corresponds to the JSON property `title`
# @return [String]
attr_accessor :title
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@description = args[:description] if args.key?(:description)
@expression = args[:expression] if args.key?(:expression)
@location = args[:location] if args.key?(:location)
@title = args[:title] if args.key?(:title)
end
end
# #
class ImportFile class ImportFile
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -505,6 +557,11 @@ module Google
class LogConfig class LogConfig
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Write a Cloud Audit log
# Corresponds to the JSON property `cloudAudit`
# @return [Google::Apis::DeploymentmanagerV2::LogConfigCloudAuditOptions]
attr_accessor :cloud_audit
# Options for counters # Options for counters
# Corresponds to the JSON property `counter` # Corresponds to the JSON property `counter`
# @return [Google::Apis::DeploymentmanagerV2::LogConfigCounterOptions] # @return [Google::Apis::DeploymentmanagerV2::LogConfigCounterOptions]
@ -516,10 +573,30 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@cloud_audit = args[:cloud_audit] if args.key?(:cloud_audit)
@counter = args[:counter] if args.key?(:counter) @counter = args[:counter] if args.key?(:counter)
end end
end end
# Write a Cloud Audit log
class LogConfigCloudAuditOptions
include Google::Apis::Core::Hashable
# The log_name to populate in the Cloud Audit Record.
# Corresponds to the JSON property `logName`
# @return [String]
attr_accessor :log_name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@log_name = args[:log_name] if args.key?(:log_name)
end
end
# Options for counters # Options for counters
class LogConfigCounterOptions class LogConfigCounterOptions
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -969,9 +1046,8 @@ module Google
# @return [Array<Google::Apis::DeploymentmanagerV2::AuditConfig>] # @return [Array<Google::Apis::DeploymentmanagerV2::AuditConfig>]
attr_accessor :audit_configs attr_accessor :audit_configs
# Associates a list of `members` to a `role`. Multiple `bindings` must not be # Associates a list of `members` to a `role`. `bindings` with no members will
# specified for the same `role`. `bindings` with no members will result in an # result in an error.
# error.
# Corresponds to the JSON property `bindings` # Corresponds to the JSON property `bindings`
# @return [Array<Google::Apis::DeploymentmanagerV2::Binding>] # @return [Array<Google::Apis::DeploymentmanagerV2::Binding>]
attr_accessor :bindings attr_accessor :bindings

View File

@ -94,6 +94,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class Expr
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ImportFile class ImportFile
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -106,6 +112,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class LogConfigCloudAuditOptions
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LogConfigCounterOptions class LogConfigCounterOptions
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -283,6 +295,8 @@ module Google
class Binding class Binding
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :condition, as: 'condition', class: Google::Apis::DeploymentmanagerV2::Expr, decorator: Google::Apis::DeploymentmanagerV2::Expr::Representation
collection :members, as: 'members' collection :members, as: 'members'
property :role, as: 'role' property :role, as: 'role'
end end
@ -377,6 +391,16 @@ module Google
end end
end end
class Expr
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :expression, as: 'expression'
property :location, as: 'location'
property :title, as: 'title'
end
end
class ImportFile class ImportFile
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -388,11 +412,20 @@ module Google
class LogConfig class LogConfig
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :cloud_audit, as: 'cloudAudit', class: Google::Apis::DeploymentmanagerV2::LogConfigCloudAuditOptions, decorator: Google::Apis::DeploymentmanagerV2::LogConfigCloudAuditOptions::Representation
property :counter, as: 'counter', class: Google::Apis::DeploymentmanagerV2::LogConfigCounterOptions, decorator: Google::Apis::DeploymentmanagerV2::LogConfigCounterOptions::Representation property :counter, as: 'counter', class: Google::Apis::DeploymentmanagerV2::LogConfigCounterOptions, decorator: Google::Apis::DeploymentmanagerV2::LogConfigCounterOptions::Representation
end end
end end
class LogConfigCloudAuditOptions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :log_name, as: 'logName'
end
end
class LogConfigCounterOptions class LogConfigCounterOptions
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -264,9 +264,8 @@ module Google
# @param [String] project # @param [String] project
# The project ID for this request. # The project ID for this request.
# @param [String] filter # @param [String] filter
# Sets a filter expression for filtering listed resources, in the form filter=` # Sets a filter `expression` for filtering listed resources. Your `expression`
# expression`. Your `expression` must be in the format: field_name # must be in the format: field_name comparison_string literal_string.
# comparison_string literal_string.
# The field_name is the name of the field you want to compare. Only atomic field # The field_name is the name of the field you want to compare. Only atomic field
# types are supported (string, number, boolean). The comparison_string must be # types are supported (string, number, boolean). The comparison_string must be
# either eq (equals) or ne (not equals). The literal_string is the string value # either eq (equals) or ne (not equals). The literal_string is the string value
@ -275,7 +274,7 @@ module Google
# is interpreted as a regular expression using RE2 syntax. The literal value # is interpreted as a regular expression using RE2 syntax. The literal value
# must match the entire field. # must match the entire field.
# For example, to filter for instances that do not have a name of example- # For example, to filter for instances that do not have a name of example-
# instance, you would use filter=name ne example-instance. # instance, you would use name ne example-instance.
# You can filter on nested fields. For example, you could filter on instances # You can filter on nested fields. For example, you could filter on instances
# that have set the scheduling.automaticRestart field to true. Use filtering on # that have set the scheduling.automaticRestart field to true. Use filtering on
# nested fields to take advantage of labels to organize and search for results # nested fields to take advantage of labels to organize and search for results
@ -627,9 +626,8 @@ module Google
# @param [String] deployment # @param [String] deployment
# The name of the deployment for this request. # The name of the deployment for this request.
# @param [String] filter # @param [String] filter
# Sets a filter expression for filtering listed resources, in the form filter=` # Sets a filter `expression` for filtering listed resources. Your `expression`
# expression`. Your `expression` must be in the format: field_name # must be in the format: field_name comparison_string literal_string.
# comparison_string literal_string.
# The field_name is the name of the field you want to compare. Only atomic field # The field_name is the name of the field you want to compare. Only atomic field
# types are supported (string, number, boolean). The comparison_string must be # types are supported (string, number, boolean). The comparison_string must be
# either eq (equals) or ne (not equals). The literal_string is the string value # either eq (equals) or ne (not equals). The literal_string is the string value
@ -638,7 +636,7 @@ module Google
# is interpreted as a regular expression using RE2 syntax. The literal value # is interpreted as a regular expression using RE2 syntax. The literal value
# must match the entire field. # must match the entire field.
# For example, to filter for instances that do not have a name of example- # For example, to filter for instances that do not have a name of example-
# instance, you would use filter=name ne example-instance. # instance, you would use name ne example-instance.
# You can filter on nested fields. For example, you could filter on instances # You can filter on nested fields. For example, you could filter on instances
# that have set the scheduling.automaticRestart field to true. Use filtering on # that have set the scheduling.automaticRestart field to true. Use filtering on
# nested fields to take advantage of labels to organize and search for results # nested fields to take advantage of labels to organize and search for results
@ -743,9 +741,8 @@ module Google
# @param [String] project # @param [String] project
# The project ID for this request. # The project ID for this request.
# @param [String] filter # @param [String] filter
# Sets a filter expression for filtering listed resources, in the form filter=` # Sets a filter `expression` for filtering listed resources. Your `expression`
# expression`. Your `expression` must be in the format: field_name # must be in the format: field_name comparison_string literal_string.
# comparison_string literal_string.
# The field_name is the name of the field you want to compare. Only atomic field # The field_name is the name of the field you want to compare. Only atomic field
# types are supported (string, number, boolean). The comparison_string must be # types are supported (string, number, boolean). The comparison_string must be
# either eq (equals) or ne (not equals). The literal_string is the string value # either eq (equals) or ne (not equals). The literal_string is the string value
@ -754,7 +751,7 @@ module Google
# is interpreted as a regular expression using RE2 syntax. The literal value # is interpreted as a regular expression using RE2 syntax. The literal value
# must match the entire field. # must match the entire field.
# For example, to filter for instances that do not have a name of example- # For example, to filter for instances that do not have a name of example-
# instance, you would use filter=name ne example-instance. # instance, you would use name ne example-instance.
# You can filter on nested fields. For example, you could filter on instances # You can filter on nested fields. For example, you could filter on instances
# that have set the scheduling.automaticRestart field to true. Use filtering on # that have set the scheduling.automaticRestart field to true. Use filtering on
# nested fields to take advantage of labels to organize and search for results # nested fields to take advantage of labels to organize and search for results
@ -863,9 +860,8 @@ module Google
# @param [String] deployment # @param [String] deployment
# The name of the deployment for this request. # The name of the deployment for this request.
# @param [String] filter # @param [String] filter
# Sets a filter expression for filtering listed resources, in the form filter=` # Sets a filter `expression` for filtering listed resources. Your `expression`
# expression`. Your `expression` must be in the format: field_name # must be in the format: field_name comparison_string literal_string.
# comparison_string literal_string.
# The field_name is the name of the field you want to compare. Only atomic field # The field_name is the name of the field you want to compare. Only atomic field
# types are supported (string, number, boolean). The comparison_string must be # types are supported (string, number, boolean). The comparison_string must be
# either eq (equals) or ne (not equals). The literal_string is the string value # either eq (equals) or ne (not equals). The literal_string is the string value
@ -874,7 +870,7 @@ module Google
# is interpreted as a regular expression using RE2 syntax. The literal value # is interpreted as a regular expression using RE2 syntax. The literal value
# must match the entire field. # must match the entire field.
# For example, to filter for instances that do not have a name of example- # For example, to filter for instances that do not have a name of example-
# instance, you would use filter=name ne example-instance. # instance, you would use name ne example-instance.
# You can filter on nested fields. For example, you could filter on instances # You can filter on nested fields. For example, you could filter on instances
# that have set the scheduling.automaticRestart field to true. Use filtering on # that have set the scheduling.automaticRestart field to true. Use filtering on
# nested fields to take advantage of labels to organize and search for results # nested fields to take advantage of labels to organize and search for results
@ -941,9 +937,8 @@ module Google
# @param [String] project # @param [String] project
# The project ID for this request. # The project ID for this request.
# @param [String] filter # @param [String] filter
# Sets a filter expression for filtering listed resources, in the form filter=` # Sets a filter `expression` for filtering listed resources. Your `expression`
# expression`. Your `expression` must be in the format: field_name # must be in the format: field_name comparison_string literal_string.
# comparison_string literal_string.
# The field_name is the name of the field you want to compare. Only atomic field # The field_name is the name of the field you want to compare. Only atomic field
# types are supported (string, number, boolean). The comparison_string must be # types are supported (string, number, boolean). The comparison_string must be
# either eq (equals) or ne (not equals). The literal_string is the string value # either eq (equals) or ne (not equals). The literal_string is the string value
@ -952,7 +947,7 @@ module Google
# is interpreted as a regular expression using RE2 syntax. The literal value # is interpreted as a regular expression using RE2 syntax. The literal value
# must match the entire field. # must match the entire field.
# For example, to filter for instances that do not have a name of example- # For example, to filter for instances that do not have a name of example-
# instance, you would use filter=name ne example-instance. # instance, you would use name ne example-instance.
# You can filter on nested fields. For example, you could filter on instances # You can filter on nested fields. For example, you could filter on instances
# that have set the scheduling.automaticRestart field to true. Use filtering on # that have set the scheduling.automaticRestart field to true. Use filtering on
# nested fields to take advantage of labels to organize and search for results # nested fields to take advantage of labels to organize and search for results

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 = '20170607' REVISION = '20170630'
# 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 DnsV2beta1 module DnsV2beta1
VERSION = 'V2beta1' VERSION = 'V2beta1'
REVISION = '20170607' REVISION = '20170630'
# 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 = '20170531' REVISION = '20170705'
# View and manage your reports in DoubleClick Bid Manager # View and manage your reports in DoubleClick Bid Manager
AUTH_DOUBLECLICKBIDMANAGER = 'https://www.googleapis.com/auth/doubleclickbidmanager' AUTH_DOUBLECLICKBIDMANAGER = 'https://www.googleapis.com/auth/doubleclickbidmanager'

View File

@ -65,8 +65,8 @@ module Google
class DownloadLineItemsResponse class DownloadLineItemsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Retrieved line items in CSV format. Refer to Entity Write File Format or # Retrieved line items in CSV format. For more information about file formats,
# Structured Data File Format for more information on file formats. # see Entity Write File Format.
# Corresponds to the JSON property `lineItems` # Corresponds to the JSON property `lineItems`
# @return [String] # @return [String]
attr_accessor :line_items attr_accessor :line_items

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