Regen APIs

This commit is contained in:
Steve Bazyl 2017-04-03 13:18:48 -07:00
parent c645e7d2f8
commit e3b8c800d6
360 changed files with 55313 additions and 55525 deletions

View File

@ -1,6 +1,7 @@
# 0.11.0 # 0.11.0
* *Breaking change* - Fix handling of large numbers during code generation. Previously the * *Breaking change* - Fix handling of large numbers during code generation. Previously the
uint64/int64 formats were passed through as strings. They are now coerced to/from Fixnum/Bignum types uint64/int64 formats were passed through as strings. They are now coerced to/from Fixnum/Bignum types.
Affected APIs:
* *Breaking change* - No longer normalize unicode strings in URI templates. Mostly affects * *Breaking change* - No longer normalize unicode strings in URI templates. Mostly affects
Cloud Storage, but other APIs with unicode strings in paths may be affected. Old behavior Cloud Storage, but other APIs with unicode strings in paths may be affected. Old behavior
can be restored using the `normalize_unicode` request option. can be restored using the `normalize_unicode` request option.
@ -14,6 +15,8 @@
* Treat 429 status codes as rate limit errors * Treat 429 status codes as rate limit errors
* Fix a potential download corruption if download interrupted and retried against a URL * Fix a potential download corruption if download interrupted and retried against a URL
that does not return partial content. that does not return partial content.
* Updated dependencies
* Regen APIs, add appsmarketplace:v2
# 0.10.3 # 0.10.3
* Regenerate APIs * Regenerate APIs

File diff suppressed because it is too large Load Diff

View File

@ -86,11 +86,6 @@ 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]
@ -101,15 +96,20 @@ 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

View File

@ -68,9 +68,9 @@ module Google
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

View File

@ -45,6 +45,7 @@ module Google
def initialize def initialize
super('https://acceleratedmobilepageurl.googleapis.com/', '') super('https://acceleratedmobilepageurl.googleapis.com/', '')
@batch_path = 'batch'
end end
# Returns AMP URL(s) and equivalent # Returns AMP URL(s) and equivalent

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 = '20170330' REVISION = '20170331'
# 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

@ -22,144 +22,6 @@ module Google
module Apis module Apis
module Adexchangebuyer2V2beta1 module Adexchangebuyer2V2beta1
class CreativeDealAssociation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Creative
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class FilteringStats
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RemoveDealAssociationRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Client
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Correction
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AddDealAssociationRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListDealAssociationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Disapproval
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class StopWatchingCreativeRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ServingRestriction
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Date
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 WatchCreativeRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AppContext
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListClientsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class NativeContent
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SecurityContext
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListCreativesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class HtmlContent
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ServingContext
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Image
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Reason
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class VideoContent class VideoContent
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -209,252 +71,141 @@ module Google
end end
class CreativeDealAssociation class CreativeDealAssociation
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
property :deals_id, as: 'dealsId'
property :account_id, as: 'accountId'
property :creative_id, as: 'creativeId'
end
end
class Creative include Google::Apis::Core::JsonObjectSupport
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :account_id, as: 'accountId'
property :native, as: 'native', class: Google::Apis::Adexchangebuyer2V2beta1::NativeContent, decorator: Google::Apis::Adexchangebuyer2V2beta1::NativeContent::Representation
collection :serving_restrictions, as: 'servingRestrictions', class: Google::Apis::Adexchangebuyer2V2beta1::ServingRestriction, decorator: Google::Apis::Adexchangebuyer2V2beta1::ServingRestriction::Representation
property :video, as: 'video', class: Google::Apis::Adexchangebuyer2V2beta1::VideoContent, decorator: Google::Apis::Adexchangebuyer2V2beta1::VideoContent::Representation
property :agency_id, as: 'agencyId'
collection :click_through_urls, as: 'clickThroughUrls'
property :ad_choices_destination_url, as: 'adChoicesDestinationUrl'
collection :detected_sensitive_categories, as: 'detectedSensitiveCategories'
collection :restricted_categories, as: 'restrictedCategories'
collection :corrections, as: 'corrections', class: Google::Apis::Adexchangebuyer2V2beta1::Correction, decorator: Google::Apis::Adexchangebuyer2V2beta1::Correction::Representation
property :version, as: 'version'
collection :vendor_ids, as: 'vendorIds'
collection :impression_tracking_urls, as: 'impressionTrackingUrls'
property :html, as: 'html', class: Google::Apis::Adexchangebuyer2V2beta1::HtmlContent, decorator: Google::Apis::Adexchangebuyer2V2beta1::HtmlContent::Representation
collection :detected_product_categories, as: 'detectedProductCategories'
property :deals_status, as: 'dealsStatus'
property :open_auction_status, as: 'openAuctionStatus'
property :advertiser_name, as: 'advertiserName'
collection :detected_advertiser_ids, as: 'detectedAdvertiserIds'
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'
property :creative_id, as: 'creativeId'
end
end end
class FilteringStats class FilteringStats
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
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 include Google::Apis::Core::JsonObjectSupport
end
end class Creative
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end end
class RemoveDealAssociationRequest class RemoveDealAssociationRequest
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
property :association, as: 'association', class: Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation, decorator: Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation::Representation
end include Google::Apis::Core::JsonObjectSupport
end end
class Client class Client
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
property :visible_to_seller, as: 'visibleToSeller' include Google::Apis::Core::JsonObjectSupport
property :entity_id, as: 'entityId'
property :client_account_id, as: 'clientAccountId'
property :entity_name, as: 'entityName'
property :status, as: 'status'
property :entity_type, as: 'entityType'
property :client_name, as: 'clientName'
property :role, as: 'role'
end
end end
class Correction class Correction
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
collection :details, as: 'details'
property :type, as: 'type'
collection :contexts, as: 'contexts', class: Google::Apis::Adexchangebuyer2V2beta1::ServingContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::ServingContext::Representation
end include Google::Apis::Core::JsonObjectSupport
end
class AddDealAssociationRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :association, as: 'association', class: Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation, decorator: Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation::Representation
end
end end
class ListDealAssociationsResponse class ListDealAssociationsResponse
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :associations, as: 'associations', class: Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation, decorator: Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation::Representation
end include Google::Apis::Core::JsonObjectSupport
end
class AddDealAssociationRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end end
class Disapproval class Disapproval
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
collection :details, as: 'details' include Google::Apis::Core::JsonObjectSupport
property :reason, as: 'reason'
end
end end
class StopWatchingCreativeRequest class StopWatchingCreativeRequest
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
end include Google::Apis::Core::JsonObjectSupport
end end
class ServingRestriction class ServingRestriction
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
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 include Google::Apis::Core::JsonObjectSupport
property :status, as: 'status'
end
end end
class Date class Date
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
property :year, as: 'year' include Google::Apis::Core::JsonObjectSupport
property :day, as: 'day'
property :month, as: 'month'
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 end
class WatchCreativeRequest class WatchCreativeRequest
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
property :topic, as: 'topic' include Google::Apis::Core::JsonObjectSupport
end
end end
class AppContext class AppContext
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
collection :app_types, as: 'appTypes'
end
end
class ListClientsResponse include Google::Apis::Core::JsonObjectSupport
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :clients, as: 'clients', class: Google::Apis::Adexchangebuyer2V2beta1::Client, decorator: Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
end
end end
class NativeContent class NativeContent
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
property :body, as: 'body'
property :star_rating, as: 'starRating'
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 :price_display_text, as: 'priceDisplayText' include Google::Apis::Core::JsonObjectSupport
property :click_tracking_url, as: 'clickTrackingUrl' end
property :image, as: 'image', class: Google::Apis::Adexchangebuyer2V2beta1::Image, decorator: Google::Apis::Adexchangebuyer2V2beta1::Image::Representation
property :advertiser_name, as: 'advertiserName' class ListClientsResponse
property :store_url, as: 'storeUrl' class Representation < Google::Apis::Core::JsonRepresentation; end
property :headline, as: 'headline'
property :app_icon, as: 'appIcon', class: Google::Apis::Adexchangebuyer2V2beta1::Image, decorator: Google::Apis::Adexchangebuyer2V2beta1::Image::Representation
property :call_to_action, as: 'callToAction' include Google::Apis::Core::JsonObjectSupport
end
end end
class SecurityContext class SecurityContext
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
collection :securities, as: 'securities'
end
end
class ListCreativesResponse include Google::Apis::Core::JsonObjectSupport
# @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 end
class HtmlContent class HtmlContent
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
property :height, as: 'height' include Google::Apis::Core::JsonObjectSupport
property :width, as: 'width' end
property :snippet, as: 'snippet'
end class ListCreativesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end end
class ServingContext class ServingContext
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
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 include Google::Apis::Core::JsonObjectSupport
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 :auction_type, as: 'auctionType', class: Google::Apis::Adexchangebuyer2V2beta1::AuctionContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::AuctionContext::Representation
property :all, as: 'all'
end
end end
class Image class Image
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
property :height, as: 'height' include Google::Apis::Core::JsonObjectSupport
property :width, as: 'width'
property :url, as: 'url'
end
end end
class Reason class Reason
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
property :status, as: 'status' include Google::Apis::Core::JsonObjectSupport
property :count, as: 'count'
end
end end
class VideoContent class VideoContent
@ -468,8 +219,8 @@ module Google
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :email, as: 'email' property :email, as: 'email'
property :client_account_id, as: 'clientAccountId' property :client_account_id, :numeric_string => true, as: 'clientAccountId'
property :invitation_id, as: 'invitationId' property :invitation_id, :numeric_string => true, as: 'invitationId'
end end
end end
@ -515,10 +266,259 @@ module Google
class ClientUser class ClientUser
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :client_account_id, as: 'clientAccountId'
property :status, as: 'status' property :status, as: 'status'
property :user_id, as: 'userId' property :user_id, :numeric_string => true, as: 'userId'
property :email, as: 'email' property :email, as: 'email'
property :client_account_id, :numeric_string => true, as: 'clientAccountId'
end
end
class CreativeDealAssociation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :creative_id, as: 'creativeId'
property :deals_id, as: 'dealsId'
property :account_id, as: 'accountId'
end
end
class FilteringStats
# @private
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
end
end
class Creative
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :click_through_urls, as: 'clickThroughUrls'
collection :detected_sensitive_categories, as: 'detectedSensitiveCategories'
property :ad_choices_destination_url, as: 'adChoicesDestinationUrl'
collection :restricted_categories, as: 'restrictedCategories'
collection :corrections, as: 'corrections', class: Google::Apis::Adexchangebuyer2V2beta1::Correction, decorator: Google::Apis::Adexchangebuyer2V2beta1::Correction::Representation
property :version, as: 'version'
collection :vendor_ids, as: 'vendorIds'
collection :impression_tracking_urls, as: 'impressionTrackingUrls'
property :html, as: 'html', class: Google::Apis::Adexchangebuyer2V2beta1::HtmlContent, decorator: Google::Apis::Adexchangebuyer2V2beta1::HtmlContent::Representation
property :deals_status, as: 'dealsStatus'
collection :detected_product_categories, as: 'detectedProductCategories'
property :open_auction_status, as: 'openAuctionStatus'
property :advertiser_name, as: 'advertiserName'
collection :detected_advertiser_ids, as: 'detectedAdvertiserIds'
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'
property :creative_id, as: 'creativeId'
property :account_id, as: 'accountId'
property :native, as: 'native', class: Google::Apis::Adexchangebuyer2V2beta1::NativeContent, decorator: Google::Apis::Adexchangebuyer2V2beta1::NativeContent::Representation
collection :serving_restrictions, as: 'servingRestrictions', class: Google::Apis::Adexchangebuyer2V2beta1::ServingRestriction, decorator: Google::Apis::Adexchangebuyer2V2beta1::ServingRestriction::Representation
property :video, as: 'video', class: Google::Apis::Adexchangebuyer2V2beta1::VideoContent, decorator: Google::Apis::Adexchangebuyer2V2beta1::VideoContent::Representation
property :agency_id, :numeric_string => true, as: 'agencyId'
end
end
class RemoveDealAssociationRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :association, as: 'association', class: Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation, decorator: Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation::Representation
end
end
class Client
# @private
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 :entity_id, :numeric_string => true, as: 'entityId'
property :client_account_id, :numeric_string => true, as: 'clientAccountId'
property :entity_name, as: 'entityName'
property :status, as: 'status'
end
end
class Correction
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :type, as: 'type'
collection :contexts, as: 'contexts', class: Google::Apis::Adexchangebuyer2V2beta1::ServingContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::ServingContext::Representation
collection :details, as: 'details'
end
end
class ListDealAssociationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :associations, as: 'associations', class: Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation, decorator: Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class AddDealAssociationRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :association, as: 'association', class: Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation, decorator: Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation::Representation
end
end
class Disapproval
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :details, as: 'details'
property :reason, as: 'reason'
end
end
class StopWatchingCreativeRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class ServingRestriction
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :status, as: 'status'
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
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 Empty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class WatchCreativeRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :topic, as: 'topic'
end
end
class AppContext
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :app_types, as: 'appTypes'
end
end
class NativeContent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
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 :store_url, as: 'storeUrl'
property :headline, as: 'headline'
property :app_icon, as: 'appIcon', class: Google::Apis::Adexchangebuyer2V2beta1::Image, decorator: Google::Apis::Adexchangebuyer2V2beta1::Image::Representation
property :call_to_action, as: 'callToAction'
property :body, as: 'body'
property :star_rating, as: 'starRating'
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 :price_display_text, as: 'priceDisplayText'
end
end
class ListClientsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :clients, as: 'clients', class: Google::Apis::Adexchangebuyer2V2beta1::Client, decorator: Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
end
end
class SecurityContext
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :securities, as: 'securities'
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
collection :creatives, as: 'creatives', class: Google::Apis::Adexchangebuyer2V2beta1::Creative, decorator: Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class ServingContext
# @private
class Representation < Google::Apis::Core::JsonRepresentation
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 :all, as: 'all'
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
class Image
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :width, as: 'width'
property :url, as: 'url'
property :height, as: 'height'
end
end
class Reason
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :status, as: 'status'
property :count, :numeric_string => true, as: 'count'
end end
end end
end end

File diff suppressed because it is too large Load Diff

View File

@ -176,7 +176,7 @@ module Google
# The last known proposal revision number. # The last known proposal revision number.
# Corresponds to the JSON property `proposalRevisionNumber` # Corresponds to the JSON property `proposalRevisionNumber`
# @return [String] # @return [Fixnum]
attr_accessor :proposal_revision_number attr_accessor :proposal_revision_number
# Indicates an optional action to take on the proposal # Indicates an optional action to take on the proposal
@ -207,7 +207,7 @@ module Google
# The updated revision number for the proposal. # The updated revision number for the proposal.
# Corresponds to the JSON property `proposalRevisionNumber` # Corresponds to the JSON property `proposalRevisionNumber`
# @return [String] # @return [Fixnum]
attr_accessor :proposal_revision_number attr_accessor :proposal_revision_number
def initialize(**args) def initialize(**args)
@ -330,19 +330,19 @@ module Google
# The id of the account. This is required for get and update requests. # The id of the account. This is required for get and update requests.
# Corresponds to the JSON property `accountId` # Corresponds to the JSON property `accountId`
# @return [String] # @return [Fixnum]
attr_accessor :account_id attr_accessor :account_id
# The billing id to determine which adgroup to provide budget information for. # The billing id to determine which adgroup to provide budget information for.
# This is required for get and update requests. # This is required for get and update requests.
# Corresponds to the JSON property `billingId` # Corresponds to the JSON property `billingId`
# @return [String] # @return [Fixnum]
attr_accessor :billing_id attr_accessor :billing_id
# The daily budget amount in unit amount of the account currency to apply for # The daily budget amount in unit amount of the account currency to apply for
# the billingId provided. This is required for update requests. # the billingId provided. This is required for update requests.
# Corresponds to the JSON property `budgetAmount` # Corresponds to the JSON property `budgetAmount`
# @return [String] # @return [Fixnum]
attr_accessor :budget_amount attr_accessor :budget_amount
# The currency code for the buyer. This cannot be altered here. # The currency code for the buyer. This cannot be altered here.
@ -486,7 +486,7 @@ module Google
# Detected advertiser id, if any. Read-only. This field should not be set in # Detected advertiser id, if any. Read-only. This field should not be set in
# requests. # requests.
# Corresponds to the JSON property `advertiserId` # Corresponds to the JSON property `advertiserId`
# @return [Array<String>] # @return [Array<Fixnum>]
attr_accessor :advertiser_id attr_accessor :advertiser_id
# The name of the company being advertised in the creative. The value provided # The name of the company being advertised in the creative. The value provided
@ -497,7 +497,7 @@ module Google
# The agency id for this creative. # The agency id for this creative.
# Corresponds to the JSON property `agencyId` # Corresponds to the JSON property `agencyId`
# @return [String] # @return [Fixnum]
attr_accessor :agency_id attr_accessor :agency_id
# The last upload timestamp of this creative if it was uploaded via API. Read- # The last upload timestamp of this creative if it was uploaded via API. Read-
@ -779,7 +779,7 @@ module Google
# The number of times the creative was filtered for the status. The count is # The number of times the creative was filtered for the status. The count is
# aggregated across all publishers on the exchange. # aggregated across all publishers on the exchange.
# Corresponds to the JSON property `filteringCount` # Corresponds to the JSON property `filteringCount`
# @return [String] # @return [Fixnum]
attr_accessor :filtering_count attr_accessor :filtering_count
# The filtering status code as defined in creative-status-codes.txt. # The filtering status code as defined in creative-status-codes.txt.
@ -1129,7 +1129,7 @@ module Google
# External deal ID. # External deal ID.
# Corresponds to the JSON property `dealId` # Corresponds to the JSON property `dealId`
# @return [String] # @return [Fixnum]
attr_accessor :deal_id attr_accessor :deal_id
# Publisher ID. # Publisher ID.
@ -1291,7 +1291,7 @@ module Google
# Non-binding estimate of the impressions served per day Can be set by buyer or # Non-binding estimate of the impressions served per day Can be set by buyer or
# seller. # seller.
# Corresponds to the JSON property `estimatedImpressionsPerDay` # Corresponds to the JSON property `estimatedImpressionsPerDay`
# @return [String] # @return [Fixnum]
attr_accessor :estimated_impressions_per_day attr_accessor :estimated_impressions_per_day
# The terms for guaranteed fixed price deals. # The terms for guaranteed fixed price deals.
@ -1357,19 +1357,19 @@ module Google
# Guaranteed impressions as a percentage. This is the percentage of guaranteed # Guaranteed impressions as a percentage. This is the percentage of guaranteed
# looks that the buyer is guaranteeing to buy. # looks that the buyer is guaranteeing to buy.
# Corresponds to the JSON property `guaranteedImpressions` # Corresponds to the JSON property `guaranteedImpressions`
# @return [String] # @return [Fixnum]
attr_accessor :guaranteed_impressions attr_accessor :guaranteed_impressions
# Count of guaranteed looks. Required for deal, optional for product. For CPD # Count of guaranteed looks. Required for deal, optional for product. For CPD
# deals, buyer changes to guaranteed_looks will be ignored. # deals, buyer changes to guaranteed_looks will be ignored.
# Corresponds to the JSON property `guaranteedLooks` # Corresponds to the JSON property `guaranteedLooks`
# @return [String] # @return [Fixnum]
attr_accessor :guaranteed_looks attr_accessor :guaranteed_looks
# Count of minimum daily looks for a CPD deal. For CPD deals, buyer should # Count of minimum daily looks for a CPD deal. For CPD deals, buyer should
# negotiate on this field instead of guaranteed_looks. # negotiate on this field instead of guaranteed_looks.
# Corresponds to the JSON property `minimumDailyLooks` # Corresponds to the JSON property `minimumDailyLooks`
# @return [String] # @return [Fixnum]
attr_accessor :minimum_daily_looks attr_accessor :minimum_daily_looks
def initialize(**args) def initialize(**args)
@ -1394,13 +1394,13 @@ module Google
# deal was first converted to DFP currency. This is used to convert the # deal was first converted to DFP currency. This is used to convert the
# contracted price into advertiser's currency without discrepancy. # contracted price into advertiser's currency without discrepancy.
# Corresponds to the JSON property `currencyConversionTimeMs` # Corresponds to the JSON property `currencyConversionTimeMs`
# @return [String] # @return [Fixnum]
attr_accessor :currency_conversion_time_ms attr_accessor :currency_conversion_time_ms
# The DFP line item id associated with this deal. For features like CPD, buyers # The DFP line item id associated with this deal. For features like CPD, buyers
# can retrieve the DFP line item for billing reconciliation. # can retrieve the DFP line item for billing reconciliation.
# Corresponds to the JSON property `dfpLineItemId` # Corresponds to the JSON property `dfpLineItemId`
# @return [String] # @return [Fixnum]
attr_accessor :dfp_line_item_id attr_accessor :dfp_line_item_id
# The original contracted quantity (# impressions) for this deal. To ensure # The original contracted quantity (# impressions) for this deal. To ensure
@ -1408,7 +1408,7 @@ module Google
# such that guaranteed_looks is greater than the contracted quantity. However # such that guaranteed_looks is greater than the contracted quantity. However
# clients are billed using the original contracted quantity. # clients are billed using the original contracted quantity.
# Corresponds to the JSON property `originalContractedQuantity` # Corresponds to the JSON property `originalContractedQuantity`
# @return [String] # @return [Fixnum]
attr_accessor :original_contracted_quantity attr_accessor :original_contracted_quantity
# The original reservation price for the deal, if the currency code is different # The original reservation price for the deal, if the currency code is different
@ -1512,7 +1512,7 @@ module Google
# The last known proposal revision number. # The last known proposal revision number.
# Corresponds to the JSON property `proposalRevisionNumber` # Corresponds to the JSON property `proposalRevisionNumber`
# @return [String] # @return [Fixnum]
attr_accessor :proposal_revision_number attr_accessor :proposal_revision_number
# Indicates an optional action to take on the proposal # Indicates an optional action to take on the proposal
@ -1543,7 +1543,7 @@ module Google
# The updated revision number for the proposal. # The updated revision number for the proposal.
# Corresponds to the JSON property `proposalRevisionNumber` # Corresponds to the JSON property `proposalRevisionNumber`
# @return [String] # @return [Fixnum]
attr_accessor :proposal_revision_number attr_accessor :proposal_revision_number
def initialize(**args) def initialize(**args)
@ -1712,7 +1712,7 @@ module Google
# The last known revision number for the proposal. # The last known revision number for the proposal.
# Corresponds to the JSON property `proposalRevisionNumber` # Corresponds to the JSON property `proposalRevisionNumber`
# @return [String] # @return [Fixnum]
attr_accessor :proposal_revision_number attr_accessor :proposal_revision_number
# Indicates an optional action to take on the proposal # Indicates an optional action to take on the proposal
@ -1744,7 +1744,7 @@ module Google
# The latest revision number after the update has been applied. # The latest revision number after the update has been applied.
# Corresponds to the JSON property `orderRevisionNumber` # Corresponds to the JSON property `orderRevisionNumber`
# @return [String] # @return [Fixnum]
attr_accessor :order_revision_number attr_accessor :order_revision_number
def initialize(**args) def initialize(**args)
@ -1868,7 +1868,7 @@ module Google
# The time (ms since epoch) of the deal creation. (readonly) # The time (ms since epoch) of the deal creation. (readonly)
# Corresponds to the JSON property `creationTimeMs` # Corresponds to the JSON property `creationTimeMs`
# @return [String] # @return [Fixnum]
attr_accessor :creation_time_ms attr_accessor :creation_time_ms
# Specifies the creative pre-approval policy (buyer-readonly) # Specifies the creative pre-approval policy (buyer-readonly)
@ -1909,13 +1909,13 @@ module Google
# Proposed flight end time of the deal (ms since epoch) This will generally be # Proposed flight end time of the deal (ms since epoch) This will generally be
# stored in a granularity of a second. (updatable) # stored in a granularity of a second. (updatable)
# Corresponds to the JSON property `flightEndTimeMs` # Corresponds to the JSON property `flightEndTimeMs`
# @return [String] # @return [Fixnum]
attr_accessor :flight_end_time_ms attr_accessor :flight_end_time_ms
# Proposed flight start time of the deal (ms since epoch) This will generally be # Proposed flight start time of the deal (ms since epoch) This will generally be
# stored in a granularity of a second. (updatable) # stored in a granularity of a second. (updatable)
# Corresponds to the JSON property `flightStartTimeMs` # Corresponds to the JSON property `flightStartTimeMs`
# @return [String] # @return [Fixnum]
attr_accessor :flight_start_time_ms attr_accessor :flight_start_time_ms
# Description for the deal terms. (buyer-readonly) # Description for the deal terms. (buyer-readonly)
@ -1938,7 +1938,7 @@ module Google
# The time (ms since epoch) when the deal was last updated. (readonly) # The time (ms since epoch) when the deal was last updated. (readonly)
# Corresponds to the JSON property `lastUpdateTimeMs` # Corresponds to the JSON property `lastUpdateTimeMs`
# @return [String] # @return [Fixnum]
attr_accessor :last_update_time_ms attr_accessor :last_update_time_ms
# The name of the deal. (updatable) # The name of the deal. (updatable)
@ -1954,7 +1954,7 @@ module Google
# The revision number of the product that the deal was created from (readonly, # The revision number of the product that the deal was created from (readonly,
# except on create) # except on create)
# Corresponds to the JSON property `productRevisionNumber` # Corresponds to the JSON property `productRevisionNumber`
# @return [String] # @return [Fixnum]
attr_accessor :product_revision_number attr_accessor :product_revision_number
# Specifies the creative source for programmatic deals, PUBLISHER means creative # Specifies the creative source for programmatic deals, PUBLISHER means creative
@ -2066,7 +2066,7 @@ module Google
# The creation time (in ms since epoch) for the label. # The creation time (in ms since epoch) for the label.
# Corresponds to the JSON property `createTimeMs` # Corresponds to the JSON property `createTimeMs`
# @return [String] # @return [Fixnum]
attr_accessor :create_time_ms attr_accessor :create_time_ms
# Information about the party that created the label. # Information about the party that created the label.
@ -2131,12 +2131,12 @@ module Google
# If the note is associated with a proposal revision number, then store that # If the note is associated with a proposal revision number, then store that
# here. (readonly, except on create) # here. (readonly, except on create)
# Corresponds to the JSON property `proposalRevisionNumber` # Corresponds to the JSON property `proposalRevisionNumber`
# @return [String] # @return [Fixnum]
attr_accessor :proposal_revision_number attr_accessor :proposal_revision_number
# The timestamp (ms since epoch) that this note was created. (readonly) # The timestamp (ms since epoch) that this note was created. (readonly)
# Corresponds to the JSON property `timestampMs` # Corresponds to the JSON property `timestampMs`
# @return [String] # @return [Fixnum]
attr_accessor :timestamp_ms attr_accessor :timestamp_ms
def initialize(**args) def initialize(**args)
@ -2269,7 +2269,7 @@ module Google
# The unix timestamp of the starting time of this performance data. # The unix timestamp of the starting time of this performance data.
# Corresponds to the JSON property `timestamp` # Corresponds to the JSON property `timestamp`
# @return [String] # @return [Fixnum]
attr_accessor :timestamp attr_accessor :timestamp
# The number of bid responses that were unsuccessful due to timeouts, incorrect # The number of bid responses that were unsuccessful due to timeouts, incorrect
@ -2341,13 +2341,13 @@ module Google
# The id for billing purposes, provided for reference. Leave this field blank # The id for billing purposes, provided for reference. Leave this field blank
# for insert requests; the id will be generated automatically. # for insert requests; the id will be generated automatically.
# Corresponds to the JSON property `billingId` # Corresponds to the JSON property `billingId`
# @return [String] # @return [Fixnum]
attr_accessor :billing_id attr_accessor :billing_id
# The config id; generated automatically. Leave this field blank for insert # The config id; generated automatically. Leave this field blank for insert
# requests. # requests.
# Corresponds to the JSON property `configId` # Corresponds to the JSON property `configId`
# @return [String] # @return [Fixnum]
attr_accessor :config_id attr_accessor :config_id
# The name of the config. Must be unique. Required for all requests. # The name of the config. Must be unique. Required for all requests.
@ -2370,12 +2370,12 @@ module Google
# Requests with any of these content labels will not match. Values are from # Requests with any of these content labels will not match. Values are from
# content-labels.txt in the downloadable files section. # content-labels.txt in the downloadable files section.
# Corresponds to the JSON property `excludedContentLabels` # Corresponds to the JSON property `excludedContentLabels`
# @return [Array<String>] # @return [Array<Fixnum>]
attr_accessor :excluded_content_labels attr_accessor :excluded_content_labels
# Requests containing any of these geo criteria ids will not match. # Requests containing any of these geo criteria ids will not match.
# Corresponds to the JSON property `excludedGeoCriteriaIds` # Corresponds to the JSON property `excludedGeoCriteriaIds`
# @return [Array<String>] # @return [Array<Fixnum>]
attr_accessor :excluded_geo_criteria_ids attr_accessor :excluded_geo_criteria_ids
# Requests containing any of these placements will not match. # Requests containing any of these placements will not match.
@ -2385,18 +2385,18 @@ module Google
# Requests containing any of these users list ids will not match. # Requests containing any of these users list ids will not match.
# Corresponds to the JSON property `excludedUserLists` # Corresponds to the JSON property `excludedUserLists`
# @return [Array<String>] # @return [Array<Fixnum>]
attr_accessor :excluded_user_lists attr_accessor :excluded_user_lists
# Requests containing any of these vertical ids will not match. Values are from # Requests containing any of these vertical ids will not match. Values are from
# the publisher-verticals.txt file in the downloadable files section. # the publisher-verticals.txt file in the downloadable files section.
# Corresponds to the JSON property `excludedVerticals` # Corresponds to the JSON property `excludedVerticals`
# @return [Array<String>] # @return [Array<Fixnum>]
attr_accessor :excluded_verticals attr_accessor :excluded_verticals
# Requests containing any of these geo criteria ids will match. # Requests containing any of these geo criteria ids will match.
# Corresponds to the JSON property `geoCriteriaIds` # Corresponds to the JSON property `geoCriteriaIds`
# @return [Array<String>] # @return [Array<Fixnum>]
attr_accessor :geo_criteria_ids attr_accessor :geo_criteria_ids
# Whether this config is active. Required for all requests. # Whether this config is active. Required for all requests.
@ -2426,19 +2426,19 @@ module Google
# Requests containing any of these mobile carrier ids will match. Values are # Requests containing any of these mobile carrier ids will match. Values are
# from mobile-carriers.csv in the downloadable files section. # from mobile-carriers.csv in the downloadable files section.
# Corresponds to the JSON property `mobileCarriers` # Corresponds to the JSON property `mobileCarriers`
# @return [Array<String>] # @return [Array<Fixnum>]
attr_accessor :mobile_carriers attr_accessor :mobile_carriers
# Requests containing any of these mobile device ids will match. Values are from # Requests containing any of these mobile device ids will match. Values are from
# mobile-devices.csv in the downloadable files section. # mobile-devices.csv in the downloadable files section.
# Corresponds to the JSON property `mobileDevices` # Corresponds to the JSON property `mobileDevices`
# @return [Array<String>] # @return [Array<Fixnum>]
attr_accessor :mobile_devices attr_accessor :mobile_devices
# Requests containing any of these mobile operating system version ids will # Requests containing any of these mobile operating system version ids will
# match. Values are from mobile-os.csv in the downloadable files section. # match. Values are from mobile-os.csv in the downloadable files section.
# Corresponds to the JSON property `mobileOperatingSystemVersions` # Corresponds to the JSON property `mobileOperatingSystemVersions`
# @return [Array<String>] # @return [Array<Fixnum>]
attr_accessor :mobile_operating_system_versions attr_accessor :mobile_operating_system_versions
# Requests containing any of these placements will match. # Requests containing any of these placements will match.
@ -2457,7 +2457,7 @@ module Google
# this pretargeting configuration have that creative attribute. Values are from # this pretargeting configuration have that creative attribute. Values are from
# pretargetable-creative-attributes.txt in the downloadable files section. # pretargetable-creative-attributes.txt in the downloadable files section.
# Corresponds to the JSON property `supportedCreativeAttributes` # Corresponds to the JSON property `supportedCreativeAttributes`
# @return [Array<String>] # @return [Array<Fixnum>]
attr_accessor :supported_creative_attributes attr_accessor :supported_creative_attributes
# Requests containing the specified type of user data will match. Possible # Requests containing the specified type of user data will match. Possible
@ -2470,18 +2470,18 @@ module Google
# Requests containing any of these user list ids will match. # Requests containing any of these user list ids will match.
# Corresponds to the JSON property `userLists` # Corresponds to the JSON property `userLists`
# @return [Array<String>] # @return [Array<Fixnum>]
attr_accessor :user_lists attr_accessor :user_lists
# Requests that allow any of these vendor ids will match. Values are from # Requests that allow any of these vendor ids will match. Values are from
# vendors.txt in the downloadable files section. # vendors.txt in the downloadable files section.
# Corresponds to the JSON property `vendorTypes` # Corresponds to the JSON property `vendorTypes`
# @return [Array<String>] # @return [Array<Fixnum>]
attr_accessor :vendor_types attr_accessor :vendor_types
# Requests containing any of these vertical ids will match. # Requests containing any of these vertical ids will match.
# Corresponds to the JSON property `verticals` # Corresponds to the JSON property `verticals`
# @return [Array<String>] # @return [Array<Fixnum>]
attr_accessor :verticals attr_accessor :verticals
# Video requests satisfying any of these player size constraints will match. # Video requests satisfying any of these player size constraints will match.
@ -2529,12 +2529,12 @@ module Google
# Height in pixels. # Height in pixels.
# Corresponds to the JSON property `height` # Corresponds to the JSON property `height`
# @return [String] # @return [Fixnum]
attr_accessor :height attr_accessor :height
# Width in pixels. # Width in pixels.
# Corresponds to the JSON property `width` # Corresponds to the JSON property `width`
# @return [String] # @return [Fixnum]
attr_accessor :width attr_accessor :width
def initialize(**args) def initialize(**args)
@ -2614,13 +2614,13 @@ module Google
# The minimum player height in pixels. Leave this field blank to match any # The minimum player height in pixels. Leave this field blank to match any
# player height. # player height.
# Corresponds to the JSON property `minHeight` # Corresponds to the JSON property `minHeight`
# @return [String] # @return [Fixnum]
attr_accessor :min_height attr_accessor :min_height
# The minimum player width in pixels. Leave this field blank to match any player # The minimum player width in pixels. Leave this field blank to match any player
# width. # width.
# Corresponds to the JSON property `minWidth` # Corresponds to the JSON property `minWidth`
# @return [String] # @return [Fixnum]
attr_accessor :min_width attr_accessor :min_width
def initialize(**args) def initialize(**args)
@ -2774,7 +2774,7 @@ module Google
# Creation time in ms. since epoch (readonly) # Creation time in ms. since epoch (readonly)
# Corresponds to the JSON property `creationTimeMs` # Corresponds to the JSON property `creationTimeMs`
# @return [String] # @return [Fixnum]
attr_accessor :creation_time_ms attr_accessor :creation_time_ms
# Optional contact information for the creator of this product. (buyer-readonly) # Optional contact information for the creator of this product. (buyer-readonly)
@ -2792,13 +2792,13 @@ module Google
# The proposed end time for the deal (ms since epoch) (buyer-readonly) # The proposed end time for the deal (ms since epoch) (buyer-readonly)
# Corresponds to the JSON property `flightEndTimeMs` # Corresponds to the JSON property `flightEndTimeMs`
# @return [String] # @return [Fixnum]
attr_accessor :flight_end_time_ms attr_accessor :flight_end_time_ms
# Inventory availability dates. (times are in ms since epoch) The granularity is # Inventory availability dates. (times are in ms since epoch) The granularity is
# generally in the order of seconds. (buyer-readonly) # generally in the order of seconds. (buyer-readonly)
# Corresponds to the JSON property `flightStartTimeMs` # Corresponds to the JSON property `flightStartTimeMs`
# @return [String] # @return [Fixnum]
attr_accessor :flight_start_time_ms attr_accessor :flight_start_time_ms
# If the creator has already signed off on the product, then the buyer can # If the creator has already signed off on the product, then the buyer can
@ -2828,7 +2828,7 @@ module Google
# Time of last update in ms. since epoch (readonly) # Time of last update in ms. since epoch (readonly)
# Corresponds to the JSON property `lastUpdateTimeMs` # Corresponds to the JSON property `lastUpdateTimeMs`
# @return [String] # @return [Fixnum]
attr_accessor :last_update_time_ms attr_accessor :last_update_time_ms
# Optional legacy offer id if this offer is a preferred deal offer. # Optional legacy offer id if this offer is a preferred deal offer.
@ -2874,7 +2874,7 @@ module Google
# The revision number of the product. (readonly) # The revision number of the product. (readonly)
# Corresponds to the JSON property `revisionNumber` # Corresponds to the JSON property `revisionNumber`
# @return [String] # @return [Fixnum]
attr_accessor :revision_number attr_accessor :revision_number
# Information about the seller that created this product (readonly, except on # Information about the seller that created this product (readonly, except on
@ -3062,12 +3062,12 @@ module Google
# The revision number for the proposal (readonly). # The revision number for the proposal (readonly).
# Corresponds to the JSON property `revisionNumber` # Corresponds to the JSON property `revisionNumber`
# @return [String] # @return [Fixnum]
attr_accessor :revision_number attr_accessor :revision_number
# The time (ms since epoch) when the proposal was last revised (readonly). # The time (ms since epoch) when the proposal was last revised (readonly).
# Corresponds to the JSON property `revisionTimeMs` # Corresponds to the JSON property `revisionTimeMs`
# @return [String] # @return [Fixnum]
attr_accessor :revision_time_ms attr_accessor :revision_time_ms
# Reference to the seller on the proposal. (readonly, except on create) # Reference to the seller on the proposal. (readonly, except on create)
@ -3280,12 +3280,12 @@ module Google
# Publisher provided weekly impressions. # Publisher provided weekly impressions.
# Corresponds to the JSON property `weeklyImpressions` # Corresponds to the JSON property `weeklyImpressions`
# @return [String] # @return [Fixnum]
attr_accessor :weekly_impressions attr_accessor :weekly_impressions
# Publisher provided weekly uniques. # Publisher provided weekly uniques.
# Corresponds to the JSON property `weeklyUniques` # Corresponds to the JSON property `weeklyUniques`
# @return [String] # @return [Fixnum]
attr_accessor :weekly_uniques attr_accessor :weekly_uniques
def initialize(**args) def initialize(**args)
@ -3375,7 +3375,7 @@ module Google
# The long value to exclude/include. # The long value to exclude/include.
# Corresponds to the JSON property `longValue` # Corresponds to the JSON property `longValue`
# @return [String] # @return [Fixnum]
attr_accessor :long_value attr_accessor :long_value
# The string value to exclude/include. # The string value to exclude/include.
@ -3543,7 +3543,7 @@ module Google
# The current revision number of the proposal to be updated. # The current revision number of the proposal to be updated.
# Corresponds to the JSON property `proposalRevisionNumber` # Corresponds to the JSON property `proposalRevisionNumber`
# @return [String] # @return [Fixnum]
attr_accessor :proposal_revision_number attr_accessor :proposal_revision_number
# The proposed action on the private auction proposal. # The proposed action on the private auction proposal.

View File

@ -523,7 +523,7 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
collection :deals, as: 'deals', class: Google::Apis::AdexchangebuyerV1_4::MarketplaceDeal, decorator: Google::Apis::AdexchangebuyerV1_4::MarketplaceDeal::Representation collection :deals, as: 'deals', class: Google::Apis::AdexchangebuyerV1_4::MarketplaceDeal, decorator: Google::Apis::AdexchangebuyerV1_4::MarketplaceDeal::Representation
property :proposal_revision_number, as: 'proposalRevisionNumber' property :proposal_revision_number, :numeric_string => true, as: 'proposalRevisionNumber'
property :update_action, as: 'updateAction' property :update_action, as: 'updateAction'
end end
end end
@ -533,7 +533,7 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
collection :deals, as: 'deals', class: Google::Apis::AdexchangebuyerV1_4::MarketplaceDeal, decorator: Google::Apis::AdexchangebuyerV1_4::MarketplaceDeal::Representation collection :deals, as: 'deals', class: Google::Apis::AdexchangebuyerV1_4::MarketplaceDeal, decorator: Google::Apis::AdexchangebuyerV1_4::MarketplaceDeal::Representation
property :proposal_revision_number, as: 'proposalRevisionNumber' property :proposal_revision_number, :numeric_string => true, as: 'proposalRevisionNumber'
end end
end end
@ -575,9 +575,9 @@ module Google
class Budget class Budget
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :account_id, as: 'accountId' property :account_id, :numeric_string => true, as: 'accountId'
property :billing_id, as: 'billingId' property :billing_id, :numeric_string => true, as: 'billingId'
property :budget_amount, as: 'budgetAmount' property :budget_amount, :numeric_string => true, as: 'budgetAmount'
property :currency_code, as: 'currencyCode' property :currency_code, as: 'currencyCode'
property :id, as: 'id' property :id, as: 'id'
property :kind, as: 'kind' property :kind, as: 'kind'
@ -624,7 +624,7 @@ module Google
property :ad_choices_destination_url, as: 'adChoicesDestinationUrl' property :ad_choices_destination_url, as: 'adChoicesDestinationUrl'
collection :advertiser_id, as: 'advertiserId' collection :advertiser_id, as: 'advertiserId'
property :advertiser_name, as: 'advertiserName' property :advertiser_name, as: 'advertiserName'
property :agency_id, as: 'agencyId' property :agency_id, :numeric_string => true, as: 'agencyId'
property :api_upload_timestamp, as: 'apiUploadTimestamp', type: DateTime property :api_upload_timestamp, as: 'apiUploadTimestamp', type: DateTime
collection :attribute, as: 'attribute' collection :attribute, as: 'attribute'
@ -685,7 +685,7 @@ module Google
class Reason class Reason
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :filtering_count, as: 'filteringCount' property :filtering_count, :numeric_string => true, as: 'filteringCount'
property :filtering_status, as: 'filteringStatus' property :filtering_status, as: 'filteringStatus'
end end
end end
@ -783,7 +783,7 @@ module Google
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :arc_status, as: 'arcStatus' property :arc_status, as: 'arcStatus'
property :deal_id, as: 'dealId' property :deal_id, :numeric_string => true, as: 'dealId'
property :web_property_id, as: 'webPropertyId' property :web_property_id, as: 'webPropertyId'
end end
end end
@ -827,7 +827,7 @@ module Google
property :description, as: 'description' property :description, as: 'description'
property :estimated_gross_spend, as: 'estimatedGrossSpend', class: Google::Apis::AdexchangebuyerV1_4::Price, decorator: Google::Apis::AdexchangebuyerV1_4::Price::Representation property :estimated_gross_spend, as: 'estimatedGrossSpend', class: Google::Apis::AdexchangebuyerV1_4::Price, decorator: Google::Apis::AdexchangebuyerV1_4::Price::Representation
property :estimated_impressions_per_day, as: 'estimatedImpressionsPerDay' property :estimated_impressions_per_day, :numeric_string => true, as: 'estimatedImpressionsPerDay'
property :guaranteed_fixed_price_terms, as: 'guaranteedFixedPriceTerms', class: Google::Apis::AdexchangebuyerV1_4::DealTermsGuaranteedFixedPriceTerms, decorator: Google::Apis::AdexchangebuyerV1_4::DealTermsGuaranteedFixedPriceTerms::Representation property :guaranteed_fixed_price_terms, as: 'guaranteedFixedPriceTerms', class: Google::Apis::AdexchangebuyerV1_4::DealTermsGuaranteedFixedPriceTerms, decorator: Google::Apis::AdexchangebuyerV1_4::DealTermsGuaranteedFixedPriceTerms::Representation
property :non_guaranteed_auction_terms, as: 'nonGuaranteedAuctionTerms', class: Google::Apis::AdexchangebuyerV1_4::DealTermsNonGuaranteedAuctionTerms, decorator: Google::Apis::AdexchangebuyerV1_4::DealTermsNonGuaranteedAuctionTerms::Representation property :non_guaranteed_auction_terms, as: 'nonGuaranteedAuctionTerms', class: Google::Apis::AdexchangebuyerV1_4::DealTermsNonGuaranteedAuctionTerms, decorator: Google::Apis::AdexchangebuyerV1_4::DealTermsNonGuaranteedAuctionTerms::Representation
@ -847,18 +847,18 @@ module Google
collection :fixed_prices, as: 'fixedPrices', class: Google::Apis::AdexchangebuyerV1_4::PricePerBuyer, decorator: Google::Apis::AdexchangebuyerV1_4::PricePerBuyer::Representation collection :fixed_prices, as: 'fixedPrices', class: Google::Apis::AdexchangebuyerV1_4::PricePerBuyer, decorator: Google::Apis::AdexchangebuyerV1_4::PricePerBuyer::Representation
property :guaranteed_impressions, as: 'guaranteedImpressions' property :guaranteed_impressions, :numeric_string => true, as: 'guaranteedImpressions'
property :guaranteed_looks, as: 'guaranteedLooks' property :guaranteed_looks, :numeric_string => true, as: 'guaranteedLooks'
property :minimum_daily_looks, as: 'minimumDailyLooks' property :minimum_daily_looks, :numeric_string => true, as: 'minimumDailyLooks'
end end
end end
class DealTermsGuaranteedFixedPriceTermsBillingInfo class DealTermsGuaranteedFixedPriceTermsBillingInfo
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :currency_conversion_time_ms, as: 'currencyConversionTimeMs' property :currency_conversion_time_ms, :numeric_string => true, as: 'currencyConversionTimeMs'
property :dfp_line_item_id, as: 'dfpLineItemId' property :dfp_line_item_id, :numeric_string => true, as: 'dfpLineItemId'
property :original_contracted_quantity, as: 'originalContractedQuantity' property :original_contracted_quantity, :numeric_string => true, as: 'originalContractedQuantity'
property :price, as: 'price', class: Google::Apis::AdexchangebuyerV1_4::Price, decorator: Google::Apis::AdexchangebuyerV1_4::Price::Representation property :price, as: 'price', class: Google::Apis::AdexchangebuyerV1_4::Price, decorator: Google::Apis::AdexchangebuyerV1_4::Price::Representation
end end
@ -895,7 +895,7 @@ module Google
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
collection :deal_ids, as: 'dealIds' collection :deal_ids, as: 'dealIds'
property :proposal_revision_number, as: 'proposalRevisionNumber' property :proposal_revision_number, :numeric_string => true, as: 'proposalRevisionNumber'
property :update_action, as: 'updateAction' property :update_action, as: 'updateAction'
end end
end end
@ -905,7 +905,7 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
collection :deals, as: 'deals', class: Google::Apis::AdexchangebuyerV1_4::MarketplaceDeal, decorator: Google::Apis::AdexchangebuyerV1_4::MarketplaceDeal::Representation collection :deals, as: 'deals', class: Google::Apis::AdexchangebuyerV1_4::MarketplaceDeal, decorator: Google::Apis::AdexchangebuyerV1_4::MarketplaceDeal::Representation
property :proposal_revision_number, as: 'proposalRevisionNumber' property :proposal_revision_number, :numeric_string => true, as: 'proposalRevisionNumber'
end end
end end
@ -953,7 +953,7 @@ module Google
property :proposal, as: 'proposal', class: Google::Apis::AdexchangebuyerV1_4::Proposal, decorator: Google::Apis::AdexchangebuyerV1_4::Proposal::Representation property :proposal, as: 'proposal', class: Google::Apis::AdexchangebuyerV1_4::Proposal, decorator: Google::Apis::AdexchangebuyerV1_4::Proposal::Representation
property :proposal_revision_number, as: 'proposalRevisionNumber' property :proposal_revision_number, :numeric_string => true, as: 'proposalRevisionNumber'
property :update_action, as: 'updateAction' property :update_action, as: 'updateAction'
end end
end end
@ -963,7 +963,7 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
collection :deals, as: 'deals', class: Google::Apis::AdexchangebuyerV1_4::MarketplaceDeal, decorator: Google::Apis::AdexchangebuyerV1_4::MarketplaceDeal::Representation collection :deals, as: 'deals', class: Google::Apis::AdexchangebuyerV1_4::MarketplaceDeal, decorator: Google::Apis::AdexchangebuyerV1_4::MarketplaceDeal::Representation
property :order_revision_number, as: 'orderRevisionNumber' property :order_revision_number, :numeric_string => true, as: 'orderRevisionNumber'
end end
end end
@ -1012,7 +1012,7 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :buyer_private_data, as: 'buyerPrivateData', class: Google::Apis::AdexchangebuyerV1_4::PrivateData, decorator: Google::Apis::AdexchangebuyerV1_4::PrivateData::Representation property :buyer_private_data, as: 'buyerPrivateData', class: Google::Apis::AdexchangebuyerV1_4::PrivateData, decorator: Google::Apis::AdexchangebuyerV1_4::PrivateData::Representation
property :creation_time_ms, as: 'creationTimeMs' property :creation_time_ms, :numeric_string => true, as: 'creationTimeMs'
property :creative_pre_approval_policy, as: 'creativePreApprovalPolicy' property :creative_pre_approval_policy, as: 'creativePreApprovalPolicy'
property :creative_safe_frame_compatibility, as: 'creativeSafeFrameCompatibility' property :creative_safe_frame_compatibility, as: 'creativeSafeFrameCompatibility'
property :deal_id, as: 'dealId' property :deal_id, as: 'dealId'
@ -1021,15 +1021,15 @@ module Google
property :delivery_control, as: 'deliveryControl', class: Google::Apis::AdexchangebuyerV1_4::DeliveryControl, decorator: Google::Apis::AdexchangebuyerV1_4::DeliveryControl::Representation property :delivery_control, as: 'deliveryControl', class: Google::Apis::AdexchangebuyerV1_4::DeliveryControl, decorator: Google::Apis::AdexchangebuyerV1_4::DeliveryControl::Representation
property :external_deal_id, as: 'externalDealId' property :external_deal_id, as: 'externalDealId'
property :flight_end_time_ms, as: 'flightEndTimeMs' property :flight_end_time_ms, :numeric_string => true, as: 'flightEndTimeMs'
property :flight_start_time_ms, as: 'flightStartTimeMs' property :flight_start_time_ms, :numeric_string => true, as: 'flightStartTimeMs'
property :inventory_description, as: 'inventoryDescription' property :inventory_description, as: 'inventoryDescription'
property :is_rfp_template, as: 'isRfpTemplate' property :is_rfp_template, as: 'isRfpTemplate'
property :kind, as: 'kind' property :kind, as: 'kind'
property :last_update_time_ms, as: 'lastUpdateTimeMs' property :last_update_time_ms, :numeric_string => true, as: 'lastUpdateTimeMs'
property :name, as: 'name' property :name, as: 'name'
property :product_id, as: 'productId' property :product_id, as: 'productId'
property :product_revision_number, as: 'productRevisionNumber' property :product_revision_number, :numeric_string => true, as: 'productRevisionNumber'
property :programmatic_creative_source, as: 'programmaticCreativeSource' property :programmatic_creative_source, as: 'programmaticCreativeSource'
property :proposal_id, as: 'proposalId' property :proposal_id, as: 'proposalId'
collection :seller_contacts, as: 'sellerContacts', class: Google::Apis::AdexchangebuyerV1_4::ContactInformation, decorator: Google::Apis::AdexchangebuyerV1_4::ContactInformation::Representation collection :seller_contacts, as: 'sellerContacts', class: Google::Apis::AdexchangebuyerV1_4::ContactInformation, decorator: Google::Apis::AdexchangebuyerV1_4::ContactInformation::Representation
@ -1057,7 +1057,7 @@ module Google
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :account_id, as: 'accountId' property :account_id, as: 'accountId'
property :create_time_ms, as: 'createTimeMs' property :create_time_ms, :numeric_string => true, as: 'createTimeMs'
property :deprecated_marketplace_deal_party, as: 'deprecatedMarketplaceDealParty', class: Google::Apis::AdexchangebuyerV1_4::MarketplaceDealParty, decorator: Google::Apis::AdexchangebuyerV1_4::MarketplaceDealParty::Representation property :deprecated_marketplace_deal_party, as: 'deprecatedMarketplaceDealParty', class: Google::Apis::AdexchangebuyerV1_4::MarketplaceDealParty, decorator: Google::Apis::AdexchangebuyerV1_4::MarketplaceDealParty::Representation
property :label, as: 'label' property :label, as: 'label'
@ -1073,8 +1073,8 @@ module Google
property :note, as: 'note' property :note, as: 'note'
property :note_id, as: 'noteId' property :note_id, as: 'noteId'
property :proposal_id, as: 'proposalId' property :proposal_id, as: 'proposalId'
property :proposal_revision_number, as: 'proposalRevisionNumber' property :proposal_revision_number, :numeric_string => true, as: 'proposalRevisionNumber'
property :timestamp_ms, as: 'timestampMs' property :timestamp_ms, :numeric_string => true, as: 'timestampMs'
end end
end end
@ -1101,7 +1101,7 @@ module Google
property :quota_throttled_limit, as: 'quotaThrottledLimit' property :quota_throttled_limit, as: 'quotaThrottledLimit'
property :region, as: 'region' property :region, as: 'region'
property :successful_request_rate, as: 'successfulRequestRate' property :successful_request_rate, as: 'successfulRequestRate'
property :timestamp, as: 'timestamp' property :timestamp, :numeric_string => true, as: 'timestamp'
property :unsuccessful_request_rate, as: 'unsuccessfulRequestRate' property :unsuccessful_request_rate, as: 'unsuccessfulRequestRate'
end end
end end
@ -1118,8 +1118,8 @@ module Google
class PretargetingConfig class PretargetingConfig
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :billing_id, as: 'billingId' property :billing_id, :numeric_string => true, as: 'billingId'
property :config_id, as: 'configId' property :config_id, :numeric_string => true, as: 'configId'
property :config_name, as: 'configName' property :config_name, as: 'configName'
collection :creative_type, as: 'creativeType' collection :creative_type, as: 'creativeType'
collection :dimensions, as: 'dimensions', class: Google::Apis::AdexchangebuyerV1_4::PretargetingConfig::Dimension, decorator: Google::Apis::AdexchangebuyerV1_4::PretargetingConfig::Dimension::Representation collection :dimensions, as: 'dimensions', class: Google::Apis::AdexchangebuyerV1_4::PretargetingConfig::Dimension, decorator: Google::Apis::AdexchangebuyerV1_4::PretargetingConfig::Dimension::Representation
@ -1153,8 +1153,8 @@ module Google
class Dimension class Dimension
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :height, as: 'height' property :height, :numeric_string => true, as: 'height'
property :width, as: 'width' property :width, :numeric_string => true, as: 'width'
end end
end end
@ -1178,8 +1178,8 @@ module Google
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :aspect_ratio, as: 'aspectRatio' property :aspect_ratio, as: 'aspectRatio'
property :min_height, as: 'minHeight' property :min_height, :numeric_string => true, as: 'minHeight'
property :min_width, as: 'minWidth' property :min_width, :numeric_string => true, as: 'minWidth'
end end
end end
end end
@ -1225,19 +1225,19 @@ module Google
class Product class Product
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :creation_time_ms, as: 'creationTimeMs' property :creation_time_ms, :numeric_string => true, as: 'creationTimeMs'
collection :creator_contacts, as: 'creatorContacts', class: Google::Apis::AdexchangebuyerV1_4::ContactInformation, decorator: Google::Apis::AdexchangebuyerV1_4::ContactInformation::Representation collection :creator_contacts, as: 'creatorContacts', class: Google::Apis::AdexchangebuyerV1_4::ContactInformation, decorator: Google::Apis::AdexchangebuyerV1_4::ContactInformation::Representation
property :delivery_control, as: 'deliveryControl', class: Google::Apis::AdexchangebuyerV1_4::DeliveryControl, decorator: Google::Apis::AdexchangebuyerV1_4::DeliveryControl::Representation property :delivery_control, as: 'deliveryControl', class: Google::Apis::AdexchangebuyerV1_4::DeliveryControl, decorator: Google::Apis::AdexchangebuyerV1_4::DeliveryControl::Representation
property :flight_end_time_ms, as: 'flightEndTimeMs' property :flight_end_time_ms, :numeric_string => true, as: 'flightEndTimeMs'
property :flight_start_time_ms, as: 'flightStartTimeMs' property :flight_start_time_ms, :numeric_string => true, as: 'flightStartTimeMs'
property :has_creator_signed_off, as: 'hasCreatorSignedOff' property :has_creator_signed_off, as: 'hasCreatorSignedOff'
property :inventory_source, as: 'inventorySource' property :inventory_source, as: 'inventorySource'
property :kind, as: 'kind' property :kind, as: 'kind'
collection :labels, as: 'labels', class: Google::Apis::AdexchangebuyerV1_4::MarketplaceLabel, decorator: Google::Apis::AdexchangebuyerV1_4::MarketplaceLabel::Representation collection :labels, as: 'labels', class: Google::Apis::AdexchangebuyerV1_4::MarketplaceLabel, decorator: Google::Apis::AdexchangebuyerV1_4::MarketplaceLabel::Representation
property :last_update_time_ms, as: 'lastUpdateTimeMs' property :last_update_time_ms, :numeric_string => true, as: 'lastUpdateTimeMs'
property :legacy_offer_id, as: 'legacyOfferId' property :legacy_offer_id, as: 'legacyOfferId'
property :marketplace_publisher_profile_id, as: 'marketplacePublisherProfileId' property :marketplace_publisher_profile_id, as: 'marketplacePublisherProfileId'
property :name, as: 'name' property :name, as: 'name'
@ -1246,7 +1246,7 @@ module Google
property :publisher_profile_id, as: 'publisherProfileId' property :publisher_profile_id, as: 'publisherProfileId'
property :publisher_provided_forecast, as: 'publisherProvidedForecast', class: Google::Apis::AdexchangebuyerV1_4::PublisherProvidedForecast, decorator: Google::Apis::AdexchangebuyerV1_4::PublisherProvidedForecast::Representation property :publisher_provided_forecast, as: 'publisherProvidedForecast', class: Google::Apis::AdexchangebuyerV1_4::PublisherProvidedForecast, decorator: Google::Apis::AdexchangebuyerV1_4::PublisherProvidedForecast::Representation
property :revision_number, as: 'revisionNumber' property :revision_number, :numeric_string => true, as: 'revisionNumber'
property :seller, as: 'seller', class: Google::Apis::AdexchangebuyerV1_4::Seller, decorator: Google::Apis::AdexchangebuyerV1_4::Seller::Representation property :seller, as: 'seller', class: Google::Apis::AdexchangebuyerV1_4::Seller, decorator: Google::Apis::AdexchangebuyerV1_4::Seller::Representation
collection :shared_targetings, as: 'sharedTargetings', class: Google::Apis::AdexchangebuyerV1_4::SharedTargeting, decorator: Google::Apis::AdexchangebuyerV1_4::SharedTargeting::Representation collection :shared_targetings, as: 'sharedTargetings', class: Google::Apis::AdexchangebuyerV1_4::SharedTargeting, decorator: Google::Apis::AdexchangebuyerV1_4::SharedTargeting::Representation
@ -1286,8 +1286,8 @@ module Google
property :private_auction_id, as: 'privateAuctionId' property :private_auction_id, as: 'privateAuctionId'
property :proposal_id, as: 'proposalId' property :proposal_id, as: 'proposalId'
property :proposal_state, as: 'proposalState' property :proposal_state, as: 'proposalState'
property :revision_number, as: 'revisionNumber' property :revision_number, :numeric_string => true, as: 'revisionNumber'
property :revision_time_ms, as: 'revisionTimeMs' property :revision_time_ms, :numeric_string => true, as: 'revisionTimeMs'
property :seller, as: 'seller', class: Google::Apis::AdexchangebuyerV1_4::Seller, decorator: Google::Apis::AdexchangebuyerV1_4::Seller::Representation property :seller, as: 'seller', class: Google::Apis::AdexchangebuyerV1_4::Seller, decorator: Google::Apis::AdexchangebuyerV1_4::Seller::Representation
collection :seller_contacts, as: 'sellerContacts', class: Google::Apis::AdexchangebuyerV1_4::ContactInformation, decorator: Google::Apis::AdexchangebuyerV1_4::ContactInformation::Representation collection :seller_contacts, as: 'sellerContacts', class: Google::Apis::AdexchangebuyerV1_4::ContactInformation, decorator: Google::Apis::AdexchangebuyerV1_4::ContactInformation::Representation
@ -1331,8 +1331,8 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
collection :dimensions, as: 'dimensions', class: Google::Apis::AdexchangebuyerV1_4::Dimension, decorator: Google::Apis::AdexchangebuyerV1_4::Dimension::Representation collection :dimensions, as: 'dimensions', class: Google::Apis::AdexchangebuyerV1_4::Dimension, decorator: Google::Apis::AdexchangebuyerV1_4::Dimension::Representation
property :weekly_impressions, as: 'weeklyImpressions' property :weekly_impressions, :numeric_string => true, as: 'weeklyImpressions'
property :weekly_uniques, as: 'weeklyUniques' property :weekly_uniques, :numeric_string => true, as: 'weeklyUniques'
end end
end end
@ -1362,7 +1362,7 @@ module Google
property :day_part_targeting_value, as: 'dayPartTargetingValue', class: Google::Apis::AdexchangebuyerV1_4::TargetingValueDayPartTargeting, decorator: Google::Apis::AdexchangebuyerV1_4::TargetingValueDayPartTargeting::Representation property :day_part_targeting_value, as: 'dayPartTargetingValue', class: Google::Apis::AdexchangebuyerV1_4::TargetingValueDayPartTargeting, decorator: Google::Apis::AdexchangebuyerV1_4::TargetingValueDayPartTargeting::Representation
property :long_value, as: 'longValue' property :long_value, :numeric_string => true, as: 'longValue'
property :string_value, as: 'stringValue' property :string_value, as: 'stringValue'
end end
end end
@ -1413,7 +1413,7 @@ module Google
property :external_deal_id, as: 'externalDealId' property :external_deal_id, as: 'externalDealId'
property :note, as: 'note', class: Google::Apis::AdexchangebuyerV1_4::MarketplaceNote, decorator: Google::Apis::AdexchangebuyerV1_4::MarketplaceNote::Representation property :note, as: 'note', class: Google::Apis::AdexchangebuyerV1_4::MarketplaceNote, decorator: Google::Apis::AdexchangebuyerV1_4::MarketplaceNote::Representation
property :proposal_revision_number, as: 'proposalRevisionNumber' property :proposal_revision_number, :numeric_string => true, as: 'proposalRevisionNumber'
property :update_action, as: 'updateAction' property :update_action, as: 'updateAction'
end end
end end

View File

@ -51,6 +51,7 @@ module Google
def initialize def initialize
super('https://www.googleapis.com/', 'adexchangebuyer/v1.4/') super('https://www.googleapis.com/', 'adexchangebuyer/v1.4/')
@batch_path = 'batch'
end end
# Gets one account by ID. # Gets one account by ID.
@ -272,9 +273,9 @@ module Google
# Returns the budget information for the adgroup specified by the accountId and # Returns the budget information for the adgroup specified by the accountId and
# billingId. # billingId.
# @param [String] account_id # @param [Fixnum] account_id
# The account id to get the budget information for. # The account id to get the budget information for.
# @param [String] billing_id # @param [Fixnum] billing_id
# The billing id to get the budget information for. # The billing id to get the budget information for.
# @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.
@ -312,9 +313,9 @@ module Google
# Updates the budget amount for the budget of the adgroup specified by the # Updates the budget amount for the budget of the adgroup specified by the
# accountId and billingId, with the budget amount in the request. This method # accountId and billingId, with the budget amount in the request. This method
# supports patch semantics. # supports patch semantics.
# @param [String] account_id # @param [Fixnum] account_id
# The account id associated with the budget being updated. # The account id associated with the budget being updated.
# @param [String] billing_id # @param [Fixnum] billing_id
# The billing id associated with the budget being updated. # The billing id associated with the budget being updated.
# @param [Google::Apis::AdexchangebuyerV1_4::Budget] budget_object # @param [Google::Apis::AdexchangebuyerV1_4::Budget] budget_object
# @param [String] fields # @param [String] fields
@ -354,9 +355,9 @@ module Google
# Updates the budget amount for the budget of the adgroup specified by the # Updates the budget amount for the budget of the adgroup specified by the
# accountId and billingId, with the budget amount in the request. # accountId and billingId, with the budget amount in the request.
# @param [String] account_id # @param [Fixnum] account_id
# The account id associated with the budget being updated. # The account id associated with the budget being updated.
# @param [String] billing_id # @param [Fixnum] billing_id
# The billing id associated with the budget being updated. # The billing id associated with the budget being updated.
# @param [Google::Apis::AdexchangebuyerV1_4::Budget] budget_object # @param [Google::Apis::AdexchangebuyerV1_4::Budget] budget_object
# @param [String] fields # @param [String] fields
@ -399,7 +400,7 @@ module Google
# The id for the account that will serve this creative. # The id for the account that will serve this creative.
# @param [String] buyer_creative_id # @param [String] buyer_creative_id
# The buyer-specific id for this creative. # The buyer-specific id for this creative.
# @param [String] deal_id # @param [Fixnum] deal_id
# The id of the deal id to associate with this creative. # The id of the deal id to associate with this creative.
# @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.
@ -605,7 +606,7 @@ module Google
# The id for the account that will serve this creative. # The id for the account that will serve this creative.
# @param [String] buyer_creative_id # @param [String] buyer_creative_id
# The buyer-specific id for this creative. # The buyer-specific id for this creative.
# @param [String] deal_id # @param [Fixnum] deal_id
# The id of the deal id to disassociate with this creative. # The id of the deal id to disassociate with this creative.
# @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.
@ -908,7 +909,7 @@ module Google
end end
# Retrieves the authenticated user's list of performance metrics. # Retrieves the authenticated user's list of performance metrics.
# @param [String] account_id # @param [Fixnum] account_id
# The account id to get the reports. # The account id to get the reports.
# @param [String] end_date_time # @param [String] end_date_time
# The end time of the report in ISO 8601 timestamp format using UTC. # The end time of the report in ISO 8601 timestamp format using UTC.
@ -958,9 +959,9 @@ module Google
end end
# Deletes an existing pretargeting config. # Deletes an existing pretargeting config.
# @param [String] account_id # @param [Fixnum] account_id
# The account id to delete the pretargeting config for. # The account id to delete the pretargeting config for.
# @param [String] config_id # @param [Fixnum] config_id
# The specific id of the configuration to delete. # The specific id of the configuration to delete.
# @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.
@ -994,9 +995,9 @@ module Google
end end
# Gets a specific pretargeting configuration # Gets a specific pretargeting configuration
# @param [String] account_id # @param [Fixnum] account_id
# The account id to get the pretargeting config for. # The account id to get the pretargeting config for.
# @param [String] config_id # @param [Fixnum] config_id
# The specific id of the configuration to retrieve. # The specific id of the configuration to retrieve.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -1032,7 +1033,7 @@ module Google
end end
# Inserts a new pretargeting configuration. # Inserts a new pretargeting configuration.
# @param [String] account_id # @param [Fixnum] account_id
# The account id to insert the pretargeting config for. # The account id to insert the pretargeting config for.
# @param [Google::Apis::AdexchangebuyerV1_4::PretargetingConfig] pretargeting_config_object # @param [Google::Apis::AdexchangebuyerV1_4::PretargetingConfig] pretargeting_config_object
# @param [String] fields # @param [String] fields
@ -1070,7 +1071,7 @@ module Google
end end
# Retrieves a list of the authenticated user's pretargeting configurations. # Retrieves a list of the authenticated user's pretargeting configurations.
# @param [String] account_id # @param [Fixnum] account_id
# The account id to get the pretargeting configs for. # The account id to get the pretargeting configs for.
# @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.
@ -1105,9 +1106,9 @@ module Google
end end
# Updates an existing pretargeting config. This method supports patch semantics. # Updates an existing pretargeting config. This method supports patch semantics.
# @param [String] account_id # @param [Fixnum] account_id
# The account id to update the pretargeting config for. # The account id to update the pretargeting config for.
# @param [String] config_id # @param [Fixnum] config_id
# The specific id of the configuration to update. # The specific id of the configuration to update.
# @param [Google::Apis::AdexchangebuyerV1_4::PretargetingConfig] pretargeting_config_object # @param [Google::Apis::AdexchangebuyerV1_4::PretargetingConfig] pretargeting_config_object
# @param [String] fields # @param [String] fields
@ -1146,9 +1147,9 @@ module Google
end end
# Updates an existing pretargeting config. # Updates an existing pretargeting config.
# @param [String] account_id # @param [Fixnum] account_id
# The account id to update the pretargeting config for. # The account id to update the pretargeting config for.
# @param [String] config_id # @param [Fixnum] config_id
# The specific id of the configuration to update. # The specific id of the configuration to update.
# @param [Google::Apis::AdexchangebuyerV1_4::PretargetingConfig] pretargeting_config_object # @param [Google::Apis::AdexchangebuyerV1_4::PretargetingConfig] pretargeting_config_object
# @param [String] fields # @param [String] fields
@ -1329,7 +1330,7 @@ module Google
# Update the given proposal. This method supports patch semantics. # Update the given proposal. This method supports patch semantics.
# @param [String] proposal_id # @param [String] proposal_id
# The proposal id to update. # The proposal id to update.
# @param [String] revision_number # @param [Fixnum] revision_number
# The last known revision number to update. If the head revision in the # The last known revision number to update. If the head revision in the
# marketplace database has since changed, an error will be thrown. The caller # marketplace database has since changed, an error will be thrown. The caller
# should then fetch the latest proposal at head revision and retry the update at # should then fetch the latest proposal at head revision and retry the update at
@ -1445,7 +1446,7 @@ module Google
# Update the given proposal # Update the given proposal
# @param [String] proposal_id # @param [String] proposal_id
# The proposal id to update. # The proposal id to update.
# @param [String] revision_number # @param [Fixnum] revision_number
# The last known revision number to update. If the head revision in the # The last known revision number to update. If the head revision in the
# marketplace database has since changed, an error will be thrown. The caller # marketplace database has since changed, an error will be thrown. The caller
# should then fetch the latest proposal at head revision and retry the update at # should then fetch the latest proposal at head revision and retry the update at

View File

@ -417,7 +417,7 @@ module Google
# Time when this deal stops being active in seconds since the epoch (GMT). If # Time when this deal stops being active in seconds since the epoch (GMT). If
# not set then this deal is valid until manually disabled by the publisher. # not set then this deal is valid until manually disabled by the publisher.
# Corresponds to the JSON property `endTime` # Corresponds to the JSON property `endTime`
# @return [String] # @return [Fixnum]
attr_accessor :end_time attr_accessor :end_time
# The fixed price for this preferred deal. In cpm micros of currency according # The fixed price for this preferred deal. In cpm micros of currency according
@ -425,12 +425,12 @@ module Google
# price tier of buying (highest priority, pay exactly the configured fixed price) # price tier of buying (highest priority, pay exactly the configured fixed price)
# . # .
# Corresponds to the JSON property `fixedCpm` # Corresponds to the JSON property `fixedCpm`
# @return [String] # @return [Fixnum]
attr_accessor :fixed_cpm attr_accessor :fixed_cpm
# Unique identifier of this preferred deal. # Unique identifier of this preferred deal.
# Corresponds to the JSON property `id` # Corresponds to the JSON property `id`
# @return [String] # @return [Fixnum]
attr_accessor :id attr_accessor :id
# Kind of resource this is, in this case adexchangeseller#preferredDeal. # Kind of resource this is, in this case adexchangeseller#preferredDeal.
@ -441,7 +441,7 @@ module Google
# Time when this deal becomes active in seconds since the epoch (GMT). If not # Time when this deal becomes active in seconds since the epoch (GMT). If not
# set then this deal is active immediately upon creation. # set then this deal is active immediately upon creation.
# Corresponds to the JSON property `startTime` # Corresponds to the JSON property `startTime`
# @return [String] # @return [Fixnum]
attr_accessor :start_time attr_accessor :start_time
def initialize(**args) def initialize(**args)
@ -519,7 +519,7 @@ module Google
# returned in the response due to being limited by the row count requested or # returned in the response due to being limited by the row count requested or
# the report row limit. # the report row limit.
# Corresponds to the JSON property `totalMatchedRows` # Corresponds to the JSON property `totalMatchedRows`
# @return [String] # @return [Fixnum]
attr_accessor :total_matched_rows attr_accessor :total_matched_rows
# The totals of the report. This is the same length as any other row in the # The totals of the report. This is the same length as any other row in the

View File

@ -246,11 +246,11 @@ module Google
property :advertiser_name, as: 'advertiserName' property :advertiser_name, as: 'advertiserName'
property :buyer_network_name, as: 'buyerNetworkName' property :buyer_network_name, as: 'buyerNetworkName'
property :currency_code, as: 'currencyCode' property :currency_code, as: 'currencyCode'
property :end_time, as: 'endTime' property :end_time, :numeric_string => true, as: 'endTime'
property :fixed_cpm, as: 'fixedCpm' property :fixed_cpm, :numeric_string => true, as: 'fixedCpm'
property :id, as: 'id' property :id, :numeric_string => true, as: 'id'
property :kind, as: 'kind' property :kind, as: 'kind'
property :start_time, as: 'startTime' property :start_time, :numeric_string => true, as: 'startTime'
end end
end end
@ -275,7 +275,7 @@ module Google
items items
end end
property :total_matched_rows, as: 'totalMatchedRows' property :total_matched_rows, :numeric_string => true, as: 'totalMatchedRows'
collection :totals, as: 'totals' collection :totals, as: 'totals'
collection :warnings, as: 'warnings' collection :warnings, as: 'warnings'
end end

View File

@ -50,6 +50,7 @@ module Google
def initialize def initialize
super('https://www.googleapis.com/', 'adexchangeseller/v2.0/') super('https://www.googleapis.com/', 'adexchangeseller/v2.0/')
@batch_path = 'batch'
end end
# Get information about the selected Ad Exchange account. # Get information about the selected Ad Exchange account.

View File

@ -33,7 +33,7 @@ module Google
# The application's ID. # The application's ID.
# Corresponds to the JSON property `id` # Corresponds to the JSON property `id`
# @return [String] # @return [Fixnum]
attr_accessor :id attr_accessor :id
# Identifies the resource as a DataTransfer Application Resource. # Identifies the resource as a DataTransfer Application Resource.
@ -73,7 +73,7 @@ module Google
# The application's ID. # The application's ID.
# Corresponds to the JSON property `applicationId` # Corresponds to the JSON property `applicationId`
# @return [String] # @return [Fixnum]
attr_accessor :application_id attr_accessor :application_id
# The transfer parameters for the application. These parameters are used to # The transfer parameters for the application. These parameters are used to

View File

@ -62,7 +62,7 @@ module Google
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :etag, as: 'etag' property :etag, as: 'etag'
property :id, as: 'id' property :id, :numeric_string => true, as: 'id'
property :kind, as: 'kind' property :kind, as: 'kind'
property :name, as: 'name' property :name, as: 'name'
collection :transfer_params, as: 'transferParams', class: Google::Apis::AdminDatatransferV1::ApplicationTransferParam, decorator: Google::Apis::AdminDatatransferV1::ApplicationTransferParam::Representation collection :transfer_params, as: 'transferParams', class: Google::Apis::AdminDatatransferV1::ApplicationTransferParam, decorator: Google::Apis::AdminDatatransferV1::ApplicationTransferParam::Representation
@ -73,7 +73,7 @@ module Google
class ApplicationDataTransfer class ApplicationDataTransfer
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :application_id, as: 'applicationId' property :application_id, :numeric_string => true, as: 'applicationId'
collection :application_transfer_params, as: 'applicationTransferParams', class: Google::Apis::AdminDatatransferV1::ApplicationTransferParam, decorator: Google::Apis::AdminDatatransferV1::ApplicationTransferParam::Representation collection :application_transfer_params, as: 'applicationTransferParams', class: Google::Apis::AdminDatatransferV1::ApplicationTransferParam, decorator: Google::Apis::AdminDatatransferV1::ApplicationTransferParam::Representation
property :application_transfer_status, as: 'applicationTransferStatus' property :application_transfer_status, as: 'applicationTransferStatus'

View File

@ -50,10 +50,11 @@ module Google
def initialize def initialize
super('https://www.googleapis.com/', 'admin/datatransfer/v1/') super('https://www.googleapis.com/', 'admin/datatransfer/v1/')
@batch_path = 'batch'
end end
# Retrieves information about an application for the given application ID. # Retrieves information about an application for the given application ID.
# @param [String] application_id # @param [Fixnum] application_id
# ID of the application resource to be retrieved. # ID of the application resource to be retrieved.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.

View File

@ -107,7 +107,7 @@ module Google
# The time when the ASP was created. Expressed in Unix time format. # The time when the ASP was created. Expressed in Unix time format.
# Corresponds to the JSON property `creationTime` # Corresponds to the JSON property `creationTime`
# @return [String] # @return [Fixnum]
attr_accessor :creation_time attr_accessor :creation_time
# ETag of the ASP. # ETag of the ASP.
@ -122,7 +122,7 @@ module Google
# The time when the ASP was last used. Expressed in Unix time format. # The time when the ASP was last used. Expressed in Unix time format.
# Corresponds to the JSON property `lastTimeUsed` # Corresponds to the JSON property `lastTimeUsed`
# @return [String] # @return [Fixnum]
attr_accessor :last_time_used attr_accessor :last_time_used
# The name of the application that the user, represented by their userId, # The name of the application that the user, represented by their userId,
@ -292,7 +292,7 @@ module Google
# Date and time of notification channel expiration, expressed as a Unix # Date and time of notification channel expiration, expressed as a Unix
# timestamp, in milliseconds. Optional. # timestamp, in milliseconds. Optional.
# Corresponds to the JSON property `expiration` # Corresponds to the JSON property `expiration`
# @return [String] # @return [Fixnum]
attr_accessor :expiration attr_accessor :expiration
# A UUID or similar unique string that identifies this channel. # A UUID or similar unique string that identifies this channel.
@ -785,7 +785,7 @@ module Google
# The creation time of the domain alias. (Read-only). # The creation time of the domain alias. (Read-only).
# Corresponds to the JSON property `creationTime` # Corresponds to the JSON property `creationTime`
# @return [String] # @return [Fixnum]
attr_accessor :creation_time attr_accessor :creation_time
# The domain alias name. # The domain alias name.
@ -867,7 +867,7 @@ module Google
# Creation time of the domain. (Read-only). # Creation time of the domain. (Read-only).
# Corresponds to the JSON property `creationTime` # Corresponds to the JSON property `creationTime`
# @return [String] # @return [Fixnum]
attr_accessor :creation_time attr_accessor :creation_time
# List of domain alias objects. (Read-only) # List of domain alias objects. (Read-only)
@ -971,7 +971,7 @@ module Google
# Group direct members count # Group direct members count
# Corresponds to the JSON property `directMembersCount` # Corresponds to the JSON property `directMembersCount`
# @return [String] # @return [Fixnum]
attr_accessor :direct_members_count attr_accessor :direct_members_count
# Email of Group # Email of Group
@ -1325,7 +1325,7 @@ module Google
# Mobile Device Security patch level (Read-only) # Mobile Device Security patch level (Read-only)
# Corresponds to the JSON property `securityPatchLevel` # Corresponds to the JSON property `securityPatchLevel`
# @return [String] # @return [Fixnum]
attr_accessor :security_patch_level attr_accessor :security_patch_level
# Mobile Device SSN or Serial Number (Read-only) # Mobile Device SSN or Serial Number (Read-only)
@ -1840,7 +1840,7 @@ module Google
# ID of the role. # ID of the role.
# Corresponds to the JSON property `roleId` # Corresponds to the JSON property `roleId`
# @return [String] # @return [Fixnum]
attr_accessor :role_id attr_accessor :role_id
# Name of the role. # Name of the role.
@ -1922,12 +1922,12 @@ module Google
# ID of this roleAssignment. # ID of this roleAssignment.
# Corresponds to the JSON property `roleAssignmentId` # Corresponds to the JSON property `roleAssignmentId`
# @return [String] # @return [Fixnum]
attr_accessor :role_assignment_id attr_accessor :role_assignment_id
# The ID of the role that is assigned. # The ID of the role that is assigned.
# Corresponds to the JSON property `roleId` # Corresponds to the JSON property `roleId`
# @return [String] # @return [Fixnum]
attr_accessor :role_id attr_accessor :role_id
# The scope in which this role is assigned. Possible values are: # The scope in which this role is assigned. Possible values are:
@ -3147,7 +3147,7 @@ module Google
# An expiration time in microseconds since epoch. # An expiration time in microseconds since epoch.
# Corresponds to the JSON property `expirationTimeUsec` # Corresponds to the JSON property `expirationTimeUsec`
# @return [String] # @return [Fixnum]
attr_accessor :expiration_time_usec attr_accessor :expiration_time_usec
# A SHA-256 fingerprint of the SSH public key. (Read-only) # A SHA-256 fingerprint of the SSH public key. (Read-only)

View File

@ -418,10 +418,10 @@ module Google
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :code_id, as: 'codeId' property :code_id, as: 'codeId'
property :creation_time, as: 'creationTime' property :creation_time, :numeric_string => true, as: 'creationTime'
property :etag, as: 'etag' property :etag, as: 'etag'
property :kind, as: 'kind' property :kind, as: 'kind'
property :last_time_used, as: 'lastTimeUsed' property :last_time_used, :numeric_string => true, as: 'lastTimeUsed'
property :name, as: 'name' property :name, as: 'name'
property :user_key, as: 'userKey' property :user_key, as: 'userKey'
end end
@ -465,7 +465,7 @@ module Google
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :address, as: 'address' property :address, as: 'address'
property :expiration, as: 'expiration' property :expiration, :numeric_string => true, as: 'expiration'
property :id, as: 'id' property :id, as: 'id'
property :kind, as: 'kind' property :kind, as: 'kind'
hash :params, as: 'params' hash :params, as: 'params'
@ -584,7 +584,7 @@ module Google
class DomainAlias class DomainAlias
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :creation_time, as: 'creationTime' property :creation_time, :numeric_string => true, as: 'creationTime'
property :domain_alias_name, as: 'domainAliasName' property :domain_alias_name, as: 'domainAliasName'
property :etag, as: 'etag' property :etag, as: 'etag'
property :kind, as: 'kind' property :kind, as: 'kind'
@ -606,7 +606,7 @@ module Google
class Domains class Domains
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :creation_time, as: 'creationTime' property :creation_time, :numeric_string => true, as: 'creationTime'
collection :domain_aliases, as: 'domainAliases', class: Google::Apis::AdminDirectoryV1::DomainAlias, decorator: Google::Apis::AdminDirectoryV1::DomainAlias::Representation collection :domain_aliases, as: 'domainAliases', class: Google::Apis::AdminDirectoryV1::DomainAlias, decorator: Google::Apis::AdminDirectoryV1::DomainAlias::Representation
property :domain_name, as: 'domainName' property :domain_name, as: 'domainName'
@ -633,7 +633,7 @@ module Google
property :admin_created, as: 'adminCreated' property :admin_created, as: 'adminCreated'
collection :aliases, as: 'aliases' collection :aliases, as: 'aliases'
property :description, as: 'description' property :description, as: 'description'
property :direct_members_count, as: 'directMembersCount' property :direct_members_count, :numeric_string => true, as: 'directMembersCount'
property :email, as: 'email' property :email, as: 'email'
property :etag, as: 'etag' property :etag, as: 'etag'
property :id, as: 'id' property :id, as: 'id'
@ -716,7 +716,7 @@ module Google
property :privilege, as: 'privilege' property :privilege, as: 'privilege'
property :release_version, as: 'releaseVersion' property :release_version, as: 'releaseVersion'
property :resource_id, as: 'resourceId' property :resource_id, as: 'resourceId'
property :security_patch_level, as: 'securityPatchLevel' property :security_patch_level, :numeric_string => true, as: 'securityPatchLevel'
property :serial_number, as: 'serialNumber' property :serial_number, as: 'serialNumber'
property :status, as: 'status' property :status, as: 'status'
property :supports_work_profile, as: 'supportsWorkProfile' property :supports_work_profile, as: 'supportsWorkProfile'
@ -840,7 +840,7 @@ module Google
property :is_system_role, as: 'isSystemRole' property :is_system_role, as: 'isSystemRole'
property :kind, as: 'kind' property :kind, as: 'kind'
property :role_description, as: 'roleDescription' property :role_description, as: 'roleDescription'
property :role_id, as: 'roleId' property :role_id, :numeric_string => true, as: 'roleId'
property :role_name, as: 'roleName' property :role_name, as: 'roleName'
collection :role_privileges, as: 'rolePrivileges', class: Google::Apis::AdminDirectoryV1::Role::RolePrivilege, decorator: Google::Apis::AdminDirectoryV1::Role::RolePrivilege::Representation collection :role_privileges, as: 'rolePrivileges', class: Google::Apis::AdminDirectoryV1::Role::RolePrivilege, decorator: Google::Apis::AdminDirectoryV1::Role::RolePrivilege::Representation
@ -862,8 +862,8 @@ module Google
property :etag, as: 'etag' property :etag, as: 'etag'
property :kind, as: 'kind' property :kind, as: 'kind'
property :org_unit_id, as: 'orgUnitId' property :org_unit_id, as: 'orgUnitId'
property :role_assignment_id, as: 'roleAssignmentId' property :role_assignment_id, :numeric_string => true, as: 'roleAssignmentId'
property :role_id, as: 'roleId' property :role_id, :numeric_string => true, as: 'roleId'
property :scope_type, as: 'scopeType' property :scope_type, as: 'scopeType'
end end
end end
@ -1150,7 +1150,7 @@ module Google
class UserSshPublicKey class UserSshPublicKey
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :expiration_time_usec, as: 'expirationTimeUsec' property :expiration_time_usec, :numeric_string => true, as: 'expirationTimeUsec'
property :fingerprint, as: 'fingerprint' property :fingerprint, as: 'fingerprint'
property :key, as: 'key' property :key, as: 'key'
end end

View File

@ -51,6 +51,7 @@ module Google
def initialize def initialize
super('https://www.googleapis.com/', 'admin/directory/v1/') super('https://www.googleapis.com/', 'admin/directory/v1/')
@batch_path = 'batch'
end end
# Delete an ASP issued by a user. # Delete an ASP issued by a user.

View File

@ -192,12 +192,12 @@ module Google
# Integral value of the parameter. # Integral value of the parameter.
# Corresponds to the JSON property `intValue` # Corresponds to the JSON property `intValue`
# @return [String] # @return [Fixnum]
attr_accessor :int_value attr_accessor :int_value
# Multi-int value of the parameter. # Multi-int value of the parameter.
# Corresponds to the JSON property `multiIntValue` # Corresponds to the JSON property `multiIntValue`
# @return [Array<String>] # @return [Array<Fixnum>]
attr_accessor :multi_int_value attr_accessor :multi_int_value
# Multi-string value of the parameter. # Multi-string value of the parameter.
@ -252,7 +252,7 @@ module Google
# Unique qualifier if multiple events have the same time. # Unique qualifier if multiple events have the same time.
# Corresponds to the JSON property `uniqueQualifier` # Corresponds to the JSON property `uniqueQualifier`
# @return [String] # @return [Fixnum]
attr_accessor :unique_qualifier attr_accessor :unique_qualifier
def initialize(**args) def initialize(**args)
@ -281,7 +281,7 @@ module Google
# Date and time of notification channel expiration, expressed as a Unix # Date and time of notification channel expiration, expressed as a Unix
# timestamp, in milliseconds. Optional. # timestamp, in milliseconds. Optional.
# Corresponds to the JSON property `expiration` # Corresponds to the JSON property `expiration`
# @return [String] # @return [Fixnum]
attr_accessor :expiration attr_accessor :expiration
# A UUID or similar unique string that identifies this channel. # A UUID or similar unique string that identifies this channel.
@ -443,7 +443,7 @@ module Google
# Integral value of the parameter. # Integral value of the parameter.
# Corresponds to the JSON property `intValue` # Corresponds to the JSON property `intValue`
# @return [String] # @return [Fixnum]
attr_accessor :int_value attr_accessor :int_value
# Nested message value of the parameter. # Nested message value of the parameter.

View File

@ -149,7 +149,7 @@ module Google
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :bool_value, as: 'boolValue' property :bool_value, as: 'boolValue'
property :int_value, as: 'intValue' property :int_value, :numeric_string => true, as: 'intValue'
collection :multi_int_value, as: 'multiIntValue' collection :multi_int_value, as: 'multiIntValue'
collection :multi_value, as: 'multiValue' collection :multi_value, as: 'multiValue'
property :name, as: 'name' property :name, as: 'name'
@ -165,7 +165,7 @@ module Google
property :customer_id, as: 'customerId' property :customer_id, as: 'customerId'
property :time, as: 'time', type: DateTime property :time, as: 'time', type: DateTime
property :unique_qualifier, as: 'uniqueQualifier' property :unique_qualifier, :numeric_string => true, as: 'uniqueQualifier'
end end
end end
end end
@ -174,7 +174,7 @@ module Google
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :address, as: 'address' property :address, as: 'address'
property :expiration, as: 'expiration' property :expiration, :numeric_string => true, as: 'expiration'
property :id, as: 'id' property :id, as: 'id'
property :kind, as: 'kind' property :kind, as: 'kind'
hash :params, as: 'params' hash :params, as: 'params'
@ -214,7 +214,7 @@ module Google
property :bool_value, as: 'boolValue' property :bool_value, as: 'boolValue'
property :datetime_value, as: 'datetimeValue', type: DateTime property :datetime_value, as: 'datetimeValue', type: DateTime
property :int_value, as: 'intValue' property :int_value, :numeric_string => true, as: 'intValue'
collection :msg_value, as: 'msgValue' collection :msg_value, as: 'msgValue'
property :name, as: 'name' property :name, as: 'name'
property :string_value, as: 'stringValue' property :string_value, as: 'stringValue'

View File

@ -51,6 +51,7 @@ module Google
def initialize def initialize
super('https://www.googleapis.com/', 'admin/reports/v1/') super('https://www.googleapis.com/', 'admin/reports/v1/')
@batch_path = 'batch'
end end
# Retrieves a list of activities for a specific customer and application. # Retrieves a list of activities for a specific customer and application.

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 = '20170329' REVISION = '20170401'
# 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

@ -28,7 +28,7 @@ module Google
# #
# Corresponds to the JSON property `creation_time` # Corresponds to the JSON property `creation_time`
# @return [String] # @return [Fixnum]
attr_accessor :creation_time attr_accessor :creation_time
# Unique identifier of this account. # Unique identifier of this account.
@ -633,7 +633,7 @@ module Google
# returned in the response due to being limited by the row count requested or # returned in the response due to being limited by the row count requested or
# the report row limit. # the report row limit.
# Corresponds to the JSON property `totalMatchedRows` # Corresponds to the JSON property `totalMatchedRows`
# @return [String] # @return [Fixnum]
attr_accessor :total_matched_rows attr_accessor :total_matched_rows
# The totals of the report. This is the same length as any other row in the # The totals of the report. This is the same length as any other row in the

View File

@ -211,7 +211,7 @@ module Google
class Account class Account
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :creation_time, as: 'creation_time' property :creation_time, :numeric_string => true, as: 'creation_time'
property :id, as: 'id' property :id, as: 'id'
property :kind, as: 'kind' property :kind, as: 'kind'
property :name, as: 'name' property :name, as: 'name'
@ -378,7 +378,7 @@ module Google
end end
property :start_date, as: 'startDate' property :start_date, as: 'startDate'
property :total_matched_rows, as: 'totalMatchedRows' property :total_matched_rows, :numeric_string => true, as: 'totalMatchedRows'
collection :totals, as: 'totals' collection :totals, as: 'totals'
collection :warnings, as: 'warnings' collection :warnings, as: 'warnings'
end end

View File

@ -50,6 +50,7 @@ module Google
def initialize def initialize
super('https://www.googleapis.com/', 'adsense/v1.4/') super('https://www.googleapis.com/', 'adsense/v1.4/')
@batch_path = 'batch'
end end
# Get information about the selected AdSense account. # Get information about the selected AdSense account.

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 = '20170329' REVISION = '20170401'
# 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

@ -698,7 +698,7 @@ module Google
# returned in the response due to being limited by the row count requested or # returned in the response due to being limited by the row count requested or
# the report row limit. # the report row limit.
# Corresponds to the JSON property `totalMatchedRows` # Corresponds to the JSON property `totalMatchedRows`
# @return [String] # @return [Fixnum]
attr_accessor :total_matched_rows attr_accessor :total_matched_rows
# The totals of the report. This is the same length as any other row in the # The totals of the report. This is the same length as any other row in the

View File

@ -328,7 +328,7 @@ module Google
items items
end end
property :total_matched_rows, as: 'totalMatchedRows' property :total_matched_rows, :numeric_string => true, as: 'totalMatchedRows'
collection :totals, as: 'totals' collection :totals, as: 'totals'
collection :warnings, as: 'warnings' collection :warnings, as: 'warnings'
end end

View File

@ -51,6 +51,7 @@ module Google
def initialize def initialize
super('https://www.googleapis.com/', 'adsensehost/v4.1/') super('https://www.googleapis.com/', 'adsensehost/v4.1/')
@batch_path = 'batch'
end end
# Get information about the selected associated AdSense account. # Get information about the selected associated AdSense account.

View File

@ -2415,7 +2415,7 @@ module Google
# The last refreshed time in seconds for Analytics data. # The last refreshed time in seconds for Analytics data.
# Corresponds to the JSON property `dataLastRefreshed` # Corresponds to the JSON property `dataLastRefreshed`
# @return [String] # @return [Fixnum]
attr_accessor :data_last_refreshed attr_accessor :data_last_refreshed
# #
@ -2469,12 +2469,12 @@ module Google
# The number of samples used to calculate the result. # The number of samples used to calculate the result.
# Corresponds to the JSON property `sampleSize` # Corresponds to the JSON property `sampleSize`
# @return [String] # @return [Fixnum]
attr_accessor :sample_size attr_accessor :sample_size
# Total size of the sample space from which the samples were selected. # Total size of the sample space from which the samples were selected.
# Corresponds to the JSON property `sampleSpace` # Corresponds to the JSON property `sampleSpace`
# @return [String] # @return [Fixnum]
attr_accessor :sample_space attr_accessor :sample_space
# Link to this page. # Link to this page.
@ -2936,7 +2936,7 @@ module Google
# Value used for this comparison. # Value used for this comparison.
# Corresponds to the JSON property `comparisonValue` # Corresponds to the JSON property `comparisonValue`
# @return [String] # @return [Fixnum]
attr_accessor :comparison_value attr_accessor :comparison_value
# Expression used for this match. # Expression used for this match.
@ -3085,7 +3085,7 @@ module Google
# Value used for this comparison. # Value used for this comparison.
# Corresponds to the JSON property `comparisonValue` # Corresponds to the JSON property `comparisonValue`
# @return [String] # @return [Fixnum]
attr_accessor :comparison_value attr_accessor :comparison_value
def initialize(**args) def initialize(**args)
@ -3110,7 +3110,7 @@ module Google
# Value used for this comparison. # Value used for this comparison.
# Corresponds to the JSON property `comparisonValue` # Corresponds to the JSON property `comparisonValue`
# @return [String] # @return [Fixnum]
attr_accessor :comparison_value attr_accessor :comparison_value
def initialize(**args) def initialize(**args)
@ -3380,12 +3380,12 @@ module Google
# The number of samples used to calculate the result. # The number of samples used to calculate the result.
# Corresponds to the JSON property `sampleSize` # Corresponds to the JSON property `sampleSize`
# @return [String] # @return [Fixnum]
attr_accessor :sample_size attr_accessor :sample_size
# Total size of the sample space from which the samples were selected. # Total size of the sample space from which the samples were selected.
# Corresponds to the JSON property `sampleSpace` # Corresponds to the JSON property `sampleSpace`
# @return [String] # @return [Fixnum]
attr_accessor :sample_space attr_accessor :sample_space
# Link to this page. # Link to this page.
@ -5025,7 +5025,7 @@ module Google
# Account Id to which this upload belongs. # Account Id to which this upload belongs.
# Corresponds to the JSON property `accountId` # Corresponds to the JSON property `accountId`
# @return [String] # @return [Fixnum]
attr_accessor :account_id attr_accessor :account_id
# Custom data source Id to which this data import belongs. # Custom data source Id to which this data import belongs.
@ -5363,7 +5363,7 @@ module Google
# Default view (profile) ID. # Default view (profile) ID.
# Corresponds to the JSON property `defaultProfileId` # Corresponds to the JSON property `defaultProfileId`
# @return [String] # @return [Fixnum]
attr_accessor :default_profile_id attr_accessor :default_profile_id
# Web property ID of the form UA-XXXXX-YY. # Web property ID of the form UA-XXXXX-YY.

View File

@ -1201,7 +1201,7 @@ module Google
collection :column_headers, as: 'columnHeaders', class: Google::Apis::AnalyticsV3::GaData::ColumnHeader, decorator: Google::Apis::AnalyticsV3::GaData::ColumnHeader::Representation collection :column_headers, as: 'columnHeaders', class: Google::Apis::AnalyticsV3::GaData::ColumnHeader, decorator: Google::Apis::AnalyticsV3::GaData::ColumnHeader::Representation
property :contains_sampled_data, as: 'containsSampledData' property :contains_sampled_data, as: 'containsSampledData'
property :data_last_refreshed, as: 'dataLastRefreshed' property :data_last_refreshed, :numeric_string => true, as: 'dataLastRefreshed'
property :data_table, as: 'dataTable', class: Google::Apis::AnalyticsV3::GaData::DataTable, decorator: Google::Apis::AnalyticsV3::GaData::DataTable::Representation property :data_table, as: 'dataTable', class: Google::Apis::AnalyticsV3::GaData::DataTable, decorator: Google::Apis::AnalyticsV3::GaData::DataTable::Representation
property :id, as: 'id' property :id, as: 'id'
@ -1218,8 +1218,8 @@ module Google
items items
end end
property :sample_size, as: 'sampleSize' property :sample_size, :numeric_string => true, as: 'sampleSize'
property :sample_space, as: 'sampleSpace' property :sample_space, :numeric_string => true, as: 'sampleSpace'
property :self_link, as: 'selfLink' property :self_link, as: 'selfLink'
property :total_results, as: 'totalResults' property :total_results, as: 'totalResults'
hash :totals_for_all_results, as: 'totalsForAllResults' hash :totals_for_all_results, as: 'totalsForAllResults'
@ -1340,7 +1340,7 @@ module Google
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :comparison_type, as: 'comparisonType' property :comparison_type, as: 'comparisonType'
property :comparison_value, as: 'comparisonValue' property :comparison_value, :numeric_string => true, as: 'comparisonValue'
property :expression, as: 'expression' property :expression, as: 'expression'
property :match_type, as: 'matchType' property :match_type, as: 'matchType'
property :type, as: 'type' property :type, as: 'type'
@ -1381,7 +1381,7 @@ module Google
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :comparison_type, as: 'comparisonType' property :comparison_type, as: 'comparisonType'
property :comparison_value, as: 'comparisonValue' property :comparison_value, :numeric_string => true, as: 'comparisonValue'
end end
end end
@ -1389,7 +1389,7 @@ module Google
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :comparison_type, as: 'comparisonType' property :comparison_type, as: 'comparisonType'
property :comparison_value, as: 'comparisonValue' property :comparison_value, :numeric_string => true, as: 'comparisonValue'
end end
end end
end end
@ -1457,8 +1457,8 @@ module Google
end end
property :sample_size, as: 'sampleSize' property :sample_size, :numeric_string => true, as: 'sampleSize'
property :sample_space, as: 'sampleSpace' property :sample_space, :numeric_string => true, as: 'sampleSpace'
property :self_link, as: 'selfLink' property :self_link, as: 'selfLink'
property :total_results, as: 'totalResults' property :total_results, as: 'totalResults'
hash :totals_for_all_results, as: 'totalsForAllResults' hash :totals_for_all_results, as: 'totalsForAllResults'
@ -1863,7 +1863,7 @@ module Google
class Upload class Upload
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :account_id, as: 'accountId' property :account_id, :numeric_string => true, as: 'accountId'
property :custom_data_source_id, as: 'customDataSourceId' property :custom_data_source_id, as: 'customDataSourceId'
collection :errors, as: 'errors' collection :errors, as: 'errors'
property :id, as: 'id' property :id, as: 'id'
@ -1945,7 +1945,7 @@ module Google
property :created, as: 'created', type: DateTime property :created, as: 'created', type: DateTime
property :default_profile_id, as: 'defaultProfileId' property :default_profile_id, :numeric_string => true, as: 'defaultProfileId'
property :id, as: 'id' property :id, as: 'id'
property :industry_vertical, as: 'industryVertical' property :industry_vertical, as: 'industryVertical'
property :internal_web_property_id, as: 'internalWebPropertyId' property :internal_web_property_id, as: 'internalWebPropertyId'

View File

@ -50,6 +50,7 @@ module Google
def initialize def initialize
super('https://www.googleapis.com/', 'analytics/v3/') super('https://www.googleapis.com/', 'analytics/v3/')
@batch_path = 'batch'
end end
# Returns Analytics data for a view (profile). # Returns Analytics data for a view (profile).

File diff suppressed because it is too large Load Diff

View File

@ -22,6 +22,90 @@ module Google
module Apis module Apis
module AnalyticsreportingV4 module AnalyticsreportingV4
class Segment
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrderBy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SegmentDimensionFilter
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
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 Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DateRange
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MetricFilter
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ReportRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Dimension
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DynamicSegment
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SimpleSegment
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ColumnHeader class ColumnHeader
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -148,88 +232,156 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class SegmentDimensionFilter class Segment
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
property :dynamic_segment, as: 'dynamicSegment', class: Google::Apis::AnalyticsreportingV4::DynamicSegment, decorator: Google::Apis::AnalyticsreportingV4::DynamicSegment::Representation
include Google::Apis::Core::JsonObjectSupport property :segment_id, as: 'segmentId'
end
end end
class OrderBy class OrderBy
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
include Google::Apis::Core::JsonObjectSupport property :sort_order, as: 'sortOrder'
property :field_name, as: 'fieldName'
property :order_type, as: 'orderType'
end
end end
class Segment class SegmentDimensionFilter
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
include Google::Apis::Core::JsonObjectSupport property :max_comparison_value, as: 'maxComparisonValue'
property :dimension_name, as: 'dimensionName'
property :operator, as: 'operator'
collection :expressions, as: 'expressions'
property :case_sensitive, as: 'caseSensitive'
property :min_comparison_value, as: 'minComparisonValue'
end
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 :expression, as: 'expression'
property :formatting_type, as: 'formattingType'
property :alias, as: 'alias'
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 :column_header, as: 'columnHeader', class: Google::Apis::AnalyticsreportingV4::ColumnHeader, decorator: Google::Apis::AnalyticsreportingV4::ColumnHeader::Representation
include Google::Apis::Core::JsonObjectSupport property :data, as: 'data', class: Google::Apis::AnalyticsreportingV4::ReportData, decorator: Google::Apis::AnalyticsreportingV4::ReportData::Representation
property :next_page_token, as: 'nextPageToken'
end
end end
class PivotHeader class PivotHeader
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :pivot_header_entries, as: 'pivotHeaderEntries', class: Google::Apis::AnalyticsreportingV4::PivotHeaderEntry, decorator: Google::Apis::AnalyticsreportingV4::PivotHeaderEntry::Representation
include Google::Apis::Core::JsonObjectSupport property :total_pivot_groups_count, as: 'totalPivotGroupsCount'
end
end end
class DateRange class DateRange
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
include Google::Apis::Core::JsonObjectSupport property :start_date, as: 'startDate'
property :end_date, as: 'endDate'
end
end end
class MetricFilter class MetricFilter
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
include Google::Apis::Core::JsonObjectSupport property :comparison_value, as: 'comparisonValue'
property :operator, as: 'operator'
property :not, as: 'not'
property :metric_name, as: 'metricName'
end
end end
class ReportRequest class ReportRequest
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :metric_filter_clauses, as: 'metricFilterClauses', class: Google::Apis::AnalyticsreportingV4::MetricFilterClause, decorator: Google::Apis::AnalyticsreportingV4::MetricFilterClause::Representation
include Google::Apis::Core::JsonObjectSupport property :page_size, as: 'pageSize'
property :hide_totals, as: 'hideTotals'
property :hide_value_ranges, as: 'hideValueRanges'
property :cohort_group, as: 'cohortGroup', class: Google::Apis::AnalyticsreportingV4::CohortGroup, decorator: Google::Apis::AnalyticsreportingV4::CohortGroup::Representation
property :filters_expression, as: 'filtersExpression'
property :view_id, as: 'viewId'
collection :metrics, as: 'metrics', class: Google::Apis::AnalyticsreportingV4::Metric, decorator: Google::Apis::AnalyticsreportingV4::Metric::Representation
collection :dimension_filter_clauses, as: 'dimensionFilterClauses', class: Google::Apis::AnalyticsreportingV4::DimensionFilterClause, decorator: Google::Apis::AnalyticsreportingV4::DimensionFilterClause::Representation
collection :order_bys, as: 'orderBys', class: Google::Apis::AnalyticsreportingV4::OrderBy, decorator: Google::Apis::AnalyticsreportingV4::OrderBy::Representation
collection :segments, as: 'segments', class: Google::Apis::AnalyticsreportingV4::Segment, decorator: Google::Apis::AnalyticsreportingV4::Segment::Representation
property :sampling_level, as: 'samplingLevel'
collection :dimensions, as: 'dimensions', class: Google::Apis::AnalyticsreportingV4::Dimension, decorator: Google::Apis::AnalyticsreportingV4::Dimension::Representation
collection :date_ranges, as: 'dateRanges', class: Google::Apis::AnalyticsreportingV4::DateRange, decorator: Google::Apis::AnalyticsreportingV4::DateRange::Representation
property :page_token, as: 'pageToken'
collection :pivots, as: 'pivots', class: Google::Apis::AnalyticsreportingV4::Pivot, decorator: Google::Apis::AnalyticsreportingV4::Pivot::Representation
property :include_empty_rows, as: 'includeEmptyRows'
end
end end
class Dimension class Dimension
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
include Google::Apis::Core::JsonObjectSupport collection :histogram_buckets, as: 'histogramBuckets'
property :name, as: 'name'
end
end end
class DynamicSegment class DynamicSegment
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
property :session_segment, as: 'sessionSegment', class: Google::Apis::AnalyticsreportingV4::SegmentDefinition, decorator: Google::Apis::AnalyticsreportingV4::SegmentDefinition::Representation
include Google::Apis::Core::JsonObjectSupport property :name, as: 'name'
property :user_segment, as: 'userSegment', class: Google::Apis::AnalyticsreportingV4::SegmentDefinition, decorator: Google::Apis::AnalyticsreportingV4::SegmentDefinition::Representation
end
end end
class SimpleSegment class SimpleSegment
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 end
end end
class ColumnHeader class ColumnHeader
@ -244,11 +396,11 @@ module Google
class SegmentFilterClause class SegmentFilterClause
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :dimension_filter, as: 'dimensionFilter', class: Google::Apis::AnalyticsreportingV4::SegmentDimensionFilter, decorator: Google::Apis::AnalyticsreportingV4::SegmentDimensionFilter::Representation
property :metric_filter, as: 'metricFilter', class: Google::Apis::AnalyticsreportingV4::SegmentMetricFilter, decorator: Google::Apis::AnalyticsreportingV4::SegmentMetricFilter::Representation property :metric_filter, as: 'metricFilter', class: Google::Apis::AnalyticsreportingV4::SegmentMetricFilter, decorator: Google::Apis::AnalyticsreportingV4::SegmentMetricFilter::Representation
property :not, as: 'not' property :not, as: 'not'
property :dimension_filter, as: 'dimensionFilter', class: Google::Apis::AnalyticsreportingV4::SegmentDimensionFilter, decorator: Google::Apis::AnalyticsreportingV4::SegmentDimensionFilter::Representation
end end
end end
@ -264,10 +416,10 @@ module Google
class Cohort class Cohort
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :type, as: 'type'
property :name, as: 'name' property :name, as: 'name'
property :date_range, as: 'dateRange', class: Google::Apis::AnalyticsreportingV4::DateRange, decorator: Google::Apis::AnalyticsreportingV4::DateRange::Representation property :date_range, as: 'dateRange', class: Google::Apis::AnalyticsreportingV4::DateRange, decorator: Google::Apis::AnalyticsreportingV4::DateRange::Representation
property :type, as: 'type'
end end
end end
@ -291,10 +443,10 @@ module Google
class MetricHeader class MetricHeader
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
collection :metric_header_entries, as: 'metricHeaderEntries', class: Google::Apis::AnalyticsreportingV4::MetricHeaderEntry, decorator: Google::Apis::AnalyticsreportingV4::MetricHeaderEntry::Representation
collection :pivot_headers, as: 'pivotHeaders', class: Google::Apis::AnalyticsreportingV4::PivotHeader, decorator: Google::Apis::AnalyticsreportingV4::PivotHeader::Representation collection :pivot_headers, as: 'pivotHeaders', class: Google::Apis::AnalyticsreportingV4::PivotHeader, decorator: Google::Apis::AnalyticsreportingV4::PivotHeader::Representation
collection :metric_header_entries, as: 'metricHeaderEntries', class: Google::Apis::AnalyticsreportingV4::MetricHeaderEntry, decorator: Google::Apis::AnalyticsreportingV4::MetricHeaderEntry::Representation
end end
end end
@ -318,20 +470,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 :comparison_value, as: 'comparisonValue'
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 :operator, as: 'operator'
end end
end end
@ -364,6 +516,7 @@ 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
@ -371,7 +524,6 @@ module Google
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'
end end
end end
@ -415,19 +567,19 @@ module Google
class ReportData class ReportData
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :row_count, as: 'rowCount'
collection :rows, as: 'rows', class: Google::Apis::AnalyticsreportingV4::ReportRow, decorator: Google::Apis::AnalyticsreportingV4::ReportRow::Representation
property :is_data_golden, as: 'isDataGolden'
property :data_last_refreshed, as: 'dataLastRefreshed'
collection :maximums, as: 'maximums', class: Google::Apis::AnalyticsreportingV4::DateRangeValues, decorator: Google::Apis::AnalyticsreportingV4::DateRangeValues::Representation
collection :sampling_space_sizes, as: 'samplingSpaceSizes'
collection :minimums, as: 'minimums', class: Google::Apis::AnalyticsreportingV4::DateRangeValues, decorator: Google::Apis::AnalyticsreportingV4::DateRangeValues::Representation collection :minimums, as: 'minimums', class: Google::Apis::AnalyticsreportingV4::DateRangeValues, decorator: Google::Apis::AnalyticsreportingV4::DateRangeValues::Representation
collection :sampling_space_sizes, as: 'samplingSpaceSizes'
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 :is_data_golden, as: 'isDataGolden'
collection :rows, as: 'rows', class: Google::Apis::AnalyticsreportingV4::ReportRow, decorator: Google::Apis::AnalyticsreportingV4::ReportRow::Representation
property :row_count, as: 'rowCount'
property :data_last_refreshed, as: 'dataLastRefreshed'
collection :maximums, as: 'maximums', class: Google::Apis::AnalyticsreportingV4::DateRangeValues, decorator: Google::Apis::AnalyticsreportingV4::DateRangeValues::Representation
end end
end end
@ -441,158 +593,6 @@ module Google
property :case_sensitive, as: 'caseSensitive' property :case_sensitive, as: 'caseSensitive'
end end
end end
class SegmentDimensionFilter
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :min_comparison_value, as: 'minComparisonValue'
property :max_comparison_value, as: 'maxComparisonValue'
property :dimension_name, as: 'dimensionName'
property :operator, as: 'operator'
collection :expressions, as: 'expressions'
property :case_sensitive, as: 'caseSensitive'
end
end
class OrderBy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :field_name, as: 'fieldName'
property :order_type, as: 'orderType'
property :sort_order, as: 'sortOrder'
end
end
class Segment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :dynamic_segment, as: 'dynamicSegment', class: Google::Apis::AnalyticsreportingV4::DynamicSegment, decorator: Google::Apis::AnalyticsreportingV4::DynamicSegment::Representation
property :segment_id, as: 'segmentId'
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 :formatting_type, as: 'formattingType'
property :alias, as: 'alias'
property :expression, as: 'expression'
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 :data, as: 'data', class: Google::Apis::AnalyticsreportingV4::ReportData, decorator: Google::Apis::AnalyticsreportingV4::ReportData::Representation
property :next_page_token, as: 'nextPageToken'
property :column_header, as: 'columnHeader', class: Google::Apis::AnalyticsreportingV4::ColumnHeader, decorator: Google::Apis::AnalyticsreportingV4::ColumnHeader::Representation
end
end
class PivotHeader
# @private
class Representation < Google::Apis::Core::JsonRepresentation
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
class DateRange
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :end_date, as: 'endDate'
property :start_date, as: 'startDate'
end
end
class MetricFilter
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :comparison_value, as: 'comparisonValue'
property :operator, as: 'operator'
property :not, as: 'not'
property :metric_name, as: 'metricName'
end
end
class ReportRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :include_empty_rows, as: 'includeEmptyRows'
collection :metric_filter_clauses, as: 'metricFilterClauses', class: Google::Apis::AnalyticsreportingV4::MetricFilterClause, decorator: Google::Apis::AnalyticsreportingV4::MetricFilterClause::Representation
property :page_size, as: 'pageSize'
property :hide_totals, as: 'hideTotals'
property :hide_value_ranges, as: 'hideValueRanges'
property :cohort_group, as: 'cohortGroup', class: Google::Apis::AnalyticsreportingV4::CohortGroup, decorator: Google::Apis::AnalyticsreportingV4::CohortGroup::Representation
property :filters_expression, as: 'filtersExpression'
property :view_id, as: 'viewId'
collection :metrics, as: 'metrics', class: Google::Apis::AnalyticsreportingV4::Metric, decorator: Google::Apis::AnalyticsreportingV4::Metric::Representation
collection :dimension_filter_clauses, as: 'dimensionFilterClauses', class: Google::Apis::AnalyticsreportingV4::DimensionFilterClause, decorator: Google::Apis::AnalyticsreportingV4::DimensionFilterClause::Representation
collection :order_bys, as: 'orderBys', class: Google::Apis::AnalyticsreportingV4::OrderBy, decorator: Google::Apis::AnalyticsreportingV4::OrderBy::Representation
collection :segments, as: 'segments', class: Google::Apis::AnalyticsreportingV4::Segment, decorator: Google::Apis::AnalyticsreportingV4::Segment::Representation
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
end
end
class Dimension
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :histogram_buckets, as: 'histogramBuckets'
property :name, as: 'name'
end
end
class DynamicSegment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
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
end
end
class SimpleSegment
# @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
end
end
end end
end end
end end

View File

@ -44,15 +44,16 @@ module Google
def initialize def initialize
super('https://analyticsreporting.googleapis.com/', '') super('https://analyticsreporting.googleapis.com/', '')
@batch_path = 'batch'
end end
# 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
# #
@ -65,14 +66,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_reports(get_reports_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) def batch_get_reports(get_reports_request_object = nil, quota_user: nil, fields: 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['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

@ -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 = '20170322' REVISION = '20170329'
# 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

@ -1271,7 +1271,7 @@ module Google
# The time when the notification was published in milliseconds since 1970-01- # The time when the notification was published in milliseconds since 1970-01-
# 01T00:00:00Z. This will always be present. # 01T00:00:00Z. This will always be present.
# Corresponds to the JSON property `timestampMillis` # Corresponds to the JSON property `timestampMillis`
# @return [String] # @return [Fixnum]
attr_accessor :timestamp_millis attr_accessor :timestamp_millis
def initialize(**args) def initialize(**args)

View File

@ -716,7 +716,7 @@ module Google
property :product_availability_change_event, as: 'productAvailabilityChangeEvent', class: Google::Apis::AndroidenterpriseV1::ProductAvailabilityChangeEvent, decorator: Google::Apis::AndroidenterpriseV1::ProductAvailabilityChangeEvent::Representation property :product_availability_change_event, as: 'productAvailabilityChangeEvent', class: Google::Apis::AndroidenterpriseV1::ProductAvailabilityChangeEvent, decorator: Google::Apis::AndroidenterpriseV1::ProductAvailabilityChangeEvent::Representation
property :timestamp_millis, as: 'timestampMillis' property :timestamp_millis, :numeric_string => true, as: 'timestampMillis'
end end
end end

View File

@ -50,6 +50,7 @@ module Google
def initialize def initialize
super('https://www.googleapis.com/', 'androidenterprise/v1/') super('https://www.googleapis.com/', 'androidenterprise/v1/')
@batch_path = 'batch'
end end
# Retrieves the details of a device. # Retrieves the details of a device.

View File

@ -498,7 +498,7 @@ module Google
# this APK does not reference another APK's Expansion File. The field's value # this APK does not reference another APK's Expansion File. The field's value
# is the size of the uploaded Expansion File in bytes. # is the size of the uploaded Expansion File in bytes.
# Corresponds to the JSON property `fileSize` # Corresponds to the JSON property `fileSize`
# @return [String] # @return [Fixnum]
attr_accessor :file_size attr_accessor :file_size
# If set this APK's Expansion File references another APK's Expansion File. The # If set this APK's Expansion File references another APK's Expansion File. The
@ -572,7 +572,7 @@ module Google
# The file size in bytes of this APK. # The file size in bytes of this APK.
# Corresponds to the JSON property `fileSize` # Corresponds to the JSON property `fileSize`
# @return [String] # @return [Fixnum]
attr_accessor :file_size attr_accessor :file_size
# The icon image from the APK, as a base64 encoded byte array. # The icon image from the APK, as a base64 encoded byte array.
@ -1281,7 +1281,7 @@ module Google
# The time the product was purchased, in milliseconds since the epoch (Jan 1, # The time the product was purchased, in milliseconds since the epoch (Jan 1,
# 1970). # 1970).
# Corresponds to the JSON property `purchaseTimeMillis` # Corresponds to the JSON property `purchaseTimeMillis`
# @return [String] # @return [Fixnum]
attr_accessor :purchase_time_millis attr_accessor :purchase_time_millis
def initialize(**args) def initialize(**args)
@ -1494,13 +1494,13 @@ module Google
# since the Epoch. The given time must be later/greater than the current expiry # since the Epoch. The given time must be later/greater than the current expiry
# time for the subscription. # time for the subscription.
# Corresponds to the JSON property `desiredExpiryTimeMillis` # Corresponds to the JSON property `desiredExpiryTimeMillis`
# @return [String] # @return [Fixnum]
attr_accessor :desired_expiry_time_millis attr_accessor :desired_expiry_time_millis
# The expected expiry time for the subscription. If the current expiry time for # The expected expiry time for the subscription. If the current expiry time for
# the subscription is not the value specified here, the deferral will not occur. # the subscription is not the value specified here, the deferral will not occur.
# Corresponds to the JSON property `expectedExpiryTimeMillis` # Corresponds to the JSON property `expectedExpiryTimeMillis`
# @return [String] # @return [Fixnum]
attr_accessor :expected_expiry_time_millis attr_accessor :expected_expiry_time_millis
def initialize(**args) def initialize(**args)
@ -1549,7 +1549,7 @@ module Google
# Time at which the subscription will expire, in milliseconds since the Epoch. # Time at which the subscription will expire, in milliseconds since the Epoch.
# Corresponds to the JSON property `expiryTimeMillis` # Corresponds to the JSON property `expiryTimeMillis`
# @return [String] # @return [Fixnum]
attr_accessor :expiry_time_millis attr_accessor :expiry_time_millis
# This kind represents a subscriptionPurchase object in the androidpublisher # This kind represents a subscriptionPurchase object in the androidpublisher
@ -1569,7 +1569,7 @@ module Google
# units, where 1,000,000 micro-units represents one unit of the currency. For # units, where 1,000,000 micro-units represents one unit of the currency. For
# example, if the subscription price is €1.99, price_amount_micros is 1990000. # example, if the subscription price is €1.99, price_amount_micros is 1990000.
# Corresponds to the JSON property `priceAmountMicros` # Corresponds to the JSON property `priceAmountMicros`
# @return [String] # @return [Fixnum]
attr_accessor :price_amount_micros attr_accessor :price_amount_micros
# ISO 4217 currency code for the subscription price. For example, if the price # ISO 4217 currency code for the subscription price. For example, if the price
@ -1580,13 +1580,13 @@ module Google
# Time at which the subscription was granted, in milliseconds since the Epoch. # Time at which the subscription was granted, in milliseconds since the Epoch.
# Corresponds to the JSON property `startTimeMillis` # Corresponds to the JSON property `startTimeMillis`
# @return [String] # @return [Fixnum]
attr_accessor :start_time_millis attr_accessor :start_time_millis
# The time at which the subscription was canceled by the user, in milliseconds # The time at which the subscription was canceled by the user, in milliseconds
# since the epoch. Only present if cancelReason is 0. # since the epoch. Only present if cancelReason is 0.
# Corresponds to the JSON property `userCancellationTimeMillis` # Corresponds to the JSON property `userCancellationTimeMillis`
# @return [String] # @return [Fixnum]
attr_accessor :user_cancellation_time_millis attr_accessor :user_cancellation_time_millis
def initialize(**args) def initialize(**args)
@ -1635,7 +1635,7 @@ module Google
# The new expiry time for the subscription in milliseconds since the Epoch. # The new expiry time for the subscription in milliseconds since the Epoch.
# Corresponds to the JSON property `newExpiryTimeMillis` # Corresponds to the JSON property `newExpiryTimeMillis`
# @return [String] # @return [Fixnum]
attr_accessor :new_expiry_time_millis attr_accessor :new_expiry_time_millis
def initialize(**args) def initialize(**args)
@ -1684,7 +1684,7 @@ module Google
# #
# Corresponds to the JSON property `seconds` # Corresponds to the JSON property `seconds`
# @return [String] # @return [Fixnum]
attr_accessor :seconds attr_accessor :seconds
def initialize(**args) def initialize(**args)
@ -1885,7 +1885,7 @@ module Google
# The time at which the purchase was made, in milliseconds since the epoch (Jan # The time at which the purchase was made, in milliseconds since the epoch (Jan
# 1, 1970). # 1, 1970).
# Corresponds to the JSON property `purchaseTimeMillis` # Corresponds to the JSON property `purchaseTimeMillis`
# @return [String] # @return [Fixnum]
attr_accessor :purchase_time_millis attr_accessor :purchase_time_millis
# The token that was generated when a purchase was made. This uniquely # The token that was generated when a purchase was made. This uniquely
@ -1897,7 +1897,7 @@ module Google
# The time at which the purchase was cancelled/refunded/charged-back, in # The time at which the purchase was cancelled/refunded/charged-back, in
# milliseconds since the epoch (Jan 1, 1970). # milliseconds since the epoch (Jan 1, 1970).
# Corresponds to the JSON property `voidedTimeMillis` # Corresponds to the JSON property `voidedTimeMillis`
# @return [String] # @return [Fixnum]
attr_accessor :voided_time_millis attr_accessor :voided_time_millis
def initialize(**args) def initialize(**args)

View File

@ -534,7 +534,7 @@ module Google
class ExpansionFile class ExpansionFile
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :file_size, as: 'fileSize' property :file_size, :numeric_string => true, as: 'fileSize'
property :references_version, as: 'referencesVersion' property :references_version, as: 'referencesVersion'
end end
end end
@ -555,7 +555,7 @@ module Google
property :externally_hosted_url, as: 'externallyHostedUrl' property :externally_hosted_url, as: 'externallyHostedUrl'
property :file_sha1_base64, as: 'fileSha1Base64' property :file_sha1_base64, as: 'fileSha1Base64'
property :file_sha256_base64, as: 'fileSha256Base64' property :file_sha256_base64, as: 'fileSha256Base64'
property :file_size, as: 'fileSize' property :file_size, :numeric_string => true, as: 'fileSize'
property :icon_base64, as: 'iconBase64' property :icon_base64, as: 'iconBase64'
property :maximum_sdk, as: 'maximumSdk' property :maximum_sdk, as: 'maximumSdk'
property :minimum_sdk, as: 'minimumSdk' property :minimum_sdk, as: 'minimumSdk'
@ -776,7 +776,7 @@ module Google
property :developer_payload, as: 'developerPayload' property :developer_payload, as: 'developerPayload'
property :kind, as: 'kind' property :kind, as: 'kind'
property :purchase_state, as: 'purchaseState' property :purchase_state, as: 'purchaseState'
property :purchase_time_millis, as: 'purchaseTimeMillis' property :purchase_time_millis, :numeric_string => true, as: 'purchaseTimeMillis'
end end
end end
@ -851,8 +851,8 @@ module Google
class SubscriptionDeferralInfo class SubscriptionDeferralInfo
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :desired_expiry_time_millis, as: 'desiredExpiryTimeMillis' property :desired_expiry_time_millis, :numeric_string => true, as: 'desiredExpiryTimeMillis'
property :expected_expiry_time_millis, as: 'expectedExpiryTimeMillis' property :expected_expiry_time_millis, :numeric_string => true, as: 'expectedExpiryTimeMillis'
end end
end end
@ -863,13 +863,13 @@ module Google
property :cancel_reason, as: 'cancelReason' property :cancel_reason, as: 'cancelReason'
property :country_code, as: 'countryCode' property :country_code, as: 'countryCode'
property :developer_payload, as: 'developerPayload' property :developer_payload, as: 'developerPayload'
property :expiry_time_millis, as: 'expiryTimeMillis' property :expiry_time_millis, :numeric_string => true, as: 'expiryTimeMillis'
property :kind, as: 'kind' property :kind, as: 'kind'
property :payment_state, as: 'paymentState' property :payment_state, as: 'paymentState'
property :price_amount_micros, as: 'priceAmountMicros' property :price_amount_micros, :numeric_string => true, as: 'priceAmountMicros'
property :price_currency_code, as: 'priceCurrencyCode' property :price_currency_code, as: 'priceCurrencyCode'
property :start_time_millis, as: 'startTimeMillis' property :start_time_millis, :numeric_string => true, as: 'startTimeMillis'
property :user_cancellation_time_millis, as: 'userCancellationTimeMillis' property :user_cancellation_time_millis, :numeric_string => true, as: 'userCancellationTimeMillis'
end end
end end
@ -884,7 +884,7 @@ module Google
class DeferSubscriptionPurchasesResponse class DeferSubscriptionPurchasesResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :new_expiry_time_millis, as: 'newExpiryTimeMillis' property :new_expiry_time_millis, :numeric_string => true, as: 'newExpiryTimeMillis'
end end
end end
@ -900,7 +900,7 @@ module Google
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :nanos, as: 'nanos' property :nanos, as: 'nanos'
property :seconds, as: 'seconds' property :seconds, :numeric_string => true, as: 'seconds'
end end
end end
@ -954,9 +954,9 @@ module Google
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind' property :kind, as: 'kind'
property :purchase_time_millis, as: 'purchaseTimeMillis' property :purchase_time_millis, :numeric_string => true, as: 'purchaseTimeMillis'
property :purchase_token, as: 'purchaseToken' property :purchase_token, as: 'purchaseToken'
property :voided_time_millis, as: 'voidedTimeMillis' property :voided_time_millis, :numeric_string => true, as: 'voidedTimeMillis'
end end
end end

View File

@ -50,6 +50,7 @@ module Google
def initialize def initialize
super('https://www.googleapis.com/', 'androidpublisher/v2/applications/') super('https://www.googleapis.com/', 'androidpublisher/v2/applications/')
@batch_path = 'batch'
end end
# Commits/applies the changes made in this edit back to the app. # Commits/applies the changes made in this edit back to the app.
@ -2384,14 +2385,14 @@ module Google
# @param [String] package_name # @param [String] package_name
# The package name of the application for which voided purchases need to be # The package name of the application for which voided purchases need to be
# returned (for example, 'com.some.thing'). # returned (for example, 'com.some.thing').
# @param [String] end_time # @param [Fixnum] end_time
# The time, in milliseconds since the Epoch, of the newest voided in-app product # The time, in milliseconds since the Epoch, of the newest voided in-app product
# purchase that you want to see in the response. The value of this parameter # purchase that you want to see in the response. The value of this parameter
# cannot be greater than the current time and is ignored if a pagination token # cannot be greater than the current time and is ignored if a pagination token
# is set. Default value is current time. # is set. Default value is current time.
# @param [Fixnum] max_results # @param [Fixnum] max_results
# @param [Fixnum] start_index # @param [Fixnum] start_index
# @param [String] start_time # @param [Fixnum] start_time
# The time, in milliseconds since the Epoch, of the oldest voided in-app product # The time, in milliseconds since the Epoch, of the oldest voided in-app product
# purchase that you want to see in the response. The value of this parameter # purchase that you want to see in the response. The value of this parameter
# cannot be older than 30 days and is ignored if a pagination token is set. # cannot be older than 30 days and is ignored if a pagination token is set.

View File

@ -620,7 +620,7 @@ module Google
# Total size in bytes of all the files that are included in this version and # Total size in bytes of all the files that are included in this version and
# curerntly hosted on the App Engine disk.@OutputOnly # curerntly hosted on the App Engine disk.@OutputOnly
# Corresponds to the JSON property `diskUsageBytes` # Corresponds to the JSON property `diskUsageBytes`
# @return [String] # @return [Fixnum]
attr_accessor :disk_usage_bytes attr_accessor :disk_usage_bytes
# An ordered list of URL-matching patterns that should be applied to incoming # An ordered list of URL-matching patterns that should be applied to incoming
@ -1827,7 +1827,7 @@ module Google
# Total memory in use (bytes).@OutputOnly # Total memory in use (bytes).@OutputOnly
# Corresponds to the JSON property `memoryUsage` # Corresponds to the JSON property `memoryUsage`
# @return [String] # @return [Fixnum]
attr_accessor :memory_usage attr_accessor :memory_usage
# Status of the virtual machine where this instance lives. Only applicable for # Status of the virtual machine where this instance lives. Only applicable for

View File

@ -446,7 +446,7 @@ module Google
property :serving_status, as: 'servingStatus' property :serving_status, as: 'servingStatus'
property :created_by, as: 'createdBy' property :created_by, as: 'createdBy'
property :create_time, as: 'createTime' property :create_time, as: 'createTime'
property :disk_usage_bytes, as: 'diskUsageBytes' property :disk_usage_bytes, :numeric_string => true, as: 'diskUsageBytes'
collection :handlers, as: 'handlers', class: Google::Apis::AppengineV1::UrlMap, decorator: Google::Apis::AppengineV1::UrlMap::Representation collection :handlers, as: 'handlers', class: Google::Apis::AppengineV1::UrlMap, decorator: Google::Apis::AppengineV1::UrlMap::Representation
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
@ -753,7 +753,7 @@ module Google
property :errors, as: 'errors' property :errors, as: 'errors'
property :qps, as: 'qps' property :qps, as: 'qps'
property :average_latency, as: 'averageLatency' property :average_latency, as: 'averageLatency'
property :memory_usage, as: 'memoryUsage' property :memory_usage, :numeric_string => true, as: 'memoryUsage'
property :vm_status, as: 'vmStatus' property :vm_status, as: 'vmStatus'
property :vm_debug_enabled, as: 'vmDebugEnabled' property :vm_debug_enabled, as: 'vmDebugEnabled'
property :vm_ip, as: 'vmIp' property :vm_ip, as: 'vmIp'

View File

@ -44,6 +44,7 @@ module Google
def initialize def initialize
super('https://appengine.googleapis.com/', '') super('https://appengine.googleapis.com/', '')
@batch_path = 'batch'
end end
# Gets information about an application. # Gets information about an application.

View File

@ -62,7 +62,7 @@ module Google
# The time at which the event occurred formatted as Unix time in milliseconds. # The time at which the event occurred formatted as Unix time in milliseconds.
# Corresponds to the JSON property `eventTimeMillis` # Corresponds to the JSON property `eventTimeMillis`
# @return [String] # @return [Fixnum]
attr_accessor :event_time_millis attr_accessor :event_time_millis
# Whether this event is caused by a user being deleted. # Whether this event is caused by a user being deleted.

View File

@ -102,7 +102,7 @@ module Google
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
collection :additional_event_types, as: 'additionalEventTypes' collection :additional_event_types, as: 'additionalEventTypes'
property :event_time_millis, as: 'eventTimeMillis' property :event_time_millis, :numeric_string => true, as: 'eventTimeMillis'
property :from_user_deletion, as: 'fromUserDeletion' property :from_user_deletion, as: 'fromUserDeletion'
property :move, as: 'move', class: Google::Apis::AppsactivityV1::Move, decorator: Google::Apis::AppsactivityV1::Move::Representation property :move, as: 'move', class: Google::Apis::AppsactivityV1::Move, decorator: Google::Apis::AppsactivityV1::Move::Representation

View File

@ -50,6 +50,7 @@ module Google
def initialize def initialize
super('https://www.googleapis.com/', 'appsactivity/v1/') super('https://www.googleapis.com/', 'appsactivity/v1/')
@batch_path = 'batch'
end end
# Returns a list of activities visible to the current logged in user. Visible # Returns a list of activities visible to the current logged in user. Visible

View File

@ -0,0 +1,35 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/appsmarket_v2/service.rb'
require 'google/apis/appsmarket_v2/classes.rb'
require 'google/apis/appsmarket_v2/representations.rb'
module Google
module Apis
# Google Apps Marketplace API
#
# Lets your Apps Marketplace applications integrate with Google's licensing
# service
#
# @see https://developers.google.com/google-apps/marketplace/v2/developers_guide
module AppsmarketV2
VERSION = 'V2'
REVISION = '20160920'
# View your installed application's licensing information
AUTH_APPSMARKETPLACE_LICENSE = 'https://www.googleapis.com/auth/appsmarketplace.license'
end
end
end

View File

@ -0,0 +1,396 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module AppsmarketV2
#
class CustomerLicense
include Google::Apis::Core::Hashable
# The ID of the application corresponding to this license query.
# Corresponds to the JSON property `applicationId`
# @return [String]
attr_accessor :application_id
# The domain name of the customer.
# Corresponds to the JSON property `customerId`
# @return [String]
attr_accessor :customer_id
# (Deprecated)
# Corresponds to the JSON property `editions`
# @return [Array<Google::Apis::AppsmarketV2::CustomerLicense::Edition>]
attr_accessor :editions
# The ID of the customer license.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# The type of API resource. This is always appsmarket#customerLicense.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The customer's license status.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@application_id = args[:application_id] if args.key?(:application_id)
@customer_id = args[:customer_id] if args.key?(:customer_id)
@editions = args[:editions] if args.key?(:editions)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@state = args[:state] if args.key?(:state)
end
#
class Edition
include Google::Apis::Core::Hashable
# (Deprecated)
# Corresponds to the JSON property `assignedSeats`
# @return [Fixnum]
attr_accessor :assigned_seats
# (Deprecated)
# Corresponds to the JSON property `editionId`
# @return [String]
attr_accessor :edition_id
# (Deprecated)
# Corresponds to the JSON property `seatCount`
# @return [Fixnum]
attr_accessor :seat_count
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@assigned_seats = args[:assigned_seats] if args.key?(:assigned_seats)
@edition_id = args[:edition_id] if args.key?(:edition_id)
@seat_count = args[:seat_count] if args.key?(:seat_count)
end
end
end
#
class LicenseNotification
include Google::Apis::Core::Hashable
# The ID of the application according to this notification.
# Corresponds to the JSON property `applicationId`
# @return [String]
attr_accessor :application_id
# The domain name of the customer corresponding to this notification.
# Corresponds to the JSON property `customerId`
# @return [String]
attr_accessor :customer_id
# The list of deletion notifications.
# Corresponds to the JSON property `deletes`
# @return [Array<Google::Apis::AppsmarketV2::LicenseNotification::Delete>]
attr_accessor :deletes
# The list of expiry notifications.
# Corresponds to the JSON property `expiries`
# @return [Array<Google::Apis::AppsmarketV2::LicenseNotification::Expiry>]
attr_accessor :expiries
# The ID of the license notification.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# The type of API resource. This is always appsmarket#licenseNotification.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The list of provisioning notifications.
# Corresponds to the JSON property `provisions`
# @return [Array<Google::Apis::AppsmarketV2::LicenseNotification::Provision>]
attr_accessor :provisions
# The list of reassignment notifications.
# Corresponds to the JSON property `reassignments`
# @return [Array<Google::Apis::AppsmarketV2::LicenseNotification::Reassignment>]
attr_accessor :reassignments
# The time the event occurred, measuring in milliseconds since the UNIX epoch.
# Corresponds to the JSON property `timestamp`
# @return [Fixnum]
attr_accessor :timestamp
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@application_id = args[:application_id] if args.key?(:application_id)
@customer_id = args[:customer_id] if args.key?(:customer_id)
@deletes = args[:deletes] if args.key?(:deletes)
@expiries = args[:expiries] if args.key?(:expiries)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@provisions = args[:provisions] if args.key?(:provisions)
@reassignments = args[:reassignments] if args.key?(:reassignments)
@timestamp = args[:timestamp] if args.key?(:timestamp)
end
#
class Delete
include Google::Apis::Core::Hashable
# (Deprecated)
# Corresponds to the JSON property `editionId`
# @return [String]
attr_accessor :edition_id
#
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@edition_id = args[:edition_id] if args.key?(:edition_id)
@kind = args[:kind] if args.key?(:kind)
end
end
#
class Expiry
include Google::Apis::Core::Hashable
# (Deprecated)
# Corresponds to the JSON property `editionId`
# @return [String]
attr_accessor :edition_id
#
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@edition_id = args[:edition_id] if args.key?(:edition_id)
@kind = args[:kind] if args.key?(:kind)
end
end
#
class Provision
include Google::Apis::Core::Hashable
# (Deprecated)
# Corresponds to the JSON property `editionId`
# @return [String]
attr_accessor :edition_id
#
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The number of seats that were provisioned.
# Corresponds to the JSON property `seatCount`
# @return [Fixnum]
attr_accessor :seat_count
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@edition_id = args[:edition_id] if args.key?(:edition_id)
@kind = args[:kind] if args.key?(:kind)
@seat_count = args[:seat_count] if args.key?(:seat_count)
end
end
#
class Reassignment
include Google::Apis::Core::Hashable
# (Deprecated)
# Corresponds to the JSON property `editionId`
# @return [String]
attr_accessor :edition_id
#
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
#
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
# The email address of the reassigned user.
# Corresponds to the JSON property `userId`
# @return [String]
attr_accessor :user_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@edition_id = args[:edition_id] if args.key?(:edition_id)
@kind = args[:kind] if args.key?(:kind)
@type = args[:type] if args.key?(:type)
@user_id = args[:user_id] if args.key?(:user_id)
end
end
end
#
class LicenseNotificationList
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The token used to continue querying for notifications after the final
# notification in the current result set.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# The list of notifications. One or more of:
# - provisions -- A new license of the application has been provisioned.
# - expiries -- A license of the application has expired.
# - deletions -- An application has been deleted from a domain.
# - reassignments -- An administrator has assigned or revoked a seat license for
# the application on the provided domain.
# Corresponds to the JSON property `notifications`
# @return [Array<Google::Apis::AppsmarketV2::LicenseNotification>]
attr_accessor :notifications
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@notifications = args[:notifications] if args.key?(:notifications)
end
end
#
class UserLicense
include Google::Apis::Core::Hashable
# The ID of the application corresponding to the license query.
# Corresponds to the JSON property `applicationId`
# @return [String]
attr_accessor :application_id
# The domain name of the user.
# Corresponds to the JSON property `customerId`
# @return [String]
attr_accessor :customer_id
# (Deprecated)
# Corresponds to the JSON property `editionId`
# @return [String]
attr_accessor :edition_id
# The domain administrator has activated the application for this domain.
# Corresponds to the JSON property `enabled`
# @return [Boolean]
attr_accessor :enabled
alias_method :enabled?, :enabled
# The ID of user license.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# The type of API resource. This is always appsmarket#userLicense.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The user's licensing status. One of:
# - ACTIVE -- The user has a valid license and should be permitted to use the
# application.
# - UNLICENSED -- The administrator of this user's domain never assigned a seat
# for the application to this user.
# - EXPIRED -- The administrator assigned a seat to this user, but the license
# is expired.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
# The email address of the user.
# Corresponds to the JSON property `userId`
# @return [String]
attr_accessor :user_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@application_id = args[:application_id] if args.key?(:application_id)
@customer_id = args[:customer_id] if args.key?(:customer_id)
@edition_id = args[:edition_id] if args.key?(:edition_id)
@enabled = args[:enabled] if args.key?(:enabled)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@state = args[:state] if args.key?(:state)
@user_id = args[:user_id] if args.key?(:user_id)
end
end
end
end
end

View File

@ -0,0 +1,180 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module AppsmarketV2
class CustomerLicense
class Representation < Google::Apis::Core::JsonRepresentation; end
class Edition
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class LicenseNotification
class Representation < Google::Apis::Core::JsonRepresentation; end
class Delete
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Expiry
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Provision
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Reassignment
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class LicenseNotificationList
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UserLicense
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CustomerLicense
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :application_id, as: 'applicationId'
property :customer_id, as: 'customerId'
collection :editions, as: 'editions', class: Google::Apis::AppsmarketV2::CustomerLicense::Edition, decorator: Google::Apis::AppsmarketV2::CustomerLicense::Edition::Representation
property :id, as: 'id'
property :kind, as: 'kind'
property :state, as: 'state'
end
class Edition
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :assigned_seats, as: 'assignedSeats'
property :edition_id, as: 'editionId'
property :seat_count, as: 'seatCount'
end
end
end
class LicenseNotification
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :application_id, as: 'applicationId'
property :customer_id, as: 'customerId'
collection :deletes, as: 'deletes', class: Google::Apis::AppsmarketV2::LicenseNotification::Delete, decorator: Google::Apis::AppsmarketV2::LicenseNotification::Delete::Representation
collection :expiries, as: 'expiries', class: Google::Apis::AppsmarketV2::LicenseNotification::Expiry, decorator: Google::Apis::AppsmarketV2::LicenseNotification::Expiry::Representation
property :id, as: 'id'
property :kind, as: 'kind'
collection :provisions, as: 'provisions', class: Google::Apis::AppsmarketV2::LicenseNotification::Provision, decorator: Google::Apis::AppsmarketV2::LicenseNotification::Provision::Representation
collection :reassignments, as: 'reassignments', class: Google::Apis::AppsmarketV2::LicenseNotification::Reassignment, decorator: Google::Apis::AppsmarketV2::LicenseNotification::Reassignment::Representation
property :timestamp, :numeric_string => true, as: 'timestamp'
end
class Delete
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :edition_id, as: 'editionId'
property :kind, as: 'kind'
end
end
class Expiry
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :edition_id, as: 'editionId'
property :kind, as: 'kind'
end
end
class Provision
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :edition_id, as: 'editionId'
property :kind, as: 'kind'
property :seat_count, :numeric_string => true, as: 'seatCount'
end
end
class Reassignment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :edition_id, as: 'editionId'
property :kind, as: 'kind'
property :type, as: 'type'
property :user_id, as: 'userId'
end
end
end
class LicenseNotificationList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
collection :notifications, as: 'notifications', class: Google::Apis::AppsmarketV2::LicenseNotification, decorator: Google::Apis::AppsmarketV2::LicenseNotification::Representation
end
end
class UserLicense
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :application_id, as: 'applicationId'
property :customer_id, as: 'customerId'
property :edition_id, as: 'editionId'
property :enabled, as: 'enabled'
property :id, as: 'id'
property :kind, as: 'kind'
property :state, as: 'state'
property :user_id, as: 'userId'
end
end
end
end
end

View File

@ -0,0 +1,187 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module AppsmarketV2
# Google Apps Marketplace API
#
# Lets your Apps Marketplace applications integrate with Google's licensing
# service
#
# @example
# require 'google/apis/appsmarket_v2'
#
# Appsmarket = Google::Apis::AppsmarketV2 # Alias the module
# service = Appsmarket::AppsmarketService.new
#
# @see https://developers.google.com/google-apps/marketplace/v2/developers_guide
class AppsmarketService < Google::Apis::Core::BaseService
# @return [String]
# API key. Your API key identifies your project and provides you with API access,
# quota, and reports. Required unless you provide an OAuth 2.0 token.
attr_accessor :key
# @return [String]
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
attr_accessor :quota_user
# @return [String]
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
attr_accessor :user_ip
def initialize
super('https://www.googleapis.com/', 'appsmarket/v2/')
@batch_path = 'batch'
end
#
# @param [String] application_id
# Application Id
# @param [String] customer_id
# Customer 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.
# 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::AppsmarketV2::CustomerLicense] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppsmarketV2::CustomerLicense]
#
# @raise [Google::Apis::ServerError] An error occurred on the server 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_customer_license(application_id, customer_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'customerLicense/{applicationId}/{customerId}', options)
command.response_representation = Google::Apis::AppsmarketV2::CustomerLicense::Representation
command.response_class = Google::Apis::AppsmarketV2::CustomerLicense
command.params['applicationId'] = application_id unless application_id.nil?
command.params['customerId'] = customer_id unless customer_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
#
# @param [String] application_id
# Application Id
# @param [Fixnum] max_results
# Maximum number of results to return
# @param [String] start_token
# Pagination token
# @param [Fixnum] timestamp
# Timestamp in milliseconds since epoch
# @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::AppsmarketV2::LicenseNotificationList] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppsmarketV2::LicenseNotificationList]
#
# @raise [Google::Apis::ServerError] An error occurred on the server 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_license_notifications(application_id, max_results: nil, start_token: nil, timestamp: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'licenseNotification/{applicationId}', options)
command.response_representation = Google::Apis::AppsmarketV2::LicenseNotificationList::Representation
command.response_class = Google::Apis::AppsmarketV2::LicenseNotificationList
command.params['applicationId'] = application_id unless application_id.nil?
command.query['max-results'] = max_results unless max_results.nil?
command.query['start-token'] = start_token unless start_token.nil?
command.query['timestamp'] = timestamp unless timestamp.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
#
# @param [String] application_id
# Application Id
# @param [String] user_id
# User 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.
# 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::AppsmarketV2::UserLicense] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppsmarketV2::UserLicense]
#
# @raise [Google::Apis::ServerError] An error occurred on the server 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_user_license(application_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'userLicense/{applicationId}/{userId}', options)
command.response_representation = Google::Apis::AppsmarketV2::UserLicense::Representation
command.response_class = Google::Apis::AppsmarketV2::UserLicense
command.params['applicationId'] = application_id unless application_id.nil?
command.params['userId'] = user_id unless user_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
protected
def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
end
end
end
end
end

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 = '20170323' REVISION = '20170329'
# 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

@ -50,6 +50,7 @@ module Google
def initialize def initialize
super('https://www.googleapis.com/', 'appstate/v1/') super('https://www.googleapis.com/', 'appstate/v1/')
@batch_path = 'batch'
end end
# Clears (sets to empty) the data for the passed key if and only if the passed # Clears (sets to empty) the data for the passed key if and only if the passed

View File

@ -248,7 +248,7 @@ module Google
# when reading the data. The default value is 0. This property is useful if you # when reading the data. The default value is 0. This property is useful if you
# have header rows in the file that should be skipped. # have header rows in the file that should be skipped.
# Corresponds to the JSON property `skipLeadingRows` # Corresponds to the JSON property `skipLeadingRows`
# @return [String] # @return [Fixnum]
attr_accessor :skip_leading_rows attr_accessor :skip_leading_rows
def initialize(**args) def initialize(**args)
@ -285,7 +285,7 @@ module Google
# [Output-only] The time when this dataset was created, in milliseconds since # [Output-only] The time when this dataset was created, in milliseconds since
# the epoch. # the epoch.
# Corresponds to the JSON property `creationTime` # Corresponds to the JSON property `creationTime`
# @return [String] # @return [Fixnum]
attr_accessor :creation_time attr_accessor :creation_time
# [Required] A reference that identifies the dataset. # [Required] A reference that identifies the dataset.
@ -304,7 +304,7 @@ module Google
# table, that value takes precedence over the default expiration time indicated # table, that value takes precedence over the default expiration time indicated
# by this property. # by this property.
# Corresponds to the JSON property `defaultTableExpirationMs` # Corresponds to the JSON property `defaultTableExpirationMs`
# @return [String] # @return [Fixnum]
attr_accessor :default_table_expiration_ms attr_accessor :default_table_expiration_ms
# [Optional] A user-friendly description of the dataset. # [Optional] A user-friendly description of the dataset.
@ -345,7 +345,7 @@ module Google
# [Output-only] The date when this dataset or any of its tables was last # [Output-only] The date when this dataset or any of its tables was last
# modified, in milliseconds since the epoch. # modified, in milliseconds since the epoch.
# Corresponds to the JSON property `lastModifiedTime` # Corresponds to the JSON property `lastModifiedTime`
# @return [String] # @return [Fixnum]
attr_accessor :last_modified_time attr_accessor :last_modified_time
# The geographic location where the dataset should reside. Possible values # The geographic location where the dataset should reside. Possible values
@ -610,7 +610,7 @@ module Google
# Unique ID for stage within plan. # Unique ID for stage within plan.
# Corresponds to the JSON property `id` # Corresponds to the JSON property `id`
# @return [String] # @return [Fixnum]
attr_accessor :id attr_accessor :id
# Human-readable name for stage. # Human-readable name for stage.
@ -630,12 +630,12 @@ module Google
# Number of records read into the stage. # Number of records read into the stage.
# Corresponds to the JSON property `recordsRead` # Corresponds to the JSON property `recordsRead`
# @return [String] # @return [Fixnum]
attr_accessor :records_read attr_accessor :records_read
# Number of records written by the stage. # Number of records written by the stage.
# Corresponds to the JSON property `recordsWritten` # Corresponds to the JSON property `recordsWritten`
# @return [String] # @return [Fixnum]
attr_accessor :records_written attr_accessor :records_written
# Current status for the stage. # Current status for the stage.
@ -866,7 +866,7 @@ module Google
# [Output-only] The number of rows affected by a DML statement. Present only for # [Output-only] The number of rows affected by a DML statement. Present only for
# DML statements INSERT, UPDATE or DELETE. # DML statements INSERT, UPDATE or DELETE.
# Corresponds to the JSON property `numDmlAffectedRows` # Corresponds to the JSON property `numDmlAffectedRows`
# @return [String] # @return [Fixnum]
attr_accessor :num_dml_affected_rows attr_accessor :num_dml_affected_rows
# A token used for paging results. # A token used for paging results.
@ -889,14 +889,14 @@ module Google
# The total number of bytes processed for this query. # The total number of bytes processed for this query.
# Corresponds to the JSON property `totalBytesProcessed` # Corresponds to the JSON property `totalBytesProcessed`
# @return [String] # @return [Fixnum]
attr_accessor :total_bytes_processed attr_accessor :total_bytes_processed
# The total number of rows in the complete query result set, which can be more # The total number of rows in the complete query result set, which can be more
# than the number of rows in this single page of results. Present only when the # than the number of rows in this single page of results. Present only when the
# query completes successfully. # query completes successfully.
# Corresponds to the JSON property `totalRows` # Corresponds to the JSON property `totalRows`
# @return [String] # @return [Fixnum]
attr_accessor :total_rows attr_accessor :total_rows
def initialize(**args) def initialize(**args)
@ -936,7 +936,7 @@ module Google
# is just skipped. Otherwise row N is used to extract column names for the # is just skipped. Otherwise row N is used to extract column names for the
# detected schema. # detected schema.
# Corresponds to the JSON property `skipLeadingRows` # Corresponds to the JSON property `skipLeadingRows`
# @return [String] # @return [Fixnum]
attr_accessor :skip_leading_rows attr_accessor :skip_leading_rows
def initialize(**args) def initialize(**args)
@ -1422,7 +1422,7 @@ module Google
# billed beyond this limit will fail (without incurring a charge). If # billed beyond this limit will fail (without incurring a charge). If
# unspecified, this will be set to your project default. # unspecified, this will be set to your project default.
# Corresponds to the JSON property `maximumBytesBilled` # Corresponds to the JSON property `maximumBytesBilled`
# @return [String] # @return [Fixnum]
attr_accessor :maximum_bytes_billed attr_accessor :maximum_bytes_billed
# Standard SQL only. Set to POSITIONAL to use positional (?) query parameters or # Standard SQL only. Set to POSITIONAL to use positional (?) query parameters or
@ -1732,13 +1732,13 @@ module Google
# [Output-only] Creation time of this job, in milliseconds since the epoch. This # [Output-only] Creation time of this job, in milliseconds since the epoch. This
# field will be present on all jobs. # field will be present on all jobs.
# Corresponds to the JSON property `creationTime` # Corresponds to the JSON property `creationTime`
# @return [String] # @return [Fixnum]
attr_accessor :creation_time attr_accessor :creation_time
# [Output-only] End time of this job, in milliseconds since the epoch. This # [Output-only] End time of this job, in milliseconds since the epoch. This
# field will be present whenever a job is in the DONE state. # field will be present whenever a job is in the DONE state.
# Corresponds to the JSON property `endTime` # Corresponds to the JSON property `endTime`
# @return [String] # @return [Fixnum]
attr_accessor :end_time attr_accessor :end_time
# [Output-only] Statistics for an extract job. # [Output-only] Statistics for an extract job.
@ -1760,13 +1760,13 @@ module Google
# field will be present when the job transitions from the PENDING state to # field will be present when the job transitions from the PENDING state to
# either RUNNING or DONE. # either RUNNING or DONE.
# Corresponds to the JSON property `startTime` # Corresponds to the JSON property `startTime`
# @return [String] # @return [Fixnum]
attr_accessor :start_time attr_accessor :start_time
# [Output-only] [Deprecated] Use the bytes processed in the query statistics # [Output-only] [Deprecated] Use the bytes processed in the query statistics
# instead. # instead.
# Corresponds to the JSON property `totalBytesProcessed` # Corresponds to the JSON property `totalBytesProcessed`
# @return [String] # @return [Fixnum]
attr_accessor :total_bytes_processed attr_accessor :total_bytes_processed
def initialize(**args) def initialize(**args)
@ -1803,7 +1803,7 @@ module Google
# [Output-only] The number of rows affected by a DML statement. Present only for # [Output-only] The number of rows affected by a DML statement. Present only for
# DML statements INSERT, UPDATE or DELETE. # DML statements INSERT, UPDATE or DELETE.
# Corresponds to the JSON property `numDmlAffectedRows` # Corresponds to the JSON property `numDmlAffectedRows`
# @return [String] # @return [Fixnum]
attr_accessor :num_dml_affected_rows attr_accessor :num_dml_affected_rows
# [Output-only] Describes execution plan for the query. # [Output-only] Describes execution plan for the query.
@ -1830,12 +1830,12 @@ module Google
# [Output-only] Total bytes billed for the job. # [Output-only] Total bytes billed for the job.
# Corresponds to the JSON property `totalBytesBilled` # Corresponds to the JSON property `totalBytesBilled`
# @return [String] # @return [Fixnum]
attr_accessor :total_bytes_billed attr_accessor :total_bytes_billed
# [Output-only] Total bytes processed for the job. # [Output-only] Total bytes processed for the job.
# Corresponds to the JSON property `totalBytesProcessed` # Corresponds to the JSON property `totalBytesProcessed`
# @return [String] # @return [Fixnum]
attr_accessor :total_bytes_processed attr_accessor :total_bytes_processed
# [Output-only, Experimental] Standard SQL only: list of undeclared query # [Output-only, Experimental] Standard SQL only: list of undeclared query
@ -1869,24 +1869,24 @@ module Google
# [Output-only] Number of bytes of source data in a load job. # [Output-only] Number of bytes of source data in a load job.
# Corresponds to the JSON property `inputFileBytes` # Corresponds to the JSON property `inputFileBytes`
# @return [String] # @return [Fixnum]
attr_accessor :input_file_bytes attr_accessor :input_file_bytes
# [Output-only] Number of source files in a load job. # [Output-only] Number of source files in a load job.
# Corresponds to the JSON property `inputFiles` # Corresponds to the JSON property `inputFiles`
# @return [String] # @return [Fixnum]
attr_accessor :input_files attr_accessor :input_files
# [Output-only] Size of the loaded data in bytes. Note that while a load job is # [Output-only] Size of the loaded data in bytes. Note that while a load job is
# in the running state, this value may change. # in the running state, this value may change.
# Corresponds to the JSON property `outputBytes` # Corresponds to the JSON property `outputBytes`
# @return [String] # @return [Fixnum]
attr_accessor :output_bytes attr_accessor :output_bytes
# [Output-only] Number of rows imported in a load job. Note that while an import # [Output-only] Number of rows imported in a load job. Note that while an import
# job is in the running state, this value may change. # job is in the running state, this value may change.
# Corresponds to the JSON property `outputRows` # Corresponds to the JSON property `outputRows`
# @return [String] # @return [Fixnum]
attr_accessor :output_rows attr_accessor :output_rows
def initialize(**args) def initialize(**args)
@ -1910,7 +1910,7 @@ module Google
# the extract configuration. These values will be in the same order as the URIs # the extract configuration. These values will be in the same order as the URIs
# specified in the 'destinationUris' field. # specified in the 'destinationUris' field.
# Corresponds to the JSON property `destinationUriFileCounts` # Corresponds to the JSON property `destinationUriFileCounts`
# @return [Array<String>] # @return [Array<Fixnum>]
attr_accessor :destination_uri_file_counts attr_accessor :destination_uri_file_counts
def initialize(**args) def initialize(**args)
@ -2019,7 +2019,7 @@ module Google
# The numeric ID of this project. # The numeric ID of this project.
# Corresponds to the JSON property `numericId` # Corresponds to the JSON property `numericId`
# @return [String] # @return [Fixnum]
attr_accessor :numeric_id attr_accessor :numeric_id
# A unique reference to this project. # A unique reference to this project.
@ -2335,7 +2335,7 @@ module Google
# [Output-only] The number of rows affected by a DML statement. Present only for # [Output-only] The number of rows affected by a DML statement. Present only for
# DML statements INSERT, UPDATE or DELETE. # DML statements INSERT, UPDATE or DELETE.
# Corresponds to the JSON property `numDmlAffectedRows` # Corresponds to the JSON property `numDmlAffectedRows`
# @return [String] # @return [Fixnum]
attr_accessor :num_dml_affected_rows attr_accessor :num_dml_affected_rows
# A token used for paging results. # A token used for paging results.
@ -2358,13 +2358,13 @@ module Google
# The total number of bytes processed for this query. If this query was a dry # The total number of bytes processed for this query. If this query was a dry
# run, this is the number of bytes that would be processed if the query were run. # run, this is the number of bytes that would be processed if the query were run.
# Corresponds to the JSON property `totalBytesProcessed` # Corresponds to the JSON property `totalBytesProcessed`
# @return [String] # @return [Fixnum]
attr_accessor :total_bytes_processed attr_accessor :total_bytes_processed
# The total number of rows in the complete query result set, which can be more # The total number of rows in the complete query result set, which can be more
# than the number of rows in this single page of results. # than the number of rows in this single page of results.
# Corresponds to the JSON property `totalRows` # Corresponds to the JSON property `totalRows`
# @return [String] # @return [Fixnum]
attr_accessor :total_rows attr_accessor :total_rows
def initialize(**args) def initialize(**args)
@ -2394,19 +2394,19 @@ module Google
# [Output-only] A lower-bound estimate of the number of bytes currently in the # [Output-only] A lower-bound estimate of the number of bytes currently in the
# streaming buffer. # streaming buffer.
# Corresponds to the JSON property `estimatedBytes` # Corresponds to the JSON property `estimatedBytes`
# @return [String] # @return [Fixnum]
attr_accessor :estimated_bytes attr_accessor :estimated_bytes
# [Output-only] A lower-bound estimate of the number of rows currently in the # [Output-only] A lower-bound estimate of the number of rows currently in the
# streaming buffer. # streaming buffer.
# Corresponds to the JSON property `estimatedRows` # Corresponds to the JSON property `estimatedRows`
# @return [String] # @return [Fixnum]
attr_accessor :estimated_rows attr_accessor :estimated_rows
# [Output-only] Contains the timestamp of the oldest entry in the streaming # [Output-only] Contains the timestamp of the oldest entry in the streaming
# buffer, in milliseconds since the epoch, if the streaming buffer is available. # buffer, in milliseconds since the epoch, if the streaming buffer is available.
# Corresponds to the JSON property `oldestEntryTime` # Corresponds to the JSON property `oldestEntryTime`
# @return [String] # @return [Fixnum]
attr_accessor :oldest_entry_time attr_accessor :oldest_entry_time
def initialize(**args) def initialize(**args)
@ -2428,7 +2428,7 @@ module Google
# [Output-only] The time when this table was created, in milliseconds since the # [Output-only] The time when this table was created, in milliseconds since the
# epoch. # epoch.
# Corresponds to the JSON property `creationTime` # Corresponds to the JSON property `creationTime`
# @return [String] # @return [Fixnum]
attr_accessor :creation_time attr_accessor :creation_time
# [Optional] A user-friendly description of this table. # [Optional] A user-friendly description of this table.
@ -2445,7 +2445,7 @@ module Google
# If not present, the table will persist indefinitely. Expired tables will be # If not present, the table will persist indefinitely. Expired tables will be
# deleted and their storage reclaimed. # deleted and their storage reclaimed.
# Corresponds to the JSON property `expirationTime` # Corresponds to the JSON property `expirationTime`
# @return [String] # @return [Fixnum]
attr_accessor :expiration_time attr_accessor :expiration_time
# [Optional] Describes the data format, location, and other properties of a # [Optional] Describes the data format, location, and other properties of a
@ -2483,7 +2483,7 @@ module Google
# [Output-only] The time when this table was last modified, in milliseconds # [Output-only] The time when this table was last modified, in milliseconds
# since the epoch. # since the epoch.
# Corresponds to the JSON property `lastModifiedTime` # Corresponds to the JSON property `lastModifiedTime`
# @return [String] # @return [Fixnum]
attr_accessor :last_modified_time attr_accessor :last_modified_time
# [Output-only] The geographic location where the table resides. This value is # [Output-only] The geographic location where the table resides. This value is
@ -2495,19 +2495,19 @@ module Google
# [Output-only] The size of this table in bytes, excluding any data in the # [Output-only] The size of this table in bytes, excluding any data in the
# streaming buffer. # streaming buffer.
# Corresponds to the JSON property `numBytes` # Corresponds to the JSON property `numBytes`
# @return [String] # @return [Fixnum]
attr_accessor :num_bytes attr_accessor :num_bytes
# [Output-only] The number of bytes in the table that are considered "long-term # [Output-only] The number of bytes in the table that are considered "long-term
# storage". # storage".
# Corresponds to the JSON property `numLongTermBytes` # Corresponds to the JSON property `numLongTermBytes`
# @return [String] # @return [Fixnum]
attr_accessor :num_long_term_bytes attr_accessor :num_long_term_bytes
# [Output-only] The number of rows of data in this table, excluding any data in # [Output-only] The number of rows of data in this table, excluding any data in
# the streaming buffer. # the streaming buffer.
# Corresponds to the JSON property `numRows` # Corresponds to the JSON property `numRows`
# @return [String] # @return [Fixnum]
attr_accessor :num_rows attr_accessor :num_rows
# [Optional] Describes the schema of this table. # [Optional] Describes the schema of this table.
@ -2757,7 +2757,7 @@ module Google
# The total number of rows in the complete table. # The total number of rows in the complete table.
# Corresponds to the JSON property `totalRows` # Corresponds to the JSON property `totalRows`
# @return [String] # @return [Fixnum]
attr_accessor :total_rows attr_accessor :total_rows
def initialize(**args) def initialize(**args)
@ -3020,7 +3020,7 @@ module Google
# [Optional] Number of milliseconds for which to keep the storage for a # [Optional] Number of milliseconds for which to keep the storage for a
# partition. # partition.
# Corresponds to the JSON property `expirationMs` # Corresponds to the JSON property `expirationMs`
# @return [String] # @return [Fixnum]
attr_accessor :expiration_ms attr_accessor :expiration_ms
# [Required] The only type supported is DAY, which will generate one partition # [Required] The only type supported is DAY, which will generate one partition

View File

@ -406,7 +406,7 @@ module Google
property :encoding, as: 'encoding' property :encoding, as: 'encoding'
property :field_delimiter, as: 'fieldDelimiter' property :field_delimiter, as: 'fieldDelimiter'
property :quote, as: 'quote' property :quote, as: 'quote'
property :skip_leading_rows, as: 'skipLeadingRows' property :skip_leading_rows, :numeric_string => true, as: 'skipLeadingRows'
end end
end end
@ -415,17 +415,17 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
collection :access, as: 'access', class: Google::Apis::BigqueryV2::Dataset::Access, decorator: Google::Apis::BigqueryV2::Dataset::Access::Representation collection :access, as: 'access', class: Google::Apis::BigqueryV2::Dataset::Access, decorator: Google::Apis::BigqueryV2::Dataset::Access::Representation
property :creation_time, as: 'creationTime' property :creation_time, :numeric_string => true, as: 'creationTime'
property :dataset_reference, as: 'datasetReference', class: Google::Apis::BigqueryV2::DatasetReference, decorator: Google::Apis::BigqueryV2::DatasetReference::Representation property :dataset_reference, as: 'datasetReference', class: Google::Apis::BigqueryV2::DatasetReference, decorator: Google::Apis::BigqueryV2::DatasetReference::Representation
property :default_table_expiration_ms, as: 'defaultTableExpirationMs' property :default_table_expiration_ms, :numeric_string => true, as: 'defaultTableExpirationMs'
property :description, as: 'description' property :description, as: 'description'
property :etag, as: 'etag' property :etag, as: 'etag'
property :friendly_name, as: 'friendlyName' property :friendly_name, as: 'friendlyName'
property :id, as: 'id' property :id, as: 'id'
property :kind, as: 'kind' property :kind, as: 'kind'
hash :labels, as: 'labels' hash :labels, as: 'labels'
property :last_modified_time, as: 'lastModifiedTime' property :last_modified_time, :numeric_string => true, as: 'lastModifiedTime'
property :location, as: 'location' property :location, as: 'location'
property :self_link, as: 'selfLink' property :self_link, as: 'selfLink'
end end
@ -490,12 +490,12 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :compute_ratio_avg, as: 'computeRatioAvg' property :compute_ratio_avg, as: 'computeRatioAvg'
property :compute_ratio_max, as: 'computeRatioMax' property :compute_ratio_max, as: 'computeRatioMax'
property :id, as: 'id' property :id, :numeric_string => true, as: 'id'
property :name, as: 'name' property :name, as: 'name'
property :read_ratio_avg, as: 'readRatioAvg' property :read_ratio_avg, as: 'readRatioAvg'
property :read_ratio_max, as: 'readRatioMax' property :read_ratio_max, as: 'readRatioMax'
property :records_read, as: 'recordsRead' property :records_read, :numeric_string => true, as: 'recordsRead'
property :records_written, as: 'recordsWritten' property :records_written, :numeric_string => true, as: 'recordsWritten'
property :status, as: 'status' property :status, as: 'status'
collection :steps, as: 'steps', class: Google::Apis::BigqueryV2::ExplainQueryStep, decorator: Google::Apis::BigqueryV2::ExplainQueryStep::Representation collection :steps, as: 'steps', class: Google::Apis::BigqueryV2::ExplainQueryStep, decorator: Google::Apis::BigqueryV2::ExplainQueryStep::Representation
@ -545,21 +545,21 @@ module Google
property :job_reference, as: 'jobReference', class: Google::Apis::BigqueryV2::JobReference, decorator: Google::Apis::BigqueryV2::JobReference::Representation property :job_reference, as: 'jobReference', class: Google::Apis::BigqueryV2::JobReference, decorator: Google::Apis::BigqueryV2::JobReference::Representation
property :kind, as: 'kind' property :kind, as: 'kind'
property :num_dml_affected_rows, as: 'numDmlAffectedRows' property :num_dml_affected_rows, :numeric_string => true, as: 'numDmlAffectedRows'
property :page_token, as: 'pageToken' property :page_token, as: 'pageToken'
collection :rows, as: 'rows', class: Google::Apis::BigqueryV2::TableRow, decorator: Google::Apis::BigqueryV2::TableRow::Representation collection :rows, as: 'rows', class: Google::Apis::BigqueryV2::TableRow, decorator: Google::Apis::BigqueryV2::TableRow::Representation
property :schema, as: 'schema', class: Google::Apis::BigqueryV2::TableSchema, decorator: Google::Apis::BigqueryV2::TableSchema::Representation property :schema, as: 'schema', class: Google::Apis::BigqueryV2::TableSchema, decorator: Google::Apis::BigqueryV2::TableSchema::Representation
property :total_bytes_processed, as: 'totalBytesProcessed' property :total_bytes_processed, :numeric_string => true, as: 'totalBytesProcessed'
property :total_rows, as: 'totalRows' property :total_rows, :numeric_string => true, as: 'totalRows'
end end
end end
class GoogleSheetsOptions class GoogleSheetsOptions
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :skip_leading_rows, as: 'skipLeadingRows' property :skip_leading_rows, :numeric_string => true, as: 'skipLeadingRows'
end end
end end
@ -660,7 +660,7 @@ module Google
property :flatten_results, as: 'flattenResults' property :flatten_results, as: 'flattenResults'
property :maximum_billing_tier, as: 'maximumBillingTier' property :maximum_billing_tier, as: 'maximumBillingTier'
property :maximum_bytes_billed, as: 'maximumBytesBilled' property :maximum_bytes_billed, :numeric_string => true, as: 'maximumBytesBilled'
property :parameter_mode, as: 'parameterMode' property :parameter_mode, as: 'parameterMode'
property :preserve_nulls, as: 'preserveNulls' property :preserve_nulls, as: 'preserveNulls'
property :priority, as: 'priority' property :priority, as: 'priority'
@ -734,16 +734,16 @@ module Google
class JobStatistics class JobStatistics
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :creation_time, as: 'creationTime' property :creation_time, :numeric_string => true, as: 'creationTime'
property :end_time, as: 'endTime' property :end_time, :numeric_string => true, as: 'endTime'
property :extract, as: 'extract', class: Google::Apis::BigqueryV2::JobStatistics4, decorator: Google::Apis::BigqueryV2::JobStatistics4::Representation property :extract, as: 'extract', class: Google::Apis::BigqueryV2::JobStatistics4, decorator: Google::Apis::BigqueryV2::JobStatistics4::Representation
property :load, as: 'load', class: Google::Apis::BigqueryV2::JobStatistics3, decorator: Google::Apis::BigqueryV2::JobStatistics3::Representation property :load, as: 'load', class: Google::Apis::BigqueryV2::JobStatistics3, decorator: Google::Apis::BigqueryV2::JobStatistics3::Representation
property :query, as: 'query', class: Google::Apis::BigqueryV2::JobStatistics2, decorator: Google::Apis::BigqueryV2::JobStatistics2::Representation property :query, as: 'query', class: Google::Apis::BigqueryV2::JobStatistics2, decorator: Google::Apis::BigqueryV2::JobStatistics2::Representation
property :start_time, as: 'startTime' property :start_time, :numeric_string => true, as: 'startTime'
property :total_bytes_processed, as: 'totalBytesProcessed' property :total_bytes_processed, :numeric_string => true, as: 'totalBytesProcessed'
end end
end end
@ -752,7 +752,7 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :billing_tier, as: 'billingTier' property :billing_tier, as: 'billingTier'
property :cache_hit, as: 'cacheHit' property :cache_hit, as: 'cacheHit'
property :num_dml_affected_rows, as: 'numDmlAffectedRows' property :num_dml_affected_rows, :numeric_string => true, as: 'numDmlAffectedRows'
collection :query_plan, as: 'queryPlan', class: Google::Apis::BigqueryV2::ExplainQueryStage, decorator: Google::Apis::BigqueryV2::ExplainQueryStage::Representation collection :query_plan, as: 'queryPlan', class: Google::Apis::BigqueryV2::ExplainQueryStage, decorator: Google::Apis::BigqueryV2::ExplainQueryStage::Representation
collection :referenced_tables, as: 'referencedTables', class: Google::Apis::BigqueryV2::TableReference, decorator: Google::Apis::BigqueryV2::TableReference::Representation collection :referenced_tables, as: 'referencedTables', class: Google::Apis::BigqueryV2::TableReference, decorator: Google::Apis::BigqueryV2::TableReference::Representation
@ -760,8 +760,8 @@ module Google
property :schema, as: 'schema', class: Google::Apis::BigqueryV2::TableSchema, decorator: Google::Apis::BigqueryV2::TableSchema::Representation property :schema, as: 'schema', class: Google::Apis::BigqueryV2::TableSchema, decorator: Google::Apis::BigqueryV2::TableSchema::Representation
property :statement_type, as: 'statementType' property :statement_type, as: 'statementType'
property :total_bytes_billed, as: 'totalBytesBilled' property :total_bytes_billed, :numeric_string => true, as: 'totalBytesBilled'
property :total_bytes_processed, as: 'totalBytesProcessed' property :total_bytes_processed, :numeric_string => true, as: 'totalBytesProcessed'
collection :undeclared_query_parameters, as: 'undeclaredQueryParameters', class: Google::Apis::BigqueryV2::QueryParameter, decorator: Google::Apis::BigqueryV2::QueryParameter::Representation collection :undeclared_query_parameters, as: 'undeclaredQueryParameters', class: Google::Apis::BigqueryV2::QueryParameter, decorator: Google::Apis::BigqueryV2::QueryParameter::Representation
end end
@ -770,10 +770,10 @@ module Google
class JobStatistics3 class JobStatistics3
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :input_file_bytes, as: 'inputFileBytes' property :input_file_bytes, :numeric_string => true, as: 'inputFileBytes'
property :input_files, as: 'inputFiles' property :input_files, :numeric_string => true, as: 'inputFiles'
property :output_bytes, as: 'outputBytes' property :output_bytes, :numeric_string => true, as: 'outputBytes'
property :output_rows, as: 'outputRows' property :output_rows, :numeric_string => true, as: 'outputRows'
end end
end end
@ -812,7 +812,7 @@ module Google
property :friendly_name, as: 'friendlyName' property :friendly_name, as: 'friendlyName'
property :id, as: 'id' property :id, as: 'id'
property :kind, as: 'kind' property :kind, as: 'kind'
property :numeric_id, as: 'numericId' property :numeric_id, :numeric_string => true, as: 'numericId'
property :project_reference, as: 'projectReference', class: Google::Apis::BigqueryV2::ProjectReference, decorator: Google::Apis::BigqueryV2::ProjectReference::Representation property :project_reference, as: 'projectReference', class: Google::Apis::BigqueryV2::ProjectReference, decorator: Google::Apis::BigqueryV2::ProjectReference::Representation
end end
@ -898,44 +898,44 @@ module Google
property :job_reference, as: 'jobReference', class: Google::Apis::BigqueryV2::JobReference, decorator: Google::Apis::BigqueryV2::JobReference::Representation property :job_reference, as: 'jobReference', class: Google::Apis::BigqueryV2::JobReference, decorator: Google::Apis::BigqueryV2::JobReference::Representation
property :kind, as: 'kind' property :kind, as: 'kind'
property :num_dml_affected_rows, as: 'numDmlAffectedRows' property :num_dml_affected_rows, :numeric_string => true, as: 'numDmlAffectedRows'
property :page_token, as: 'pageToken' property :page_token, as: 'pageToken'
collection :rows, as: 'rows', class: Google::Apis::BigqueryV2::TableRow, decorator: Google::Apis::BigqueryV2::TableRow::Representation collection :rows, as: 'rows', class: Google::Apis::BigqueryV2::TableRow, decorator: Google::Apis::BigqueryV2::TableRow::Representation
property :schema, as: 'schema', class: Google::Apis::BigqueryV2::TableSchema, decorator: Google::Apis::BigqueryV2::TableSchema::Representation property :schema, as: 'schema', class: Google::Apis::BigqueryV2::TableSchema, decorator: Google::Apis::BigqueryV2::TableSchema::Representation
property :total_bytes_processed, as: 'totalBytesProcessed' property :total_bytes_processed, :numeric_string => true, as: 'totalBytesProcessed'
property :total_rows, as: 'totalRows' property :total_rows, :numeric_string => true, as: 'totalRows'
end end
end end
class Streamingbuffer class Streamingbuffer
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :estimated_bytes, as: 'estimatedBytes' property :estimated_bytes, :numeric_string => true, as: 'estimatedBytes'
property :estimated_rows, as: 'estimatedRows' property :estimated_rows, :numeric_string => true, as: 'estimatedRows'
property :oldest_entry_time, as: 'oldestEntryTime' property :oldest_entry_time, :numeric_string => true, as: 'oldestEntryTime'
end end
end end
class Table class Table
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :creation_time, as: 'creationTime' property :creation_time, :numeric_string => true, as: 'creationTime'
property :description, as: 'description' property :description, as: 'description'
property :etag, as: 'etag' property :etag, as: 'etag'
property :expiration_time, as: 'expirationTime' property :expiration_time, :numeric_string => true, as: 'expirationTime'
property :external_data_configuration, as: 'externalDataConfiguration', class: Google::Apis::BigqueryV2::ExternalDataConfiguration, decorator: Google::Apis::BigqueryV2::ExternalDataConfiguration::Representation property :external_data_configuration, as: 'externalDataConfiguration', class: Google::Apis::BigqueryV2::ExternalDataConfiguration, decorator: Google::Apis::BigqueryV2::ExternalDataConfiguration::Representation
property :friendly_name, as: 'friendlyName' property :friendly_name, as: 'friendlyName'
property :id, as: 'id' property :id, as: 'id'
property :kind, as: 'kind' property :kind, as: 'kind'
hash :labels, as: 'labels' hash :labels, as: 'labels'
property :last_modified_time, as: 'lastModifiedTime' property :last_modified_time, :numeric_string => true, as: 'lastModifiedTime'
property :location, as: 'location' property :location, as: 'location'
property :num_bytes, as: 'numBytes' property :num_bytes, :numeric_string => true, as: 'numBytes'
property :num_long_term_bytes, as: 'numLongTermBytes' property :num_long_term_bytes, :numeric_string => true, as: 'numLongTermBytes'
property :num_rows, as: 'numRows' property :num_rows, :numeric_string => true, as: 'numRows'
property :schema, as: 'schema', class: Google::Apis::BigqueryV2::TableSchema, decorator: Google::Apis::BigqueryV2::TableSchema::Representation property :schema, as: 'schema', class: Google::Apis::BigqueryV2::TableSchema, decorator: Google::Apis::BigqueryV2::TableSchema::Representation
property :self_link, as: 'selfLink' property :self_link, as: 'selfLink'
@ -1004,7 +1004,7 @@ module Google
property :page_token, as: 'pageToken' property :page_token, as: 'pageToken'
collection :rows, as: 'rows', class: Google::Apis::BigqueryV2::TableRow, decorator: Google::Apis::BigqueryV2::TableRow::Representation collection :rows, as: 'rows', class: Google::Apis::BigqueryV2::TableRow, decorator: Google::Apis::BigqueryV2::TableRow::Representation
property :total_rows, as: 'totalRows' property :total_rows, :numeric_string => true, as: 'totalRows'
end end
end end
@ -1082,7 +1082,7 @@ module Google
class TimePartitioning class TimePartitioning
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :expiration_ms, as: 'expirationMs' property :expiration_ms, :numeric_string => true, as: 'expirationMs'
property :type, as: 'type' property :type, as: 'type'
end end
end end

View File

@ -50,6 +50,7 @@ module Google
def initialize def initialize
super('https://www.googleapis.com/', 'bigquery/v2/') super('https://www.googleapis.com/', 'bigquery/v2/')
@batch_path = 'batch'
end end
# Deletes the dataset specified by the datasetId value. Before you can delete a # Deletes the dataset specified by the datasetId value. Before you can delete a
@ -398,7 +399,7 @@ module Google
# Maximum number of results to read # Maximum number of results to read
# @param [String] page_token # @param [String] page_token
# Page token, returned by a previous call, to request the next page of results # Page token, returned by a previous call, to request the next page of results
# @param [String] start_index # @param [Fixnum] start_index
# Zero-based index of the starting row # Zero-based index of the starting row
# @param [Fixnum] timeout_ms # @param [Fixnum] timeout_ms
# How long to wait for the query to complete, in milliseconds, before returning. # How long to wait for the query to complete, in milliseconds, before returning.
@ -679,7 +680,7 @@ module Google
# @param [String] selected_fields # @param [String] selected_fields
# List of fields to return (comma-separated). If unspecified, all fields are # List of fields to return (comma-separated). If unspecified, all fields are
# returned # returned
# @param [String] start_index # @param [Fixnum] start_index
# Zero-based index of the starting row to read # Zero-based index of the starting row to read
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.

View File

@ -781,7 +781,7 @@ module Google
# Count of page views for the given time range # Count of page views for the given time range
# Corresponds to the JSON property `count` # Corresponds to the JSON property `count`
# @return [String] # @return [Fixnum]
attr_accessor :count attr_accessor :count
# Time range the given count applies to # Time range the given count applies to
@ -1074,7 +1074,7 @@ module Google
# The count of comments on this post. # The count of comments on this post.
# Corresponds to the JSON property `totalItems` # Corresponds to the JSON property `totalItems`
# @return [String] # @return [Fixnum]
attr_accessor :total_items attr_accessor :total_items
def initialize(**args) def initialize(**args)

View File

@ -461,7 +461,7 @@ module Google
class Count class Count
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :count, as: 'count' property :count, :numeric_string => true, as: 'count'
property :time_range, as: 'timeRange' property :time_range, as: 'timeRange'
end end
end end
@ -546,7 +546,7 @@ module Google
collection :items, as: 'items', class: Google::Apis::BloggerV3::Comment, decorator: Google::Apis::BloggerV3::Comment::Representation collection :items, as: 'items', class: Google::Apis::BloggerV3::Comment, decorator: Google::Apis::BloggerV3::Comment::Representation
property :self_link, as: 'selfLink' property :self_link, as: 'selfLink'
property :total_items, as: 'totalItems' property :total_items, :numeric_string => true, as: 'totalItems'
end end
end end
end end

View File

@ -50,6 +50,7 @@ module Google
def initialize def initialize
super('https://www.googleapis.com/', 'blogger/v3/') super('https://www.googleapis.com/', 'blogger/v3/')
@batch_path = 'batch'
end end
# Gets one blog and user info pair by blogId and userId. # Gets one blog and user info pair by blogId and userId.

View File

@ -1964,12 +1964,12 @@ module Google
# #
# Corresponds to the JSON property `size` # Corresponds to the JSON property `size`
# @return [String] # @return [Fixnum]
attr_accessor :size attr_accessor :size
# #
# Corresponds to the JSON property `version` # Corresponds to the JSON property `version`
# @return [String] # @return [Fixnum]
attr_accessor :version attr_accessor :version
def initialize(**args) def initialize(**args)
@ -1998,7 +1998,7 @@ module Google
# The list of crm experiment ids. # The list of crm experiment ids.
# Corresponds to the JSON property `crmExperimentIds` # Corresponds to the JSON property `crmExperimentIds`
# @return [Array<String>] # @return [Array<Fixnum>]
attr_accessor :crm_experiment_ids attr_accessor :crm_experiment_ids
# #
@ -3467,12 +3467,12 @@ module Google
# #
# Corresponds to the JSON property `endUtcSec` # Corresponds to the JSON property `endUtcSec`
# @return [String] # @return [Fixnum]
attr_accessor :end_utc_sec attr_accessor :end_utc_sec
# #
# Corresponds to the JSON property `startUtcSec` # Corresponds to the JSON property `startUtcSec`
# @return [String] # @return [Fixnum]
attr_accessor :start_utc_sec attr_accessor :start_utc_sec
def initialize(**args) def initialize(**args)

View File

@ -1202,8 +1202,8 @@ module Google
property :download_url, as: 'download_url' property :download_url, as: 'download_url'
property :encrypted_key, as: 'encrypted_key' property :encrypted_key, as: 'encrypted_key'
property :language, as: 'language' property :language, as: 'language'
property :size, as: 'size' property :size, :numeric_string => true, as: 'size'
property :version, as: 'version' property :version, :numeric_string => true, as: 'version'
end end
end end
end end
@ -1622,8 +1622,8 @@ module Google
class RentalPeriod class RentalPeriod
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :end_utc_sec, as: 'endUtcSec' property :end_utc_sec, :numeric_string => true, as: 'endUtcSec'
property :start_utc_sec, as: 'startUtcSec' property :start_utc_sec, :numeric_string => true, as: 'startUtcSec'
end end
end end

View File

@ -50,6 +50,7 @@ module Google
def initialize def initialize
super('https://www.googleapis.com/', 'books/v1/') super('https://www.googleapis.com/', 'books/v1/')
@batch_path = 'batch'
end end
# Retrieves metadata for a specific bookshelf for the specified user. # Retrieves metadata for a specific bookshelf for the specified user.

View File

@ -465,7 +465,7 @@ module Google
# Date and time of notification channel expiration, expressed as a Unix # Date and time of notification channel expiration, expressed as a Unix
# timestamp, in milliseconds. Optional. # timestamp, in milliseconds. Optional.
# Corresponds to the JSON property `expiration` # Corresponds to the JSON property `expiration`
# @return [String] # @return [Fixnum]
attr_accessor :expiration attr_accessor :expiration
# A UUID or similar unique string that identifies this channel. # A UUID or similar unique string that identifies this channel.

View File

@ -353,7 +353,7 @@ module Google
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :address, as: 'address' property :address, as: 'address'
property :expiration, as: 'expiration' property :expiration, :numeric_string => true, as: 'expiration'
property :id, as: 'id' property :id, as: 'id'
property :kind, as: 'kind' property :kind, as: 'kind'
hash :params, as: 'params' hash :params, as: 'params'

View File

@ -50,6 +50,7 @@ module Google
def initialize def initialize
super('https://www.googleapis.com/', 'calendar/v3/') super('https://www.googleapis.com/', 'calendar/v3/')
@batch_path = 'batch'
end end
# Deletes an access control rule. # Deletes an access control rule.

View File

@ -200,7 +200,7 @@ module Google
# The order the candidate appears on the ballot for this contest. # The order the candidate appears on the ballot for this contest.
# Corresponds to the JSON property `orderOnBallot` # Corresponds to the JSON property `orderOnBallot`
# @return [String] # @return [Fixnum]
attr_accessor :order_on_ballot attr_accessor :order_on_ballot
# The full name of the party the candidate is a member of. # The full name of the party the candidate is a member of.
@ -268,7 +268,7 @@ module Google
# A number specifying the position of this contest on the voter's ballot. # A number specifying the position of this contest on the voter's ballot.
# Corresponds to the JSON property `ballotPlacement` # Corresponds to the JSON property `ballotPlacement`
# @return [String] # @return [Fixnum]
attr_accessor :ballot_placement attr_accessor :ballot_placement
# The candidate choices for this contest. # The candidate choices for this contest.
@ -305,12 +305,12 @@ module Google
# The number of candidates that will be elected to office in this contest. # The number of candidates that will be elected to office in this contest.
# Corresponds to the JSON property `numberElected` # Corresponds to the JSON property `numberElected`
# @return [String] # @return [Fixnum]
attr_accessor :number_elected attr_accessor :number_elected
# The number of candidates that a voter may vote for in this contest. # The number of candidates that a voter may vote for in this contest.
# Corresponds to the JSON property `numberVotingFor` # Corresponds to the JSON property `numberVotingFor`
# @return [String] # @return [Fixnum]
attr_accessor :number_voting_for attr_accessor :number_voting_for
# The name of the office for this contest. # The name of the office for this contest.
@ -572,7 +572,7 @@ module Google
# The unique ID of this election. # The unique ID of this election.
# Corresponds to the JSON property `id` # Corresponds to the JSON property `id`
# @return [String] # @return [Fixnum]
attr_accessor :id attr_accessor :id
# A displayable name for the election. # A displayable name for the election.
@ -1464,7 +1464,7 @@ module Google
# #
# Corresponds to the JSON property `generatedMillis` # Corresponds to the JSON property `generatedMillis`
# @return [String] # @return [Fixnum]
attr_accessor :generated_millis attr_accessor :generated_millis
# #

View File

@ -235,7 +235,7 @@ module Google
property :email, as: 'email' property :email, as: 'email'
property :name, as: 'name' property :name, as: 'name'
property :order_on_ballot, as: 'orderOnBallot' property :order_on_ballot, :numeric_string => true, as: 'orderOnBallot'
property :party, as: 'party' property :party, as: 'party'
property :phone, as: 'phone' property :phone, as: 'phone'
property :photo_url, as: 'photoUrl' property :photo_url, as: 'photoUrl'
@ -253,7 +253,7 @@ module Google
class Contest class Contest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :ballot_placement, as: 'ballotPlacement' property :ballot_placement, :numeric_string => true, as: 'ballotPlacement'
collection :candidates, as: 'candidates', class: Google::Apis::CivicinfoV2::Candidate, decorator: Google::Apis::CivicinfoV2::Candidate::Representation collection :candidates, as: 'candidates', class: Google::Apis::CivicinfoV2::Candidate, decorator: Google::Apis::CivicinfoV2::Candidate::Representation
property :district, as: 'district', class: Google::Apis::CivicinfoV2::ElectoralDistrict, decorator: Google::Apis::CivicinfoV2::ElectoralDistrict::Representation property :district, as: 'district', class: Google::Apis::CivicinfoV2::ElectoralDistrict, decorator: Google::Apis::CivicinfoV2::ElectoralDistrict::Representation
@ -261,8 +261,8 @@ module Google
property :electorate_specifications, as: 'electorateSpecifications' property :electorate_specifications, as: 'electorateSpecifications'
property :id, as: 'id' property :id, as: 'id'
collection :level, as: 'level' collection :level, as: 'level'
property :number_elected, as: 'numberElected' property :number_elected, :numeric_string => true, as: 'numberElected'
property :number_voting_for, as: 'numberVotingFor' property :number_voting_for, :numeric_string => true, as: 'numberVotingFor'
property :office, as: 'office' property :office, as: 'office'
property :primary_party, as: 'primaryParty' property :primary_party, as: 'primaryParty'
collection :referendum_ballot_responses, as: 'referendumBallotResponses' collection :referendum_ballot_responses, as: 'referendumBallotResponses'
@ -328,7 +328,7 @@ module Google
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :election_day, as: 'electionDay' property :election_day, as: 'electionDay'
property :id, as: 'id' property :id, :numeric_string => true, as: 'id'
property :name, as: 'name' property :name, as: 'name'
property :ocd_division_id, as: 'ocdDivisionId' property :ocd_division_id, as: 'ocdDivisionId'
end end
@ -558,7 +558,7 @@ module Google
class VoterInfoSegmentResult class VoterInfoSegmentResult
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :generated_millis, as: 'generatedMillis' property :generated_millis, :numeric_string => true, as: 'generatedMillis'
property :postal_address, as: 'postalAddress', class: Google::Apis::CivicinfoV2::PostalAddress, decorator: Google::Apis::CivicinfoV2::PostalAddress::Representation property :postal_address, as: 'postalAddress', class: Google::Apis::CivicinfoV2::PostalAddress, decorator: Google::Apis::CivicinfoV2::PostalAddress::Representation
property :request, as: 'request', class: Google::Apis::CivicinfoV2::VoterInfoRequest, decorator: Google::Apis::CivicinfoV2::VoterInfoRequest::Representation property :request, as: 'request', class: Google::Apis::CivicinfoV2::VoterInfoRequest, decorator: Google::Apis::CivicinfoV2::VoterInfoRequest::Representation

View File

@ -51,6 +51,7 @@ module Google
def initialize def initialize
super('https://www.googleapis.com/', 'civicinfo/v2/') super('https://www.googleapis.com/', 'civicinfo/v2/')
@batch_path = 'batch'
end end
# Searches for political divisions by their natural name or OCD ID. # Searches for political divisions by their natural name or OCD ID.
@ -134,7 +135,7 @@ module Google
# @param [String] address # @param [String] address
# The registered address of the voter to look up. # The registered address of the voter to look up.
# @param [Google::Apis::CivicinfoV2::VoterInfoRequest] voter_info_request_object # @param [Google::Apis::CivicinfoV2::VoterInfoRequest] voter_info_request_object
# @param [String] election_id # @param [Fixnum] election_id
# The unique ID of the election to look up. A list of election IDs can be # The unique ID of the election to look up. A list of election IDs can be
# obtained at https://www.googleapis.com/civicinfo/`version`/elections # obtained at https://www.googleapis.com/civicinfo/`version`/elections
# @param [Boolean] official_only # @param [Boolean] official_only

View File

@ -44,6 +44,7 @@ module Google
def initialize def initialize
super('https://classroom.googleapis.com/', '') super('https://classroom.googleapis.com/', '')
@batch_path = 'batch'
end end
# Creates an invitation. Only one invitation for a user and course may exist # Creates an invitation. Only one invitation for a user and course may exist

View File

@ -45,6 +45,7 @@ module Google
def initialize def initialize
super('https://cloudbilling.googleapis.com/', '') super('https://cloudbilling.googleapis.com/', '')
@batch_path = 'batch'
end end
# Sets or updates the billing account associated with a project. You specify # Sets or updates the billing account associated with a project. You specify

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 = '20170330' REVISION = '20170403'
# 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,326 +22,6 @@ module Google
module Apis module Apis
module CloudbuildV1 module CloudbuildV1
# A generic empty message that you can re-use to avoid defining duplicated
# empty messages in your APIs. A typical example is to use it as the request
# or the response type of an API method. For instance:
# service Foo `
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
# `
# The JSON representation for `Empty` is empty JSON object ````.
class Empty
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Configuration for an automated build in response to source repository
# changes.
class BuildTrigger
include Google::Apis::Core::Hashable
# If true, the trigger will never result in a build.
# Corresponds to the JSON property `disabled`
# @return [Boolean]
attr_accessor :disabled
alias_method :disabled?, :disabled
# Time when the trigger was created.
# @OutputOnly
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# RepoSource describes the location of the source in a Google Cloud Source
# Repository.
# Corresponds to the JSON property `triggerTemplate`
# @return [Google::Apis::CloudbuildV1::RepoSource]
attr_accessor :trigger_template
# Path, from the source root, to a file whose contents is used for the
# template.
# Corresponds to the JSON property `filename`
# @return [String]
attr_accessor :filename
# Unique identifier of the trigger.
# @OutputOnly
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# A build resource in the Container Builder API.
# At a high level, a Build describes where to find source code, how to build
# it (for example, the builder image to run on the source), and what tag to
# apply to the built image when it is pushed to Google Container Registry.
# Fields can include the following variables which will be expanded when the
# build is created:
# - $PROJECT_ID: the project ID of the build.
# - $BUILD_ID: the autogenerated ID of the build.
# - $REPO_NAME: the source repository name specified by RepoSource.
# - $BRANCH_NAME: the branch name specified by RepoSource.
# - $TAG_NAME: the tag name specified by RepoSource.
# - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or
# resolved from the specified branch or tag.
# Corresponds to the JSON property `build`
# @return [Google::Apis::CloudbuildV1::Build]
attr_accessor :build
# Substitutions data for Build resource.
# Corresponds to the JSON property `substitutions`
# @return [Hash<String,String>]
attr_accessor :substitutions
# Human-readable description of this trigger.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@disabled = args[:disabled] if args.key?(:disabled)
@create_time = args[:create_time] if args.key?(:create_time)
@trigger_template = args[:trigger_template] if args.key?(:trigger_template)
@filename = args[:filename] if args.key?(:filename)
@id = args[:id] if args.key?(:id)
@build = args[:build] if args.key?(:build)
@substitutions = args[:substitutions] if args.key?(:substitutions)
@description = args[:description] if args.key?(:description)
end
end
# A build resource in the Container Builder API.
# At a high level, a Build describes where to find source code, how to build
# it (for example, the builder image to run on the source), and what tag to
# apply to the built image when it is pushed to Google Container Registry.
# Fields can include the following variables which will be expanded when the
# build is created:
# - $PROJECT_ID: the project ID of the build.
# - $BUILD_ID: the autogenerated ID of the build.
# - $REPO_NAME: the source repository name specified by RepoSource.
# - $BRANCH_NAME: the branch name specified by RepoSource.
# - $TAG_NAME: the tag name specified by RepoSource.
# - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or
# resolved from the specified branch or tag.
class Build
include Google::Apis::Core::Hashable
# Optional arguments to enable specific features of builds.
# Corresponds to the JSON property `options`
# @return [Google::Apis::CloudbuildV1::BuildOptions]
attr_accessor :options
# Source describes the location of the source in a supported storage
# service.
# Corresponds to the JSON property `source`
# @return [Google::Apis::CloudbuildV1::Source]
attr_accessor :source
# Customer-readable message about the current status.
# @OutputOnly
# Corresponds to the JSON property `statusDetail`
# @return [String]
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
# 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.
# @OutputOnly
# Corresponds to the JSON property `startTime`
# @return [String]
attr_accessor :start_time
# Substitutions data for Build resource.
# Corresponds to the JSON property `substitutions`
# @return [Hash<String,String>]
attr_accessor :substitutions
# Time at which the request to create the build was received.
# @OutputOnly
# Corresponds to the JSON property `createTime`
# @return [String]
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
# steps.
# The images will be pushed using the builder service account's credentials.
# The digests of the pushed images will be stored in the Build resource's
# results field.
# If any of the images fail to be pushed, the build is marked FAILURE.
# Corresponds to the JSON property `images`
# @return [Array<String>]
attr_accessor :images
# ID of the project.
# @OutputOnly.
# Corresponds to the JSON property `projectId`
# @return [String]
attr_accessor :project_id
# Time at which execution of the build was finished.
# The difference between finish_time and start_time is the duration of the
# build's execution.
# @OutputOnly
# Corresponds to the JSON property `finishTime`
# @return [String]
attr_accessor :finish_time
# URL to logs for this build in Google Cloud Logging.
# @OutputOnly
# Corresponds to the JSON property `logUrl`
# @return [String]
attr_accessor :log_url
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@options = args[:options] if args.key?(:options)
@source = args[:source] if args.key?(:source)
@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)
@id = args[:id] if args.key?(:id)
@start_time = args[:start_time] if args.key?(:start_time)
@substitutions = args[:substitutions] if args.key?(:substitutions)
@create_time = args[:create_time] if args.key?(:create_time)
@source_provenance = args[:source_provenance] if args.key?(:source_provenance)
@images = args[:images] if args.key?(:images)
@project_id = args[:project_id] if args.key?(:project_id)
@finish_time = args[:finish_time] if args.key?(:finish_time)
@log_url = args[:log_url] if args.key?(:log_url)
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 # Source describes the location of the source in a supported storage
# service. # service.
class Source class Source
@ -400,6 +80,12 @@ module Google
class StorageSource class StorageSource
include Google::Apis::Core::Hashable 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 # Google Cloud Storage bucket containing source (see
# [Bucket Name # [Bucket Name
# Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements) # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)
@ -415,21 +101,15 @@ module Google
# @return [String] # @return [String]
attr_accessor :object attr_accessor :object
# 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 [String]
attr_accessor :generation
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)
@generation = args[:generation] if args.key?(:generation)
@bucket = args[:bucket] if args.key?(:bucket) @bucket = args[:bucket] if args.key?(:bucket)
@object = args[:object] if args.key?(:object) @object = args[:object] if args.key?(:object)
@generation = args[:generation] if args.key?(:generation)
end end
end end
@ -437,24 +117,24 @@ module Google
class Results class Results
include Google::Apis::Core::Hashable 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. # Images that were built as a part of the build.
# Corresponds to the JSON property `images` # Corresponds to the JSON property `images`
# @return [Array<Google::Apis::CloudbuildV1::BuiltImage>] # @return [Array<Google::Apis::CloudbuildV1::BuiltImage>]
attr_accessor :images 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) 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)
@build_step_images = args[:build_step_images] if args.key?(:build_step_images)
@images = args[:images] if args.key?(:images) @images = args[:images] if args.key?(:images)
@build_step_images = args[:build_step_images] if args.key?(:build_step_images)
end end
end end
@ -494,6 +174,12 @@ module Google
class SourceProvenance class SourceProvenance
include Google::Apis::Core::Hashable 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 `resolvedStorageSource`
# @return [Google::Apis::CloudbuildV1::StorageSource]
attr_accessor :resolved_storage_source
# Hash(es) of the build source, which can be used to verify that the original # Hash(es) of the build source, which can be used to verify that the original
# source integrity was maintained in the build. Note that FileHashes will # source integrity was maintained in the build. Note that FileHashes will
# only be populated if BuildOptions has requested a SourceProvenanceHash. # only be populated if BuildOptions has requested a SourceProvenanceHash.
@ -512,21 +198,15 @@ module Google
# @return [Google::Apis::CloudbuildV1::RepoSource] # @return [Google::Apis::CloudbuildV1::RepoSource]
attr_accessor :resolved_repo_source attr_accessor :resolved_repo_source
# StorageSource describes the location of the source in an archive file in
# Google Cloud Storage.
# Corresponds to the JSON property `resolvedStorageSource`
# @return [Google::Apis::CloudbuildV1::StorageSource]
attr_accessor :resolved_storage_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_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) @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)
end end
end end
@ -685,55 +365,22 @@ module Google
end end
end end
# RepoSource describes the location of the source in a Google Cloud Source
# Repository.
class RepoSource
include Google::Apis::Core::Hashable
# 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
# 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
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@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)
@tag_name = args[:tag_name] if args.key?(:tag_name)
@commit_sha = args[:commit_sha] if args.key?(:commit_sha)
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 entrypoint to be used instead of the build step image's default
# If unset, the image's default will be used.
# Corresponds to the JSON property `entrypoint`
# @return [String]
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
# 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`
@ -783,17 +430,52 @@ module Google
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# Optional entrypoint to be used instead of the build step image's default def initialize(**args)
# If unset, the image's default will be used. update!(**args)
# Corresponds to the JSON property `entrypoint` end
# @return [String]
attr_accessor :entrypoint
# Optional unique identifier for this build step, used in wait_for to # Update properties of this object
# reference this build step as a dependency. def update!(**args)
# Corresponds to the JSON property `id` @entrypoint = args[:entrypoint] if args.key?(:entrypoint)
@id = args[:id] if args.key?(:id)
@dir = args[:dir] if args.key?(:dir)
@env = args[:env] if args.key?(:env)
@wait_for = args[:wait_for] if args.key?(:wait_for)
@args = args[:args] if args.key?(:args)
@name = args[:name] if args.key?(:name)
end
end
# 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] # @return [String]
attr_accessor :id 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) def initialize(**args)
update!(**args) update!(**args)
@ -801,13 +483,11 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@dir = args[:dir] if args.key?(:dir) @tag_name = args[:tag_name] if args.key?(:tag_name)
@env = args[:env] if args.key?(:env) @commit_sha = args[:commit_sha] if args.key?(:commit_sha)
@wait_for = args[:wait_for] if args.key?(:wait_for) @project_id = args[:project_id] if args.key?(:project_id)
@args = args[:args] if args.key?(:args) @repo_name = args[:repo_name] if args.key?(:repo_name)
@name = args[:name] if args.key?(:name) @branch_name = args[:branch_name] if args.key?(:branch_name)
@entrypoint = args[:entrypoint] if args.key?(:entrypoint)
@id = args[:id] if args.key?(:id)
end end
end end
@ -899,11 +579,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.
@ -917,15 +592,340 @@ module Google
# @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
# A generic empty message that you can re-use to avoid defining duplicated
# empty messages in your APIs. A typical example is to use it as the request
# or the response type of an API method. For instance:
# service Foo `
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
# `
# The JSON representation for `Empty` is empty JSON object ````.
class Empty
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Configuration for an automated build in response to source repository
# changes.
class BuildTrigger
include Google::Apis::Core::Hashable
# Unique identifier of the trigger.
# @OutputOnly
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# A build resource in the Container Builder API.
# At a high level, a Build describes where to find source code, how to build
# it (for example, the builder image to run on the source), and what tag to
# apply to the built image when it is pushed to Google Container Registry.
# Fields can include the following variables which will be expanded when the
# build is created:
# - $PROJECT_ID: the project ID of the build.
# - $BUILD_ID: the autogenerated ID of the build.
# - $REPO_NAME: the source repository name specified by RepoSource.
# - $BRANCH_NAME: the branch name specified by RepoSource.
# - $TAG_NAME: the tag name specified by RepoSource.
# - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or
# resolved from the specified branch or tag.
# Corresponds to the JSON property `build`
# @return [Google::Apis::CloudbuildV1::Build]
attr_accessor :build
# Substitutions data for Build resource.
# Corresponds to the JSON property `substitutions`
# @return [Hash<String,String>]
attr_accessor :substitutions
# Human-readable description of this trigger.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# If true, the trigger will never result in a build.
# Corresponds to the JSON property `disabled`
# @return [Boolean]
attr_accessor :disabled
alias_method :disabled?, :disabled
# Time when the trigger was created.
# @OutputOnly
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# RepoSource describes the location of the source in a Google Cloud Source
# Repository.
# Corresponds to the JSON property `triggerTemplate`
# @return [Google::Apis::CloudbuildV1::RepoSource]
attr_accessor :trigger_template
# Path, from the source root, to a file whose contents is used for the
# template.
# Corresponds to the JSON property `filename`
# @return [String]
attr_accessor :filename
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@id = args[:id] if args.key?(:id)
@build = args[:build] if args.key?(:build)
@substitutions = args[:substitutions] if args.key?(:substitutions)
@description = args[:description] if args.key?(:description)
@disabled = args[:disabled] if args.key?(:disabled)
@create_time = args[:create_time] if args.key?(:create_time)
@trigger_template = args[:trigger_template] if args.key?(:trigger_template)
@filename = args[:filename] if args.key?(:filename)
end
end
# A build resource in the Container Builder API.
# At a high level, a Build describes where to find source code, how to build
# it (for example, the builder image to run on the source), and what tag to
# apply to the built image when it is pushed to Google Container Registry.
# Fields can include the following variables which will be expanded when the
# build is created:
# - $PROJECT_ID: the project ID of the build.
# - $BUILD_ID: the autogenerated ID of the build.
# - $REPO_NAME: the source repository name specified by RepoSource.
# - $BRANCH_NAME: the branch name specified by RepoSource.
# - $TAG_NAME: the tag name specified by RepoSource.
# - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or
# resolved from the specified branch or tag.
class Build
include Google::Apis::Core::Hashable
# 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
# 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.
# @OutputOnly
# Corresponds to the JSON property `startTime`
# @return [String]
attr_accessor :start_time
# Substitutions data for Build resource.
# Corresponds to the JSON property `substitutions`
# @return [Hash<String,String>]
attr_accessor :substitutions
# Time at which the request to create the build was received.
# @OutputOnly
# Corresponds to the JSON property `createTime`
# @return [String]
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
# steps.
# The images will be pushed using the builder service account's credentials.
# The digests of the pushed images will be stored in the Build resource's
# results field.
# If any of the images fail to be pushed, the build is marked FAILURE.
# Corresponds to the JSON property `images`
# @return [Array<String>]
attr_accessor :images
# ID of the project.
# @OutputOnly.
# Corresponds to the JSON property `projectId`
# @return [String]
attr_accessor :project_id
# Time at which execution of the build was finished.
# The difference between finish_time and start_time is the duration of the
# build's execution.
# @OutputOnly
# Corresponds to the JSON property `finishTime`
# @return [String]
attr_accessor :finish_time
# URL to logs for this build in Google Cloud Logging.
# @OutputOnly
# Corresponds to the JSON property `logUrl`
# @return [String]
attr_accessor :log_url
# Optional arguments to enable specific features of builds.
# Corresponds to the JSON property `options`
# @return [Google::Apis::CloudbuildV1::BuildOptions]
attr_accessor :options
# Source describes the location of the source in a supported storage
# service.
# Corresponds to the JSON property `source`
# @return [Google::Apis::CloudbuildV1::Source]
attr_accessor :source
# Customer-readable message about the current status.
# @OutputOnly
# Corresponds to the JSON property `statusDetail`
# @return [String]
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
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@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)
@id = args[:id] if args.key?(:id)
@start_time = args[:start_time] if args.key?(:start_time)
@substitutions = args[:substitutions] if args.key?(:substitutions)
@create_time = args[:create_time] if args.key?(:create_time)
@source_provenance = args[:source_provenance] if args.key?(:source_provenance)
@images = args[:images] if args.key?(:images)
@project_id = args[:project_id] if args.key?(:project_id)
@finish_time = args[:finish_time] if args.key?(:finish_time)
@log_url = args[:log_url] if args.key?(:log_url)
@options = args[:options] if args.key?(:options)
@source = args[:source] if args.key?(:source)
@status_detail = args[:status_detail] if args.key?(:status_detail)
@status = args[:status] if args.key?(:status)
@timeout = args[:timeout] if args.key?(:timeout)
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
end end
end end

View File

@ -22,42 +22,6 @@ module Google
module Apis module Apis
module CloudbuildV1 module CloudbuildV1
class Empty
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BuildTrigger
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Build
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
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 Source
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -118,13 +82,13 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class RepoSource 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
end end
class BuildStep class RepoSource
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
@ -149,78 +113,39 @@ module Google
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 end
class BuildTrigger class BuildTrigger
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
property :disabled, as: 'disabled'
property :create_time, as: 'createTime'
property :trigger_template, as: 'triggerTemplate', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
property :filename, as: 'filename' include Google::Apis::Core::JsonObjectSupport
property :id, as: 'id'
property :build, as: 'build', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
hash :substitutions, as: 'substitutions'
property :description, as: 'description'
end
end end
class Build class Build
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
property :options, as: 'options', class: Google::Apis::CloudbuildV1::BuildOptions, decorator: Google::Apis::CloudbuildV1::BuildOptions::Representation
property :source, as: 'source', class: Google::Apis::CloudbuildV1::Source, decorator: Google::Apis::CloudbuildV1::Source::Representation include Google::Apis::Core::JsonObjectSupport
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'
property :id, as: 'id'
property :start_time, as: 'startTime'
hash :substitutions, as: 'substitutions'
property :create_time, as: 'createTime'
property :source_provenance, as: 'sourceProvenance', class: Google::Apis::CloudbuildV1::SourceProvenance, decorator: Google::Apis::CloudbuildV1::SourceProvenance::Representation
collection :images, as: 'images'
property :project_id, as: 'projectId'
property :finish_time, as: 'finishTime'
property :log_url, as: 'logUrl'
end
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
property :next_page_token, as: 'nextPageToken'
collection :operations, as: 'operations', class: Google::Apis::CloudbuildV1::Operation, decorator: Google::Apis::CloudbuildV1::Operation::Representation
end include Google::Apis::Core::JsonObjectSupport
end end
class Source class Source
@ -244,18 +169,18 @@ module Google
class StorageSource class StorageSource
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :generation, :numeric_string => true, as: 'generation'
property :bucket, as: 'bucket' property :bucket, as: 'bucket'
property :object, as: 'object' property :object, as: 'object'
property :generation, as: 'generation'
end end
end end
class Results class Results
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation 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 collection :images, as: 'images', class: Google::Apis::CloudbuildV1::BuiltImage, decorator: Google::Apis::CloudbuildV1::BuiltImage::Representation
collection :build_step_images, as: 'buildStepImages'
end end
end end
@ -270,12 +195,12 @@ module Google
class SourceProvenance class SourceProvenance
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
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 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
end end
end end
@ -313,27 +238,27 @@ module Google
end end
end end
class RepoSource
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :project_id, as: 'projectId'
property :repo_name, as: 'repoName'
property :branch_name, as: 'branchName'
property :tag_name, as: 'tagName'
property :commit_sha, as: 'commitSha'
end
end
class BuildStep class BuildStep
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :entrypoint, as: 'entrypoint'
property :id, as: 'id'
property :dir, as: 'dir' property :dir, as: 'dir'
collection :env, as: 'env' collection :env, as: 'env'
collection :wait_for, as: 'waitFor' collection :wait_for, as: 'waitFor'
collection :args, as: 'args' collection :args, as: 'args'
property :name, as: 'name' property :name, as: 'name'
property :entrypoint, as: 'entrypoint' end
property :id, as: 'id' 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
end end
@ -356,9 +281,84 @@ module Google
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
class Empty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class BuildTrigger
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
property :build, as: 'build', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
hash :substitutions, as: 'substitutions'
property :description, as: 'description'
property :disabled, as: 'disabled'
property :create_time, as: 'createTime'
property :trigger_template, as: 'triggerTemplate', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
property :filename, as: 'filename'
end
end
class Build
# @private
class Representation < Google::Apis::Core::JsonRepresentation
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'
property :id, as: 'id'
property :start_time, as: 'startTime'
hash :substitutions, as: 'substitutions'
property :create_time, as: 'createTime'
property :source_provenance, as: 'sourceProvenance', class: Google::Apis::CloudbuildV1::SourceProvenance, decorator: Google::Apis::CloudbuildV1::SourceProvenance::Representation
collection :images, as: 'images'
property :project_id, as: 'projectId'
property :finish_time, as: 'finishTime'
property :log_url, as: 'logUrl'
property :options, as: 'options', class: Google::Apis::CloudbuildV1::BuildOptions, decorator: Google::Apis::CloudbuildV1::BuildOptions::Representation
property :source, as: 'source', class: Google::Apis::CloudbuildV1::Source, decorator: Google::Apis::CloudbuildV1::Source::Representation
property :status_detail, as: 'statusDetail'
property :status, as: 'status'
property :timeout, as: 'timeout'
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
end end
end end

View File

@ -44,15 +44,15 @@ module Google
def initialize def initialize
super('https://cloudbuild.googleapis.com/', '') super('https://cloudbuild.googleapis.com/', '')
@batch_path = 'batch'
end end
# Returns information about a previously requested build. # Deletes an BuildTrigger by its project ID and trigger ID.
# The Build that is returned includes its status (e.g., success or failure, # This API is experimental.
# or in-progress), and timing information.
# @param [String] project_id # @param [String] project_id
# ID of the project. # ID of the project that owns the trigger.
# @param [String] id # @param [String] trigger_id
# ID of the build. # ID of the BuildTrigger to delete.
# @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
@ -62,133 +62,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::CloudbuildV1::Build] parsed result object # @yieldparam result [Google::Apis::CloudbuildV1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed # @yieldparam err [StandardError] error object if request failed
# #
# @return [Google::Apis::CloudbuildV1::Build] # @return [Google::Apis::CloudbuildV1::Empty]
# #
# @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, fields: nil, quota_user: nil, options: nil, &block) def delete_project_trigger(project_id, trigger_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/projects/{projectId}/builds/{id}', options) command = make_simple_command(:delete, 'v1/projects/{projectId}/triggers/{triggerId}', options)
command.response_representation = Google::Apis::CloudbuildV1::Build::Representation command.response_representation = Google::Apis::CloudbuildV1::Empty::Representation
command.response_class = Google::Apis::CloudbuildV1::Build command.response_class = Google::Apis::CloudbuildV1::Empty
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['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 previously requested builds.
# Previously requested builds may still be in-progress, or may have finished
# successfully or unsuccessfully.
# @param [String] project_id
# ID of the project.
# @param [Fixnum] page_size
# Number of results to return in the list.
# @param [String] filter
# The raw filter text to constrain the results.
# @param [String] page_token
# Token to provide to skip to a particular spot in the list.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudbuildV1::ListBuildsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudbuildV1::ListBuildsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server 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_builds(project_id, page_size: nil, filter: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/projects/{projectId}/builds', options)
command.response_representation = Google::Apis::CloudbuildV1::ListBuildsResponse::Representation
command.response_class = Google::Apis::CloudbuildV1::ListBuildsResponse
command.params['projectId'] = project_id unless project_id.nil?
command.query['pageSize'] = page_size unless page_size.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['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Starts a build with the specified configuration.
# 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
# ID of the project.
# @param [Google::Apis::CloudbuildV1::Build] build_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::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, fields: nil, quota_user: 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['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Cancels a requested build in progress.
# @param [String] project_id
# ID of the project.
# @param [String] id
# 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
# 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::Build] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudbuildV1::Build]
#
# @raise [Google::Apis::ServerError] An error occurred on the server 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_build(project_id, id, cancel_build_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
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_class = Google::Apis::CloudbuildV1::Build
command.params['projectId'] = project_id unless project_id.nil?
command.params['id'] = id unless 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)
@ -330,12 +217,12 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Deletes an BuildTrigger by its project ID and trigger ID. # Cancels a requested build in progress.
# This API is experimental.
# @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 [String] id
# ID of the BuildTrigger to delete. # ID of the build.
# @param [Google::Apis::CloudbuildV1::CancelBuildRequest] cancel_build_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
@ -345,37 +232,34 @@ 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::CloudbuildV1::Empty] parsed result object # @yieldparam result [Google::Apis::CloudbuildV1::Build] parsed result object
# @yieldparam err [StandardError] error object if request failed # @yieldparam err [StandardError] error object if request failed
# #
# @return [Google::Apis::CloudbuildV1::Empty] # @return [Google::Apis::CloudbuildV1::Build]
# #
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_project_trigger(project_id, trigger_id, fields: nil, quota_user: 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(:delete, 'v1/projects/{projectId}/triggers/{triggerId}', options) command = make_simple_command(:post, 'v1/projects/{projectId}/builds/{id}:cancel', options)
command.response_representation = Google::Apis::CloudbuildV1::Empty::Representation command.request_representation = Google::Apis::CloudbuildV1::CancelBuildRequest::Representation
command.response_class = Google::Apis::CloudbuildV1::Empty command.request_object = cancel_build_request_object
command.response_representation = Google::Apis::CloudbuildV1::Build::Representation
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['triggerId'] = trigger_id unless trigger_id.nil? command.params['id'] = id unless 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
# Lists operations that match the specified filter in the request. If the # Returns information about a previously requested build.
# server doesn't support this method, it returns `UNIMPLEMENTED`. # The Build that is returned includes its status (e.g., success or failure,
# NOTE: the `name` binding below allows API services to override the binding # or in-progress), and timing information.
# to use different resource name schemes, such as `users/*/operations`. # @param [String] project_id
# @param [String] name # ID of the project.
# The name of the operation collection. # @param [String] id
# @param [Fixnum] page_size # ID of the build.
# The standard list page size.
# @param [String] 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
@ -385,32 +269,73 @@ 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::CloudbuildV1::ListOperationsResponse] parsed result object # @yieldparam result [Google::Apis::CloudbuildV1::Build] parsed result object
# @yieldparam err [StandardError] error object if request failed # @yieldparam err [StandardError] error object if request failed
# #
# @return [Google::Apis::CloudbuildV1::ListOperationsResponse] # @return [Google::Apis::CloudbuildV1::Build]
# #
# @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, page_size: nil, filter: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) def get_project_build(project_id, id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options) command = make_simple_command(:get, 'v1/projects/{projectId}/builds/{id}', options)
command.response_representation = Google::Apis::CloudbuildV1::ListOperationsResponse::Representation command.response_representation = Google::Apis::CloudbuildV1::Build::Representation
command.response_class = Google::Apis::CloudbuildV1::ListOperationsResponse command.response_class = Google::Apis::CloudbuildV1::Build
command.params['name'] = name unless name.nil? command.params['projectId'] = project_id unless project_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)
end
# Lists previously requested builds.
# Previously requested builds may still be in-progress, or may have finished
# successfully or unsuccessfully.
# @param [String] project_id
# ID of the project.
# @param [String] page_token
# Token to provide to skip to a particular spot in the list.
# @param [Fixnum] page_size
# Number of results to return in the list.
# @param [String] filter
# The raw filter text to constrain the 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.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudbuildV1::ListBuildsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudbuildV1::ListBuildsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server 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_builds(project_id, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/projects/{projectId}/builds', options)
command.response_representation = Google::Apis::CloudbuildV1::ListBuildsResponse::Representation
command.response_class = Google::Apis::CloudbuildV1::ListBuildsResponse
command.params['projectId'] = project_id unless project_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)
end end
# Gets the latest state of a long-running operation. Clients can use this # Starts a build with the specified configuration.
# method to poll the operation result at intervals as recommended by the API # The long-running Operation returned by this method will include the ID of
# service. # the build, which can be passed to GetBuild to determine its status (e.g.,
# @param [String] name # success or failure).
# The name of the operation resource. # @param [String] project_id
# ID of the project.
# @param [Google::Apis::CloudbuildV1::Build] build_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
@ -428,11 +353,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, fields: nil, quota_user: 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['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)
@ -479,6 +406,80 @@ 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 operations that match the specified filter in the request. If the
# server doesn't support this method, it returns `UNIMPLEMENTED`.
# NOTE: the `name` binding below allows API services to override the binding
# to use different resource name schemes, such as `users/*/operations`.
# @param [String] name
# The name of the operation collection.
# @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)
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
protected protected

View File

@ -22,6 +22,266 @@ module Google
module Apis module Apis
module ClouddebuggerV2 module ClouddebuggerV2
# Response for listing debuggees.
class ListDebuggeesResponse
include Google::Apis::Core::Hashable
# List of debuggees accessible to the calling user.
# Note that the `description` field is the only human readable field
# that should be displayed to the user.
# The fields `debuggee.id` and `description` fields are guaranteed to be
# set on each debuggee.
# Corresponds to the JSON property `debuggees`
# @return [Array<Google::Apis::ClouddebuggerV2::Debuggee>]
attr_accessor :debuggees
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@debuggees = args[:debuggees] if args.key?(:debuggees)
end
end
# An alias to a repo revision.
class AliasContext
include Google::Apis::Core::Hashable
# The alias name.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The alias kind.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@name = args[:name] if args.key?(:name)
@kind = args[:kind] if args.key?(:kind)
end
end
# A generic empty message that you can re-use to avoid defining duplicated
# empty messages in your APIs. A typical example is to use it as the request
# or the response type of an API method. For instance:
# service Foo `
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
# `
# The JSON representation for `Empty` is empty JSON object ````.
class Empty
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Represents a location in the source code.
class SourceLocation
include Google::Apis::Core::Hashable
# Line inside the file. The first line in the file has the value `1`.
# Corresponds to the JSON property `line`
# @return [Fixnum]
attr_accessor :line
# Path to the source file within the source context of the target binary.
# Corresponds to the JSON property `path`
# @return [String]
attr_accessor :path
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@line = args[:line] if args.key?(:line)
@path = args[:path] if args.key?(:path)
end
end
# Represents the application to debug. The application may include one or more
# replicated processes executing the same code. Each of these processes is
# attached with a debugger agent, carrying out the debugging commands.
# The agents attached to the same debuggee are identified by using exactly the
# same field values when registering.
class Debuggee
include Google::Apis::Core::Hashable
# References to the locations and revisions of the source code used in the
# deployed application.
# Contexts describing a remote repo related to the source code
# have a `category` label of `remote_repo`. Source snapshot source
# contexts have a `category` of `snapshot`.
# Corresponds to the JSON property `extSourceContexts`
# @return [Array<Google::Apis::ClouddebuggerV2::ExtendedSourceContext>]
attr_accessor :ext_source_contexts
# A set of custom debuggee properties, populated by the agent, to be
# displayed to the user.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
# Represents a contextual status message.
# The message can indicate an error or informational status, and refer to
# specific parts of the containing object.
# For example, the `Breakpoint.status` field can indicate an error referring
# to the `BREAKPOINT_SOURCE_LOCATION` with the message `Location not found`.
# Corresponds to the JSON property `status`
# @return [Google::Apis::ClouddebuggerV2::StatusMessage]
attr_accessor :status
# If set to `true`, indicates that the debuggee is considered as inactive by
# the Controller service.
# Corresponds to the JSON property `isInactive`
# @return [Boolean]
attr_accessor :is_inactive
alias_method :is_inactive?, :is_inactive
# Project the debuggee is associated with.
# Use the project number when registering a Google Cloud Platform project.
# Corresponds to the JSON property `project`
# @return [String]
attr_accessor :project
# Unique identifier for the debuggee generated by the controller service.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# Version ID of the agent release. The version ID is structured as
# following: `domain/type/vmajor.minor` (for example
# `google.com/gcp-java/v1.1`).
# Corresponds to the JSON property `agentVersion`
# @return [String]
attr_accessor :agent_version
# If set to `true`, indicates that the agent should disable itself and
# detach from the debuggee.
# Corresponds to the JSON property `isDisabled`
# @return [Boolean]
attr_accessor :is_disabled
alias_method :is_disabled?, :is_disabled
# Human readable description of the debuggee.
# Including a human-readable project name, environment name and version
# information is recommended.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Debuggee uniquifier within the project.
# Any string that identifies the application within the project can be used.
# Including environment and version or build IDs is recommended.
# Corresponds to the JSON property `uniquifier`
# @return [String]
attr_accessor :uniquifier
# References to the locations and revisions of the source code used in the
# deployed application.
# NOTE: This field is deprecated. Consumers should use
# `ext_source_contexts` if it is not empty. Debug agents should populate
# both this field and `ext_source_contexts`.
# Corresponds to the JSON property `sourceContexts`
# @return [Array<Google::Apis::ClouddebuggerV2::SourceContext>]
attr_accessor :source_contexts
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@ext_source_contexts = args[:ext_source_contexts] if args.key?(:ext_source_contexts)
@labels = args[:labels] if args.key?(:labels)
@status = args[:status] if args.key?(:status)
@is_inactive = args[:is_inactive] if args.key?(:is_inactive)
@project = args[:project] if args.key?(:project)
@id = args[:id] if args.key?(:id)
@agent_version = args[:agent_version] if args.key?(:agent_version)
@is_disabled = args[:is_disabled] if args.key?(:is_disabled)
@description = args[:description] if args.key?(:description)
@uniquifier = args[:uniquifier] if args.key?(:uniquifier)
@source_contexts = args[:source_contexts] if args.key?(:source_contexts)
end
end
# Selects a repo using a Google Cloud Platform project ID
# (e.g. winged-cargo-31) and a repo name within that project.
class ProjectRepoId
include Google::Apis::Core::Hashable
# The ID of the project.
# Corresponds to the JSON property `projectId`
# @return [String]
attr_accessor :project_id
# The name of the repo. Leave empty for the default repo.
# Corresponds to the JSON property `repoName`
# @return [String]
attr_accessor :repo_name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@project_id = args[:project_id] if args.key?(:project_id)
@repo_name = args[:repo_name] if args.key?(:repo_name)
end
end
# Response for listing active breakpoints.
class ListActiveBreakpointsResponse
include Google::Apis::Core::Hashable
# List of all active breakpoints.
# The fields `id` and `location` are guaranteed to be set on each breakpoint.
# Corresponds to the JSON property `breakpoints`
# @return [Array<Google::Apis::ClouddebuggerV2::Breakpoint>]
attr_accessor :breakpoints
# The `wait_expired` field is set to true by the server when the
# request times out and the field `success_on_timeout` is set to true.
# Corresponds to the JSON property `waitExpired`
# @return [Boolean]
attr_accessor :wait_expired
alias_method :wait_expired?, :wait_expired
# A wait token that can be used in the next method call to block until
# the list of breakpoints changes.
# Corresponds to the JSON property `nextWaitToken`
# @return [String]
attr_accessor :next_wait_token
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@breakpoints = args[:breakpoints] if args.key?(:breakpoints)
@wait_expired = args[:wait_expired] if args.key?(:wait_expired)
@next_wait_token = args[:next_wait_token] if args.key?(:next_wait_token)
end
end
# A CloudWorkspaceSourceContext denotes a workspace at a particular snapshot. # A CloudWorkspaceSourceContext denotes a workspace at a particular snapshot.
class CloudWorkspaceSourceContext class CloudWorkspaceSourceContext
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -68,18 +328,6 @@ module Google
class GerritSourceContext class GerritSourceContext
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The full project name within the host. Projects may be nested, so
# "project/subproject" is a valid project name.
# The "repo name" is hostURI/project.
# Corresponds to the JSON property `gerritProject`
# @return [String]
attr_accessor :gerrit_project
# An alias to a repo revision.
# Corresponds to the JSON property `aliasContext`
# @return [Google::Apis::ClouddebuggerV2::AliasContext]
attr_accessor :alias_context
# The URI of a running Gerrit instance. # The URI of a running Gerrit instance.
# Corresponds to the JSON property `hostUri` # Corresponds to the JSON property `hostUri`
# @return [String] # @return [String]
@ -95,17 +343,29 @@ module Google
# @return [String] # @return [String]
attr_accessor :alias_name attr_accessor :alias_name
# The full project name within the host. Projects may be nested, so
# "project/subproject" is a valid project name.
# The "repo name" is hostURI/project.
# Corresponds to the JSON property `gerritProject`
# @return [String]
attr_accessor :gerrit_project
# An alias to a repo revision.
# Corresponds to the JSON property `aliasContext`
# @return [Google::Apis::ClouddebuggerV2::AliasContext]
attr_accessor :alias_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)
@gerrit_project = args[:gerrit_project] if args.key?(:gerrit_project)
@alias_context = args[:alias_context] if args.key?(:alias_context)
@host_uri = args[:host_uri] if args.key?(:host_uri) @host_uri = args[:host_uri] if args.key?(:host_uri)
@revision_id = args[:revision_id] if args.key?(:revision_id) @revision_id = args[:revision_id] if args.key?(:revision_id)
@alias_name = args[:alias_name] if args.key?(:alias_name) @alias_name = args[:alias_name] if args.key?(:alias_name)
@gerrit_project = args[:gerrit_project] if args.key?(:gerrit_project)
@alias_context = args[:alias_context] if args.key?(:alias_context)
end end
end end
@ -115,25 +375,25 @@ module Google
class CloudWorkspaceId class CloudWorkspaceId
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# A unique identifier for a cloud repo.
# Corresponds to the JSON property `repoId`
# @return [Google::Apis::ClouddebuggerV2::RepoId]
attr_accessor :repo_id
# The unique name of the workspace within the repo. This is the name # The unique name of the workspace within the repo. This is the name
# chosen by the client in the Source API's CreateWorkspace method. # chosen by the client in the Source API's CreateWorkspace method.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# A unique identifier for a cloud repo.
# Corresponds to the JSON property `repoId`
# @return [Google::Apis::ClouddebuggerV2::RepoId]
attr_accessor :repo_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)
@name = args[:name] if args.key?(:name)
@repo_id = args[:repo_id] if args.key?(:repo_id) @repo_id = args[:repo_id] if args.key?(:repo_id)
@name = args[:name] if args.key?(:name)
end end
end end
@ -170,22 +430,6 @@ module Google
class Breakpoint class Breakpoint
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Breakpoint identifier, unique in the scope of the debuggee.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# Represents a location in the source code.
# Corresponds to the JSON property `location`
# @return [Google::Apis::ClouddebuggerV2::SourceLocation]
attr_accessor :location
# Time this breakpoint was finalized as seen by the server in seconds
# resolution.
# Corresponds to the JSON property `finalTime`
# @return [String]
attr_accessor :final_time
# The `variable_table` exists to aid with computation, memory and network # The `variable_table` exists to aid with computation, memory and network
# traffic optimization. It enables storing a variable once and reference # traffic optimization. It enables storing a variable once and reference
# it from multiple variables, including variables stored in the # it from multiple variables, including variables stored in the
@ -286,15 +530,28 @@ module Google
# @return [String] # @return [String]
attr_accessor :log_level attr_accessor :log_level
# Breakpoint identifier, unique in the scope of the debuggee.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# Represents a location in the source code.
# Corresponds to the JSON property `location`
# @return [Google::Apis::ClouddebuggerV2::SourceLocation]
attr_accessor :location
# Time this breakpoint was finalized as seen by the server in seconds
# resolution.
# Corresponds to the JSON property `finalTime`
# @return [String]
attr_accessor :final_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)
@id = args[:id] if args.key?(:id)
@location = args[:location] if args.key?(:location)
@final_time = args[:final_time] if args.key?(:final_time)
@variable_table = args[:variable_table] if args.key?(:variable_table) @variable_table = args[:variable_table] if args.key?(:variable_table)
@create_time = args[:create_time] if args.key?(:create_time) @create_time = args[:create_time] if args.key?(:create_time)
@log_message_format = args[:log_message_format] if args.key?(:log_message_format) @log_message_format = args[:log_message_format] if args.key?(:log_message_format)
@ -308,6 +565,9 @@ module Google
@user_email = args[:user_email] if args.key?(:user_email) @user_email = args[:user_email] if args.key?(:user_email)
@action = args[:action] if args.key?(:action) @action = args[:action] if args.key?(:action)
@log_level = args[:log_level] if args.key?(:log_level) @log_level = args[:log_level] if args.key?(:log_level)
@id = args[:id] if args.key?(:id)
@location = args[:location] if args.key?(:location)
@final_time = args[:final_time] if args.key?(:final_time)
end end
end end
@ -354,6 +614,12 @@ module Google
class SourceContext class SourceContext
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# A GitSourceContext denotes a particular revision in a third party Git
# repository (e.g. GitHub).
# Corresponds to the JSON property `git`
# @return [Google::Apis::ClouddebuggerV2::GitSourceContext]
attr_accessor :git
# A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
# Corresponds to the JSON property `gerrit` # Corresponds to the JSON property `gerrit`
# @return [Google::Apis::ClouddebuggerV2::GerritSourceContext] # @return [Google::Apis::ClouddebuggerV2::GerritSourceContext]
@ -370,22 +636,16 @@ module Google
# @return [Google::Apis::ClouddebuggerV2::CloudWorkspaceSourceContext] # @return [Google::Apis::ClouddebuggerV2::CloudWorkspaceSourceContext]
attr_accessor :cloud_workspace attr_accessor :cloud_workspace
# A GitSourceContext denotes a particular revision in a third party Git
# repository (e.g. GitHub).
# Corresponds to the JSON property `git`
# @return [Google::Apis::ClouddebuggerV2::GitSourceContext]
attr_accessor :git
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)
@git = args[:git] if args.key?(:git)
@gerrit = args[:gerrit] if args.key?(:gerrit) @gerrit = args[:gerrit] if args.key?(:gerrit)
@cloud_repo = args[:cloud_repo] if args.key?(:cloud_repo) @cloud_repo = args[:cloud_repo] if args.key?(:cloud_repo)
@cloud_workspace = args[:cloud_workspace] if args.key?(:cloud_workspace) @cloud_workspace = args[:cloud_workspace] if args.key?(:cloud_workspace)
@git = args[:git] if args.key?(:git)
end end
end end
@ -394,11 +654,6 @@ module Google
class CloudRepoSourceContext class CloudRepoSourceContext
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# An alias to a repo revision.
# Corresponds to the JSON property `aliasContext`
# @return [Google::Apis::ClouddebuggerV2::AliasContext]
attr_accessor :alias_context
# A revision ID. # A revision ID.
# Corresponds to the JSON property `revisionId` # Corresponds to the JSON property `revisionId`
# @return [String] # @return [String]
@ -414,16 +669,21 @@ module Google
# @return [Google::Apis::ClouddebuggerV2::RepoId] # @return [Google::Apis::ClouddebuggerV2::RepoId]
attr_accessor :repo_id attr_accessor :repo_id
# An alias to a repo revision.
# Corresponds to the JSON property `aliasContext`
# @return [Google::Apis::ClouddebuggerV2::AliasContext]
attr_accessor :alias_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)
@alias_context = args[:alias_context] if args.key?(:alias_context)
@revision_id = args[:revision_id] if args.key?(:revision_id) @revision_id = args[:revision_id] if args.key?(:revision_id)
@alias_name = args[:alias_name] if args.key?(:alias_name) @alias_name = args[:alias_name] if args.key?(:alias_name)
@repo_id = args[:repo_id] if args.key?(:repo_id) @repo_id = args[:repo_id] if args.key?(:repo_id)
@alias_context = args[:alias_context] if args.key?(:alias_context)
end end
end end
@ -698,11 +958,6 @@ module Google
class StackFrame class StackFrame
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Demangled function name at the call site.
# Corresponds to the JSON property `function`
# @return [String]
attr_accessor :function
# Set of arguments passed to this function. # Set of arguments passed to this function.
# Note that this might not be populated for all stack frames. # Note that this might not be populated for all stack frames.
# Corresponds to the JSON property `arguments` # Corresponds to the JSON property `arguments`
@ -720,16 +975,21 @@ module Google
# @return [Google::Apis::ClouddebuggerV2::SourceLocation] # @return [Google::Apis::ClouddebuggerV2::SourceLocation]
attr_accessor :location attr_accessor :location
# Demangled function name at the call site.
# Corresponds to the JSON property `function`
# @return [String]
attr_accessor :function
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)
@function = args[:function] if args.key?(:function)
@arguments = args[:arguments] if args.key?(:arguments) @arguments = args[:arguments] if args.key?(:arguments)
@locals = args[:locals] if args.key?(:locals) @locals = args[:locals] if args.key?(:locals)
@location = args[:location] if args.key?(:location) @location = args[:location] if args.key?(:location)
@function = args[:function] if args.key?(:function)
end end
end end
@ -816,266 +1076,6 @@ module Google
@labels = args[:labels] if args.key?(:labels) @labels = args[:labels] if args.key?(:labels)
end end
end end
# Response for listing debuggees.
class ListDebuggeesResponse
include Google::Apis::Core::Hashable
# List of debuggees accessible to the calling user.
# Note that the `description` field is the only human readable field
# that should be displayed to the user.
# The fields `debuggee.id` and `description` fields are guaranteed to be
# set on each debuggee.
# Corresponds to the JSON property `debuggees`
# @return [Array<Google::Apis::ClouddebuggerV2::Debuggee>]
attr_accessor :debuggees
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@debuggees = args[:debuggees] if args.key?(:debuggees)
end
end
# An alias to a repo revision.
class AliasContext
include Google::Apis::Core::Hashable
# The alias name.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The alias kind.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@name = args[:name] if args.key?(:name)
@kind = args[:kind] if args.key?(:kind)
end
end
# A generic empty message that you can re-use to avoid defining duplicated
# empty messages in your APIs. A typical example is to use it as the request
# or the response type of an API method. For instance:
# service Foo `
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
# `
# The JSON representation for `Empty` is empty JSON object ````.
class Empty
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Represents a location in the source code.
class SourceLocation
include Google::Apis::Core::Hashable
# Line inside the file. The first line in the file has the value `1`.
# Corresponds to the JSON property `line`
# @return [Fixnum]
attr_accessor :line
# Path to the source file within the source context of the target binary.
# Corresponds to the JSON property `path`
# @return [String]
attr_accessor :path
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@line = args[:line] if args.key?(:line)
@path = args[:path] if args.key?(:path)
end
end
# Represents the application to debug. The application may include one or more
# replicated processes executing the same code. Each of these processes is
# attached with a debugger agent, carrying out the debugging commands.
# The agents attached to the same debuggee are identified by using exactly the
# same field values when registering.
class Debuggee
include Google::Apis::Core::Hashable
# Human readable description of the debuggee.
# Including a human-readable project name, environment name and version
# information is recommended.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Debuggee uniquifier within the project.
# Any string that identifies the application within the project can be used.
# Including environment and version or build IDs is recommended.
# Corresponds to the JSON property `uniquifier`
# @return [String]
attr_accessor :uniquifier
# References to the locations and revisions of the source code used in the
# deployed application.
# NOTE: This field is deprecated. Consumers should use
# `ext_source_contexts` if it is not empty. Debug agents should populate
# both this field and `ext_source_contexts`.
# Corresponds to the JSON property `sourceContexts`
# @return [Array<Google::Apis::ClouddebuggerV2::SourceContext>]
attr_accessor :source_contexts
# References to the locations and revisions of the source code used in the
# deployed application.
# Contexts describing a remote repo related to the source code
# have a `category` label of `remote_repo`. Source snapshot source
# contexts have a `category` of `snapshot`.
# Corresponds to the JSON property `extSourceContexts`
# @return [Array<Google::Apis::ClouddebuggerV2::ExtendedSourceContext>]
attr_accessor :ext_source_contexts
# A set of custom debuggee properties, populated by the agent, to be
# displayed to the user.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
# If set to `true`, indicates that the debuggee is considered as inactive by
# the Controller service.
# Corresponds to the JSON property `isInactive`
# @return [Boolean]
attr_accessor :is_inactive
alias_method :is_inactive?, :is_inactive
# Represents a contextual status message.
# The message can indicate an error or informational status, and refer to
# specific parts of the containing object.
# For example, the `Breakpoint.status` field can indicate an error referring
# to the `BREAKPOINT_SOURCE_LOCATION` with the message `Location not found`.
# Corresponds to the JSON property `status`
# @return [Google::Apis::ClouddebuggerV2::StatusMessage]
attr_accessor :status
# Project the debuggee is associated with.
# Use the project number when registering a Google Cloud Platform project.
# Corresponds to the JSON property `project`
# @return [String]
attr_accessor :project
# If set to `true`, indicates that the agent should disable itself and
# detach from the debuggee.
# Corresponds to the JSON property `isDisabled`
# @return [Boolean]
attr_accessor :is_disabled
alias_method :is_disabled?, :is_disabled
# Version ID of the agent release. The version ID is structured as
# following: `domain/type/vmajor.minor` (for example
# `google.com/gcp-java/v1.1`).
# Corresponds to the JSON property `agentVersion`
# @return [String]
attr_accessor :agent_version
# Unique identifier for the debuggee generated by the controller service.
# 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)
@description = args[:description] if args.key?(:description)
@uniquifier = args[:uniquifier] if args.key?(:uniquifier)
@source_contexts = args[:source_contexts] if args.key?(:source_contexts)
@ext_source_contexts = args[:ext_source_contexts] if args.key?(:ext_source_contexts)
@labels = args[:labels] if args.key?(:labels)
@is_inactive = args[:is_inactive] if args.key?(:is_inactive)
@status = args[:status] if args.key?(:status)
@project = args[:project] if args.key?(:project)
@is_disabled = args[:is_disabled] if args.key?(:is_disabled)
@agent_version = args[:agent_version] if args.key?(:agent_version)
@id = args[:id] if args.key?(:id)
end
end
# Selects a repo using a Google Cloud Platform project ID
# (e.g. winged-cargo-31) and a repo name within that project.
class ProjectRepoId
include Google::Apis::Core::Hashable
# The ID of the project.
# Corresponds to the JSON property `projectId`
# @return [String]
attr_accessor :project_id
# The name of the repo. Leave empty for the default repo.
# Corresponds to the JSON property `repoName`
# @return [String]
attr_accessor :repo_name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@project_id = args[:project_id] if args.key?(:project_id)
@repo_name = args[:repo_name] if args.key?(:repo_name)
end
end
# Response for listing active breakpoints.
class ListActiveBreakpointsResponse
include Google::Apis::Core::Hashable
# A wait token that can be used in the next method call to block until
# the list of breakpoints changes.
# Corresponds to the JSON property `nextWaitToken`
# @return [String]
attr_accessor :next_wait_token
# List of all active breakpoints.
# The fields `id` and `location` are guaranteed to be set on each breakpoint.
# Corresponds to the JSON property `breakpoints`
# @return [Array<Google::Apis::ClouddebuggerV2::Breakpoint>]
attr_accessor :breakpoints
# The `wait_expired` field is set to true by the server when the
# request times out and the field `success_on_timeout` is set to true.
# Corresponds to the JSON property `waitExpired`
# @return [Boolean]
attr_accessor :wait_expired
alias_method :wait_expired?, :wait_expired
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@next_wait_token = args[:next_wait_token] if args.key?(:next_wait_token)
@breakpoints = args[:breakpoints] if args.key?(:breakpoints)
@wait_expired = args[:wait_expired] if args.key?(:wait_expired)
end
end
end end
end end
end end

View File

@ -22,6 +22,48 @@ module Google
module Apis module Apis
module ClouddebuggerV2 module ClouddebuggerV2
class ListDebuggeesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AliasContext
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 SourceLocation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Debuggee
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ProjectRepoId
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListActiveBreakpointsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CloudWorkspaceSourceContext class CloudWorkspaceSourceContext
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -143,45 +185,71 @@ module Google
end end
class ListDebuggeesResponse class ListDebuggeesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :debuggees, as: 'debuggees', class: Google::Apis::ClouddebuggerV2::Debuggee, decorator: Google::Apis::ClouddebuggerV2::Debuggee::Representation
include Google::Apis::Core::JsonObjectSupport end
end end
class AliasContext class AliasContext
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
include Google::Apis::Core::JsonObjectSupport property :name, as: 'name'
property :kind, as: 'kind'
end
end end
class Empty class Empty
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
include Google::Apis::Core::JsonObjectSupport end
end end
class SourceLocation class SourceLocation
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
include Google::Apis::Core::JsonObjectSupport property :line, as: 'line'
property :path, as: 'path'
end
end end
class Debuggee class Debuggee
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :ext_source_contexts, as: 'extSourceContexts', class: Google::Apis::ClouddebuggerV2::ExtendedSourceContext, decorator: Google::Apis::ClouddebuggerV2::ExtendedSourceContext::Representation
include Google::Apis::Core::JsonObjectSupport hash :labels, as: 'labels'
property :status, as: 'status', class: Google::Apis::ClouddebuggerV2::StatusMessage, decorator: Google::Apis::ClouddebuggerV2::StatusMessage::Representation
property :is_inactive, as: 'isInactive'
property :project, as: 'project'
property :id, as: 'id'
property :agent_version, as: 'agentVersion'
property :is_disabled, as: 'isDisabled'
property :description, as: 'description'
property :uniquifier, as: 'uniquifier'
collection :source_contexts, as: 'sourceContexts', class: Google::Apis::ClouddebuggerV2::SourceContext, decorator: Google::Apis::ClouddebuggerV2::SourceContext::Representation
end
end end
class ProjectRepoId class ProjectRepoId
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
include Google::Apis::Core::JsonObjectSupport property :project_id, as: 'projectId'
property :repo_name, as: 'repoName'
end
end end
class ListActiveBreakpointsResponse class ListActiveBreakpointsResponse
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 :wait_expired, as: 'waitExpired'
property :next_wait_token, as: 'nextWaitToken'
end
end end
class CloudWorkspaceSourceContext class CloudWorkspaceSourceContext
@ -202,21 +270,21 @@ 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 :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 :revision_id, as: 'revisionId'
property :alias_name, as: 'aliasName' property :alias_name, as: 'aliasName'
property :gerrit_project, as: 'gerritProject'
property :alias_context, as: 'aliasContext', class: Google::Apis::ClouddebuggerV2::AliasContext, decorator: Google::Apis::ClouddebuggerV2::AliasContext::Representation
end end
end end
class CloudWorkspaceId class CloudWorkspaceId
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation 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 property :repo_id, as: 'repoId', class: Google::Apis::ClouddebuggerV2::RepoId, decorator: Google::Apis::ClouddebuggerV2::RepoId::Representation
property :name, as: 'name'
end end
end end
@ -232,10 +300,6 @@ module Google
class Breakpoint class Breakpoint
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
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 collection :variable_table, as: 'variableTable', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
property :create_time, as: 'createTime' property :create_time, as: 'createTime'
@ -253,6 +317,10 @@ module Google
property :user_email, as: 'userEmail' property :user_email, as: 'userEmail'
property :action, as: 'action' property :action, as: 'action'
property :log_level, as: 'logLevel' 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'
end end
end end
@ -275,26 +343,26 @@ module Google
class SourceContext class SourceContext
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :git, as: 'git', class: Google::Apis::ClouddebuggerV2::GitSourceContext, decorator: Google::Apis::ClouddebuggerV2::GitSourceContext::Representation
property :gerrit, as: 'gerrit', class: Google::Apis::ClouddebuggerV2::GerritSourceContext, decorator: Google::Apis::ClouddebuggerV2::GerritSourceContext::Representation 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_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 :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
end end
class CloudRepoSourceContext class CloudRepoSourceContext
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :alias_context, as: 'aliasContext', class: Google::Apis::ClouddebuggerV2::AliasContext, decorator: Google::Apis::ClouddebuggerV2::AliasContext::Representation
property :revision_id, as: 'revisionId' property :revision_id, as: 'revisionId'
property :alias_name, as: 'aliasName' property :alias_name, as: 'aliasName'
property :repo_id, as: 'repoId', class: Google::Apis::ClouddebuggerV2::RepoId, decorator: Google::Apis::ClouddebuggerV2::RepoId::Representation 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
end end
end end
@ -357,13 +425,13 @@ module Google
class StackFrame class StackFrame
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :function, as: 'function'
collection :arguments, as: 'arguments', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation collection :arguments, as: 'arguments', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
collection :locals, as: 'locals', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation collection :locals, as: 'locals', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
property :location, as: 'location', class: Google::Apis::ClouddebuggerV2::SourceLocation, decorator: Google::Apis::ClouddebuggerV2::SourceLocation::Representation property :location, as: 'location', class: Google::Apis::ClouddebuggerV2::SourceLocation, decorator: Google::Apis::ClouddebuggerV2::SourceLocation::Representation
property :function, as: 'function'
end end
end end
@ -392,74 +460,6 @@ module Google
hash :labels, as: 'labels' hash :labels, as: 'labels'
end end
end end
class ListDebuggeesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :debuggees, as: 'debuggees', class: Google::Apis::ClouddebuggerV2::Debuggee, decorator: Google::Apis::ClouddebuggerV2::Debuggee::Representation
end
end
class AliasContext
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :kind, as: 'kind'
end
end
class Empty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class SourceLocation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :line, as: 'line'
property :path, as: 'path'
end
end
class Debuggee
# @private
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
hash :labels, as: 'labels'
property :is_inactive, as: 'isInactive'
property :status, as: 'status', class: Google::Apis::ClouddebuggerV2::StatusMessage, decorator: Google::Apis::ClouddebuggerV2::StatusMessage::Representation
property :project, as: 'project'
property :is_disabled, as: 'isDisabled'
property :agent_version, as: 'agentVersion'
property :id, as: 'id'
end
end
class ProjectRepoId
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :project_id, as: 'projectId'
property :repo_name, as: 'repoName'
end
end
class ListActiveBreakpointsResponse
# @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
property :wait_expired, as: 'waitExpired'
end
end
end end
end end
end end

View File

@ -33,18 +33,19 @@ module Google
# #
# @see http://cloud.google.com/debugger # @see http://cloud.google.com/debugger
class CloudDebuggerService < Google::Apis::Core::BaseService class CloudDebuggerService < Google::Apis::Core::BaseService
# @return [String]
# API key. Your API key identifies your project and provides you with API access,
# quota, and reports. Required unless you provide an OAuth 2.0 token.
attr_accessor :key
# @return [String] # @return [String]
# 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.
attr_accessor :quota_user attr_accessor :quota_user
# @return [String]
# API key. Your API key identifies your project and provides you with API access,
# quota, and reports. Required unless you provide an OAuth 2.0 token.
attr_accessor :key
def initialize def initialize
super('https://clouddebugger.googleapis.com/', '') super('https://clouddebugger.googleapis.com/', '')
@batch_path = 'batch'
end end
# Lists all the debuggees that the user can set breakpoints to. # Lists all the debuggees that the user can set breakpoints to.
@ -56,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
# #
@ -73,15 +74,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 list_debugger_debuggees(client_version: nil, include_inactive: nil, project: nil, fields: nil, quota_user: nil, options: nil, &block) def list_debugger_debuggees(client_version: nil, include_inactive: nil, project: nil, quota_user: nil, fields: 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['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
@ -92,11 +93,11 @@ module Google
# @param [String] client_version # @param [String] client_version
# The client version making the call. # The client version making the call.
# Following: `domain/type/version` (e.g., `google.com/intellij/v1`). # 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 # @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
# #
@ -109,7 +110,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 set_debugger_debuggee_breakpoint(debuggee_id, breakpoint_object = nil, client_version: nil, fields: nil, quota_user: nil, options: nil, &block) 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 = make_simple_command(:post, 'v2/debugger/debuggees/{debuggeeId}/breakpoints/set', options)
command.request_representation = Google::Apis::ClouddebuggerV2::Breakpoint::Representation command.request_representation = Google::Apis::ClouddebuggerV2::Breakpoint::Representation
command.request_object = breakpoint_object command.request_object = breakpoint_object
@ -117,8 +118,8 @@ module Google
command.response_class = Google::Apis::ClouddebuggerV2::SetBreakpointResponse command.response_class = Google::Apis::ClouddebuggerV2::SetBreakpointResponse
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil? command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
command.query['clientVersion'] = client_version unless client_version.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? 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
@ -130,11 +131,11 @@ module Google
# @param [String] client_version # @param [String] client_version
# The client version making the call. # The client version making the call.
# Following: `domain/type/version` (e.g., `google.com/intellij/v1`). # 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 # @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
# #
@ -147,15 +148,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_debugger_debuggee_breakpoint(debuggee_id, breakpoint_id, client_version: nil, fields: nil, quota_user: nil, options: nil, &block) 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 = make_simple_command(:delete, 'v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}', options)
command.response_representation = Google::Apis::ClouddebuggerV2::Empty::Representation command.response_representation = Google::Apis::ClouddebuggerV2::Empty::Representation
command.response_class = Google::Apis::ClouddebuggerV2::Empty command.response_class = Google::Apis::ClouddebuggerV2::Empty
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil? command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
command.params['breakpointId'] = breakpoint_id unless breakpoint_id.nil? command.params['breakpointId'] = breakpoint_id unless breakpoint_id.nil?
command.query['clientVersion'] = client_version unless client_version.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? 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
@ -167,11 +168,11 @@ module Google
# @param [String] client_version # @param [String] client_version
# The client version making the call. # The client version making the call.
# Following: `domain/type/version` (e.g., `google.com/intellij/v1`). # 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 # @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
# #
@ -184,15 +185,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_debugger_debuggee_breakpoint(debuggee_id, breakpoint_id, client_version: nil, fields: nil, quota_user: nil, options: nil, &block) 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 = make_simple_command(:get, 'v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}', options)
command.response_representation = Google::Apis::ClouddebuggerV2::GetBreakpointResponse::Representation command.response_representation = Google::Apis::ClouddebuggerV2::GetBreakpointResponse::Representation
command.response_class = Google::Apis::ClouddebuggerV2::GetBreakpointResponse command.response_class = Google::Apis::ClouddebuggerV2::GetBreakpointResponse
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil? command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
command.params['breakpointId'] = breakpoint_id unless breakpoint_id.nil? command.params['breakpointId'] = breakpoint_id unless breakpoint_id.nil?
command.query['clientVersion'] = client_version unless client_version.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? 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
@ -205,11 +206,11 @@ module Google
# should be set from the last response. The error code # should be set from the last response. The error code
# `google.rpc.Code.ABORTED` (RPC) is returned on wait timeout, which # `google.rpc.Code.ABORTED` (RPC) is returned on wait timeout, which
# should be called again with the same `wait_token`. # should be called again with the same `wait_token`.
# @param [String] action_value
# Only breakpoints with the specified action will pass the filter.
# @param [String] client_version # @param [String] client_version
# The client version making the call. # The client version making the call.
# Following: `domain/type/version` (e.g., `google.com/intellij/v1`). # Following: `domain/type/version` (e.g., `google.com/intellij/v1`).
# @param [String] action_value
# Only breakpoints with the specified action will pass the filter.
# @param [Boolean] include_inactive # @param [Boolean] include_inactive
# When set to `true`, the response includes active and inactive # When set to `true`, the response includes active and inactive
# breakpoints. Otherwise, it includes only active breakpoints. # breakpoints. Otherwise, it includes only active breakpoints.
@ -219,11 +220,11 @@ module Google
# @param [Boolean] strip_results # @param [Boolean] strip_results
# This field is deprecated. The following fields are always stripped out of # This field is deprecated. The following fields are always stripped out of
# the result: `stack_frames`, `evaluated_expressions` and `variable_table`. # 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
# #
@ -236,19 +237,19 @@ 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, wait_token: nil, action_value: nil, client_version: nil, include_inactive: nil, include_all_users: nil, strip_results: nil, fields: nil, quota_user: 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, quota_user: nil, fields: 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['waitToken'] = wait_token unless wait_token.nil? command.query['waitToken'] = wait_token unless wait_token.nil?
command.query['action.value'] = action_value unless action_value.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['includeInactive'] = include_inactive unless include_inactive.nil? command.query['includeInactive'] = include_inactive unless include_inactive.nil?
command.query['includeAllUsers'] = include_all_users unless include_all_users.nil? command.query['includeAllUsers'] = include_all_users unless include_all_users.nil?
command.query['stripResults'] = strip_results unless strip_results.nil? command.query['stripResults'] = strip_results unless strip_results.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
@ -261,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
# #
@ -278,14 +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, fields: nil, quota_user: nil, options: nil, &block) def register_debuggee(register_debuggee_request_object = nil, quota_user: nil, fields: 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['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
@ -302,11 +303,11 @@ module Google
# @param [String] id # @param [String] id
# Breakpoint identifier, unique in the scope of the debuggee. # Breakpoint identifier, unique in the scope of the debuggee.
# @param [Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointRequest] update_active_breakpoint_request_object # @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 # @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
# #
@ -319,7 +320,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 update_active_breakpoint(debuggee_id, id, update_active_breakpoint_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) 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 = make_simple_command(:put, 'v2/controller/debuggees/{debuggeeId}/breakpoints/{id}', options)
command.request_representation = Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointRequest::Representation command.request_representation = Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointRequest::Representation
command.request_object = update_active_breakpoint_request_object command.request_object = update_active_breakpoint_request_object
@ -327,8 +328,8 @@ module Google
command.response_class = Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse command.response_class = Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil? command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
command.params['id'] = id unless 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? 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
@ -355,11 +356,11 @@ module Google
# has expired (recommended). # has expired (recommended).
# If set to `false`, returns `google.rpc.Code.ABORTED` status when the # If set to `false`, returns `google.rpc.Code.ABORTED` status when the
# server-selected timeout has expired (deprecated). # server-selected timeout has expired (deprecated).
# @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
# #
@ -372,23 +373,23 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_controller_debuggee_breakpoints(debuggee_id, wait_token: nil, success_on_timeout: nil, fields: nil, quota_user: nil, options: nil, &block) def list_controller_debuggee_breakpoints(debuggee_id, wait_token: nil, success_on_timeout: nil, quota_user: nil, fields: 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['waitToken'] = wait_token unless wait_token.nil? command.query['waitToken'] = wait_token unless wait_token.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['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
protected protected
def apply_command_defaults(command) def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['key'] = key unless key.nil?
end end
end end
end end

View File

@ -27,7 +27,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 = '20170314' REVISION = '20170328'
# 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,437 +22,6 @@ module Google
module Apis module Apis
module ClouderrorreportingV1beta1 module ClouderrorreportingV1beta1
# Data extracted for a specific group based on certain filter criteria,
# such as a given time period and/or service filter.
class ErrorGroupStats
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
# the filter criteria.
# Corresponds to the JSON property `count`
# @return [String]
attr_accessor :count
# Approximate number of affected users in the given group that
# match the filter criteria.
# Users are distinguished by data in the `ErrorContext` of the
# individual error events, such as their login name or their remote
# IP address in case of HTTP requests.
# The number of affected users can be zero even if the number of
# errors is non-zero if no data was provided from which the
# affected user could be deduced.
# Users are counted based on data in the request
# context that was provided in the error report. If more users are
# implicitly affected, such as due to a crash of the whole service,
# this is not reflected here.
# Corresponds to the JSON property `affectedUsersCount`
# @return [String]
attr_accessor :affected_users_count
# Approximate last 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 `lastSeenTime`
# @return [String]
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
# criteria. This list can be truncated if multiple services are affected.
# Refer to `num_affected_services` for the total count.
# Corresponds to the JSON property `affectedServices`
# @return [Array<Google::Apis::ClouderrorreportingV1beta1::ServiceContext>]
attr_accessor :affected_services
# An error event which is returned by the Error Reporting system.
# Corresponds to the JSON property `representative`
# @return [Google::Apis::ClouderrorreportingV1beta1::ErrorEvent]
attr_accessor :representative
# Approximate number of occurrences over time.
# Timed counts returned by ListGroups are guaranteed to be:
# - Inside the requested time interval
# - Non-overlapping, and
# - Ordered by ascending time.
# Corresponds to the JSON property `timedCounts`
# @return [Array<Google::Apis::ClouderrorreportingV1beta1::TimedCount>]
attr_accessor :timed_counts
def initialize(**args)
update!(**args)
end
# Update properties of this object
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)
@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)
@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)
@timed_counts = args[:timed_counts] if args.key?(:timed_counts)
end
end
# Contains a set of requested error events.
class ListEventsResponse
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.
# Corresponds to the JSON property `errorEvents`
# @return [Array<Google::Apis::ClouderrorreportingV1beta1::ErrorEvent>]
attr_accessor :error_events
# 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)
update!(**args)
end
# Update properties of this object
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)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# The number of errors in a given time period.
# All numbers are approximate since the error events are sampled
# before counting them.
class TimedCount
include Google::Apis::Core::Hashable
# End of the time period to which `count` refers (excluded).
# Corresponds to the JSON property `endTime`
# @return [String]
attr_accessor :end_time
# Approximate number of occurrences in the given time period.
# Corresponds to the JSON property `count`
# @return [String]
attr_accessor :count
# Start of the time period to which `count` refers (included).
# Corresponds to the JSON property `startTime`
# @return [String]
attr_accessor :start_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@end_time = args[:end_time] if args.key?(:end_time)
@count = args[:count] if args.key?(:count)
@start_time = args[:start_time] if args.key?(:start_time)
end
end
# Description of a group of similar error events.
class ErrorGroup
include Google::Apis::Core::Hashable
# The group resource name.
# Example: <code>projects/my-project-123/groups/my-groupid</code>
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# 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.
# Corresponds to the JSON property `groupId`
# @return [String]
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)
update!(**args)
end
# Update properties of this object
def update!(**args)
@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)
end
end
# Describes a running service that sends errors.
# Its version changes over time and multiple versions can run in parallel.
class ServiceContext
include Google::Apis::Core::Hashable
# Represents the source code version that the developer provided,
# which could represent a version label or a Git SHA-1 hash, for example.
# For App Engine standard environment, the version is set to the version of
# the app.
# Corresponds to the JSON property `version`
# @return [String]
attr_accessor :version
# An identifier of the service, such as the name of the
# executable, job, or Google App Engine service name. This field is expected
# to have a low number of values that are relatively stable over time, as
# opposed to `version`, which can be changed whenever new code is deployed.
# Contains the service name for error reports extracted from Google
# App Engine logs or `default` if the App Engine default service is used.
# Corresponds to the JSON property `service`
# @return [String]
attr_accessor :service
# Type of the MonitoredResource. List of possible values:
# https://cloud.google.com/monitoring/api/resources
# Value is set automatically for incoming errors and must not be set when
# reporting errors.
# Corresponds to the JSON property `resourceType`
# @return [String]
attr_accessor :resource_type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@version = args[:version] if args.key?(:version)
@service = args[:service] if args.key?(:service)
@resource_type = args[:resource_type] if args.key?(:resource_type)
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.
# Data may be added to this message in the future.
class ReportErrorEventResponse
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# 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.
class HttpRequestContext
include Google::Apis::Core::Hashable
# The referrer information that is provided with the request.
# Corresponds to the JSON property `referrer`
# @return [String]
attr_accessor :referrer
# The user agent information that is provided with the request.
# Corresponds to the JSON property `userAgent`
# @return [String]
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
# The type of HTTP request, such as `GET`, `POST`, etc.
# Corresponds to the JSON property `method`
# @return [String]
attr_accessor :method_prop
# The IP address from which the request originated.
# This can be IPv4, IPv6, or a token which is derived from the
# IP address, depending on the data that has been provided
# in the error report.
# Corresponds to the JSON property `remoteIp`
# @return [String]
attr_accessor :remote_ip
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@referrer = args[:referrer] if args.key?(:referrer)
@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)
@method_prop = args[:method_prop] if args.key?(:method_prop)
@remote_ip = args[:remote_ip] if args.key?(:remote_ip)
end
end
# Contains a set of requested error group stats.
class ListGroupStatsResponse
include Google::Apis::Core::Hashable
# 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
# to a later time if a project has exceeded the storage quota and older data
# has been deleted.
# Corresponds to the JSON property `timeRangeBegin`
# @return [String]
attr_accessor :time_range_begin
# The error group stats which match the given request.
# Corresponds to the JSON property `errorGroupStats`
# @return [Array<Google::Apis::ClouderrorreportingV1beta1::ErrorGroupStats>]
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)
update!(**args)
end
# Update properties of this object
def update!(**args)
@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)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# Response message for deleting error events.
class DeleteEventsResponse
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# An error event which is returned by the Error Reporting system.
class ErrorEvent
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
# The stack trace that was reported or logged by the service.
# Corresponds to the JSON property `message`
# @return [String]
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
# 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
# by the Error Reporting system is used.
# Corresponds to the JSON property `eventTime`
# @return [String]
attr_accessor :event_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@context = args[:context] if args.key?(:context)
@message = args[:message] if args.key?(:message)
@service_context = args[:service_context] if args.key?(:service_context)
@event_time = args[:event_time] if args.key?(:event_time)
end
end
# An error event which is reported to the Error Reporting system. # An error event which is reported to the Error Reporting system.
class ReportedErrorEvent class ReportedErrorEvent
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -526,6 +95,14 @@ module Google
class ErrorContext class ErrorContext
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# 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. # HTTP request data that is related to a reported error.
# This data should be provided by the application when reporting an error, # This data should be provided by the application when reporting an error,
# unless the # unless the
@ -546,23 +123,15 @@ 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
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)
@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) @user = args[:user] if args.key?(:user)
@report_location = args[:report_location] if args.key?(:report_location)
end end
end end
@ -585,6 +154,437 @@ module Google
@url = args[:url] if args.key?(:url) @url = args[:url] if args.key?(:url)
end end
end end
# Data extracted for a specific group based on certain filter criteria,
# such as a given time period and/or service filter.
class ErrorGroupStats
include Google::Apis::Core::Hashable
# Service contexts with a non-zero error count for the given filter
# criteria. This list can be truncated if multiple services are affected.
# Refer to `num_affected_services` for the total count.
# Corresponds to the JSON property `affectedServices`
# @return [Array<Google::Apis::ClouderrorreportingV1beta1::ServiceContext>]
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.
# Corresponds to the JSON property `representative`
# @return [Google::Apis::ClouderrorreportingV1beta1::ErrorEvent]
attr_accessor :representative
# Approximate number of occurrences over time.
# Timed counts returned by ListGroups are guaranteed to be:
# - Inside the requested time interval
# - Non-overlapping, and
# - Ordered by ascending time.
# Corresponds to the JSON property `timedCounts`
# @return [Array<Google::Apis::ClouderrorreportingV1beta1::TimedCount>]
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
# Approximate total number of events in the given group that match
# the filter criteria.
# Corresponds to the JSON property `count`
# @return [Fixnum]
attr_accessor :count
# Approximate number of affected users in the given group that
# match the filter criteria.
# Users are distinguished by data in the `ErrorContext` of the
# individual error events, such as their login name or their remote
# IP address in case of HTTP requests.
# The number of affected users can be zero even if the number of
# errors is non-zero if no data was provided from which the
# affected user could be deduced.
# Users are counted based on data in the request
# context that was provided in the error report. If more users are
# implicitly affected, such as due to a crash of the whole service,
# this is not reflected here.
# Corresponds to the JSON property `affectedUsersCount`
# @return [Fixnum]
attr_accessor :affected_users_count
# Approximate last 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 `lastSeenTime`
# @return [String]
attr_accessor :last_seen_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@affected_services = args[:affected_services] if args.key?(:affected_services)
@num_affected_services = args[:num_affected_services] if args.key?(:num_affected_services)
@representative = args[:representative] if args.key?(:representative)
@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)
@count = args[:count] if args.key?(: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)
end
end
# Contains a set of requested error events.
class ListEventsResponse
include Google::Apis::Core::Hashable
# The error events which match the given request.
# Corresponds to the JSON property `errorEvents`
# @return [Array<Google::Apis::ClouderrorreportingV1beta1::ErrorEvent>]
attr_accessor :error_events
# 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.
# Corresponds to the JSON property `timeRangeBegin`
# @return [String]
attr_accessor :time_range_begin
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@error_events = args[:error_events] if args.key?(:error_events)
@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
# The number of errors in a given time period.
# All numbers are approximate since the error events are sampled
# before counting them.
class TimedCount
include Google::Apis::Core::Hashable
# End of the time period to which `count` refers (excluded).
# Corresponds to the JSON property `endTime`
# @return [String]
attr_accessor :end_time
# Approximate number of occurrences in the given time period.
# Corresponds to the JSON property `count`
# @return [Fixnum]
attr_accessor :count
# Start of the time period to which `count` refers (included).
# Corresponds to the JSON property `startTime`
# @return [String]
attr_accessor :start_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@end_time = args[:end_time] if args.key?(:end_time)
@count = args[:count] if args.key?(:count)
@start_time = args[:start_time] if args.key?(:start_time)
end
end
# Description of a group of similar error events.
class ErrorGroup
include Google::Apis::Core::Hashable
# 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.
# Corresponds to the JSON property `groupId`
# @return [String]
attr_accessor :group_id
# Associated tracking issues.
# Corresponds to the JSON property `trackingIssues`
# @return [Array<Google::Apis::ClouderrorreportingV1beta1::TrackingIssue>]
attr_accessor :tracking_issues
# The group resource name.
# Example: <code>projects/my-project-123/groups/my-groupid</code>
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@group_id = args[:group_id] if args.key?(:group_id)
@tracking_issues = args[:tracking_issues] if args.key?(:tracking_issues)
@name = args[:name] if args.key?(:name)
end
end
# Describes a running service that sends errors.
# Its version changes over time and multiple versions can run in parallel.
class ServiceContext
include Google::Apis::Core::Hashable
# An identifier of the service, such as the name of the
# executable, job, or Google App Engine service name. This field is expected
# to have a low number of values that are relatively stable over time, as
# opposed to `version`, which can be changed whenever new code is deployed.
# Contains the service name for error reports extracted from Google
# App Engine logs or `default` if the App Engine default service is used.
# Corresponds to the JSON property `service`
# @return [String]
attr_accessor :service
# Type of the MonitoredResource. List of possible values:
# https://cloud.google.com/monitoring/api/resources
# Value is set automatically for incoming errors and must not be set when
# reporting errors.
# Corresponds to the JSON property `resourceType`
# @return [String]
attr_accessor :resource_type
# Represents the source code version that the developer provided,
# which could represent a version label or a Git SHA-1 hash, for example.
# For App Engine standard environment, the version is set to the version of
# the app.
# Corresponds to the JSON property `version`
# @return [String]
attr_accessor :version
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@service = args[:service] if args.key?(:service)
@resource_type = args[:resource_type] if args.key?(:resource_type)
@version = args[:version] if args.key?(:version)
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
# 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
# Response for reporting an individual error event.
# Data may be added to this message in the future.
class ReportErrorEventResponse
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# 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.
class HttpRequestContext
include Google::Apis::Core::Hashable
# The type of HTTP request, such as `GET`, `POST`, etc.
# Corresponds to the JSON property `method`
# @return [String]
attr_accessor :method_prop
# The IP address from which the request originated.
# This can be IPv4, IPv6, or a token which is derived from the
# IP address, depending on the data that has been provided
# in the error report.
# Corresponds to the JSON property `remoteIp`
# @return [String]
attr_accessor :remote_ip
# The referrer information that is provided with the request.
# Corresponds to the JSON property `referrer`
# @return [String]
attr_accessor :referrer
# The user agent information that is provided with the request.
# Corresponds to the JSON property `userAgent`
# @return [String]
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)
update!(**args)
end
# Update properties of this object
def update!(**args)
@method_prop = args[:method_prop] if args.key?(:method_prop)
@remote_ip = args[:remote_ip] if args.key?(:remote_ip)
@referrer = args[:referrer] if args.key?(:referrer)
@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
# Contains a set of requested error group stats.
class ListGroupStatsResponse
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 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
# has been deleted.
# Corresponds to the JSON property `timeRangeBegin`
# @return [String]
attr_accessor :time_range_begin
# The error group stats which match the given request.
# Corresponds to the JSON property `errorGroupStats`
# @return [Array<Google::Apis::ClouderrorreportingV1beta1::ErrorGroupStats>]
attr_accessor :error_group_stats
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)
@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)
end
end
# Response message for deleting error events.
class DeleteEventsResponse
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# An error event which is returned by the Error Reporting system.
class ErrorEvent
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
# The stack trace that was reported or logged by the service.
# Corresponds to the JSON property `message`
# @return [String]
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
# 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
# by the Error Reporting system is used.
# Corresponds to the JSON property `eventTime`
# @return [String]
attr_accessor :event_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@context = args[:context] if args.key?(:context)
@message = args[:message] if args.key?(:message)
@service_context = args[:service_context] if args.key?(:service_context)
@event_time = args[:event_time] if args.key?(:event_time)
end
end
end end
end end
end end

View File

@ -22,6 +22,24 @@ module Google
module Apis module Apis
module ClouderrorreportingV1beta1 module ClouderrorreportingV1beta1
class ReportedErrorEvent
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ErrorContext
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TrackingIssue
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ErrorGroupStats class ErrorGroupStats
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -89,49 +107,61 @@ module Google
end end
class ReportedErrorEvent class ReportedErrorEvent
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
property :context, as: 'context', class: Google::Apis::ClouderrorreportingV1beta1::ErrorContext, decorator: Google::Apis::ClouderrorreportingV1beta1::ErrorContext::Representation
include Google::Apis::Core::JsonObjectSupport property :message, as: 'message'
property :service_context, as: 'serviceContext', class: Google::Apis::ClouderrorreportingV1beta1::ServiceContext, decorator: Google::Apis::ClouderrorreportingV1beta1::ServiceContext::Representation
property :event_time, as: 'eventTime'
end
end end
class ErrorContext class ErrorContext
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
property :report_location, as: 'reportLocation', class: Google::Apis::ClouderrorreportingV1beta1::SourceLocation, decorator: Google::Apis::ClouderrorreportingV1beta1::SourceLocation::Representation
include Google::Apis::Core::JsonObjectSupport property :http_request, as: 'httpRequest', class: Google::Apis::ClouderrorreportingV1beta1::HttpRequestContext, decorator: Google::Apis::ClouderrorreportingV1beta1::HttpRequestContext::Representation
property :user, as: 'user'
end
end end
class TrackingIssue class TrackingIssue
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
include Google::Apis::Core::JsonObjectSupport property :url, as: 'url'
end
end end
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, as: 'count'
property :affected_users_count, as: 'affectedUsersCount'
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'
property :count, :numeric_string => true, as: 'count'
property :affected_users_count, :numeric_string => true, as: 'affectedUsersCount'
property :last_seen_time, as: 'lastSeenTime'
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
@ -139,7 +169,7 @@ module Google
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :end_time, as: 'endTime' property :end_time, as: 'endTime'
property :count, as: 'count' property :count, :numeric_string => true, as: 'count'
property :start_time, as: 'startTime' property :start_time, as: 'startTime'
end end
end end
@ -147,28 +177,28 @@ module Google
class ErrorGroup class ErrorGroup
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :group_id, as: 'groupId' 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
property :name, as: 'name'
end end
end end
class ServiceContext class ServiceContext
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :version, as: 'version'
property :service, as: 'service' property :service, as: 'service'
property :resource_type, as: 'resourceType' property :resource_type, as: 'resourceType'
property :version, as: 'version'
end end
end end
class SourceLocation class SourceLocation
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :function_name, as: 'functionName'
property :file_path, as: 'filePath' property :file_path, as: 'filePath'
property :line_number, as: 'lineNumber' property :line_number, as: 'lineNumber'
property :function_name, as: 'functionName'
end end
end end
@ -181,22 +211,22 @@ module Google
class HttpRequestContext class HttpRequestContext
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :method_prop, as: 'method'
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 :url, as: 'url'
property :response_status_code, as: 'responseStatusCode' property :response_status_code, as: 'responseStatusCode'
property :method_prop, as: 'method'
property :remote_ip, as: 'remoteIp'
end end
end end
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
@ -217,36 +247,6 @@ module Google
property :event_time, as: 'eventTime' property :event_time, as: 'eventTime'
end end
end end
class ReportedErrorEvent
# @private
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 :service_context, as: 'serviceContext', class: Google::Apis::ClouderrorreportingV1beta1::ServiceContext, decorator: Google::Apis::ClouderrorreportingV1beta1::ServiceContext::Representation
property :event_time, as: 'eventTime'
end
end
class ErrorContext
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :http_request, as: 'httpRequest', class: Google::Apis::ClouderrorreportingV1beta1::HttpRequestContext, decorator: Google::Apis::ClouderrorreportingV1beta1::HttpRequestContext::Representation
property :user, as: 'user'
property :report_location, as: 'reportLocation', class: Google::Apis::ClouderrorreportingV1beta1::SourceLocation, decorator: Google::Apis::ClouderrorreportingV1beta1::SourceLocation::Representation
end
end
class TrackingIssue
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :url, as: 'url'
end
end
end end
end end
end end

View File

@ -46,6 +46,7 @@ module Google
def initialize def initialize
super('https://clouderrorreporting.googleapis.com/', '') super('https://clouderrorreporting.googleapis.com/', '')
@batch_path = 'batch'
end end
# Deletes all error events of a given project. # Deletes all error events of a given project.
@ -82,67 +83,6 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Lists the specified events.
# @param [String] project_name
# [Required] The resource name of the Google Cloud Platform project. Written
# as `projects/` plus the
# [Google Cloud Platform project
# ID](https://support.google.com/cloud/answer/6158840).
# Example: `projects/my-project-123`.
# @param [String] service_filter_service
# [Optional] The exact value to match against
# [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/
# ServiceContext#FIELDS.service).
# @param [String] page_token
# [Optional] A `next_page_token` provided by a previous response.
# @param [Fixnum] page_size
# [Optional] The maximum number of results to return per response.
# @param [String] service_filter_version
# [Optional] The exact value to match against
# [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/
# ServiceContext#FIELDS.version).
# @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] time_range_period
# Restricts the query to the specified time range.
# @param [String] group_id
# [Required] The group for which events shall be returned.
# @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::ClouderrorreportingV1beta1::ListEventsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClouderrorreportingV1beta1::ListEventsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server 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_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, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+projectName}/events', options)
command.response_representation = Google::Apis::ClouderrorreportingV1beta1::ListEventsResponse::Representation
command.response_class = Google::Apis::ClouderrorreportingV1beta1::ListEventsResponse
command.params['projectName'] = project_name unless project_name.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['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['timeRange.period'] = time_range_period unless time_range_period.nil?
command.query['groupId'] = group_id unless group_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
# Report an individual error event. # Report an individual error event.
# This endpoint accepts <strong>either</strong> an OAuth token, # This endpoint accepts <strong>either</strong> an OAuth token,
# <strong>or</strong> an # <strong>or</strong> an
@ -187,6 +127,67 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Lists the specified events.
# @param [String] project_name
# [Required] The resource name of the Google Cloud Platform project. Written
# as `projects/` plus the
# [Google Cloud Platform project
# ID](https://support.google.com/cloud/answer/6158840).
# Example: `projects/my-project-123`.
# @param [String] group_id
# [Required] The group for which events shall be returned.
# @param [String] service_filter_service
# [Optional] The exact value to match against
# [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/
# ServiceContext#FIELDS.service).
# @param [String] page_token
# [Optional] A `next_page_token` provided by a previous response.
# @param [Fixnum] page_size
# [Optional] The maximum number of results to return per response.
# @param [String] service_filter_version
# [Optional] The exact value to match against
# [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/
# ServiceContext#FIELDS.version).
# @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] time_range_period
# Restricts the query to the specified time range.
# @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::ClouderrorreportingV1beta1::ListEventsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClouderrorreportingV1beta1::ListEventsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server 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_events(project_name, group_id: nil, service_filter_service: nil, page_token: nil, page_size: nil, service_filter_version: nil, service_filter_resource_type: nil, time_range_period: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+projectName}/events', options)
command.response_representation = Google::Apis::ClouderrorreportingV1beta1::ListEventsResponse::Representation
command.response_class = Google::Apis::ClouderrorreportingV1beta1::ListEventsResponse
command.params['projectName'] = project_name unless project_name.nil?
command.query['groupId'] = group_id unless group_id.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['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['timeRange.period'] = time_range_period unless time_range_period.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Get 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
@ -265,6 +266,10 @@ module Google
# <a href="https://support.google.com/cloud/answer/6158840">Google Cloud # <a href="https://support.google.com/cloud/answer/6158840">Google Cloud
# Platform project ID</a>. # Platform project ID</a>.
# Example: <code>projects/my-project-123</code>. # Example: <code>projects/my-project-123</code>.
# @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 # @param [String] time_range_period
# Restricts the query to the specified time range. # Restricts the query to the specified time range.
# @param [String] alignment # @param [String] alignment
@ -286,20 +291,16 @@ module Google
# [Optional] The exact value to match against # [Optional] The exact value to match against
# [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/ # [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/
# ServiceContext#FIELDS.version). # 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 # @param [String] service_filter_resource_type
# [Optional] The exact value to match against # [Optional] The exact value to match against
# [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/ # [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/
# ServiceContext#FIELDS.resource_type). # ServiceContext#FIELDS.resource_type).
# @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] timed_count_duration # @param [String] timed_count_duration
# [Optional] The preferred duration for a single returned `TimedCount`. # [Optional] The preferred duration for a single returned `TimedCount`.
# If not set, no timed counts are returned. # 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] 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
@ -317,11 +318,12 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_group_stats(project_name, time_range_period: nil, alignment: nil, group_id: nil, service_filter_service: nil, page_size: nil, order: nil, service_filter_version: nil, service_filter_resource_type: nil, alignment_time: nil, timed_count_duration: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) def list_project_group_stats(project_name, 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, alignment_time: nil, service_filter_resource_type: nil, timed_count_duration: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+projectName}/groupStats', options) command = make_simple_command(:get, 'v1beta1/{+projectName}/groupStats', options)
command.response_representation = Google::Apis::ClouderrorreportingV1beta1::ListGroupStatsResponse::Representation command.response_representation = Google::Apis::ClouderrorreportingV1beta1::ListGroupStatsResponse::Representation
command.response_class = Google::Apis::ClouderrorreportingV1beta1::ListGroupStatsResponse command.response_class = Google::Apis::ClouderrorreportingV1beta1::ListGroupStatsResponse
command.params['projectName'] = project_name unless project_name.nil? command.params['projectName'] = project_name unless project_name.nil?
command.query['pageToken'] = page_token unless page_token.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['alignment'] = alignment unless alignment.nil? command.query['alignment'] = alignment unless alignment.nil?
command.query['groupId'] = group_id unless group_id.nil? command.query['groupId'] = group_id unless group_id.nil?
@ -329,10 +331,9 @@ module Google
command.query['pageSize'] = page_size unless page_size.nil? command.query['pageSize'] = page_size unless page_size.nil?
command.query['order'] = order unless order.nil? command.query['order'] = order unless order.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['alignmentTime'] = alignment_time unless alignment_time.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['timedCountDuration'] = timed_count_duration unless timed_count_duration.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)

View File

@ -66,12 +66,6 @@ module Google
class OperationMetadataV1Beta2 class OperationMetadataV1Beta2
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Target of the operation - for example
# projects/project-1/locations/region-1/functions/function-1
# Corresponds to the JSON property `target`
# @return [String]
attr_accessor :target
# The original request that started the operation. # The original request that started the operation.
# Corresponds to the JSON property `request` # Corresponds to the JSON property `request`
# @return [Hash<String,Object>] # @return [Hash<String,Object>]
@ -82,15 +76,21 @@ module Google
# @return [String] # @return [String]
attr_accessor :type attr_accessor :type
# Target of the operation - for example
# projects/project-1/locations/region-1/functions/function-1
# Corresponds to the JSON property `target`
# @return [String]
attr_accessor :target
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)
@target = args[:target] if args.key?(:target)
@request = args[:request] if args.key?(:request) @request = args[:request] if args.key?(:request)
@type = args[:type] if args.key?(:type) @type = args[:type] if args.key?(:type)
@target = args[:target] if args.key?(:target)
end end
end end
end end

View File

@ -47,9 +47,9 @@ module Google
class OperationMetadataV1Beta2 class OperationMetadataV1Beta2
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :target, as: 'target'
hash :request, as: 'request' hash :request, as: 'request'
property :type, as: 'type' property :type, as: 'type'
property :target, as: 'target'
end end
end end
end end

View File

@ -45,16 +45,17 @@ module Google
def initialize def initialize
super('https://cloudfunctions.googleapis.com/', '') super('https://cloudfunctions.googleapis.com/', '')
@batch_path = 'batch'
end end
# Get information about a location. # Get information about a location.
# @param [String] name # @param [String] name
# Resource name for the location. # Resource name for the location.
# @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
# #
@ -67,13 +68,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_location(name, fields: nil, quota_user: nil, options: nil, &block) def get_project_location(name, quota_user: nil, fields: 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::CloudfunctionsV1::Location::Representation command.response_representation = Google::Apis::CloudfunctionsV1::Location::Representation
command.response_class = Google::Apis::CloudfunctionsV1::Location command.response_class = Google::Apis::CloudfunctionsV1::Location
command.params['name'] = name unless name.nil? command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end

View File

@ -22,124 +22,6 @@ module Google
module Apis module Apis
module CloudkmsV1 module CloudkmsV1
# A condition to be met.
class Condition
include Google::Apis::Core::Hashable
# An operator to apply the subject with.
# Corresponds to the JSON property `op`
# @return [String]
attr_accessor :op
# Trusted attributes discharged by the service.
# Corresponds to the JSON property `svc`
# @return [String]
attr_accessor :svc
# Trusted attributes supplied by any service that owns resources and uses
# the IAM system for access control.
# Corresponds to the JSON property `sys`
# @return [String]
attr_accessor :sys
# DEPRECATED. Use 'values' instead.
# Corresponds to the JSON property `value`
# @return [String]
attr_accessor :value
# The objects of the condition. This is mutually exclusive with 'value'.
# Corresponds to the JSON property `values`
# @return [Array<String>]
attr_accessor :values
# Trusted attributes supplied by the IAM system.
# Corresponds to the JSON property `iam`
# @return [String]
attr_accessor :iam
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@op = args[:op] if args.key?(:op)
@svc = args[:svc] if args.key?(:svc)
@sys = args[:sys] if args.key?(:sys)
@value = args[:value] if args.key?(:value)
@values = args[:values] if args.key?(:values)
@iam = args[:iam] if args.key?(:iam)
end
end
# Options for counters
class CounterOptions
include Google::Apis::Core::Hashable
# The metric to update.
# Corresponds to the JSON property `metric`
# @return [String]
attr_accessor :metric
# The field value to attribute.
# Corresponds to the JSON property `field`
# @return [String]
attr_accessor :field
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@metric = args[:metric] if args.key?(:metric)
@field = args[:field] if args.key?(:field)
end
end
# Provides the configuration for logging a type of permissions.
# Example:
# `
# "audit_log_configs": [
# `
# "log_type": "DATA_READ",
# "exempted_members": [
# "user:foo@gmail.com"
# ]
# `,
# `
# "log_type": "DATA_WRITE",
# `
# ]
# `
# This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
# foo@gmail.com from DATA_READ logging.
class AuditLogConfig
include Google::Apis::Core::Hashable
# Specifies the identities that do not cause logging for this type of
# permission.
# Follows the same format of Binding.members.
# Corresponds to the JSON property `exemptedMembers`
# @return [Array<String>]
attr_accessor :exempted_members
# The log type that this config enables.
# Corresponds to the JSON property `logType`
# @return [String]
attr_accessor :log_type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@exempted_members = args[:exempted_members] if args.key?(:exempted_members)
@log_type = args[:log_type] if args.key?(:log_type)
end
end
# Response message for KeyManagementService.Decrypt. # Response message for KeyManagementService.Decrypt.
class DecryptResponse class DecryptResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -182,58 +64,6 @@ module Google
end end
end end
# A KeyRing is a toplevel logical grouping of CryptoKeys.
class KeyRing
include Google::Apis::Core::Hashable
# Output only. The resource name for the KeyRing in the format
# `projects/*/locations/*/keyRings/*`.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Output only. The time at which this KeyRing was created.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@name = args[:name] if args.key?(:name)
@create_time = args[:create_time] if args.key?(:create_time)
end
end
# Response message for KeyManagementService.Encrypt.
class EncryptResponse
include Google::Apis::Core::Hashable
# The encrypted data.
# Corresponds to the JSON property `ciphertext`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
attr_accessor :ciphertext
# The resource name of the CryptoKeyVersion used in encryption.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@ciphertext = args[:ciphertext] if args.key?(:ciphertext)
@name = args[:name] if args.key?(:name)
end
end
# The response message for Locations.ListLocations. # The response message for Locations.ListLocations.
class ListLocationsResponse class ListLocationsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -288,6 +118,20 @@ module Google
class Policy class Policy
include Google::Apis::Core::Hashable 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
# #
# Corresponds to the JSON property `iamOwned` # Corresponds to the JSON property `iamOwned`
# @return [Boolean] # @return [Boolean]
@ -324,19 +168,35 @@ module Google
# @return [Array<Google::Apis::CloudkmsV1::Binding>] # @return [Array<Google::Apis::CloudkmsV1::Binding>]
attr_accessor :bindings attr_accessor :bindings
# `etag` is used for optimistic concurrency control as a way to help def initialize(**args)
# prevent simultaneous updates of a policy from overwriting each other. update!(**args)
# It is strongly suggested that systems make use of the `etag` in the end
# read-modify-write cycle to perform policy updates in order to avoid race
# conditions: An `etag` is returned in the response to `getIamPolicy`, and # Update properties of this object
# systems are expected to put that etag in the request to `setIamPolicy` to def update!(**args)
# ensure that their change will be applied to the same version of the policy. @etag = args[:etag] if args.key?(:etag)
# If no `etag` is provided in the call to `setIamPolicy`, then the existing @iam_owned = args[:iam_owned] if args.key?(:iam_owned)
# policy is overwritten blindly. @rules = args[:rules] if args.key?(:rules)
# Corresponds to the JSON property `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
# Response message for KeyManagementService.Encrypt.
class EncryptResponse
include Google::Apis::Core::Hashable
# The resource name of the CryptoKeyVersion used in encryption.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The encrypted data.
# Corresponds to the JSON property `ciphertext`
# NOTE: Values are automatically base64 encoded/decoded in the client library. # NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String] # @return [String]
attr_accessor :etag attr_accessor :ciphertext
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
@ -344,12 +204,34 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@iam_owned = args[:iam_owned] if args.key?(:iam_owned) @name = args[:name] if args.key?(:name)
@rules = args[:rules] if args.key?(:rules) @ciphertext = args[:ciphertext] if args.key?(:ciphertext)
@version = args[:version] if args.key?(:version) end
@audit_configs = args[:audit_configs] if args.key?(:audit_configs) end
@bindings = args[:bindings] if args.key?(:bindings)
@etag = args[:etag] if args.key?(:etag) # A KeyRing is a toplevel logical grouping of CryptoKeys.
class KeyRing
include Google::Apis::Core::Hashable
# Output only. The time at which this KeyRing was created.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# Output only. The resource name for the KeyRing in the format
# `projects/*/locations/*/keyRings/*`.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@create_time = args[:create_time] if args.key?(:create_time)
@name = args[:name] if args.key?(:name)
end end
end end
@ -385,6 +267,19 @@ module Google
end end
end end
# Write a Data Access (Gin) log
class DataAccessOptions
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Response message for KeyManagementService.ListKeyRings. # Response message for KeyManagementService.ListKeyRings.
class ListKeyRingsResponse class ListKeyRingsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -417,19 +312,6 @@ module Google
end end
end end
# Write a Data Access (Gin) log
class DataAccessOptions
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# 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.
@ -518,6 +400,18 @@ module Google
class CryptoKeyVersion class CryptoKeyVersion
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Output only. The time this CryptoKeyVersion's key material is scheduled
# for destruction. Only present if state is
# DESTROY_SCHEDULED.
# Corresponds to the JSON property `destroyTime`
# @return [String]
attr_accessor :destroy_time
# Output only. The time at which this CryptoKeyVersion was created.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# The current state of the CryptoKeyVersion. # The current state of the CryptoKeyVersion.
# Corresponds to the JSON property `state` # Corresponds to the JSON property `state`
# @return [String] # @return [String]
@ -536,29 +430,17 @@ module Google
# @return [String] # @return [String]
attr_accessor :destroy_event_time attr_accessor :destroy_event_time
# Output only. The time this CryptoKeyVersion's key material is scheduled
# for destruction. Only present if state is
# DESTROY_SCHEDULED.
# Corresponds to the JSON property `destroyTime`
# @return [String]
attr_accessor :destroy_time
# Output only. The time at which this CryptoKeyVersion was created.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_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)
@destroy_time = args[:destroy_time] if args.key?(:destroy_time)
@create_time = args[:create_time] if args.key?(:create_time)
@state = args[:state] if args.key?(:state) @state = args[:state] if args.key?(:state)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@destroy_event_time = args[:destroy_event_time] if args.key?(:destroy_event_time) @destroy_event_time = args[:destroy_event_time] if args.key?(:destroy_event_time)
@destroy_time = args[:destroy_time] if args.key?(:destroy_time)
@create_time = args[:create_time] if args.key?(:create_time)
end end
end end
@ -648,11 +530,6 @@ module Google
class ListCryptoKeyVersionsResponse class ListCryptoKeyVersionsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The list of CryptoKeyVersions.
# Corresponds to the JSON property `cryptoKeyVersions`
# @return [Array<Google::Apis::CloudkmsV1::CryptoKeyVersion>]
attr_accessor :crypto_key_versions
# A token to retrieve next page of results. Pass this value in # A token to retrieve next page of results. Pass this value in
# ListCryptoKeyVersionsRequest.page_token to retrieve the next page of # ListCryptoKeyVersionsRequest.page_token to retrieve the next page of
# results. # results.
@ -666,15 +543,20 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :total_size attr_accessor :total_size
# The list of CryptoKeyVersions.
# Corresponds to the JSON property `cryptoKeyVersions`
# @return [Array<Google::Apis::CloudkmsV1::CryptoKeyVersion>]
attr_accessor :crypto_key_versions
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)
@crypto_key_versions = args[:crypto_key_versions] if args.key?(:crypto_key_versions)
@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)
@total_size = args[:total_size] if args.key?(:total_size) @total_size = args[:total_size] if args.key?(:total_size)
@crypto_key_versions = args[:crypto_key_versions] if args.key?(:crypto_key_versions)
end end
end end
@ -711,18 +593,76 @@ module Google
end end
end end
# A CryptoKey represents a logical key that can be used for cryptographic
# operations.
# A CryptoKey is made up of one or more versions, which
# represent the actual key material used in cryptographic operations.
class CryptoKey
include Google::Apis::Core::Hashable
# A CryptoKeyVersion represents an individual cryptographic key, and the
# associated key material.
# It can be used for cryptographic operations either directly, or via its
# parent CryptoKey, in which case the server will choose the appropriate
# version for the operation.
# Corresponds to the JSON property `primary`
# @return [Google::Apis::CloudkmsV1::CryptoKeyVersion]
attr_accessor :primary
# Output only. The resource name for this CryptoKey in the format
# `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The immutable purpose of this CryptoKey. Currently, the only acceptable
# purpose is ENCRYPT_DECRYPT.
# Corresponds to the JSON property `purpose`
# @return [String]
attr_accessor :purpose
# At next_rotation_time, the Key Management Service will automatically:
# 1. Create a new version of this CryptoKey.
# 2. Mark the new version as primary.
# Key rotations performed manually via
# CreateCryptoKeyVersion and
# UpdateCryptoKeyPrimaryVersion
# do not affect next_rotation_time.
# Corresponds to the JSON property `nextRotationTime`
# @return [String]
attr_accessor :next_rotation_time
# Output only. The time at which this CryptoKey was created.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# next_rotation_time will be advanced by this period when the service
# automatically rotates a key. Must be at least one day.
# If rotation_period is set, next_rotation_time must also be set.
# Corresponds to the JSON property `rotationPeriod`
# @return [String]
attr_accessor :rotation_period
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@primary = args[:primary] if args.key?(:primary)
@name = args[:name] if args.key?(:name)
@purpose = args[:purpose] if args.key?(:purpose)
@next_rotation_time = args[:next_rotation_time] if args.key?(:next_rotation_time)
@create_time = args[:create_time] if args.key?(:create_time)
@rotation_period = args[:rotation_period] if args.key?(:rotation_period)
end
end
# A rule to be applied in a Policy. # A rule to be applied in a Policy.
class Rule class Rule
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# If one or more 'not_in' clauses are specified, the rule matches
# if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.
# The format for in and not_in entries is the same as for members in a
# Binding (see google/iam/v1/policy.proto).
# Corresponds to the JSON property `notIn`
# @return [Array<String>]
attr_accessor :not_in
# Human-readable description of the rule. # Human-readable description of the rule.
# Corresponds to the JSON property `description` # Corresponds to the JSON property `description`
# @return [String] # @return [String]
@ -757,85 +697,27 @@ module Google
# @return [String] # @return [String]
attr_accessor :action attr_accessor :action
# If one or more 'not_in' clauses are specified, the rule matches
# if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.
# The format for in and not_in entries is the same as for members in a
# Binding (see google/iam/v1/policy.proto).
# Corresponds to the JSON property `notIn`
# @return [Array<String>]
attr_accessor :not_in
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)
@not_in = args[:not_in] if args.key?(:not_in)
@description = args[:description] if args.key?(:description) @description = args[:description] if args.key?(:description)
@conditions = args[:conditions] if args.key?(:conditions) @conditions = args[:conditions] if args.key?(:conditions)
@log_config = args[:log_config] if args.key?(:log_config) @log_config = args[:log_config] if args.key?(:log_config)
@in = args[:in] if args.key?(:in) @in = args[:in] if args.key?(:in)
@permissions = args[:permissions] if args.key?(:permissions) @permissions = args[:permissions] if args.key?(:permissions)
@action = args[:action] if args.key?(:action) @action = args[:action] if args.key?(:action)
end @not_in = args[:not_in] if args.key?(:not_in)
end
# A CryptoKey represents a logical key that can be used for cryptographic
# operations.
# A CryptoKey is made up of one or more versions, which
# represent the actual key material used in cryptographic operations.
class CryptoKey
include Google::Apis::Core::Hashable
# The immutable purpose of this CryptoKey. Currently, the only acceptable
# purpose is ENCRYPT_DECRYPT.
# Corresponds to the JSON property `purpose`
# @return [String]
attr_accessor :purpose
# At next_rotation_time, the Key Management Service will automatically:
# 1. Create a new version of this CryptoKey.
# 2. Mark the new version as primary.
# Key rotations performed manually via
# CreateCryptoKeyVersion and
# UpdateCryptoKeyPrimaryVersion
# do not affect next_rotation_time.
# Corresponds to the JSON property `nextRotationTime`
# @return [String]
attr_accessor :next_rotation_time
# Output only. The time at which this CryptoKey was created.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# next_rotation_time will be advanced by this period when the service
# automatically rotates a key. Must be at least one day.
# If rotation_period is set, next_rotation_time must also be set.
# Corresponds to the JSON property `rotationPeriod`
# @return [String]
attr_accessor :rotation_period
# A CryptoKeyVersion represents an individual cryptographic key, and the
# associated key material.
# It can be used for cryptographic operations either directly, or via its
# parent CryptoKey, in which case the server will choose the appropriate
# version for the operation.
# Corresponds to the JSON property `primary`
# @return [Google::Apis::CloudkmsV1::CryptoKeyVersion]
attr_accessor :primary
# Output only. The resource name for this CryptoKey in the format
# `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@purpose = args[:purpose] if args.key?(:purpose)
@next_rotation_time = args[:next_rotation_time] if args.key?(:next_rotation_time)
@create_time = args[:create_time] if args.key?(:create_time)
@rotation_period = args[:rotation_period] if args.key?(:rotation_period)
@primary = args[:primary] if args.key?(:primary)
@name = args[:name] if args.key?(:name)
end end
end end
@ -874,6 +756,15 @@ module Google
class SetIamPolicyRequest class SetIamPolicyRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
# the fields in the mask will be modified. If no mask is provided, the
# following default mask is used:
# paths: "bindings, etag"
# This field is only used by Cloud IAM.
# Corresponds to the JSON property `updateMask`
# @return [String]
attr_accessor :update_mask
# Defines an Identity and Access Management (IAM) policy. It is used to # Defines an Identity and Access Management (IAM) policy. It is used to
# specify access control policies for Cloud Platform resources. # specify access control policies for Cloud Platform resources.
# A `Policy` consists of a list of `bindings`. A `Binding` binds a list of # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
@ -904,23 +795,14 @@ module Google
# @return [Google::Apis::CloudkmsV1::Policy] # @return [Google::Apis::CloudkmsV1::Policy]
attr_accessor :policy attr_accessor :policy
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
# the fields in the mask will be modified. If no mask is provided, the
# following default mask is used:
# paths: "bindings, etag"
# This field is only used by Cloud IAM.
# Corresponds to the JSON property `updateMask`
# @return [String]
attr_accessor :update_mask
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)
@policy = args[:policy] if args.key?(:policy)
@update_mask = args[:update_mask] if args.key?(:update_mask) @update_mask = args[:update_mask] if args.key?(:update_mask)
@policy = args[:policy] if args.key?(:policy)
end end
end end
@ -1024,6 +906,124 @@ module Google
@total_size = args[:total_size] if args.key?(:total_size) @total_size = args[:total_size] if args.key?(:total_size)
end end
end end
# A condition to be met.
class Condition
include Google::Apis::Core::Hashable
# The objects of the condition. This is mutually exclusive with 'value'.
# Corresponds to the JSON property `values`
# @return [Array<String>]
attr_accessor :values
# Trusted attributes supplied by the IAM system.
# Corresponds to the JSON property `iam`
# @return [String]
attr_accessor :iam
# An operator to apply the subject with.
# Corresponds to the JSON property `op`
# @return [String]
attr_accessor :op
# Trusted attributes discharged by the service.
# Corresponds to the JSON property `svc`
# @return [String]
attr_accessor :svc
# Trusted attributes supplied by any service that owns resources and uses
# the IAM system for access control.
# Corresponds to the JSON property `sys`
# @return [String]
attr_accessor :sys
# DEPRECATED. Use 'values' instead.
# 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)
@values = args[:values] if args.key?(:values)
@iam = args[:iam] if args.key?(:iam)
@op = args[:op] if args.key?(:op)
@svc = args[:svc] if args.key?(:svc)
@sys = args[:sys] if args.key?(:sys)
@value = args[:value] if args.key?(:value)
end
end
# Options for counters
class CounterOptions
include Google::Apis::Core::Hashable
# The metric to update.
# Corresponds to the JSON property `metric`
# @return [String]
attr_accessor :metric
# The field value to attribute.
# Corresponds to the JSON property `field`
# @return [String]
attr_accessor :field
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@metric = args[:metric] if args.key?(:metric)
@field = args[:field] if args.key?(:field)
end
end
# Provides the configuration for logging a type of permissions.
# Example:
# `
# "audit_log_configs": [
# `
# "log_type": "DATA_READ",
# "exempted_members": [
# "user:foo@gmail.com"
# ]
# `,
# `
# "log_type": "DATA_WRITE",
# `
# ]
# `
# This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
# foo@gmail.com from DATA_READ logging.
class AuditLogConfig
include Google::Apis::Core::Hashable
# Specifies the identities that do not cause logging for this type of
# permission.
# Follows the same format of Binding.members.
# Corresponds to the JSON property `exemptedMembers`
# @return [Array<String>]
attr_accessor :exempted_members
# The log type that this config enables.
# Corresponds to the JSON property `logType`
# @return [String]
attr_accessor :log_type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@exempted_members = args[:exempted_members] if args.key?(:exempted_members)
@log_type = args[:log_type] if args.key?(:log_type)
end
end
end end
end end
end end

View File

@ -22,24 +22,6 @@ module Google
module Apis module Apis
module CloudkmsV1 module CloudkmsV1
class Condition
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CounterOptions
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AuditLogConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DecryptResponse class DecryptResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -52,18 +34,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class KeyRing
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class EncryptResponse
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
@ -76,6 +46,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class EncryptResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class KeyRing
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RestoreCryptoKeyVersionRequest class RestoreCryptoKeyVersionRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -88,13 +70,13 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ListKeyRingsResponse class DataAccessOptions
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 DataAccessOptions class ListKeyRingsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
@ -148,13 +130,13 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class Rule class CryptoKey
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 CryptoKey class Rule
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
@ -191,31 +173,21 @@ module Google
end end
class Condition class Condition
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
property :op, as: 'op' include Google::Apis::Core::JsonObjectSupport
property :svc, as: 'svc'
property :sys, as: 'sys'
property :value, as: 'value'
collection :values, as: 'values'
property :iam, as: 'iam'
end
end end
class CounterOptions class CounterOptions
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
property :metric, as: 'metric' include Google::Apis::Core::JsonObjectSupport
property :field, as: 'field'
end
end end
class AuditLogConfig class AuditLogConfig
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
collection :exempted_members, as: 'exemptedMembers' include Google::Apis::Core::JsonObjectSupport
property :log_type, as: 'logType'
end
end end
class DecryptResponse class DecryptResponse
@ -232,22 +204,6 @@ module Google
end end
end end
class KeyRing
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :create_time, as: 'createTime'
end
end
class EncryptResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :ciphertext, :base64 => true, as: 'ciphertext'
property :name, as: 'name'
end
end
class ListLocationsResponse class ListLocationsResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -260,6 +216,7 @@ module Google
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' property :iam_owned, as: 'iamOwned'
collection :rules, as: 'rules', class: Google::Apis::CloudkmsV1::Rule, decorator: Google::Apis::CloudkmsV1::Rule::Representation collection :rules, as: 'rules', class: Google::Apis::CloudkmsV1::Rule, decorator: Google::Apis::CloudkmsV1::Rule::Representation
@ -268,7 +225,22 @@ module Google
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
property :etag, :base64 => true, as: 'etag' end
end
class EncryptResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :ciphertext, :base64 => true, as: 'ciphertext'
end
end
class KeyRing
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
property :name, as: 'name'
end end
end end
@ -285,6 +257,12 @@ module Google
end end
end end
class DataAccessOptions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class ListKeyRingsResponse class ListKeyRingsResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -295,12 +273,6 @@ module Google
end end
end end
class DataAccessOptions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class AuditConfig class AuditConfig
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -314,11 +286,11 @@ module Google
class CryptoKeyVersion class CryptoKeyVersion
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :destroy_time, as: 'destroyTime'
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 :create_time, as: 'createTime'
end end
end end
@ -347,10 +319,10 @@ module Google
class ListCryptoKeyVersionsResponse class ListCryptoKeyVersionsResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation 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' property :next_page_token, as: 'nextPageToken'
property :total_size, as: 'totalSize' property :total_size, as: 'totalSize'
collection :crypto_key_versions, as: 'cryptoKeyVersions', class: Google::Apis::CloudkmsV1::CryptoKeyVersion, decorator: Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
end end
end end
@ -367,10 +339,22 @@ module Google
end end
end end
class CryptoKey
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :primary, as: 'primary', class: Google::Apis::CloudkmsV1::CryptoKeyVersion, decorator: Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
property :name, as: 'name'
property :purpose, as: 'purpose'
property :next_rotation_time, as: 'nextRotationTime'
property :create_time, as: 'createTime'
property :rotation_period, as: 'rotationPeriod'
end
end
class Rule class Rule
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
collection :not_in, as: 'notIn'
property :description, as: 'description' property :description, as: 'description'
collection :conditions, as: 'conditions', class: Google::Apis::CloudkmsV1::Condition, decorator: Google::Apis::CloudkmsV1::Condition::Representation collection :conditions, as: 'conditions', class: Google::Apis::CloudkmsV1::Condition, decorator: Google::Apis::CloudkmsV1::Condition::Representation
@ -379,19 +363,7 @@ module Google
collection :in, as: 'in' collection :in, as: 'in'
collection :permissions, as: 'permissions' collection :permissions, as: 'permissions'
property :action, as: 'action' property :action, as: 'action'
end collection :not_in, as: 'notIn'
end
class CryptoKey
# @private
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'
end end
end end
@ -410,9 +382,9 @@ module Google
class SetIamPolicyRequest class SetIamPolicyRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :update_mask, as: 'updateMask'
property :policy, as: 'policy', class: Google::Apis::CloudkmsV1::Policy, decorator: Google::Apis::CloudkmsV1::Policy::Representation property :policy, as: 'policy', class: Google::Apis::CloudkmsV1::Policy, decorator: Google::Apis::CloudkmsV1::Policy::Representation
property :update_mask, as: 'updateMask'
end end
end end
@ -443,6 +415,34 @@ module Google
property :total_size, as: 'totalSize' property :total_size, as: 'totalSize'
end end
end end
class Condition
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :values, as: 'values'
property :iam, as: 'iam'
property :op, as: 'op'
property :svc, as: 'svc'
property :sys, as: 'sys'
property :value, as: 'value'
end
end
class CounterOptions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :metric, as: 'metric'
property :field, as: 'field'
end
end
class AuditLogConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :exempted_members, as: 'exemptedMembers'
property :log_type, as: 'logType'
end
end
end end
end end
end end

View File

@ -45,17 +45,18 @@ module Google
def initialize def initialize
super('https://cloudkms.googleapis.com/', '') super('https://cloudkms.googleapis.com/', '')
@batch_path = 'batch'
end end
# Lists information about the supported locations for this service. # Lists information about the supported locations for this service.
# @param [String] name # @param [String] name
# The resource that owns the locations collection, if applicable. # The resource that owns the locations collection, if applicable.
# @param [String] filter
# The standard list filter.
# @param [String] page_token # @param [String] page_token
# 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] filter
# The standard list filter.
# @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
@ -73,14 +74,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_project_locations(name, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block) def list_project_locations(name, filter: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}/locations', options) command = make_simple_command(:get, 'v1/{+name}/locations', options)
command.response_representation = Google::Apis::CloudkmsV1::ListLocationsResponse::Representation command.response_representation = Google::Apis::CloudkmsV1::ListLocationsResponse::Representation
command.response_class = Google::Apis::CloudkmsV1::ListLocationsResponse command.response_class = Google::Apis::CloudkmsV1::ListLocationsResponse
command.params['name'] = name unless name.nil? 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['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['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)
@ -116,6 +117,108 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets the access control policy for a resource.
# Returns an empty policy if the resource exists and does not have a policy
# set.
# @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 [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::CloudkmsV1::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudkmsV1::Policy]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_location_key_ring_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
command.response_representation = Google::Apis::CloudkmsV1::Policy::Representation
command.response_class = Google::Apis::CloudkmsV1::Policy
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns metadata for a given KeyRing.
# @param [String] name
# The name of the KeyRing 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::CloudkmsV1::KeyRing] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudkmsV1::KeyRing]
#
# @raise [Google::Apis::ServerError] An error occurred on the server 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_location_key_ring(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::CloudkmsV1::KeyRing::Representation
command.response_class = Google::Apis::CloudkmsV1::KeyRing
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 resource.
# If the resource does not exist, this will return an empty set of
# permissions, not a NOT_FOUND error.
# Note: This operation is designed to be used for building permission-aware
# UIs and command-line tools, not for authorization checking. This operation
# may "fail open" without warning.
# @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::CloudkmsV1::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::CloudkmsV1::TestIamPermissionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudkmsV1::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_key_ring_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
command.request_representation = Google::Apis::CloudkmsV1::TestIamPermissionsRequest::Representation
command.request_object = test_iam_permissions_request_object
command.response_representation = Google::Apis::CloudkmsV1::TestIamPermissionsResponse::Representation
command.response_class = Google::Apis::CloudkmsV1::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
# Lists KeyRings. # Lists KeyRings.
# @param [String] parent # @param [String] parent
# Required. The resource name of the location associated with the # Required. The resource name of the location associated with the
@ -230,108 +333,6 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets the access control policy for a resource.
# Returns an empty policy if the resource exists and does not have a policy
# set.
# @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 [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::CloudkmsV1::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudkmsV1::Policy]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_location_key_ring_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
command.response_representation = Google::Apis::CloudkmsV1::Policy::Representation
command.response_class = Google::Apis::CloudkmsV1::Policy
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns metadata for a given KeyRing.
# @param [String] name
# The name of the KeyRing 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::CloudkmsV1::KeyRing] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudkmsV1::KeyRing]
#
# @raise [Google::Apis::ServerError] An error occurred on the server 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_location_key_ring(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::CloudkmsV1::KeyRing::Representation
command.response_class = Google::Apis::CloudkmsV1::KeyRing
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 resource.
# If the resource does not exist, this will return an empty set of
# permissions, not a NOT_FOUND error.
# Note: This operation is designed to be used for building permission-aware
# UIs and command-line tools, not for authorization checking. This operation
# may "fail open" without warning.
# @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::CloudkmsV1::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::CloudkmsV1::TestIamPermissionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudkmsV1::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_key_ring_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
command.request_representation = Google::Apis::CloudkmsV1::TestIamPermissionsRequest::Representation
command.request_object = test_iam_permissions_request_object
command.response_representation = Google::Apis::CloudkmsV1::TestIamPermissionsResponse::Representation
command.response_class = Google::Apis::CloudkmsV1::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
# Lists CryptoKeys. # Lists CryptoKeys.
# @param [String] parent # @param [String] parent
# Required. The resource name of the KeyRing to list, in the format # Required. The resource name of the KeyRing to list, in the format
@ -409,6 +410,41 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Sets the access control policy on the specified resource. Replaces any
# existing policy.
# @param [String] resource
# REQUIRED: The resource for which the policy is being specified.
# See the operation documentation for the appropriate value for this field.
# @param [Google::Apis::CloudkmsV1::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::CloudkmsV1::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudkmsV1::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_crypto_key_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
command.request_representation = Google::Apis::CloudkmsV1::SetIamPolicyRequest::Representation
command.request_object = set_iam_policy_request_object
command.response_representation = Google::Apis::CloudkmsV1::Policy::Representation
command.response_class = Google::Apis::CloudkmsV1::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
# Create a new CryptoKey within a KeyRing. # Create a new CryptoKey within a KeyRing.
# CryptoKey.purpose is required. # CryptoKey.purpose is required.
# @param [String] parent # @param [String] parent
@ -448,41 +484,6 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Sets the access control policy on the specified resource. Replaces any
# existing policy.
# @param [String] resource
# REQUIRED: The resource for which the policy is being specified.
# See the operation documentation for the appropriate value for this field.
# @param [Google::Apis::CloudkmsV1::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::CloudkmsV1::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudkmsV1::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_crypto_key_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
command.request_representation = Google::Apis::CloudkmsV1::SetIamPolicyRequest::Representation
command.request_object = set_iam_policy_request_object
command.response_representation = Google::Apis::CloudkmsV1::Policy::Representation
command.response_class = Google::Apis::CloudkmsV1::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
# Update the version of a CryptoKey that will be used in Encrypt # Update the version of a CryptoKey that will be used in Encrypt
# @param [String] name # @param [String] name
# The resource name of the CryptoKey to update. # The resource name of the CryptoKey to update.
@ -549,37 +550,6 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Returns metadata for a given CryptoKey, as well as its
# primary CryptoKeyVersion.
# @param [String] name
# The name of the CryptoKey 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::CloudkmsV1::CryptoKey] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudkmsV1::CryptoKey]
#
# @raise [Google::Apis::ServerError] An error occurred on the server 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_location_key_ring_crypto_key(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::CloudkmsV1::CryptoKey::Representation
command.response_class = Google::Apis::CloudkmsV1::CryptoKey
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
# Update a CryptoKey. # Update a CryptoKey.
# @param [String] name # @param [String] name
# Output only. The resource name for this CryptoKey in the format # Output only. The resource name for this CryptoKey in the format
@ -617,6 +587,37 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Returns metadata for a given CryptoKey, as well as its
# primary CryptoKeyVersion.
# @param [String] name
# The name of the CryptoKey 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::CloudkmsV1::CryptoKey] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudkmsV1::CryptoKey]
#
# @raise [Google::Apis::ServerError] An error occurred on the server 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_location_key_ring_crypto_key(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::CloudkmsV1::CryptoKey::Representation
command.response_class = Google::Apis::CloudkmsV1::CryptoKey
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 resource. # Returns permissions that a caller has on the specified resource.
# If the resource does not exist, this will return an empty set of # If the resource does not exist, this will return an empty set of
# permissions, not a NOT_FOUND error. # permissions, not a NOT_FOUND error.
@ -690,43 +691,6 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Create a new CryptoKeyVersion in a CryptoKey.
# The server will assign the next sequential id. If unset,
# state will be set to
# ENABLED.
# @param [String] parent
# Required. The name of the CryptoKey associated with
# the CryptoKeyVersions.
# @param [Google::Apis::CloudkmsV1::CryptoKeyVersion] crypto_key_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::CloudkmsV1::CryptoKeyVersion] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudkmsV1::CryptoKeyVersion]
#
# @raise [Google::Apis::ServerError] An error occurred on the server 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_location_key_ring_crypto_key_crypto_key_version(parent, crypto_key_version_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+parent}/cryptoKeyVersions', options)
command.request_representation = Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
command.request_object = crypto_key_version_object
command.response_representation = Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
command.response_class = Google::Apis::CloudkmsV1::CryptoKeyVersion
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Schedule a CryptoKeyVersion for destruction. # Schedule a CryptoKeyVersion for destruction.
# Upon calling this method, CryptoKeyVersion.state will be set to # Upon calling this method, CryptoKeyVersion.state will be set to
# DESTROY_SCHEDULED # DESTROY_SCHEDULED
@ -769,6 +733,43 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Create a new CryptoKeyVersion in a CryptoKey.
# The server will assign the next sequential id. If unset,
# state will be set to
# ENABLED.
# @param [String] parent
# Required. The name of the CryptoKey associated with
# the CryptoKeyVersions.
# @param [Google::Apis::CloudkmsV1::CryptoKeyVersion] crypto_key_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::CloudkmsV1::CryptoKeyVersion] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudkmsV1::CryptoKeyVersion]
#
# @raise [Google::Apis::ServerError] An error occurred on the server 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_location_key_ring_crypto_key_crypto_key_version(parent, crypto_key_version_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+parent}/cryptoKeyVersions', options)
command.request_representation = Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
command.request_object = crypto_key_version_object
command.response_representation = Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
command.response_class = Google::Apis::CloudkmsV1::CryptoKeyVersion
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Restore a CryptoKeyVersion in the # Restore a CryptoKeyVersion in the
# DESTROY_SCHEDULED, # DESTROY_SCHEDULED,
# state. # state.

View File

@ -362,7 +362,7 @@ module Google
# The value of this data point as a 64-bit integer. # The value of this data point as a 64-bit integer.
# Corresponds to the JSON property `int64Value` # Corresponds to the JSON property `int64Value`
# @return [String] # @return [Fixnum]
attr_accessor :int64_value attr_accessor :int64_value
# The interval [start, end] is the time period to which the point's value # The interval [start, end] is the time period to which the point's value
@ -439,7 +439,7 @@ module Google
# The number of events whose values are in the interval defined by this bucket. # The number of events whose values are in the interval defined by this bucket.
# Corresponds to the JSON property `count` # Corresponds to the JSON property `count`
# @return [String] # @return [Fixnum]
attr_accessor :count attr_accessor :count
# The lower bound of the value interval of this bucket (inclusive). # The lower bound of the value interval of this bucket (inclusive).
@ -471,7 +471,7 @@ module Google
# The number of events whose values are in the interval defined by this bucket. # The number of events whose values are in the interval defined by this bucket.
# Corresponds to the JSON property `count` # Corresponds to the JSON property `count`
# @return [String] # @return [Fixnum]
attr_accessor :count attr_accessor :count
# The lower bound of the value interval of this bucket (inclusive). # The lower bound of the value interval of this bucket (inclusive).
@ -497,7 +497,7 @@ module Google
# The number of events whose values are in the interval defined by this bucket. # The number of events whose values are in the interval defined by this bucket.
# Corresponds to the JSON property `count` # Corresponds to the JSON property `count`
# @return [String] # @return [Fixnum]
attr_accessor :count attr_accessor :count
# The upper bound of the value interval of this bucket (exclusive). # The upper bound of the value interval of this bucket (exclusive).

View File

@ -252,7 +252,7 @@ module Google
property :double_value, as: 'doubleValue' property :double_value, as: 'doubleValue'
property :end, as: 'end', type: DateTime property :end, as: 'end', type: DateTime
property :int64_value, as: 'int64Value' property :int64_value, :numeric_string => true, as: 'int64Value'
property :start, as: 'start', type: DateTime property :start, as: 'start', type: DateTime
property :string_value, as: 'stringValue' property :string_value, as: 'stringValue'
@ -274,7 +274,7 @@ module Google
class PointDistributionBucket class PointDistributionBucket
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :count, as: 'count' property :count, :numeric_string => true, as: 'count'
property :lower_bound, as: 'lowerBound' property :lower_bound, as: 'lowerBound'
property :upper_bound, as: 'upperBound' property :upper_bound, as: 'upperBound'
end end
@ -283,7 +283,7 @@ module Google
class PointDistributionOverflowBucket class PointDistributionOverflowBucket
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :count, as: 'count' property :count, :numeric_string => true, as: 'count'
property :lower_bound, as: 'lowerBound' property :lower_bound, as: 'lowerBound'
end end
end end
@ -291,7 +291,7 @@ module Google
class PointDistributionUnderflowBucket class PointDistributionUnderflowBucket
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :count, as: 'count' property :count, :numeric_string => true, as: 'count'
property :upper_bound, as: 'upperBound' property :upper_bound, as: 'upperBound'
end end
end end

View File

@ -50,6 +50,7 @@ module Google
def initialize def initialize
super('https://www.googleapis.com/', 'cloudmonitoring/v2beta2/projects/') super('https://www.googleapis.com/', 'cloudmonitoring/v2beta2/projects/')
@batch_path = 'batch'
end end
# Create a new metric. # Create a new metric.

View File

@ -28,11 +28,11 @@ module Google
VERSION = 'V1' VERSION = 'V1'
REVISION = '20170329' REVISION = '20170329'
# 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,224 +22,6 @@ module Google
module Apis module Apis
module CloudresourcemanagerV1 module CloudresourcemanagerV1
# The request sent to the GetEffectiveOrgPolicy method.
class GetEffectiveOrgPolicyRequest
include Google::Apis::Core::Hashable
# The name of the `Constraint` to compute the effective `Policy`.
# Corresponds to the JSON property `constraint`
# @return [String]
attr_accessor :constraint
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@constraint = args[:constraint] if args.key?(:constraint)
end
end
# The request sent to the ListOrgPolicies method.
class ListOrgPoliciesRequest
include Google::Apis::Core::Hashable
# Page token used to retrieve the next page. This is currently unsupported
# and will be ignored. The server may at any point start using this field.
# Corresponds to the JSON property `pageToken`
# @return [String]
attr_accessor :page_token
# Size of the pages to be returned. This is currently unsupported and will
# be ignored. The server may at any point start using this field to limit
# page size.
# Corresponds to the JSON property `pageSize`
# @return [Fixnum]
attr_accessor :page_size
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@page_token = args[:page_token] if args.key?(:page_token)
@page_size = args[:page_size] if args.key?(:page_size)
end
end
# Specifies the audit configuration for a service.
# The configuration determines which permission types are logged, and what
# identities, if any, are exempted from logging.
# An AuditConifg must have one or more AuditLogConfigs.
# If there are AuditConfigs for both `allServices` and a specific service,
# the union of the two AuditConfigs is used for that service: the log_types
# specified in each AuditConfig are enabled, and the exempted_members in each
# AuditConfig are exempted.
# Example Policy with multiple AuditConfigs:
# `
# "audit_configs": [
# `
# "service": "allServices"
# "audit_log_configs": [
# `
# "log_type": "DATA_READ",
# "exempted_members": [
# "user:foo@gmail.com"
# ]
# `,
# `
# "log_type": "DATA_WRITE",
# `,
# `
# "log_type": "ADMIN_READ",
# `
# ]
# `,
# `
# "service": "fooservice@googleapis.com"
# "audit_log_configs": [
# `
# "log_type": "DATA_READ",
# `,
# `
# "log_type": "DATA_WRITE",
# "exempted_members": [
# "user:bar@gmail.com"
# ]
# `
# ]
# `
# ]
# `
# For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
# logging. It also exempts foo@gmail.com from DATA_READ logging, and
# bar@gmail.com from DATA_WRITE logging.
class AuditConfig
include Google::Apis::Core::Hashable
# Specifies a service that will be enabled for audit logging.
# For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
# `allServices` is a special value that covers all services.
# Corresponds to the JSON property `service`
# @return [String]
attr_accessor :service
# The configuration for logging of each type of permission.
# Next ID: 4
# Corresponds to the JSON property `auditLogConfigs`
# @return [Array<Google::Apis::CloudresourcemanagerV1::AuditLogConfig>]
attr_accessor :audit_log_configs
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@service = args[:service] if args.key?(:service)
@audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
end
end
# This resource represents a long-running operation that is the result of a
# network API call.
class Operation
include Google::Apis::Core::Hashable
# The normal response of the operation in case of success. If the original
# method returns no data on success, such as `Delete`, the response is
# `google.protobuf.Empty`. If the original method is standard
# `Get`/`Create`/`Update`, the response should be the resource. For other
# methods, the response should have the type `XxxResponse`, where `Xxx`
# is the original method name. For example, if the original method name
# is `TakeSnapshot()`, the inferred response type is
# `TakeSnapshotResponse`.
# Corresponds to the JSON property `response`
# @return [Hash<String,Object>]
attr_accessor :response
# The server-assigned name, which is only unique within the same service that
# originally returns it. If you use the default HTTP mapping, the
# `name` should have the format of `operations/some/unique/name`.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The `Status` type defines a logical error model that is suitable for different
# programming environments, including REST APIs and RPC APIs. It is used by
# [gRPC](https://github.com/grpc). The error model is designed to be:
# - Simple to use and understand for most users
# - Flexible enough to meet unexpected needs
# # Overview
# The `Status` message contains three pieces of data: error code, error message,
# and error details. The error code should be an enum value of
# google.rpc.Code, but it may accept additional error codes if needed. The
# error message should be a developer-facing English message that helps
# developers *understand* and *resolve* the error. If a localized user-facing
# error message is needed, put the localized message in the error details or
# localize it in the client. The optional error details may contain arbitrary
# information about the error. There is a predefined set of error detail types
# in the package `google.rpc` which can be used for common error conditions.
# # Language mapping
# The `Status` message is the logical representation of the error model, but it
# is not necessarily the actual wire format. When the `Status` message is
# exposed in different client libraries and different wire protocols, it can be
# mapped differently. For example, it will likely be mapped to some exceptions
# in Java, but more likely mapped to some error codes in C.
# # Other uses
# The error model and the `Status` message can be used in a variety of
# environments, either with or without APIs, to provide a
# consistent developer experience across different environments.
# Example uses of this error model include:
# - Partial errors. If a service needs to return partial errors to the client,
# it may embed the `Status` in the normal response to indicate the partial
# errors.
# - Workflow errors. A typical workflow has multiple steps. Each step may
# have a `Status` message for error reporting purpose.
# - Batch operations. If a client uses batch request and batch response, the
# `Status` message should be used directly inside batch response, one for
# each error sub-response.
# - Asynchronous operations. If an API call embeds asynchronous operation
# results in its response, the status of those operations should be
# represented directly using the `Status` message.
# - Logging. If some API errors are stored in logs, the message `Status` could
# be used directly after any stripping needed for security/privacy reasons.
# Corresponds to the JSON property `error`
# @return [Google::Apis::CloudresourcemanagerV1::Status]
attr_accessor :error
# Service-specific metadata associated with the operation. It typically
# contains progress information and common metadata such as create time.
# Some services might not provide such metadata. Any method that returns a
# long-running operation should document the metadata type, if any.
# Corresponds to the JSON property `metadata`
# @return [Hash<String,Object>]
attr_accessor :metadata
# If the value is `false`, it means the operation is still in progress.
# If true, the operation is completed, and either `error` or `response` is
# available.
# Corresponds to the JSON property `done`
# @return [Boolean]
attr_accessor :done
alias_method :done?, :done
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@response = args[:response] if args.key?(:response)
@name = args[:name] if args.key?(:name)
@error = args[:error] if args.key?(:error)
@metadata = args[:metadata] if args.key?(:metadata)
@done = args[:done] if args.key?(:done)
end
end
# A `Constraint` describes a way in which a resource's configuration can be # A `Constraint` describes a way in which a resource's configuration can be
# restricted. For example, it controls which cloud services can be activated # restricted. For example, it controls which cloud services can be activated
# across an organization, or whether a Compute Engine instance can have # across an organization, or whether a Compute Engine instance can have
@ -256,22 +38,16 @@ module Google
class Constraint class Constraint
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Version of the `Constraint`. Default version is 0;
# Corresponds to the JSON property `version`
# @return [Fixnum]
attr_accessor :version
# A `Constraint` that allows or disallows a list of string values, which are # A `Constraint` that allows or disallows a list of string values, which are
# configured by an Organization's policy administrator with a `Policy`. # configured by an Organization's policy administrator with a `Policy`.
# Corresponds to the JSON property `listConstraint` # Corresponds to the JSON property `listConstraint`
# @return [Google::Apis::CloudresourcemanagerV1::ListConstraint] # @return [Google::Apis::CloudresourcemanagerV1::ListConstraint]
attr_accessor :list_constraint attr_accessor :list_constraint
# The human readable name. # Version of the `Constraint`. Default version is 0;
# Mutable. # Corresponds to the JSON property `version`
# Corresponds to the JSON property `displayName` # @return [Fixnum]
# @return [String] attr_accessor :version
attr_accessor :display_name
# Detailed description of what this `Constraint` controls as well as how and # Detailed description of what this `Constraint` controls as well as how and
# where it is enforced. # where it is enforced.
@ -280,6 +56,12 @@ module Google
# @return [String] # @return [String]
attr_accessor :description attr_accessor :description
# The human readable name.
# Mutable.
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
# A `Constraint` that is either enforced or not. # A `Constraint` that is either enforced or not.
# For example a constraint `constraints/compute.disableSerialPortAccess`. # For example a constraint `constraints/compute.disableSerialPortAccess`.
# If it is enforced on a VM instance, serial port connections will not be # If it is enforced on a VM instance, serial port connections will not be
@ -305,10 +87,10 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@version = args[:version] if args.key?(:version)
@list_constraint = args[:list_constraint] if args.key?(:list_constraint) @list_constraint = args[:list_constraint] if args.key?(:list_constraint)
@display_name = args[:display_name] if args.key?(:display_name) @version = args[:version] if args.key?(:version)
@description = args[:description] if args.key?(:description) @description = args[:description] if args.key?(:description)
@display_name = args[:display_name] if args.key?(:display_name)
@boolean_constraint = args[:boolean_constraint] if args.key?(:boolean_constraint) @boolean_constraint = args[:boolean_constraint] if args.key?(:boolean_constraint)
@constraint_default = args[:constraint_default] if args.key?(:constraint_default) @constraint_default = args[:constraint_default] if args.key?(:constraint_default)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@ -688,6 +470,47 @@ module Google
class Project class Project
include Google::Apis::Core::Hashable 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::CloudresourcemanagerV1::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. # The user-assigned display name of the Project.
# It must be 4 to 30 characters. # It must be 4 to 30 characters.
# Allowed characters are: lowercase and uppercase letters, numbers, # Allowed characters are: lowercase and uppercase letters, numbers,
@ -708,60 +531,19 @@ module Google
# @return [String] # @return [String]
attr_accessor :project_id attr_accessor :project_id
# 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 [String]
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::CloudresourcemanagerV1::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
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)
@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) @lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
@project_number = args[:project_number] if args.key?(:project_number) @project_number = args[:project_number] if args.key?(:project_number)
@parent = args[:parent] if args.key?(:parent) @parent = args[:parent] if args.key?(:parent)
@labels = args[:labels] if args.key?(:labels)
@create_time = args[:create_time] if args.key?(:create_time) @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)
end end
end end
@ -800,26 +582,26 @@ module Google
class ListOrgPoliciesResponse class ListOrgPoliciesResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Page token used to retrieve the next page. This is currently not used, but
# the server may at any point start supplying a valid token.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# The `Policies` that are set on the resource. It will be empty if no # The `Policies` that are set on the resource. It will be empty if no
# `Policies` are set. # `Policies` are set.
# Corresponds to the JSON property `policies` # Corresponds to the JSON property `policies`
# @return [Array<Google::Apis::CloudresourcemanagerV1::OrgPolicy>] # @return [Array<Google::Apis::CloudresourcemanagerV1::OrgPolicy>]
attr_accessor :policies attr_accessor :policies
# Page token used to retrieve the next page. This is currently not used, but
# the server may at any point start supplying a valid token.
# 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)
@policies = args[:policies] if args.key?(:policies) @policies = args[:policies] if args.key?(:policies)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end end
end end
@ -905,34 +687,6 @@ module Google
class OrgPolicy class OrgPolicy
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The time stamp the `Policy` was previously updated. This is set by the
# server, not specified by the caller, and represents the last time a call to
# `SetOrgPolicy` was made for that `Policy`. Any value set by the client will
# be ignored.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
# Version of the `Policy`. Default version is 0;
# Corresponds to the JSON property `version`
# @return [Fixnum]
attr_accessor :version
# Ignores policies set above this resource and restores the
# `constraint_default` enforcement behavior of the specific `Constraint` at
# this resource.
# Suppose that `constraint_default` is set to `ALLOW` for the
# `Constraint` `constraints/serviceuser.services`. Suppose that organization
# foo.com sets a `Policy` at their Organization resource node that restricts
# the allowed service activations to deny all service activations. They
# could then set a `Policy` with the `policy_type` `restore_default` on
# several experimental projects, restoring the `constraint_default`
# enforcement of the `Constraint` for only those projects, allowing those
# projects to have all services activated.
# Corresponds to the JSON property `restoreDefault`
# @return [Google::Apis::CloudresourcemanagerV1::RestoreDefault]
attr_accessor :restore_default
# Used in `policy_type` to specify how `list_policy` behaves at this # Used in `policy_type` to specify how `list_policy` behaves at this
# resource. # resource.
# A `ListPolicy` can define specific values that are allowed or denied by # A `ListPolicy` can define specific values that are allowed or denied by
@ -976,19 +730,47 @@ module Google
# @return [String] # @return [String]
attr_accessor :constraint attr_accessor :constraint
# The time stamp the `Policy` was previously updated. This is set by the
# server, not specified by the caller, and represents the last time a call to
# `SetOrgPolicy` was made for that `Policy`. Any value set by the client will
# be ignored.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
# Version of the `Policy`. Default version is 0;
# Corresponds to the JSON property `version`
# @return [Fixnum]
attr_accessor :version
# Ignores policies set above this resource and restores the
# `constraint_default` enforcement behavior of the specific `Constraint` at
# this resource.
# Suppose that `constraint_default` is set to `ALLOW` for the
# `Constraint` `constraints/serviceuser.services`. Suppose that organization
# foo.com sets a `Policy` at their Organization resource node that restricts
# the allowed service activations to deny all service activations. They
# could then set a `Policy` with the `policy_type` `restore_default` on
# several experimental projects, restoring the `constraint_default`
# enforcement of the `Constraint` for only those projects, allowing those
# projects to have all services activated.
# Corresponds to the JSON property `restoreDefault`
# @return [Google::Apis::CloudresourcemanagerV1::RestoreDefault]
attr_accessor :restore_default
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)
@update_time = args[:update_time] if args.key?(:update_time)
@version = args[:version] if args.key?(:version)
@restore_default = args[:restore_default] if args.key?(:restore_default)
@list_policy = args[:list_policy] if args.key?(:list_policy) @list_policy = args[:list_policy] if args.key?(:list_policy)
@etag = args[:etag] if args.key?(:etag) @etag = args[:etag] if args.key?(:etag)
@boolean_policy = args[:boolean_policy] if args.key?(:boolean_policy) @boolean_policy = args[:boolean_policy] if args.key?(:boolean_policy)
@constraint = args[:constraint] if args.key?(:constraint) @constraint = args[:constraint] if args.key?(:constraint)
@update_time = args[:update_time] if args.key?(:update_time)
@version = args[:version] if args.key?(:version)
@restore_default = args[:restore_default] if args.key?(:restore_default)
end end
end end
@ -997,6 +779,18 @@ module Google
class Lien class Lien
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# A reference to the resource this Lien is attached to. The server will
# validate the parent against those for which Liens are supported.
# Example: `projects/1234`
# Corresponds to the JSON property `parent`
# @return [String]
attr_accessor :parent
# The creation time of this Lien.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# A system-generated unique identifier for this Lien. # A system-generated unique identifier for this Lien.
# Example: `liens/1234abcd` # Example: `liens/1234abcd`
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
@ -1027,30 +821,18 @@ module Google
# @return [Array<String>] # @return [Array<String>]
attr_accessor :restrictions attr_accessor :restrictions
# A reference to the resource this Lien is attached to. The server will
# validate the parent against those for which Liens are supported.
# Example: `projects/1234`
# Corresponds to the JSON property `parent`
# @return [String]
attr_accessor :parent
# The creation time of this Lien.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_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)
@parent = args[:parent] if args.key?(:parent)
@create_time = args[:create_time] if args.key?(:create_time)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@reason = args[:reason] if args.key?(:reason) @reason = args[:reason] if args.key?(:reason)
@origin = args[:origin] if args.key?(:origin) @origin = args[:origin] if args.key?(:origin)
@restrictions = args[:restrictions] if args.key?(:restrictions) @restrictions = args[:restrictions] if args.key?(:restrictions)
@parent = args[:parent] if args.key?(:parent)
@create_time = args[:create_time] if args.key?(:create_time)
end end
end end
@ -1121,6 +903,15 @@ module Google
class SetIamPolicyRequest class SetIamPolicyRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
# the fields in the mask will be modified. If no mask is provided, the
# following default mask is used:
# paths: "bindings, etag"
# This field is only used by Cloud IAM.
# Corresponds to the JSON property `updateMask`
# @return [String]
attr_accessor :update_mask
# Defines an Identity and Access Management (IAM) policy. It is used to # Defines an Identity and Access Management (IAM) policy. It is used to
# specify access control policies for Cloud Platform resources. # specify access control policies for Cloud Platform resources.
# A `Policy` consists of a list of `bindings`. A `Binding` binds a list of # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
@ -1151,23 +942,14 @@ module Google
# @return [Google::Apis::CloudresourcemanagerV1::Policy] # @return [Google::Apis::CloudresourcemanagerV1::Policy]
attr_accessor :policy attr_accessor :policy
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
# the fields in the mask will be modified. If no mask is provided, the
# following default mask is used:
# paths: "bindings, etag"
# This field is only used by Cloud IAM.
# Corresponds to the JSON property `updateMask`
# @return [String]
attr_accessor :update_mask
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)
@policy = args[:policy] if args.key?(:policy)
@update_mask = args[:update_mask] if args.key?(:update_mask) @update_mask = args[:update_mask] if args.key?(:update_mask)
@policy = args[:policy] if args.key?(:policy)
end end
end end
@ -1195,6 +977,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
@ -1224,23 +1012,17 @@ 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)
@lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state) @lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@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
@ -1469,6 +1251,19 @@ module Google
class SearchOrganizationsRequest class SearchOrganizationsRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# A pagination token returned from a previous call to `SearchOrganizations`
# that indicates from where listing should continue.
# This field is optional.
# Corresponds to the JSON property `pageToken`
# @return [String]
attr_accessor :page_token
# The maximum number of Organizations to return in the response.
# This field is optional.
# Corresponds to the JSON property `pageSize`
# @return [Fixnum]
attr_accessor :page_size
# An optional query string used to filter the Organizations to return in # An optional query string used to filter the Organizations to return in
# the response. Filter rules are case-insensitive. # the response. Filter rules are case-insensitive.
# Organizations may be filtered by `owner.directoryCustomerId` or by # Organizations may be filtered by `owner.directoryCustomerId` or by
@ -1483,28 +1278,15 @@ module Google
# @return [String] # @return [String]
attr_accessor :filter attr_accessor :filter
# A pagination token returned from a previous call to `SearchOrganizations`
# that indicates from where listing should continue.
# This field is optional.
# Corresponds to the JSON property `pageToken`
# @return [String]
attr_accessor :page_token
# The maximum number of Organizations to return in the response.
# This field is optional.
# Corresponds to the JSON property `pageSize`
# @return [Fixnum]
attr_accessor :page_size
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)
@filter = args[:filter] if args.key?(:filter)
@page_token = args[:page_token] if args.key?(:page_token) @page_token = args[:page_token] if args.key?(:page_token)
@page_size = args[:page_size] if args.key?(:page_size) @page_size = args[:page_size] if args.key?(:page_size)
@filter = args[:filter] if args.key?(:filter)
end end
end end
@ -1715,6 +1497,224 @@ module Google
@type = args[:type] if args.key?(:type) @type = args[:type] if args.key?(:type)
end end
end end
# The request sent to the GetEffectiveOrgPolicy method.
class GetEffectiveOrgPolicyRequest
include Google::Apis::Core::Hashable
# The name of the `Constraint` to compute the effective `Policy`.
# Corresponds to the JSON property `constraint`
# @return [String]
attr_accessor :constraint
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@constraint = args[:constraint] if args.key?(:constraint)
end
end
# The request sent to the ListOrgPolicies method.
class ListOrgPoliciesRequest
include Google::Apis::Core::Hashable
# Page token used to retrieve the next page. This is currently unsupported
# and will be ignored. The server may at any point start using this field.
# Corresponds to the JSON property `pageToken`
# @return [String]
attr_accessor :page_token
# Size of the pages to be returned. This is currently unsupported and will
# be ignored. The server may at any point start using this field to limit
# page size.
# Corresponds to the JSON property `pageSize`
# @return [Fixnum]
attr_accessor :page_size
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@page_token = args[:page_token] if args.key?(:page_token)
@page_size = args[:page_size] if args.key?(:page_size)
end
end
# Specifies the audit configuration for a service.
# The configuration determines which permission types are logged, and what
# identities, if any, are exempted from logging.
# An AuditConifg must have one or more AuditLogConfigs.
# If there are AuditConfigs for both `allServices` and a specific service,
# the union of the two AuditConfigs is used for that service: the log_types
# specified in each AuditConfig are enabled, and the exempted_members in each
# AuditConfig are exempted.
# Example Policy with multiple AuditConfigs:
# `
# "audit_configs": [
# `
# "service": "allServices"
# "audit_log_configs": [
# `
# "log_type": "DATA_READ",
# "exempted_members": [
# "user:foo@gmail.com"
# ]
# `,
# `
# "log_type": "DATA_WRITE",
# `,
# `
# "log_type": "ADMIN_READ",
# `
# ]
# `,
# `
# "service": "fooservice@googleapis.com"
# "audit_log_configs": [
# `
# "log_type": "DATA_READ",
# `,
# `
# "log_type": "DATA_WRITE",
# "exempted_members": [
# "user:bar@gmail.com"
# ]
# `
# ]
# `
# ]
# `
# For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
# logging. It also exempts foo@gmail.com from DATA_READ logging, and
# bar@gmail.com from DATA_WRITE logging.
class AuditConfig
include Google::Apis::Core::Hashable
# Specifies a service that will be enabled for audit logging.
# For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
# `allServices` is a special value that covers all services.
# Corresponds to the JSON property `service`
# @return [String]
attr_accessor :service
# The configuration for logging of each type of permission.
# Next ID: 4
# Corresponds to the JSON property `auditLogConfigs`
# @return [Array<Google::Apis::CloudresourcemanagerV1::AuditLogConfig>]
attr_accessor :audit_log_configs
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@service = args[:service] if args.key?(:service)
@audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
end
end
# This resource represents a long-running operation that is the result of a
# network API call.
class Operation
include Google::Apis::Core::Hashable
# 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
# method returns no data on success, such as `Delete`, the response is
# `google.protobuf.Empty`. If the original method is standard
# `Get`/`Create`/`Update`, the response should be the resource. For other
# methods, the response should have the type `XxxResponse`, where `Xxx`
# is the original method name. For example, if the original method name
# is `TakeSnapshot()`, the inferred response type is
# `TakeSnapshotResponse`.
# Corresponds to the JSON property `response`
# @return [Hash<String,Object>]
attr_accessor :response
# The server-assigned name, which is only unique within the same service that
# originally returns it. If you use the default HTTP mapping, the
# `name` should have the format of `operations/some/unique/name`.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The `Status` type defines a logical error model that is suitable for different
# programming environments, including REST APIs and RPC APIs. It is used by
# [gRPC](https://github.com/grpc). The error model is designed to be:
# - Simple to use and understand for most users
# - Flexible enough to meet unexpected needs
# # Overview
# The `Status` message contains three pieces of data: error code, error message,
# and error details. The error code should be an enum value of
# google.rpc.Code, but it may accept additional error codes if needed. The
# error message should be a developer-facing English message that helps
# developers *understand* and *resolve* the error. If a localized user-facing
# error message is needed, put the localized message in the error details or
# localize it in the client. The optional error details may contain arbitrary
# information about the error. There is a predefined set of error detail types
# in the package `google.rpc` which can be used for common error conditions.
# # Language mapping
# The `Status` message is the logical representation of the error model, but it
# is not necessarily the actual wire format. When the `Status` message is
# exposed in different client libraries and different wire protocols, it can be
# mapped differently. For example, it will likely be mapped to some exceptions
# in Java, but more likely mapped to some error codes in C.
# # Other uses
# The error model and the `Status` message can be used in a variety of
# environments, either with or without APIs, to provide a
# consistent developer experience across different environments.
# Example uses of this error model include:
# - Partial errors. If a service needs to return partial errors to the client,
# it may embed the `Status` in the normal response to indicate the partial
# errors.
# - Workflow errors. A typical workflow has multiple steps. Each step may
# have a `Status` message for error reporting purpose.
# - Batch operations. If a client uses batch request and batch response, the
# `Status` message should be used directly inside batch response, one for
# each error sub-response.
# - Asynchronous operations. If an API call embeds asynchronous operation
# results in its response, the status of those operations should be
# represented directly using the `Status` message.
# - Logging. If some API errors are stored in logs, the message `Status` could
# be used directly after any stripping needed for security/privacy reasons.
# Corresponds to the JSON property `error`
# @return [Google::Apis::CloudresourcemanagerV1::Status]
attr_accessor :error
# Service-specific metadata associated with the operation. It typically
# contains progress information and common metadata such as create time.
# Some services might not provide such metadata. Any method that returns a
# long-running operation should document the metadata type, if any.
# Corresponds to the JSON property `metadata`
# @return [Hash<String,Object>]
attr_accessor :metadata
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@done = args[:done] if args.key?(:done)
@response = args[:response] if args.key?(:response)
@name = args[:name] if args.key?(:name)
@error = args[:error] if args.key?(:error)
@metadata = args[:metadata] if args.key?(:metadata)
end
end
end end
end end
end end

View File

@ -22,30 +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 Constraint class Constraint
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -275,49 +251,37 @@ 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
property :service, as: 'service'
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::CloudresourcemanagerV1::AuditLogConfig, decorator: Google::Apis::CloudresourcemanagerV1::AuditLogConfig::Representation
end include Google::Apis::Core::JsonObjectSupport
end end
class Operation class Operation
# @private class Representation < Google::Apis::Core::JsonRepresentation; end
class Representation < Google::Apis::Core::JsonRepresentation
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
property :done, as: 'done'
end
end end
class Constraint class Constraint
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation 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 :list_constraint, as: 'listConstraint', class: Google::Apis::CloudresourcemanagerV1::ListConstraint, decorator: Google::Apis::CloudresourcemanagerV1::ListConstraint::Representation
property :display_name, as: 'displayName' property :version, as: 'version'
property :description, as: 'description' property :description, as: 'description'
property :display_name, as: 'displayName'
property :boolean_constraint, as: 'booleanConstraint', class: Google::Apis::CloudresourcemanagerV1::BooleanConstraint, decorator: Google::Apis::CloudresourcemanagerV1::BooleanConstraint::Representation property :boolean_constraint, as: 'booleanConstraint', class: Google::Apis::CloudresourcemanagerV1::BooleanConstraint, decorator: Google::Apis::CloudresourcemanagerV1::BooleanConstraint::Representation
property :constraint_default, as: 'constraintDefault' property :constraint_default, as: 'constraintDefault'
@ -425,14 +389,14 @@ module Google
class Project class Project
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :project_id, as: 'projectId'
property :lifecycle_state, as: 'lifecycleState' property :lifecycle_state, as: 'lifecycleState'
property :project_number, as: 'projectNumber' property :project_number, :numeric_string => true, as: 'projectNumber'
property :parent, as: 'parent', class: Google::Apis::CloudresourcemanagerV1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1::ResourceId::Representation property :parent, as: 'parent', class: Google::Apis::CloudresourcemanagerV1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1::ResourceId::Representation
hash :labels, as: 'labels'
property :create_time, as: 'createTime' property :create_time, as: 'createTime'
hash :labels, as: 'labels'
property :name, as: 'name'
property :project_id, as: 'projectId'
end end
end end
@ -448,9 +412,9 @@ module Google
class ListOrgPoliciesResponse class ListOrgPoliciesResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :policies, as: 'policies', class: Google::Apis::CloudresourcemanagerV1::OrgPolicy, decorator: Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation collection :policies, as: 'policies', class: Google::Apis::CloudresourcemanagerV1::OrgPolicy, decorator: Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
property :next_page_token, as: 'nextPageToken'
end end
end end
@ -471,28 +435,28 @@ module Google
class OrgPolicy class OrgPolicy
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation 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 :list_policy, as: 'listPolicy', class: Google::Apis::CloudresourcemanagerV1::ListPolicy, decorator: Google::Apis::CloudresourcemanagerV1::ListPolicy::Representation
property :etag, :base64 => true, as: 'etag' property :etag, :base64 => true, as: 'etag'
property :boolean_policy, as: 'booleanPolicy', class: Google::Apis::CloudresourcemanagerV1::BooleanPolicy, decorator: Google::Apis::CloudresourcemanagerV1::BooleanPolicy::Representation property :boolean_policy, as: 'booleanPolicy', class: Google::Apis::CloudresourcemanagerV1::BooleanPolicy, decorator: Google::Apis::CloudresourcemanagerV1::BooleanPolicy::Representation
property :constraint, as: 'constraint' property :constraint, as: 'constraint'
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
end end
end end
class Lien class Lien
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :parent, as: 'parent'
property :create_time, as: 'createTime'
property :name, as: 'name' property :name, as: 'name'
property :reason, as: 'reason' property :reason, as: 'reason'
property :origin, as: 'origin' property :origin, as: 'origin'
collection :restrictions, as: 'restrictions' collection :restrictions, as: 'restrictions'
property :parent, as: 'parent'
property :create_time, as: 'createTime'
end end
end end
@ -522,9 +486,9 @@ module Google
class SetIamPolicyRequest class SetIamPolicyRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :update_mask, as: 'updateMask'
property :policy, as: 'policy', class: Google::Apis::CloudresourcemanagerV1::Policy, decorator: Google::Apis::CloudresourcemanagerV1::Policy::Representation property :policy, as: 'policy', class: Google::Apis::CloudresourcemanagerV1::Policy, decorator: Google::Apis::CloudresourcemanagerV1::Policy::Representation
property :update_mask, as: 'updateMask'
end end
end end
@ -537,12 +501,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 :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 :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
@ -585,9 +549,9 @@ module Google
class SearchOrganizationsRequest class SearchOrganizationsRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :filter, as: 'filter'
property :page_token, as: 'pageToken' property :page_token, as: 'pageToken'
property :page_size, as: 'pageSize' property :page_size, as: 'pageSize'
property :filter, as: 'filter'
end end
end end
@ -641,6 +605,42 @@ module Google
property :type, as: 'type' property :type, as: 'type'
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
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'
end
end
end end
end end
end end

File diff suppressed because it is too large Load Diff

View File

@ -22,6 +22,185 @@ module Google
module Apis module Apis
module CloudresourcemanagerV1beta1 module CloudresourcemanagerV1beta1
# Specifies the audit configuration for a service.
# The configuration determines which permission types are logged, and what
# identities, if any, are exempted from logging.
# An AuditConifg must have one or more AuditLogConfigs.
# If there are AuditConfigs for both `allServices` and a specific service,
# the union of the two AuditConfigs is used for that service: the log_types
# specified in each AuditConfig are enabled, and the exempted_members in each
# AuditConfig are exempted.
# Example Policy with multiple AuditConfigs:
# `
# "audit_configs": [
# `
# "service": "allServices"
# "audit_log_configs": [
# `
# "log_type": "DATA_READ",
# "exempted_members": [
# "user:foo@gmail.com"
# ]
# `,
# `
# "log_type": "DATA_WRITE",
# `,
# `
# "log_type": "ADMIN_READ",
# `
# ]
# `,
# `
# "service": "fooservice@googleapis.com"
# "audit_log_configs": [
# `
# "log_type": "DATA_READ",
# `,
# `
# "log_type": "DATA_WRITE",
# "exempted_members": [
# "user:bar@gmail.com"
# ]
# `
# ]
# `
# ]
# `
# For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
# logging. It also exempts foo@gmail.com from DATA_READ logging, and
# bar@gmail.com from DATA_WRITE logging.
class AuditConfig
include Google::Apis::Core::Hashable
# The configuration for logging of each type of permission.
# Next ID: 4
# Corresponds to the JSON property `auditLogConfigs`
# @return [Array<Google::Apis::CloudresourcemanagerV1beta1::AuditLogConfig>]
attr_accessor :audit_log_configs
# Specifies a service that will be enabled for audit logging.
# For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
# `allServices` is a special value that covers all services.
# Corresponds to the JSON property `service`
# @return [String]
attr_accessor :service
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
@service = args[:service] if args.key?(:service)
end
end
# Identifying information for a single ancestor of a project.
class Ancestor
include Google::Apis::Core::Hashable
# 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 `resourceId`
# @return [Google::Apis::CloudresourcemanagerV1beta1::ResourceId]
attr_accessor :resource_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@resource_id = args[:resource_id] if args.key?(:resource_id)
end
end
# Request message for `SetIamPolicy` method.
class SetIamPolicyRequest
include Google::Apis::Core::Hashable
# Defines an Identity and Access Management (IAM) policy. It is used to
# specify access control policies for Cloud Platform resources.
# A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
# `members` to a `role`, where the members can be user accounts, Google groups,
# Google domains, and service accounts. A `role` is a named list of permissions
# defined by IAM.
# **Example**
# `
# "bindings": [
# `
# "role": "roles/owner",
# "members": [
# "user:mike@example.com",
# "group:admins@example.com",
# "domain:google.com",
# "serviceAccount:my-other-app@appspot.gserviceaccount.com",
# ]
# `,
# `
# "role": "roles/viewer",
# "members": ["user:sean@example.com"]
# `
# ]
# `
# For a description of IAM and its features, see the
# [IAM developer's guide](https://cloud.google.com/iam).
# Corresponds to the JSON property `policy`
# @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
attr_accessor :policy
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
# the fields in the mask will be modified. If no mask is provided, the
# following default mask is used:
# paths: "bindings, etag"
# This field is only used by Cloud IAM.
# Corresponds to the JSON property `updateMask`
# @return [String]
attr_accessor :update_mask
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@policy = args[:policy] if args.key?(:policy)
@update_mask = args[:update_mask] if args.key?(:update_mask)
end
end
# The response returned from the `ListOrganizations` method.
class ListOrganizationsResponse
include Google::Apis::Core::Hashable
# 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
# A pagination token to be used to retrieve the next page of results. If the
# result is too large to fit within the page size specified in the request,
# this field will be set with a token that can be used to fetch the next page
# of results. If this field is empty, it indicates that this response
# contains the last page of results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@organizations = args[:organizations] if args.key?(:organizations)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# Associates `members` with a `role`. # Associates `members` with a `role`.
class Binding class Binding
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -100,6 +279,20 @@ module Google
class Organization class Organization
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The organization's current lifecycle state. Assigned by the server.
# @OutputOnly
# Corresponds to the JSON property `lifecycleState`
# @return [String]
attr_accessor :lifecycle_state
# A friendly string to be used to refer to the Organization in the UI.
# Assigned by the server, set to the primary domain of the G Suite
# customer that owns the organization.
# @OutputOnly
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
# Timestamp when the Organization was created. Assigned by the server. # Timestamp when the Organization was created. Assigned by the server.
# @OutputOnly # @OutputOnly
# Corresponds to the JSON property `creationTime` # Corresponds to the JSON property `creationTime`
@ -129,32 +322,18 @@ module Google
# @return [String] # @return [String]
attr_accessor :organization_id attr_accessor :organization_id
# The organization's current lifecycle state. Assigned by the server.
# @OutputOnly
# Corresponds to the JSON property `lifecycleState`
# @return [String]
attr_accessor :lifecycle_state
# A friendly string to be used to refer to the Organization in the UI.
# Assigned by the server, set to the primary domain of the G Suite
# customer that owns the organization.
# @OutputOnly
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
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)
@lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
@display_name = args[:display_name] if args.key?(:display_name)
@creation_time = args[:creation_time] if args.key?(:creation_time) @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)
@display_name = args[:display_name] if args.key?(:display_name)
end end
end end
@ -228,6 +407,27 @@ module Google
end end
end end
# Response from the GetAncestry method.
class GetAncestryResponse
include Google::Apis::Core::Hashable
# Ancestors are ordered from bottom to top of the resource hierarchy. The
# first ancestor is the project itself, followed by the project's parent,
# etc.
# Corresponds to the JSON property `ancestor`
# @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Ancestor>]
attr_accessor :ancestor
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@ancestor = args[:ancestor] if args.key?(:ancestor)
end
end
# 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
@ -250,27 +450,6 @@ module Google
end end
end end
# Response from the GetAncestry method.
class GetAncestryResponse
include Google::Apis::Core::Hashable
# Ancestors are ordered from bottom to top of the resource hierarchy. The
# first ancestor is the project itself, followed by the project's parent,
# etc.
# Corresponds to the JSON property `ancestor`
# @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Ancestor>]
attr_accessor :ancestor
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@ancestor = args[:ancestor] if args.key?(:ancestor)
end
end
# Provides the configuration for logging a type of permissions. # Provides the configuration for logging a type of permissions.
# Example: # Example:
# ` # `
@ -291,6 +470,11 @@ module Google
class AuditLogConfig class AuditLogConfig
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The log type that this config enables.
# Corresponds to the JSON property `logType`
# @return [String]
attr_accessor :log_type
# Specifies the identities that do not cause logging for this type of # Specifies the identities that do not cause logging for this type of
# permission. # permission.
# Follows the same format of Binding.members. # Follows the same format of Binding.members.
@ -298,19 +482,14 @@ module Google
# @return [Array<String>] # @return [Array<String>]
attr_accessor :exempted_members attr_accessor :exempted_members
# The log type that this config enables.
# Corresponds to the JSON property `logType`
# @return [String]
attr_accessor :log_type
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)
@exempted_members = args[:exempted_members] if args.key?(:exempted_members)
@log_type = args[:log_type] if args.key?(:log_type) @log_type = args[:log_type] if args.key?(:log_type)
@exempted_members = args[:exempted_members] if args.key?(:exempted_members)
end end
end end
@ -323,6 +502,12 @@ module Google
class ListProjectsResponse 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. # Pagination token.
# If the result set is too large to fit in a single response, this 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. # is returned. It encodes the position of the current result cursor.
@ -335,20 +520,14 @@ module Google
# @return [String] # @return [String]
attr_accessor :next_page_token attr_accessor :next_page_token
# 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
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)
@projects = args[:projects] if args.key?(:projects) @projects = args[:projects] if args.key?(:projects)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end end
end end
@ -373,26 +552,11 @@ module Google
class Project class Project
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The Project lifecycle state. # Creation time.
# Read-only. # Read-only.
# Corresponds to the JSON property `lifecycleState` # Corresponds to the JSON property `createTime`
# @return [String] # @return [String]
attr_accessor :lifecycle_state attr_accessor :create_time
# The number uniquely identifying the project.
# Example: <code>415104041262</code>
# Read-only.
# Corresponds to the JSON property `projectNumber`
# @return [String]
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. # The labels associated with this Project.
# Label keys must be between 1 and 63 characters long and must conform # Label keys must be between 1 and 63 characters long and must conform
@ -408,12 +572,6 @@ module Google
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :labels 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. # The user-assigned display name of the Project.
# It must be 4 to 30 characters. # It must be 4 to 30 characters.
# Allowed characters are: lowercase and uppercase letters, numbers, # Allowed characters are: lowercase and uppercase letters, numbers,
@ -434,19 +592,40 @@ module Google
# @return [String] # @return [String]
attr_accessor :project_id attr_accessor :project_id
# 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
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)
@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) @lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
@project_number = args[:project_number] if args.key?(:project_number) @project_number = args[:project_number] if args.key?(:project_number)
@parent = args[:parent] if args.key?(:parent) @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
end end
@ -472,6 +651,64 @@ module Google
end end
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 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
# The type of this operation.
# Corresponds to the JSON property `operationType`
# @return [String]
attr_accessor :operation_type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@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)
@operation_type = args[:operation_type] if args.key?(:operation_type)
end
end
# Defines an Identity and Access Management (IAM) policy. It is used to # Defines an Identity and Access Management (IAM) policy. It is used to
# specify access control policies for Cloud Platform resources. # specify access control policies for Cloud Platform resources.
# A `Policy` consists of a list of `bindings`. A `Binding` binds a list of # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
@ -501,6 +738,18 @@ module Google
class Policy class Policy
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# 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`.
# Multiple `bindings` must not be specified for the same `role`.
# `bindings` with no members will result in an error.
# Corresponds to the JSON property `bindings`
# @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Binding>]
attr_accessor :bindings
# `etag` is used for optimistic concurrency control as a way to help # `etag` is used for optimistic concurrency control as a way to help
# prevent simultaneous updates of a policy from overwriting each other. # prevent simultaneous updates of a policy from overwriting each other.
# It is strongly suggested that systems make use of the `etag` in the # It is strongly suggested that systems make use of the `etag` in the
@ -520,86 +769,16 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :version 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`.
# Multiple `bindings` must not be specified for the same `role`.
# `bindings` with no members will result in an error.
# Corresponds to the JSON property `bindings`
# @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Binding>]
attr_accessor :bindings
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)
@etag = args[:etag] if args.key?(:etag)
@version = args[:version] if args.key?(:version)
@audit_configs = args[:audit_configs] if args.key?(:audit_configs) @audit_configs = args[:audit_configs] if args.key?(:audit_configs)
@bindings = args[:bindings] if args.key?(:bindings) @bindings = args[:bindings] if args.key?(:bindings)
end @etag = args[:etag] if args.key?(:etag)
end @version = args[:version] if args.key?(:version)
# 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
# A classification of the Folder Operation error.
class FolderOperationError
include Google::Apis::Core::Hashable
# The type of operation error experienced.
# Corresponds to the JSON property `errorMessageId`
# @return [String]
attr_accessor :error_message_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@error_message_id = args[:error_message_id] if args.key?(:error_message_id)
end end
end end
@ -632,185 +811,6 @@ module Google
@id = args[:id] if args.key?(:id) @id = args[:id] if args.key?(:id)
end end
end end
# Specifies the audit configuration for a service.
# The configuration determines which permission types are logged, and what
# identities, if any, are exempted from logging.
# An AuditConifg must have one or more AuditLogConfigs.
# If there are AuditConfigs for both `allServices` and a specific service,
# the union of the two AuditConfigs is used for that service: the log_types
# specified in each AuditConfig are enabled, and the exempted_members in each
# AuditConfig are exempted.
# Example Policy with multiple AuditConfigs:
# `
# "audit_configs": [
# `
# "service": "allServices"
# "audit_log_configs": [
# `
# "log_type": "DATA_READ",
# "exempted_members": [
# "user:foo@gmail.com"
# ]
# `,
# `
# "log_type": "DATA_WRITE",
# `,
# `
# "log_type": "ADMIN_READ",
# `
# ]
# `,
# `
# "service": "fooservice@googleapis.com"
# "audit_log_configs": [
# `
# "log_type": "DATA_READ",
# `,
# `
# "log_type": "DATA_WRITE",
# "exempted_members": [
# "user:bar@gmail.com"
# ]
# `
# ]
# `
# ]
# `
# For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
# logging. It also exempts foo@gmail.com from DATA_READ logging, and
# bar@gmail.com from DATA_WRITE logging.
class AuditConfig
include Google::Apis::Core::Hashable
# Specifies a service that will be enabled for audit logging.
# For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
# `allServices` is a special value that covers all services.
# Corresponds to the JSON property `service`
# @return [String]
attr_accessor :service
# The configuration for logging of each type of permission.
# Next ID: 4
# Corresponds to the JSON property `auditLogConfigs`
# @return [Array<Google::Apis::CloudresourcemanagerV1beta1::AuditLogConfig>]
attr_accessor :audit_log_configs
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@service = args[:service] if args.key?(:service)
@audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
end
end
# Identifying information for a single ancestor of a project.
class Ancestor
include Google::Apis::Core::Hashable
# 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 `resourceId`
# @return [Google::Apis::CloudresourcemanagerV1beta1::ResourceId]
attr_accessor :resource_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@resource_id = args[:resource_id] if args.key?(:resource_id)
end
end
# Request message for `SetIamPolicy` method.
class SetIamPolicyRequest
include Google::Apis::Core::Hashable
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
# the fields in the mask will be modified. If no mask is provided, the
# following default mask is used:
# paths: "bindings, etag"
# This field is only used by Cloud IAM.
# Corresponds to the JSON property `updateMask`
# @return [String]
attr_accessor :update_mask
# Defines an Identity and Access Management (IAM) policy. It is used to
# specify access control policies for Cloud Platform resources.
# A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
# `members` to a `role`, where the members can be user accounts, Google groups,
# Google domains, and service accounts. A `role` is a named list of permissions
# defined by IAM.
# **Example**
# `
# "bindings": [
# `
# "role": "roles/owner",
# "members": [
# "user:mike@example.com",
# "group:admins@example.com",
# "domain:google.com",
# "serviceAccount:my-other-app@appspot.gserviceaccount.com",
# ]
# `,
# `
# "role": "roles/viewer",
# "members": ["user:sean@example.com"]
# `
# ]
# `
# For a description of IAM and its features, see the
# [IAM developer's guide](https://cloud.google.com/iam).
# Corresponds to the JSON property `policy`
# @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
attr_accessor :policy
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@update_mask = args[:update_mask] if args.key?(:update_mask)
@policy = args[:policy] if args.key?(:policy)
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
end end
end end
end end

View File

@ -22,6 +22,30 @@ module Google
module Apis module Apis
module CloudresourcemanagerV1beta1 module CloudresourcemanagerV1beta1
class AuditConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Ancestor
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 ListOrganizationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Binding class Binding
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -64,13 +88,13 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class OrganizationOwner class GetAncestryResponse
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 GetAncestryResponse class OrganizationOwner
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,7 +130,7 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class Policy class FolderOperationError
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,7 +142,7 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class FolderOperationError 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
@ -131,27 +155,38 @@ module Google
end end
class AuditConfig class AuditConfig
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::CloudresourcemanagerV1beta1::AuditLogConfig, decorator: Google::Apis::CloudresourcemanagerV1beta1::AuditLogConfig::Representation
include Google::Apis::Core::JsonObjectSupport property :service, as: 'service'
end
end end
class Ancestor class Ancestor
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
property :resource_id, as: 'resourceId', class: Google::Apis::CloudresourcemanagerV1beta1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1beta1::ResourceId::Representation
include Google::Apis::Core::JsonObjectSupport end
end end
class SetIamPolicyRequest class SetIamPolicyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
property :policy, as: 'policy', class: Google::Apis::CloudresourcemanagerV1beta1::Policy, decorator: Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
include Google::Apis::Core::JsonObjectSupport property :update_mask, as: 'updateMask'
end
end end
class ListOrganizationsResponse class ListOrganizationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end # @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :organizations, as: 'organizations', class: Google::Apis::CloudresourcemanagerV1beta1::Organization, decorator: Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
include Google::Apis::Core::JsonObjectSupport property :next_page_token, as: 'nextPageToken'
end
end end
class Binding class Binding
@ -177,13 +212,13 @@ module Google
class Organization class Organization
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :lifecycle_state, as: 'lifecycleState'
property :display_name, as: 'displayName'
property :creation_time, as: 'creationTime' 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 :display_name, as: 'displayName'
end end
end end
@ -209,13 +244,6 @@ module Google
end end
end end
class OrganizationOwner
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :directory_customer_id, as: 'directoryCustomerId'
end
end
class GetAncestryResponse class GetAncestryResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -224,20 +252,27 @@ module Google
end end
end end
class OrganizationOwner
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :directory_customer_id, as: 'directoryCustomerId'
end
end
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
class ListProjectsResponse class ListProjectsResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :projects, as: 'projects', class: Google::Apis::CloudresourcemanagerV1beta1::Project, decorator: Google::Apis::CloudresourcemanagerV1beta1::Project::Representation collection :projects, as: 'projects', class: Google::Apis::CloudresourcemanagerV1beta1::Project, decorator: Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
property :next_page_token, as: 'nextPageToken'
end end
end end
@ -250,14 +285,14 @@ module Google
class Project class Project
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :lifecycle_state, as: 'lifecycleState'
property :project_number, 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 :create_time, as: 'createTime'
hash :labels, as: 'labels'
property :name, as: 'name' property :name, as: 'name'
property :project_id, as: 'projectId' 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::CloudresourcemanagerV1beta1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1beta1::ResourceId::Representation
end end
end end
@ -268,32 +303,32 @@ module Google
end end
end end
class Policy class FolderOperationError
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :etag, :base64 => true, as: 'etag' property :error_message_id, as: 'errorMessageId'
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 end
class FolderOperation class FolderOperation
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :operation_type, as: 'operationType'
property :display_name, as: 'displayName' property :display_name, as: 'displayName'
property :source_parent, as: 'sourceParent' property :source_parent, as: 'sourceParent'
property :destination_parent, as: 'destinationParent' property :destination_parent, as: 'destinationParent'
property :operation_type, as: 'operationType'
end end
end end
class FolderOperationError class Policy
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :error_message_id, as: 'errorMessageId' 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
property :etag, :base64 => true, as: 'etag'
property :version, as: 'version'
end end
end end
@ -304,41 +339,6 @@ module Google
property :id, as: 'id' property :id, as: 'id'
end end
end end
class AuditConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :service, as: 'service'
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::CloudresourcemanagerV1beta1::AuditLogConfig, decorator: Google::Apis::CloudresourcemanagerV1beta1::AuditLogConfig::Representation
end
end
class Ancestor
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :resource_id, as: 'resourceId', class: Google::Apis::CloudresourcemanagerV1beta1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1beta1::ResourceId::Representation
end
end
class SetIamPolicyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :update_mask, as: 'updateMask'
property :policy, as: 'policy', class: Google::Apis::CloudresourcemanagerV1beta1::Policy, decorator: Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
end
end
class ListOrganizationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :organizations, as: 'organizations', class: Google::Apis::CloudresourcemanagerV1beta1::Organization, decorator: Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
end
end
end end
end end
end end

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