Regen APIs and bump version
This commit also adds `dfareporting:v2.8`.
This commit is contained in:
1 parent
ff5eb3670d
commit
7b5a460934
252 files changed
+123218
-52401
No files matched your search
@@ -20,13 +20,13 @@ module Google
|
||||
module Apis
|
||||
# Accelerated Mobile Pages (AMP) URL API
|
||||
#
|
||||
# This API contains a single method, batchGet. Call this method to retrieve the
|
||||
# AMP URL (and equivalent AMP Cache URL) for given public URL(s).
|
||||
# Retrieves the list of AMP URL (and equivalent AMP Cache URL) for a given list
|
||||
# of public URL(s).
|
||||
#
|
||||
# @see https://developers.google.com/amp/cache/
|
||||
module AcceleratedmobilepageurlV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20170329'
|
||||
REVISION = '20170504'
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -22,34 +22,6 @@ module Google
|
||||
module Apis
|
||||
module AcceleratedmobilepageurlV1
|
||||
|
||||
# Batch AMP URL response.
|
||||
class BatchGetAmpUrlsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# For each URL in BatchAmpUrlsRequest, the URL response. The response might
|
||||
# not be in the same order as URLs in the batch request.
|
||||
# If BatchAmpUrlsRequest contains duplicate URLs, AmpUrl is generated
|
||||
# only once.
|
||||
# Corresponds to the JSON property `ampUrls`
|
||||
# @return [Array<Google::Apis::AcceleratedmobilepageurlV1::AmpUrl>]
|
||||
attr_accessor :amp_urls
|
||||
|
||||
# The errors for requested URLs that have no AMP URL.
|
||||
# Corresponds to the JSON property `urlErrors`
|
||||
# @return [Array<Google::Apis::AcceleratedmobilepageurlV1::AmpUrlError>]
|
||||
attr_accessor :url_errors
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@amp_urls = args[:amp_urls] if args.key?(:amp_urls)
|
||||
@url_errors = args[:url_errors] if args.key?(:url_errors)
|
||||
end
|
||||
end
|
||||
|
||||
# AMP URL response for a requested URL.
|
||||
class AmpUrl
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -139,6 +111,34 @@ module Google
|
||||
@lookup_strategy = args[:lookup_strategy] if args.key?(:lookup_strategy)
|
||||
end
|
||||
end
|
||||
|
||||
# Batch AMP URL response.
|
||||
class BatchGetAmpUrlsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# For each URL in BatchAmpUrlsRequest, the URL response. The response might
|
||||
# not be in the same order as URLs in the batch request.
|
||||
# If BatchAmpUrlsRequest contains duplicate URLs, AmpUrl is generated
|
||||
# only once.
|
||||
# Corresponds to the JSON property `ampUrls`
|
||||
# @return [Array<Google::Apis::AcceleratedmobilepageurlV1::AmpUrl>]
|
||||
attr_accessor :amp_urls
|
||||
|
||||
# The errors for requested URLs that have no AMP URL.
|
||||
# Corresponds to the JSON property `urlErrors`
|
||||
# @return [Array<Google::Apis::AcceleratedmobilepageurlV1::AmpUrlError>]
|
||||
attr_accessor :url_errors
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@amp_urls = args[:amp_urls] if args.key?(:amp_urls)
|
||||
@url_errors = args[:url_errors] if args.key?(:url_errors)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -22,12 +22,6 @@ module Google
|
||||
module Apis
|
||||
module AcceleratedmobilepageurlV1
|
||||
|
||||
class BatchGetAmpUrlsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AmpUrl
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -47,13 +41,9 @@ module Google
|
||||
end
|
||||
|
||||
class BatchGetAmpUrlsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :amp_urls, as: 'ampUrls', class: Google::Apis::AcceleratedmobilepageurlV1::AmpUrl, decorator: Google::Apis::AcceleratedmobilepageurlV1::AmpUrl::Representation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
collection :url_errors, as: 'urlErrors', class: Google::Apis::AcceleratedmobilepageurlV1::AmpUrlError, decorator: Google::Apis::AcceleratedmobilepageurlV1::AmpUrlError::Representation
|
||||
|
||||
end
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AmpUrl
|
||||
@@ -81,6 +71,16 @@ module Google
|
||||
property :lookup_strategy, as: 'lookupStrategy'
|
||||
end
|
||||
end
|
||||
|
||||
class BatchGetAmpUrlsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :amp_urls, as: 'ampUrls', class: Google::Apis::AcceleratedmobilepageurlV1::AmpUrl, decorator: Google::Apis::AcceleratedmobilepageurlV1::AmpUrl::Representation
|
||||
|
||||
collection :url_errors, as: 'urlErrors', class: Google::Apis::AcceleratedmobilepageurlV1::AmpUrlError, decorator: Google::Apis::AcceleratedmobilepageurlV1::AmpUrlError::Representation
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -22,8 +22,8 @@ module Google
|
||||
module AcceleratedmobilepageurlV1
|
||||
# Accelerated Mobile Pages (AMP) URL API
|
||||
#
|
||||
# This API contains a single method, batchGet. Call this method to retrieve the
|
||||
# AMP URL (and equivalent AMP Cache URL) for given public URL(s).
|
||||
# Retrieves the list of AMP URL (and equivalent AMP Cache URL) for a given list
|
||||
# of public URL(s).
|
||||
#
|
||||
# @example
|
||||
# require 'google/apis/acceleratedmobilepageurl_v1'
|
||||
|
||||
@@ -26,7 +26,7 @@ module Google
|
||||
# @see https://developers.google.com/ad-exchange/buyer-rest/guides/client-access/
|
||||
module Adexchangebuyer2V2beta1
|
||||
VERSION = 'V2beta1'
|
||||
REVISION = '20170331'
|
||||
REVISION = '20170503'
|
||||
|
||||
# Manage your Ad Exchange buyer account configuration
|
||||
AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -22,6 +22,60 @@ module Google
|
||||
module Apis
|
||||
module Adexchangebuyer2V2beta1
|
||||
|
||||
class AppContext
|
||||
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 ListClientsResponse
|
||||
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 Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -40,13 +94,13 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListClientUserInvitationsResponse
|
||||
class ListClientUsersResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListClientUsersResponse
|
||||
class ListClientUserInvitationsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
@@ -76,13 +130,13 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class FilteringStats
|
||||
class Creative
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Creative
|
||||
class FilteringStats
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
@@ -106,13 +160,13 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListDealAssociationsResponse
|
||||
class AddDealAssociationRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AddDealAssociationRequest
|
||||
class ListDealAssociationsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
@@ -155,57 +209,100 @@ module Google
|
||||
end
|
||||
|
||||
class AppContext
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :app_types, as: 'appTypes'
|
||||
end
|
||||
end
|
||||
|
||||
class NativeContent
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :video_url, as: 'videoUrl'
|
||||
property :logo, as: 'logo', class: Google::Apis::Adexchangebuyer2V2beta1::Image, decorator: Google::Apis::Adexchangebuyer2V2beta1::Image::Representation
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
property :click_link_url, as: 'clickLinkUrl'
|
||||
property :price_display_text, as: 'priceDisplayText'
|
||||
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'
|
||||
end
|
||||
end
|
||||
|
||||
class ListClientsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :clients, as: 'clients', class: Google::Apis::Adexchangebuyer2V2beta1::Client, decorator: Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
end
|
||||
end
|
||||
|
||||
class SecurityContext
|
||||
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
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :securities, as: 'securities'
|
||||
end
|
||||
end
|
||||
|
||||
class ListCreativesResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :creatives, as: 'creatives', class: Google::Apis::Adexchangebuyer2V2beta1::Creative, decorator: Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
end
|
||||
end
|
||||
|
||||
class HtmlContent
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :height, as: 'height'
|
||||
property :width, as: 'width'
|
||||
property :snippet, as: 'snippet'
|
||||
end
|
||||
end
|
||||
|
||||
class ServingContext
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :platform, as: 'platform', class: Google::Apis::Adexchangebuyer2V2beta1::PlatformContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::PlatformContext::Representation
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
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
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Image
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :width, as: 'width'
|
||||
property :url, as: 'url'
|
||||
property :height, as: 'height'
|
||||
end
|
||||
end
|
||||
|
||||
class Reason
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :count, :numeric_string => true, as: 'count'
|
||||
property :status, as: 'status'
|
||||
end
|
||||
end
|
||||
|
||||
class VideoContent
|
||||
@@ -218,9 +315,9 @@ module Google
|
||||
class ClientUserInvitation
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :invitation_id, :numeric_string => true, as: 'invitationId'
|
||||
property :email, as: 'email'
|
||||
property :client_account_id, :numeric_string => true, as: 'clientAccountId'
|
||||
property :invitation_id, :numeric_string => true, as: 'invitationId'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -231,15 +328,6 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class ListClientUserInvitationsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
collection :invitations, as: 'invitations', class: Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation, decorator: Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class ListClientUsersResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -249,6 +337,15 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class ListClientUserInvitationsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
collection :invitations, as: 'invitations', class: Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation, decorator: Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class LocationContext
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -266,54 +363,25 @@ module Google
|
||||
class ClientUser
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :status, as: 'status'
|
||||
property :user_id, :numeric_string => true, as: 'userId'
|
||||
property :email, as: 'email'
|
||||
property :client_account_id, :numeric_string => true, as: 'clientAccountId'
|
||||
property :status, as: 'status'
|
||||
end
|
||||
end
|
||||
|
||||
class CreativeDealAssociation
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :account_id, as: 'accountId'
|
||||
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'
|
||||
@@ -326,6 +394,35 @@ module Google
|
||||
property :video, as: 'video', class: Google::Apis::Adexchangebuyer2V2beta1::VideoContent, decorator: Google::Apis::Adexchangebuyer2V2beta1::VideoContent::Representation
|
||||
|
||||
property :agency_id, :numeric_string => true, 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
|
||||
|
||||
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
|
||||
|
||||
@@ -354,19 +451,10 @@ module Google
|
||||
class Correction
|
||||
# @private
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
@@ -378,6 +466,15 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class ListDealAssociationsResponse
|
||||
# @private
|
||||
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
|
||||
end
|
||||
|
||||
class Disapproval
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -395,20 +492,20 @@ module Google
|
||||
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
|
||||
|
||||
property :status, as: 'status'
|
||||
end
|
||||
end
|
||||
|
||||
class Date
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :month, as: 'month'
|
||||
property :year, as: 'year'
|
||||
property :day, as: 'day'
|
||||
property :month, as: 'month'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -424,103 +521,6 @@ module Google
|
||||
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
|
||||
@@ -319,6 +319,47 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Updates an existing client user.
|
||||
# Only the user status can be changed on update.
|
||||
# @param [Fixnum] account_id
|
||||
# Numerical account ID of the client's sponsor buyer. (required)
|
||||
# @param [Fixnum] client_account_id
|
||||
# Numerical account ID of the client buyer that the user to be retrieved
|
||||
# is associated with. (required)
|
||||
# @param [Fixnum] user_id
|
||||
# Numerical identifier of the user to retrieve. (required)
|
||||
# @param [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] client_user_object
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUser]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def update_account_client_user(account_id, client_account_id, user_id, client_user_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:put, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}', options)
|
||||
command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
|
||||
command.request_object = client_user_object
|
||||
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
|
||||
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUser
|
||||
command.params['accountId'] = account_id unless account_id.nil?
|
||||
command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
|
||||
command.params['userId'] = user_id unless user_id.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists all the known client users for a specified
|
||||
# sponsor buyer account ID.
|
||||
# @param [Fixnum] account_id
|
||||
@@ -406,47 +447,6 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Updates an existing client user.
|
||||
# Only the user status can be changed on update.
|
||||
# @param [Fixnum] account_id
|
||||
# Numerical account ID of the client's sponsor buyer. (required)
|
||||
# @param [Fixnum] client_account_id
|
||||
# Numerical account ID of the client buyer that the user to be retrieved
|
||||
# is associated with. (required)
|
||||
# @param [Fixnum] user_id
|
||||
# Numerical identifier of the user to retrieve. (required)
|
||||
# @param [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] client_user_object
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUser]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def update_account_client_user(account_id, client_account_id, user_id, client_user_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:put, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}', options)
|
||||
command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
|
||||
command.request_object = client_user_object
|
||||
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
|
||||
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUser
|
||||
command.params['accountId'] = account_id unless account_id.nil?
|
||||
command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
|
||||
command.params['userId'] = user_id unless user_id.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists creatives.
|
||||
# @param [String] account_id
|
||||
# The account to list the creatives from.
|
||||
@@ -708,6 +708,11 @@ module Google
|
||||
# @param [String] creative_id
|
||||
# The creative ID to list the associations from.
|
||||
# Specify "-" to list all creatives under the above account.
|
||||
# @param [String] page_token
|
||||
# A token identifying a page of results the server should return.
|
||||
# Typically, this is the value of
|
||||
# ListDealAssociationsResponse.next_page_token
|
||||
# returned from the previous call to 'ListDealAssociations' method.
|
||||
# @param [Fixnum] page_size
|
||||
# Requested page size. Server may return fewer associations than requested.
|
||||
# If unspecified, server will pick an appropriate default.
|
||||
@@ -725,11 +730,6 @@ module Google
|
||||
# not_checked`
|
||||
# </ul>
|
||||
# Example: 'dealsId=12345 AND dealsStatus:disapproved'
|
||||
# @param [String] page_token
|
||||
# A token identifying a page of results the server should return.
|
||||
# Typically, this is the value of
|
||||
# ListDealAssociationsResponse.next_page_token
|
||||
# returned from the previous call to 'ListDealAssociations' method.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
@@ -747,15 +747,15 @@ module Google
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_account_creative_deal_associations(account_id, creative_id, page_size: nil, query: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
def list_account_creative_deal_associations(account_id, creative_id, page_token: nil, page_size: nil, query: nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations', options)
|
||||
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListDealAssociationsResponse::Representation
|
||||
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListDealAssociationsResponse
|
||||
command.params['accountId'] = account_id unless account_id.nil?
|
||||
command.params['creativeId'] = creative_id unless creative_id.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['query'] = query unless query.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
|
||||
@@ -26,7 +26,7 @@ module Google
|
||||
# @see https://developers.google.com/admin-sdk/directory/
|
||||
module AdminDirectoryV1
|
||||
VERSION = 'DirectoryV1'
|
||||
REVISION = '20170216'
|
||||
REVISION = '20170419'
|
||||
|
||||
# View and manage customer related information
|
||||
AUTH_ADMIN_DIRECTORY_CUSTOMER = 'https://www.googleapis.com/auth/admin.directory.customer'
|
||||
|
||||
@@ -418,7 +418,7 @@ module Google
|
||||
attr_accessor :last_enrollment_time
|
||||
|
||||
# Date and time the device was last synchronized with the policy settings in the
|
||||
# Google Apps administrator control panel (Read-only)
|
||||
# G Suite administrator control panel (Read-only)
|
||||
# Corresponds to the JSON property `lastSync`
|
||||
# @return [DateTime]
|
||||
attr_accessor :last_sync
|
||||
@@ -663,7 +663,7 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :etag
|
||||
|
||||
# The unique ID for the customer's Google account. (Readonly)
|
||||
# The unique ID for the customer's G Suite account. (Readonly)
|
||||
# Corresponds to the JSON property `id`
|
||||
# @return [String]
|
||||
attr_accessor :id
|
||||
@@ -1230,7 +1230,7 @@ module Google
|
||||
attr_accessor :etag
|
||||
|
||||
# Date and time the device was first synchronized with the policy settings in
|
||||
# the Google Apps administrator control panel (Read-only)
|
||||
# the G Suite administrator control panel (Read-only)
|
||||
# Corresponds to the JSON property `firstSync`
|
||||
# @return [DateTime]
|
||||
attr_accessor :first_sync
|
||||
@@ -1261,7 +1261,7 @@ module Google
|
||||
attr_accessor :kind
|
||||
|
||||
# Date and time the device was last synchronized with the policy settings in the
|
||||
# Google Apps administrator control panel (Read-only)
|
||||
# G Suite administrator control panel (Read-only)
|
||||
# Corresponds to the JSON property `lastSync`
|
||||
# @return [DateTime]
|
||||
attr_accessor :last_sync
|
||||
@@ -2326,7 +2326,7 @@ module Google
|
||||
attr_accessor :change_password_at_next_login
|
||||
alias_method :change_password_at_next_login?, :change_password_at_next_login
|
||||
|
||||
# User's Google account creation time. (Read-only)
|
||||
# User's G Suite account creation time. (Read-only)
|
||||
# Corresponds to the JSON property `creationTime`
|
||||
# @return [DateTime]
|
||||
attr_accessor :creation_time
|
||||
@@ -2428,6 +2428,11 @@ module Google
|
||||
# @return [DateTime]
|
||||
attr_accessor :last_login_time
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `locations`
|
||||
# @return [Object]
|
||||
attr_accessor :locations
|
||||
|
||||
# JSON template for name of a user in Directory API.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [Google::Apis::AdminDirectoryV1::UserName]
|
||||
@@ -2538,6 +2543,7 @@ module Google
|
||||
@is_mailbox_setup = args[:is_mailbox_setup] if args.key?(:is_mailbox_setup)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@last_login_time = args[:last_login_time] if args.key?(:last_login_time)
|
||||
@locations = args[:locations] if args.key?(:locations)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@non_editable_aliases = args[:non_editable_aliases] if args.key?(:non_editable_aliases)
|
||||
@notes = args[:notes] if args.key?(:notes)
|
||||
@@ -2808,6 +2814,68 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# JSON template for a location entry.
|
||||
class UserLocation
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Textual location. This is most useful for display purposes to concisely
|
||||
# describe the location. E.g. "Mountain View, CA", "Near Seattle", "US-NYC-9TH
|
||||
# 9A209A".
|
||||
# Corresponds to the JSON property `area`
|
||||
# @return [String]
|
||||
attr_accessor :area
|
||||
|
||||
# Building Identifier.
|
||||
# Corresponds to the JSON property `buildingId`
|
||||
# @return [String]
|
||||
attr_accessor :building_id
|
||||
|
||||
# Custom Type.
|
||||
# Corresponds to the JSON property `customType`
|
||||
# @return [String]
|
||||
attr_accessor :custom_type
|
||||
|
||||
# Most specific textual code of individual desk location.
|
||||
# Corresponds to the JSON property `deskCode`
|
||||
# @return [String]
|
||||
attr_accessor :desk_code
|
||||
|
||||
# Floor name/number.
|
||||
# Corresponds to the JSON property `floorName`
|
||||
# @return [String]
|
||||
attr_accessor :floor_name
|
||||
|
||||
# Floor Section. More specific location within the floor. E.g. if a floor is
|
||||
# divided into sections "A", "B", and "C", this field would identify one of
|
||||
# those values.
|
||||
# Corresponds to the JSON property `floorSection`
|
||||
# @return [String]
|
||||
attr_accessor :floor_section
|
||||
|
||||
# Each entry can have a type which indicates standard types of that entry. For
|
||||
# example location could be of types default and desk. In addition to standard
|
||||
# type, an entry can have a custom type and can give it any name. Such types
|
||||
# should have "custom" as type and also have a customType value.
|
||||
# Corresponds to the JSON property `type`
|
||||
# @return [String]
|
||||
attr_accessor :type
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@area = args[:area] if args.key?(:area)
|
||||
@building_id = args[:building_id] if args.key?(:building_id)
|
||||
@custom_type = args[:custom_type] if args.key?(:custom_type)
|
||||
@desk_code = args[:desk_code] if args.key?(:desk_code)
|
||||
@floor_name = args[:floor_name] if args.key?(:floor_name)
|
||||
@floor_section = args[:floor_section] if args.key?(:floor_section)
|
||||
@type = args[:type] if args.key?(:type)
|
||||
end
|
||||
end
|
||||
|
||||
# JSON request template for setting/revoking admin status of a user in Directory
|
||||
# API.
|
||||
class UserMakeAdmin
|
||||
@@ -3051,7 +3119,7 @@ module Google
|
||||
class UserPosixAccount
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The GECOS (user information) entry for this account.
|
||||
# The GECOS (user information) for this account.
|
||||
# Corresponds to the JSON property `gecos`
|
||||
# @return [String]
|
||||
attr_accessor :gecos
|
||||
@@ -3082,7 +3150,7 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :system_id
|
||||
|
||||
# The user ID.
|
||||
# The POSIX compliant user ID.
|
||||
# Corresponds to the JSON property `uid`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :uid
|
||||
|
||||
@@ -316,6 +316,12 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class UserLocation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class UserMakeAdmin
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -989,6 +995,7 @@ module Google
|
||||
property :kind, as: 'kind'
|
||||
property :last_login_time, as: 'lastLoginTime', type: DateTime
|
||||
|
||||
property :locations, as: 'locations'
|
||||
property :name, as: 'name', class: Google::Apis::AdminDirectoryV1::UserName, decorator: Google::Apis::AdminDirectoryV1::UserName::Representation
|
||||
|
||||
collection :non_editable_aliases, as: 'nonEditableAliases'
|
||||
@@ -1067,6 +1074,19 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class UserLocation
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :area, as: 'area'
|
||||
property :building_id, as: 'buildingId'
|
||||
property :custom_type, as: 'customType'
|
||||
property :desk_code, as: 'deskCode'
|
||||
property :floor_name, as: 'floorName'
|
||||
property :floor_section, as: 'floorSection'
|
||||
property :type, as: 'type'
|
||||
end
|
||||
end
|
||||
|
||||
class UserMakeAdmin
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
||||
@@ -201,9 +201,9 @@ module Google
|
||||
|
||||
# Take action on Chrome OS Device
|
||||
# @param [String] customer_id
|
||||
# Immutable id of the Google Apps account
|
||||
# Immutable ID of the G Suite account
|
||||
# @param [String] resource_id
|
||||
# Immutable id of Chrome OS Device
|
||||
# Immutable ID of Chrome OS Device
|
||||
# @param [Google::Apis::AdminDirectoryV1::ChromeOsDeviceAction] chrome_os_device_action_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -240,9 +240,9 @@ module Google
|
||||
|
||||
# Retrieve Chrome OS Device
|
||||
# @param [String] customer_id
|
||||
# Immutable id of the Google Apps account
|
||||
# Immutable ID of the G Suite account
|
||||
# @param [String] device_id
|
||||
# Immutable id of Chrome OS Device
|
||||
# Immutable ID of Chrome OS Device
|
||||
# @param [String] projection
|
||||
# Restrict information returned to a set of selected fields.
|
||||
# @param [String] fields
|
||||
@@ -281,7 +281,7 @@ module Google
|
||||
|
||||
# Retrieve all Chrome OS Devices of a customer (paginated)
|
||||
# @param [String] customer_id
|
||||
# Immutable id of the Google Apps account
|
||||
# Immutable ID of the G Suite account
|
||||
# @param [Fixnum] max_results
|
||||
# Maximum number of results to return. Default is 100
|
||||
# @param [String] order_by
|
||||
@@ -336,9 +336,9 @@ module Google
|
||||
|
||||
# Update Chrome OS Device. This method supports patch semantics.
|
||||
# @param [String] customer_id
|
||||
# Immutable id of the Google Apps account
|
||||
# Immutable ID of the G Suite account
|
||||
# @param [String] device_id
|
||||
# Immutable id of Chrome OS Device
|
||||
# Immutable ID of Chrome OS Device
|
||||
# @param [Google::Apis::AdminDirectoryV1::ChromeOsDevice] chrome_os_device_object
|
||||
# @param [String] projection
|
||||
# Restrict information returned to a set of selected fields.
|
||||
@@ -380,9 +380,9 @@ module Google
|
||||
|
||||
# Update Chrome OS Device
|
||||
# @param [String] customer_id
|
||||
# Immutable id of the Google Apps account
|
||||
# Immutable ID of the G Suite account
|
||||
# @param [String] device_id
|
||||
# Immutable id of Chrome OS Device
|
||||
# Immutable ID of Chrome OS Device
|
||||
# @param [Google::Apis::AdminDirectoryV1::ChromeOsDevice] chrome_os_device_object
|
||||
# @param [String] projection
|
||||
# Restrict information returned to a set of selected fields.
|
||||
@@ -535,7 +535,7 @@ module Google
|
||||
|
||||
# Deletes a Domain Alias of the customer.
|
||||
# @param [String] customer
|
||||
# Immutable id of the Google Apps account.
|
||||
# Immutable ID of the G Suite account.
|
||||
# @param [String] domain_alias_name
|
||||
# Name of domain alias to be retrieved.
|
||||
# @param [String] fields
|
||||
@@ -571,7 +571,7 @@ module Google
|
||||
|
||||
# Retrieves a domain alias of the customer.
|
||||
# @param [String] customer
|
||||
# Immutable id of the Google Apps account.
|
||||
# Immutable ID of the G Suite account.
|
||||
# @param [String] domain_alias_name
|
||||
# Name of domain alias to be retrieved.
|
||||
# @param [String] fields
|
||||
@@ -609,7 +609,7 @@ module Google
|
||||
|
||||
# Inserts a Domain alias of the customer.
|
||||
# @param [String] customer
|
||||
# Immutable id of the Google Apps account.
|
||||
# Immutable ID of the G Suite account.
|
||||
# @param [Google::Apis::AdminDirectoryV1::DomainAlias] domain_alias_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -647,7 +647,7 @@ module Google
|
||||
|
||||
# Lists the domain aliases of the customer.
|
||||
# @param [String] customer
|
||||
# Immutable id of the Google Apps account.
|
||||
# Immutable ID of the G Suite account.
|
||||
# @param [String] parent_domain_name
|
||||
# Name of the parent domain for which domain aliases are to be fetched.
|
||||
# @param [String] fields
|
||||
@@ -685,7 +685,7 @@ module Google
|
||||
|
||||
# Deletes a domain of the customer.
|
||||
# @param [String] customer
|
||||
# Immutable id of the Google Apps account.
|
||||
# Immutable ID of the G Suite account.
|
||||
# @param [String] domain_name
|
||||
# Name of domain to be deleted
|
||||
# @param [String] fields
|
||||
@@ -721,7 +721,7 @@ module Google
|
||||
|
||||
# Retrieves a domain of the customer.
|
||||
# @param [String] customer
|
||||
# Immutable id of the Google Apps account.
|
||||
# Immutable ID of the G Suite account.
|
||||
# @param [String] domain_name
|
||||
# Name of domain to be retrieved
|
||||
# @param [String] fields
|
||||
@@ -759,7 +759,7 @@ module Google
|
||||
|
||||
# Inserts a domain of the customer.
|
||||
# @param [String] customer
|
||||
# Immutable id of the Google Apps account.
|
||||
# Immutable ID of the G Suite account.
|
||||
# @param [Google::Apis::AdminDirectoryV1::Domains] domains_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -797,7 +797,7 @@ module Google
|
||||
|
||||
# Lists the domains of the customer.
|
||||
# @param [String] customer
|
||||
# Immutable id of the Google Apps account.
|
||||
# Immutable ID of the G Suite account.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -935,7 +935,7 @@ module Google
|
||||
|
||||
# Retrieve all groups in a domain (paginated)
|
||||
# @param [String] customer
|
||||
# Immutable id of the Google Apps account. In case of multi-domain, to fetch all
|
||||
# Immutable ID of the G Suite account. In case of multi-domain, to fetch all
|
||||
# groups for a customer, fill this field instead of domain.
|
||||
# @param [String] domain
|
||||
# Name of the domain. Fill this field to get groups from only this domain. To
|
||||
@@ -1415,9 +1415,9 @@ module Google
|
||||
|
||||
# Take action on Mobile Device
|
||||
# @param [String] customer_id
|
||||
# Immutable id of the Google Apps account
|
||||
# Immutable ID of the G Suite account
|
||||
# @param [String] resource_id
|
||||
# Immutable id of Mobile Device
|
||||
# Immutable ID of Mobile Device
|
||||
# @param [Google::Apis::AdminDirectoryV1::MobileDeviceAction] mobile_device_action_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -1454,9 +1454,9 @@ module Google
|
||||
|
||||
# Delete Mobile Device
|
||||
# @param [String] customer_id
|
||||
# Immutable id of the Google Apps account
|
||||
# Immutable ID of the G Suite account
|
||||
# @param [String] resource_id
|
||||
# Immutable id of Mobile Device
|
||||
# Immutable ID of Mobile Device
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -1490,9 +1490,9 @@ module Google
|
||||
|
||||
# Retrieve Mobile Device
|
||||
# @param [String] customer_id
|
||||
# Immutable id of the Google Apps account
|
||||
# Immutable ID of the G Suite account
|
||||
# @param [String] resource_id
|
||||
# Immutable id of Mobile Device
|
||||
# Immutable ID of Mobile Device
|
||||
# @param [String] projection
|
||||
# Restrict information returned to a set of selected fields.
|
||||
# @param [String] fields
|
||||
@@ -1531,7 +1531,7 @@ module Google
|
||||
|
||||
# Retrieve all Mobile Devices of a customer (paginated)
|
||||
# @param [String] customer_id
|
||||
# Immutable id of the Google Apps account
|
||||
# Immutable ID of the G Suite account
|
||||
# @param [Fixnum] max_results
|
||||
# Maximum number of results to return. Default is 100
|
||||
# @param [String] order_by
|
||||
@@ -1586,7 +1586,7 @@ module Google
|
||||
|
||||
# Deletes a notification
|
||||
# @param [String] customer
|
||||
# The unique ID for the customer's Google account. The customerId is also
|
||||
# The unique ID for the customer's G Suite account. The customerId is also
|
||||
# returned as part of the Users resource.
|
||||
# @param [String] notification_id
|
||||
# The unique ID of the notification.
|
||||
@@ -1623,7 +1623,7 @@ module Google
|
||||
|
||||
# Retrieves a notification.
|
||||
# @param [String] customer
|
||||
# The unique ID for the customer's Google account. The customerId is also
|
||||
# The unique ID for the customer's G Suite account. The customerId is also
|
||||
# returned as part of the Users resource.
|
||||
# @param [String] notification_id
|
||||
# The unique ID of the notification.
|
||||
@@ -1662,7 +1662,7 @@ module Google
|
||||
|
||||
# Retrieves a list of notifications.
|
||||
# @param [String] customer
|
||||
# The unique ID for the customer's Google account.
|
||||
# The unique ID for the customer's G Suite account.
|
||||
# @param [String] language
|
||||
# The ISO 639-1 code of the language notifications are returned in. The default
|
||||
# is English (en).
|
||||
@@ -1707,7 +1707,7 @@ module Google
|
||||
|
||||
# Updates a notification. This method supports patch semantics.
|
||||
# @param [String] customer
|
||||
# The unique ID for the customer's Google account.
|
||||
# The unique ID for the customer's G Suite account.
|
||||
# @param [String] notification_id
|
||||
# The unique ID of the notification.
|
||||
# @param [Google::Apis::AdminDirectoryV1::Notification] notification_object
|
||||
@@ -1748,7 +1748,7 @@ module Google
|
||||
|
||||
# Updates a notification.
|
||||
# @param [String] customer
|
||||
# The unique ID for the customer's Google account.
|
||||
# The unique ID for the customer's G Suite account.
|
||||
# @param [String] notification_id
|
||||
# The unique ID of the notification.
|
||||
# @param [Google::Apis::AdminDirectoryV1::Notification] notification_object
|
||||
@@ -1789,7 +1789,7 @@ module Google
|
||||
|
||||
# Remove Organization Unit
|
||||
# @param [String] customer_id
|
||||
# Immutable id of the Google Apps account
|
||||
# Immutable ID of the G Suite account
|
||||
# @param [Array<String>, String] org_unit_path
|
||||
# Full path of the organization unit or its Id
|
||||
# @param [String] fields
|
||||
@@ -1825,7 +1825,7 @@ module Google
|
||||
|
||||
# Retrieve Organization Unit
|
||||
# @param [String] customer_id
|
||||
# Immutable id of the Google Apps account
|
||||
# Immutable ID of the G Suite account
|
||||
# @param [Array<String>, String] org_unit_path
|
||||
# Full path of the organization unit or its Id
|
||||
# @param [String] fields
|
||||
@@ -1863,7 +1863,7 @@ module Google
|
||||
|
||||
# Add Organization Unit
|
||||
# @param [String] customer_id
|
||||
# Immutable id of the Google Apps account
|
||||
# Immutable ID of the G Suite account
|
||||
# @param [Google::Apis::AdminDirectoryV1::OrgUnit] org_unit_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -1901,7 +1901,7 @@ module Google
|
||||
|
||||
# Retrieve all Organization Units
|
||||
# @param [String] customer_id
|
||||
# Immutable id of the Google Apps account
|
||||
# Immutable ID of the G Suite account
|
||||
# @param [String] org_unit_path
|
||||
# the URL-encoded organization unit's path or its Id
|
||||
# @param [String] type
|
||||
@@ -1942,7 +1942,7 @@ module Google
|
||||
|
||||
# Update Organization Unit. This method supports patch semantics.
|
||||
# @param [String] customer_id
|
||||
# Immutable id of the Google Apps account
|
||||
# Immutable ID of the G Suite account
|
||||
# @param [Array<String>, String] org_unit_path
|
||||
# Full path of the organization unit or its Id
|
||||
# @param [Google::Apis::AdminDirectoryV1::OrgUnit] org_unit_object
|
||||
@@ -1983,7 +1983,7 @@ module Google
|
||||
|
||||
# Update Organization Unit
|
||||
# @param [String] customer_id
|
||||
# Immutable id of the Google Apps account
|
||||
# Immutable ID of the G Suite account
|
||||
# @param [Array<String>, String] org_unit_path
|
||||
# Full path of the organization unit or its Id
|
||||
# @param [Google::Apis::AdminDirectoryV1::OrgUnit] org_unit_object
|
||||
@@ -2024,7 +2024,7 @@ module Google
|
||||
|
||||
# Retrieves a paginated list of all privileges for a customer.
|
||||
# @param [String] customer
|
||||
# Immutable ID of the Google Apps account.
|
||||
# Immutable ID of the G Suite account.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -2059,7 +2059,7 @@ module Google
|
||||
|
||||
# Deletes a calendar resource.
|
||||
# @param [String] customer
|
||||
# The unique ID for the customer's Google account. As an account administrator,
|
||||
# The unique ID for the customer's G Suite account. As an account administrator,
|
||||
# you can also use the my_customer alias to represent your account's customer ID.
|
||||
# @param [String] calendar_resource_id
|
||||
# The unique ID of the calendar resource to delete.
|
||||
@@ -2096,7 +2096,7 @@ module Google
|
||||
|
||||
# Retrieves a calendar resource.
|
||||
# @param [String] customer
|
||||
# The unique ID for the customer's Google account. As an account administrator,
|
||||
# The unique ID for the customer's G Suite account. As an account administrator,
|
||||
# you can also use the my_customer alias to represent your account's customer ID.
|
||||
# @param [String] calendar_resource_id
|
||||
# The unique ID of the calendar resource to retrieve.
|
||||
@@ -2135,7 +2135,7 @@ module Google
|
||||
|
||||
# Inserts a calendar resource.
|
||||
# @param [String] customer
|
||||
# The unique ID for the customer's Google account. As an account administrator,
|
||||
# The unique ID for the customer's G Suite account. As an account administrator,
|
||||
# you can also use the my_customer alias to represent your account's customer ID.
|
||||
# @param [Google::Apis::AdminDirectoryV1::CalendarResource] calendar_resource_object
|
||||
# @param [String] fields
|
||||
@@ -2174,7 +2174,7 @@ module Google
|
||||
|
||||
# Retrieves a list of calendar resources for an account.
|
||||
# @param [String] customer
|
||||
# The unique ID for the customer's Google account. As an account administrator,
|
||||
# The unique ID for the customer's G Suite account. As an account administrator,
|
||||
# you can also use the my_customer alias to represent your account's customer ID.
|
||||
# @param [Fixnum] max_results
|
||||
# Maximum number of results to return.
|
||||
@@ -2216,7 +2216,7 @@ module Google
|
||||
|
||||
# Updates a calendar resource. This method supports patch semantics.
|
||||
# @param [String] customer
|
||||
# The unique ID for the customer's Google account. As an account administrator,
|
||||
# The unique ID for the customer's G Suite account. As an account administrator,
|
||||
# you can also use the my_customer alias to represent your account's customer ID.
|
||||
# @param [String] calendar_resource_id
|
||||
# The unique ID of the calendar resource to update.
|
||||
@@ -2258,7 +2258,7 @@ module Google
|
||||
|
||||
# Updates a calendar resource.
|
||||
# @param [String] customer
|
||||
# The unique ID for the customer's Google account. As an account administrator,
|
||||
# The unique ID for the customer's G Suite account. As an account administrator,
|
||||
# you can also use the my_customer alias to represent your account's customer ID.
|
||||
# @param [String] calendar_resource_id
|
||||
# The unique ID of the calendar resource to update.
|
||||
@@ -2300,7 +2300,7 @@ module Google
|
||||
|
||||
# Deletes a role assignment.
|
||||
# @param [String] customer
|
||||
# Immutable ID of the Google Apps account.
|
||||
# Immutable ID of the G Suite account.
|
||||
# @param [String] role_assignment_id
|
||||
# Immutable ID of the role assignment.
|
||||
# @param [String] fields
|
||||
@@ -2336,7 +2336,7 @@ module Google
|
||||
|
||||
# Retrieve a role assignment.
|
||||
# @param [String] customer
|
||||
# Immutable ID of the Google Apps account.
|
||||
# Immutable ID of the G Suite account.
|
||||
# @param [String] role_assignment_id
|
||||
# Immutable ID of the role assignment.
|
||||
# @param [String] fields
|
||||
@@ -2374,7 +2374,7 @@ module Google
|
||||
|
||||
# Creates a role assignment.
|
||||
# @param [String] customer
|
||||
# Immutable ID of the Google Apps account.
|
||||
# Immutable ID of the G Suite account.
|
||||
# @param [Google::Apis::AdminDirectoryV1::RoleAssignment] role_assignment_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -2412,7 +2412,7 @@ module Google
|
||||
|
||||
# Retrieves a paginated list of all roleAssignments.
|
||||
# @param [String] customer
|
||||
# Immutable ID of the Google Apps account.
|
||||
# Immutable ID of the G Suite account.
|
||||
# @param [Fixnum] max_results
|
||||
# Maximum number of results to return.
|
||||
# @param [String] page_token
|
||||
@@ -2461,7 +2461,7 @@ module Google
|
||||
|
||||
# Deletes a role.
|
||||
# @param [String] customer
|
||||
# Immutable ID of the Google Apps account.
|
||||
# Immutable ID of the G Suite account.
|
||||
# @param [String] role_id
|
||||
# Immutable ID of the role.
|
||||
# @param [String] fields
|
||||
@@ -2497,7 +2497,7 @@ module Google
|
||||
|
||||
# Retrieves a role.
|
||||
# @param [String] customer
|
||||
# Immutable ID of the Google Apps account.
|
||||
# Immutable ID of the G Suite account.
|
||||
# @param [String] role_id
|
||||
# Immutable ID of the role.
|
||||
# @param [String] fields
|
||||
@@ -2535,7 +2535,7 @@ module Google
|
||||
|
||||
# Creates a role.
|
||||
# @param [String] customer
|
||||
# Immutable ID of the Google Apps account.
|
||||
# Immutable ID of the G Suite account.
|
||||
# @param [Google::Apis::AdminDirectoryV1::Role] role_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -2573,7 +2573,7 @@ module Google
|
||||
|
||||
# Retrieves a paginated list of all the roles in a domain.
|
||||
# @param [String] customer
|
||||
# Immutable id of the Google Apps account.
|
||||
# Immutable ID of the G Suite account.
|
||||
# @param [Fixnum] max_results
|
||||
# Maximum number of results to return.
|
||||
# @param [String] page_token
|
||||
@@ -2614,7 +2614,7 @@ module Google
|
||||
|
||||
# Updates a role. This method supports patch semantics.
|
||||
# @param [String] customer
|
||||
# Immutable ID of the Google Apps account.
|
||||
# Immutable ID of the G Suite account.
|
||||
# @param [String] role_id
|
||||
# Immutable ID of the role.
|
||||
# @param [Google::Apis::AdminDirectoryV1::Role] role_object
|
||||
@@ -2655,7 +2655,7 @@ module Google
|
||||
|
||||
# Updates a role.
|
||||
# @param [String] customer
|
||||
# Immutable ID of the Google Apps account.
|
||||
# Immutable ID of the G Suite account.
|
||||
# @param [String] role_id
|
||||
# Immutable ID of the role.
|
||||
# @param [Google::Apis::AdminDirectoryV1::Role] role_object
|
||||
@@ -2696,7 +2696,7 @@ module Google
|
||||
|
||||
# Delete schema
|
||||
# @param [String] customer_id
|
||||
# Immutable id of the Google Apps account
|
||||
# Immutable ID of the G Suite account
|
||||
# @param [String] schema_key
|
||||
# Name or immutable Id of the schema
|
||||
# @param [String] fields
|
||||
@@ -2732,7 +2732,7 @@ module Google
|
||||
|
||||
# Retrieve schema
|
||||
# @param [String] customer_id
|
||||
# Immutable id of the Google Apps account
|
||||
# Immutable ID of the G Suite account
|
||||
# @param [String] schema_key
|
||||
# Name or immutable Id of the schema
|
||||
# @param [String] fields
|
||||
@@ -2770,7 +2770,7 @@ module Google
|
||||
|
||||
# Create schema.
|
||||
# @param [String] customer_id
|
||||
# Immutable id of the Google Apps account
|
||||
# Immutable ID of the G Suite account
|
||||
# @param [Google::Apis::AdminDirectoryV1::Schema] schema_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -2808,7 +2808,7 @@ module Google
|
||||
|
||||
# Retrieve all schemas for a customer
|
||||
# @param [String] customer_id
|
||||
# Immutable id of the Google Apps account
|
||||
# Immutable ID of the G Suite account
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -2843,7 +2843,7 @@ module Google
|
||||
|
||||
# Update schema. This method supports patch semantics.
|
||||
# @param [String] customer_id
|
||||
# Immutable id of the Google Apps account
|
||||
# Immutable ID of the G Suite account
|
||||
# @param [String] schema_key
|
||||
# Name or immutable Id of the schema.
|
||||
# @param [Google::Apis::AdminDirectoryV1::Schema] schema_object
|
||||
@@ -2884,7 +2884,7 @@ module Google
|
||||
|
||||
# Update schema
|
||||
# @param [String] customer_id
|
||||
# Immutable id of the Google Apps account
|
||||
# Immutable ID of the G Suite account
|
||||
# @param [String] schema_key
|
||||
# Name or immutable Id of the schema.
|
||||
# @param [Google::Apis::AdminDirectoryV1::Schema] schema_object
|
||||
@@ -3153,7 +3153,7 @@ module Google
|
||||
# Comma-separated list of schema names. All fields from these schemas are
|
||||
# fetched. This should only be set when projection=custom.
|
||||
# @param [String] customer
|
||||
# Immutable id of the Google Apps account. In case of multi-domain, to fetch all
|
||||
# Immutable ID of the G Suite account. In case of multi-domain, to fetch all
|
||||
# users for a customer, fill this field instead of domain.
|
||||
# @param [String] domain
|
||||
# Name of the domain. Fill this field to get users from only this domain. To
|
||||
@@ -3376,7 +3376,7 @@ module Google
|
||||
# Comma-separated list of schema names. All fields from these schemas are
|
||||
# fetched. This should only be set when projection=custom.
|
||||
# @param [String] customer
|
||||
# Immutable id of the Google Apps account. In case of multi-domain, to fetch all
|
||||
# Immutable ID of the G Suite account. In case of multi-domain, to fetch all
|
||||
# users for a customer, fill this field instead of domain.
|
||||
# @param [String] domain
|
||||
# Name of the domain. Fill this field to get users from only this domain. To
|
||||
|
||||
@@ -25,7 +25,7 @@ module Google
|
||||
# @see https://developers.google.com/adsense/management/
|
||||
module AdsenseV1_4
|
||||
VERSION = 'V1_4'
|
||||
REVISION = '20170401'
|
||||
REVISION = '20170503'
|
||||
|
||||
# View and manage your AdSense data
|
||||
AUTH_ADSENSE = 'https://www.googleapis.com/auth/adsense'
|
||||
|
||||
@@ -26,7 +26,7 @@ module Google
|
||||
# @see https://developers.google.com/adsense/host/
|
||||
module AdsensehostV4_1
|
||||
VERSION = 'V4_1'
|
||||
REVISION = '20170401'
|
||||
REVISION = '20170502'
|
||||
|
||||
# View and manage your AdSense host data and associated accounts
|
||||
AUTH_ADSENSEHOST = 'https://www.googleapis.com/auth/adsensehost'
|
||||
|
||||
@@ -25,7 +25,7 @@ module Google
|
||||
# @see https://developers.google.com/analytics/devguides/reporting/core/v4/
|
||||
module AnalyticsreportingV4
|
||||
VERSION = 'V4'
|
||||
REVISION = '20170309'
|
||||
REVISION = '20170427'
|
||||
|
||||
# View your Google Analytics data
|
||||
AUTH_ANALYTICS_READONLY = 'https://www.googleapis.com/auth/analytics.readonly'
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -22,7 +22,37 @@ module Google
|
||||
module Apis
|
||||
module AnalyticsreportingV4
|
||||
|
||||
class Segment
|
||||
class SegmentFilter
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SegmentDefinition
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class MetricHeaderEntry
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ReportData
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class DimensionFilter
|
||||
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
|
||||
@@ -34,7 +64,7 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SegmentDimensionFilter
|
||||
class Segment
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
@@ -118,12 +148,6 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ReportRow
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Cohort
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -136,6 +160,12 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ReportRow
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrFiltersForSegment
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -203,33 +233,81 @@ module Google
|
||||
end
|
||||
|
||||
class SegmentFilter
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :not, as: 'not'
|
||||
property :simple_segment, as: 'simpleSegment', class: Google::Apis::AnalyticsreportingV4::SimpleSegment, decorator: Google::Apis::AnalyticsreportingV4::SimpleSegment::Representation
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
property :sequence_segment, as: 'sequenceSegment', class: Google::Apis::AnalyticsreportingV4::SequenceSegment, decorator: Google::Apis::AnalyticsreportingV4::SequenceSegment::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class SegmentDefinition
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :segment_filters, as: 'segmentFilters', class: Google::Apis::AnalyticsreportingV4::SegmentFilter, decorator: Google::Apis::AnalyticsreportingV4::SegmentFilter::Representation
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
end
|
||||
|
||||
class MetricHeaderEntry
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :name, as: 'name'
|
||||
property :type, as: 'type'
|
||||
end
|
||||
end
|
||||
|
||||
class ReportData
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :data_last_refreshed, as: 'dataLastRefreshed'
|
||||
collection :maximums, as: 'maximums', class: Google::Apis::AnalyticsreportingV4::DateRangeValues, decorator: Google::Apis::AnalyticsreportingV4::DateRangeValues::Representation
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
collection :sampling_space_sizes, as: 'samplingSpaceSizes'
|
||||
collection :minimums, as: 'minimums', 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'
|
||||
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'
|
||||
end
|
||||
end
|
||||
|
||||
class DimensionFilter
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :not, as: 'not'
|
||||
collection :expressions, as: 'expressions'
|
||||
property :case_sensitive, as: 'caseSensitive'
|
||||
property :dimension_name, as: 'dimensionName'
|
||||
property :operator, as: 'operator'
|
||||
end
|
||||
end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
class SegmentDimensionFilter
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :expressions, as: 'expressions'
|
||||
property :case_sensitive, as: 'caseSensitive'
|
||||
property :min_comparison_value, as: 'minComparisonValue'
|
||||
property :max_comparison_value, as: 'maxComparisonValue'
|
||||
property :dimension_name, as: 'dimensionName'
|
||||
property :operator, as: 'operator'
|
||||
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
|
||||
@@ -241,27 +319,6 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class OrderBy
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :sort_order, as: 'sortOrder'
|
||||
property :field_name, as: 'fieldName'
|
||||
property :order_type, as: 'orderType'
|
||||
end
|
||||
end
|
||||
|
||||
class SegmentDimensionFilter
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
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
|
||||
|
||||
class SegmentSequenceStep
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -274,9 +331,9 @@ module Google
|
||||
class Metric
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :alias, as: 'alias'
|
||||
property :expression, as: 'expression'
|
||||
property :formatting_type, as: 'formattingType'
|
||||
property :alias, as: 'alias'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -290,11 +347,11 @@ module Google
|
||||
class Report
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :column_header, as: 'columnHeader', class: Google::Apis::AnalyticsreportingV4::ColumnHeader, decorator: Google::Apis::AnalyticsreportingV4::ColumnHeader::Representation
|
||||
|
||||
property :data, as: 'data', class: Google::Apis::AnalyticsreportingV4::ReportData, decorator: Google::Apis::AnalyticsreportingV4::ReportData::Representation
|
||||
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
property :column_header, as: 'columnHeader', class: Google::Apis::AnalyticsreportingV4::ColumnHeader, decorator: Google::Apis::AnalyticsreportingV4::ColumnHeader::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
@@ -318,10 +375,10 @@ module Google
|
||||
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'
|
||||
property :comparison_value, as: 'comparisonValue'
|
||||
property :operator, as: 'operator'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -333,9 +390,9 @@ module Google
|
||||
property :page_size, as: 'pageSize'
|
||||
property :hide_totals, as: 'hideTotals'
|
||||
property :hide_value_ranges, as: 'hideValueRanges'
|
||||
property :filters_expression, as: 'filtersExpression'
|
||||
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
|
||||
|
||||
@@ -368,11 +425,11 @@ module Google
|
||||
class DynamicSegment
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :session_segment, as: 'sessionSegment', class: Google::Apis::AnalyticsreportingV4::SegmentDefinition, decorator: Google::Apis::AnalyticsreportingV4::SegmentDefinition::Representation
|
||||
|
||||
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
|
||||
|
||||
@@ -387,29 +444,20 @@ module Google
|
||||
class ColumnHeader
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :dimensions, as: 'dimensions'
|
||||
property :metric_header, as: 'metricHeader', class: Google::Apis::AnalyticsreportingV4::MetricHeader, decorator: Google::Apis::AnalyticsreportingV4::MetricHeader::Representation
|
||||
|
||||
collection :dimensions, as: 'dimensions'
|
||||
end
|
||||
end
|
||||
|
||||
class SegmentFilterClause
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :metric_filter, as: 'metricFilter', class: Google::Apis::AnalyticsreportingV4::SegmentMetricFilter, decorator: Google::Apis::AnalyticsreportingV4::SegmentMetricFilter::Representation
|
||||
|
||||
property :not, as: 'not'
|
||||
property :dimension_filter, as: 'dimensionFilter', class: Google::Apis::AnalyticsreportingV4::SegmentDimensionFilter, decorator: Google::Apis::AnalyticsreportingV4::SegmentDimensionFilter::Representation
|
||||
|
||||
end
|
||||
end
|
||||
property :metric_filter, as: 'metricFilter', class: Google::Apis::AnalyticsreportingV4::SegmentMetricFilter, decorator: Google::Apis::AnalyticsreportingV4::SegmentMetricFilter::Representation
|
||||
|
||||
class ReportRow
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :metrics, as: 'metrics', class: Google::Apis::AnalyticsreportingV4::DateRangeValues, decorator: Google::Apis::AnalyticsreportingV4::DateRangeValues::Representation
|
||||
|
||||
collection :dimensions, as: 'dimensions'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -432,6 +480,15 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class ReportRow
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :metrics, as: 'metrics', class: Google::Apis::AnalyticsreportingV4::DateRangeValues, decorator: Google::Apis::AnalyticsreportingV4::DateRangeValues::Representation
|
||||
|
||||
collection :dimensions, as: 'dimensions'
|
||||
end
|
||||
end
|
||||
|
||||
class OrFiltersForSegment
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -479,20 +536,20 @@ module Google
|
||||
class SegmentMetricFilter
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :scope, as: 'scope'
|
||||
property :max_comparison_value, as: 'maxComparisonValue'
|
||||
property :comparison_value, as: 'comparisonValue'
|
||||
property :operator, as: 'operator'
|
||||
property :metric_name, as: 'metricName'
|
||||
property :scope, as: 'scope'
|
||||
property :max_comparison_value, as: 'maxComparisonValue'
|
||||
end
|
||||
end
|
||||
|
||||
class DateRangeValues
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :values, as: 'values'
|
||||
collection :pivot_value_regions, as: 'pivotValueRegions', class: Google::Apis::AnalyticsreportingV4::PivotValueRegion, decorator: Google::Apis::AnalyticsreportingV4::PivotValueRegion::Representation
|
||||
|
||||
collection :values, as: 'values'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -536,63 +593,6 @@ module Google
|
||||
collection :dimension_values, as: 'dimensionValues'
|
||||
end
|
||||
end
|
||||
|
||||
class SegmentFilter
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :sequence_segment, as: 'sequenceSegment', class: Google::Apis::AnalyticsreportingV4::SequenceSegment, decorator: Google::Apis::AnalyticsreportingV4::SequenceSegment::Representation
|
||||
|
||||
property :not, as: 'not'
|
||||
property :simple_segment, as: 'simpleSegment', class: Google::Apis::AnalyticsreportingV4::SimpleSegment, decorator: Google::Apis::AnalyticsreportingV4::SimpleSegment::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class SegmentDefinition
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :segment_filters, as: 'segmentFilters', class: Google::Apis::AnalyticsreportingV4::SegmentFilter, decorator: Google::Apis::AnalyticsreportingV4::SegmentFilter::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class MetricHeaderEntry
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :name, as: 'name'
|
||||
property :type, as: 'type'
|
||||
end
|
||||
end
|
||||
|
||||
class ReportData
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
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 :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
|
||||
|
||||
class DimensionFilter
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :dimension_name, as: 'dimensionName'
|
||||
property :operator, as: 'operator'
|
||||
property :not, as: 'not'
|
||||
collection :expressions, as: 'expressions'
|
||||
property :case_sensitive, as: 'caseSensitive'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -25,7 +25,7 @@ module Google
|
||||
# @see https://developers.google.com/android/work/play/emm-api
|
||||
module AndroidenterpriseV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20170329'
|
||||
REVISION = '20170427'
|
||||
|
||||
# Manage corporate Android devices
|
||||
AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise'
|
||||
|
||||
@@ -397,12 +397,11 @@ module Google
|
||||
# Play EMM in various deployment configurations.
|
||||
# Possible values include:
|
||||
# - "managedDevice", a device that has the EMM's device policy controller (DPC)
|
||||
# as the device owner,
|
||||
# as the device owner.
|
||||
# - "managedProfile", a device that has a profile managed by the DPC (DPC is
|
||||
# profile owner) in addition to a separate, personal profile that is unavailable
|
||||
# to the DPC,
|
||||
# - "containerApp", a device running the container App. The container App is
|
||||
# managed by the DPC,
|
||||
# to the DPC.
|
||||
# - "containerApp", no longer used (deprecated).
|
||||
# - "unmanagedProfile", a device that has been allowed (by the domain's admin,
|
||||
# using the Admin Console to enable the privilege) to use managed Google Play,
|
||||
# but the profile is itself not owned by a DPC.
|
||||
@@ -749,6 +748,21 @@ module Google
|
||||
# @return [Fixnum]
|
||||
attr_accessor :num_purchased
|
||||
|
||||
# The state of permission acceptance with this product. This field is only set
|
||||
# if the product is approved. Possible states are:
|
||||
# - "currentApproved", the current set of permissions is approved, but
|
||||
# additional permissions will require the administrator to reapprove the product
|
||||
# (if the product was approved without specifying what to when the required
|
||||
# permissions change, this is the default),
|
||||
# - "needsReapproval", there are permissions which need to be accepted (
|
||||
# currently the product is not assignable),
|
||||
# - "allCurrentAndFutureApproved", the current permissions are approved and any
|
||||
# future permission updates will be automatically approved without administrator
|
||||
# review.
|
||||
# Corresponds to the JSON property `permissions`
|
||||
# @return [String]
|
||||
attr_accessor :permissions
|
||||
|
||||
# The ID of the product that the license is for. For example, "app:com.google.
|
||||
# android.gm".
|
||||
# Corresponds to the JSON property `productId`
|
||||
@@ -766,6 +780,7 @@ module Google
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@num_provisioned = args[:num_provisioned] if args.key?(:num_provisioned)
|
||||
@num_purchased = args[:num_purchased] if args.key?(:num_purchased)
|
||||
@permissions = args[:permissions] if args.key?(:permissions)
|
||||
@product_id = args[:product_id] if args.key?(:product_id)
|
||||
end
|
||||
end
|
||||
@@ -1465,8 +1480,7 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :product_pricing
|
||||
|
||||
# Whether this app can only be installed on devices using the Android container
|
||||
# app.
|
||||
# Deprecated.
|
||||
# Corresponds to the JSON property `requiresContainerApp`
|
||||
# @return [Boolean]
|
||||
attr_accessor :requires_container_app
|
||||
@@ -1641,12 +1655,13 @@ module Google
|
||||
attr_accessor :product_id
|
||||
|
||||
# The interpretation of this product set. "unknown" should never be sent and is
|
||||
# ignored if received. "whitelist" means that this product set constitutes a
|
||||
# whitelist. "includeAll" means that all products are accessible, including
|
||||
# ignored if received. "whitelist" means that the user is entitled to access the
|
||||
# product set. "includeAll" means that all products are accessible, including
|
||||
# products that are approved, products with revoked approval, and products that
|
||||
# have never been approved. If the value is "includeAll", the value of the
|
||||
# productId field is therefore ignored. If a value is not supplied, it is
|
||||
# interpreted to be "whitelist" for backwards compatibility.
|
||||
# have never been approved. "allApproved" means that the user is entitled to
|
||||
# access all products that are approved for the enterprise. If the value is "
|
||||
# allApproved" or "includeAll", the productId field is ignored. If no value is
|
||||
# provided, it is interpreted as "whitelist" for backwards compatibility.
|
||||
# Corresponds to the JSON property `productSetBehavior`
|
||||
# @return [String]
|
||||
attr_accessor :product_set_behavior
|
||||
@@ -1672,6 +1687,15 @@ module Google
|
||||
# @return [Google::Apis::AndroidenterpriseV1::ApprovalUrlInfo]
|
||||
attr_accessor :approval_url_info
|
||||
|
||||
# The permissions being approved with this app. This can either be the current
|
||||
# set of permissions only (additional permissions added to the app through
|
||||
# updates will require review by the administrator) or all current and future
|
||||
# permissions for the app. If not specified, only the current set of permissions
|
||||
# will be approved.
|
||||
# Corresponds to the JSON property `approvedPermissions`
|
||||
# @return [String]
|
||||
attr_accessor :approved_permissions
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
@@ -1679,6 +1703,7 @@ module Google
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@approval_url_info = args[:approval_url_info] if args.key?(:approval_url_info)
|
||||
@approved_permissions = args[:approved_permissions] if args.key?(:approved_permissions)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -569,6 +569,7 @@ module Google
|
||||
property :kind, as: 'kind'
|
||||
property :num_provisioned, as: 'numProvisioned'
|
||||
property :num_purchased, as: 'numPurchased'
|
||||
property :permissions, as: 'permissions'
|
||||
property :product_id, as: 'productId'
|
||||
end
|
||||
end
|
||||
@@ -816,6 +817,7 @@ module Google
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :approval_url_info, as: 'approvalUrlInfo', class: Google::Apis::AndroidenterpriseV1::ApprovalUrlInfo, decorator: Google::Apis::AndroidenterpriseV1::ApprovalUrlInfo::Representation
|
||||
|
||||
property :approved_permissions, as: 'approvedPermissions'
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ module Google
|
||||
# @see https://developers.google.com/android-publisher
|
||||
module AndroidpublisherV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20170222'
|
||||
REVISION = '20170425'
|
||||
|
||||
# View and manage your Google Play Developer account
|
||||
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
|
||||
|
||||
@@ -20,21 +20,22 @@ module Google
|
||||
module Apis
|
||||
# Google App Engine Admin API
|
||||
#
|
||||
# Provisions and manages App Engine applications.
|
||||
# The App Engine Admin API enables developers to provision and manage their App
|
||||
# Engine applications.
|
||||
#
|
||||
# @see https://cloud.google.com/appengine/docs/admin-api/
|
||||
module AppengineV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20170324'
|
||||
REVISION = '20170426'
|
||||
|
||||
# View and manage your applications deployed on Google App Engine
|
||||
AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
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'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
end
|
||||
end
|
||||
end
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -22,7 +22,8 @@ module Google
|
||||
module AppengineV1
|
||||
# Google App Engine Admin API
|
||||
#
|
||||
# Provisions and manages App Engine applications.
|
||||
# The App Engine Admin API enables developers to provision and manage their App
|
||||
# Engine applications.
|
||||
#
|
||||
# @example
|
||||
# require 'google/apis/appengine_v1'
|
||||
@@ -47,111 +48,6 @@ module Google
|
||||
@batch_path = 'batch'
|
||||
end
|
||||
|
||||
# Gets information about an application.
|
||||
# @param [String] apps_id
|
||||
# Part of `name`. Name of the Application resource to get. Example: apps/myapp.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::AppengineV1::Application] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::AppengineV1::Application]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_app(apps_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/apps/{appsId}', options)
|
||||
command.response_representation = Google::Apis::AppengineV1::Application::Representation
|
||||
command.response_class = Google::Apis::AppengineV1::Application
|
||||
command.params['appsId'] = apps_id unless apps_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Creates an App Engine application for a Google Cloud Platform project.
|
||||
# Required fields: id - The ID of the target Cloud Platform project. location -
|
||||
# The region (https://cloud.google.com/appengine/docs/locations) where you want
|
||||
# the App Engine application located.For more information about App Engine
|
||||
# applications, see Managing Projects, Applications, and Billing (https://cloud.
|
||||
# google.com/appengine/docs/python/console/).
|
||||
# @param [Google::Apis::AppengineV1::Application] application_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::AppengineV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::AppengineV1::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def create_app(application_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/apps', options)
|
||||
command.request_representation = Google::Apis::AppengineV1::Application::Representation
|
||||
command.request_object = application_object
|
||||
command.response_representation = Google::Apis::AppengineV1::Operation::Representation
|
||||
command.response_class = Google::Apis::AppengineV1::Operation
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Updates the specified Application resource. You can update the following
|
||||
# fields: auth_domain - Google authentication domain for controlling user access
|
||||
# to the application. default_cookie_expiration - Cookie expiration policy for
|
||||
# the application.
|
||||
# @param [String] apps_id
|
||||
# Part of `name`. Name of the Application resource to update. Example: apps/
|
||||
# myapp.
|
||||
# @param [Google::Apis::AppengineV1::Application] application_object
|
||||
# @param [String] update_mask
|
||||
# Standard field mask for the set of fields to be updated.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::AppengineV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::AppengineV1::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def patch_app(apps_id, application_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:patch, 'v1/apps/{appsId}', options)
|
||||
command.request_representation = Google::Apis::AppengineV1::Application::Representation
|
||||
command.request_object = application_object
|
||||
command.response_representation = Google::Apis::AppengineV1::Operation::Representation
|
||||
command.response_class = Google::Apis::AppengineV1::Operation
|
||||
command.params['appsId'] = apps_id unless apps_id.nil?
|
||||
command.query['updateMask'] = update_mask unless update_mask.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Recreates the required App Engine features for the specified App Engine
|
||||
# application, for example a Cloud Storage bucket or App Engine service account.
|
||||
# Use this method if you receive an error message about a missing feature, for
|
||||
@@ -188,18 +84,9 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists operations that match the specified filter in the request. If the server
|
||||
# doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding
|
||||
# below allows API services to override the binding to use different resource
|
||||
# name schemes, such as users/*/operations.
|
||||
# Gets information about an application.
|
||||
# @param [String] apps_id
|
||||
# Part of `name`. The name of the operation collection.
|
||||
# @param [String] filter
|
||||
# The standard list filter.
|
||||
# @param [Fixnum] page_size
|
||||
# The standard list page size.
|
||||
# @param [String] page_token
|
||||
# The standard list page token.
|
||||
# Part of `name`. Name of the Application resource to get. Example: apps/myapp.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -209,32 +96,106 @@ module Google
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::AppengineV1::ListOperationsResponse] parsed result object
|
||||
# @yieldparam result [Google::Apis::AppengineV1::Application] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::AppengineV1::ListOperationsResponse]
|
||||
# @return [Google::Apis::AppengineV1::Application]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_app_operations(apps_id, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/apps/{appsId}/operations', options)
|
||||
command.response_representation = Google::Apis::AppengineV1::ListOperationsResponse::Representation
|
||||
command.response_class = Google::Apis::AppengineV1::ListOperationsResponse
|
||||
def get_app(apps_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/apps/{appsId}', options)
|
||||
command.response_representation = Google::Apis::AppengineV1::Application::Representation
|
||||
command.response_class = Google::Apis::AppengineV1::Application
|
||||
command.params['appsId'] = apps_id unless apps_id.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# 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.
|
||||
# Updates the specified Application resource. You can update the following
|
||||
# fields:
|
||||
# auth_domain - Google authentication domain for controlling user access to the
|
||||
# application.
|
||||
# default_cookie_expiration - Cookie expiration policy for the application.
|
||||
# @param [String] apps_id
|
||||
# Part of `name`. The name of the operation resource.
|
||||
# @param [String] operations_id
|
||||
# Part of `name`. Name of the Application resource to update. Example: apps/
|
||||
# myapp.
|
||||
# @param [Google::Apis::AppengineV1::Application] application_object
|
||||
# @param [String] update_mask
|
||||
# Standard field mask for the set of fields to be updated.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::AppengineV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::AppengineV1::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def patch_app(apps_id, application_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:patch, 'v1/apps/{appsId}', options)
|
||||
command.request_representation = Google::Apis::AppengineV1::Application::Representation
|
||||
command.request_object = application_object
|
||||
command.response_representation = Google::Apis::AppengineV1::Operation::Representation
|
||||
command.response_class = Google::Apis::AppengineV1::Operation
|
||||
command.params['appsId'] = apps_id unless apps_id.nil?
|
||||
command.query['updateMask'] = update_mask unless update_mask.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Creates an App Engine application for a Google Cloud Platform project.
|
||||
# Required fields:
|
||||
# id - The ID of the target Cloud Platform project.
|
||||
# location - The region (https://cloud.google.com/appengine/docs/locations)
|
||||
# where you want the App Engine application located.For more information about
|
||||
# App Engine applications, see Managing Projects, Applications, and Billing (
|
||||
# https://cloud.google.com/appengine/docs/python/console/).
|
||||
# @param [Google::Apis::AppengineV1::Application] application_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::AppengineV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::AppengineV1::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def create_app(application_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/apps', options)
|
||||
command.request_representation = Google::Apis::AppengineV1::Application::Representation
|
||||
command.request_object = application_object
|
||||
command.response_representation = Google::Apis::AppengineV1::Operation::Representation
|
||||
command.response_class = Google::Apis::AppengineV1::Operation
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Deletes the specified service and all enclosed versions.
|
||||
# @param [String] apps_id
|
||||
# Part of `name`. Name of the resource requested. Example: apps/myapp/services/
|
||||
# default.
|
||||
# @param [String] services_id
|
||||
# Part of `name`. See documentation of `appsId`.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -253,12 +214,12 @@ module Google
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_app_operation(apps_id, operations_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/apps/{appsId}/operations/{operationsId}', options)
|
||||
def delete_app_service(apps_id, services_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, 'v1/apps/{appsId}/services/{servicesId}', options)
|
||||
command.response_representation = Google::Apis::AppengineV1::Operation::Representation
|
||||
command.response_class = Google::Apis::AppengineV1::Operation
|
||||
command.params['appsId'] = apps_id unless apps_id.nil?
|
||||
command.params['operationsId'] = operations_id unless operations_id.nil?
|
||||
command.params['servicesId'] = services_id unless services_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
@@ -388,12 +349,14 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Deletes the specified service and all enclosed versions.
|
||||
# Deletes an existing Version resource.
|
||||
# @param [String] apps_id
|
||||
# Part of `name`. Name of the resource requested. Example: apps/myapp/services/
|
||||
# default.
|
||||
# default/versions/v1.
|
||||
# @param [String] services_id
|
||||
# Part of `name`. See documentation of `appsId`.
|
||||
# @param [String] versions_id
|
||||
# Part of `name`. See documentation of `appsId`.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -411,12 +374,13 @@ module Google
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def delete_app_service(apps_id, services_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, 'v1/apps/{appsId}/services/{servicesId}', options)
|
||||
def delete_app_service_version(apps_id, services_id, versions_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, 'v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}', options)
|
||||
command.response_representation = Google::Apis::AppengineV1::Operation::Representation
|
||||
command.response_class = Google::Apis::AppengineV1::Operation
|
||||
command.params['appsId'] = apps_id unless apps_id.nil?
|
||||
command.params['servicesId'] = services_id unless services_id.nil?
|
||||
command.params['versionsId'] = versions_id unless versions_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
@@ -428,12 +392,12 @@ module Google
|
||||
# services/default.
|
||||
# @param [String] services_id
|
||||
# Part of `parent`. See documentation of `appsId`.
|
||||
# @param [String] view
|
||||
# Controls the set of fields returned in the List response.
|
||||
# @param [Fixnum] page_size
|
||||
# Maximum results to return per page.
|
||||
# @param [String] page_token
|
||||
# Continuation token for fetching the next page of results.
|
||||
# @param [Fixnum] page_size
|
||||
# Maximum results to return per page.
|
||||
# @param [String] view
|
||||
# Controls the set of fields returned in the List response.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -451,15 +415,15 @@ module Google
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_app_service_versions(apps_id, services_id, view: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def list_app_service_versions(apps_id, services_id, page_token: nil, page_size: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/apps/{appsId}/services/{servicesId}/versions', options)
|
||||
command.response_representation = Google::Apis::AppengineV1::ListVersionsResponse::Representation
|
||||
command.response_class = Google::Apis::AppengineV1::ListVersionsResponse
|
||||
command.params['appsId'] = apps_id unless apps_id.nil?
|
||||
command.params['servicesId'] = services_id unless services_id.nil?
|
||||
command.query['view'] = view unless view.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['view'] = view unless view.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
@@ -506,59 +470,24 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Deploys code and resource files to a new version.
|
||||
# @param [String] apps_id
|
||||
# Part of `parent`. Name of the parent resource to create this version under.
|
||||
# Example: apps/myapp/services/default.
|
||||
# @param [String] services_id
|
||||
# Part of `parent`. See documentation of `appsId`.
|
||||
# @param [Google::Apis::AppengineV1::Version] version_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::AppengineV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::AppengineV1::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def create_app_service_version(apps_id, services_id, version_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/apps/{appsId}/services/{servicesId}/versions', options)
|
||||
command.request_representation = Google::Apis::AppengineV1::Version::Representation
|
||||
command.request_object = version_object
|
||||
command.response_representation = Google::Apis::AppengineV1::Operation::Representation
|
||||
command.response_class = Google::Apis::AppengineV1::Operation
|
||||
command.params['appsId'] = apps_id unless apps_id.nil?
|
||||
command.params['servicesId'] = services_id unless services_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Updates the specified Version resource. You can specify the following fields
|
||||
# depending on the App Engine environment and type of scaling that the version
|
||||
# resource uses: serving_status (https://cloud.google.com/appengine/docs/admin-
|
||||
# api/reference/rest/v1/apps.services.versions#Version.FIELDS.serving_status):
|
||||
# For Version resources that use basic scaling, manual scaling, or run in the
|
||||
# App Engine flexible environment. instance_class (https://cloud.google.com/
|
||||
# appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.
|
||||
# FIELDS.instance_class): For Version resources that run in the App Engine
|
||||
# standard environment. automatic_scaling.min_idle_instances (https://cloud.
|
||||
# google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#
|
||||
# Version.FIELDS.automatic_scaling): For Version resources that use automatic
|
||||
# scaling and run in the App Engine standard environment. automatic_scaling.
|
||||
# max_idle_instances (https://cloud.google.com/appengine/docs/admin-api/
|
||||
# reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling):
|
||||
# For Version resources that use automatic scaling and run in the App Engine
|
||||
# standard environment.
|
||||
# resource uses:
|
||||
# serving_status (https://cloud.google.com/appengine/docs/admin-api/reference/
|
||||
# rest/v1/apps.services.versions#Version.FIELDS.serving_status): For Version
|
||||
# resources that use basic scaling, manual scaling, or run in the App Engine
|
||||
# flexible environment.
|
||||
# instance_class (https://cloud.google.com/appengine/docs/admin-api/reference/
|
||||
# rest/v1/apps.services.versions#Version.FIELDS.instance_class): For Version
|
||||
# resources that run in the App Engine standard environment.
|
||||
# automatic_scaling.min_idle_instances (https://cloud.google.com/appengine/docs/
|
||||
# admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.
|
||||
# automatic_scaling): For Version resources that use automatic scaling and run
|
||||
# in the App Engine standard environment.
|
||||
# automatic_scaling.max_idle_instances (https://cloud.google.com/appengine/docs/
|
||||
# admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.
|
||||
# automatic_scaling): For Version resources that use automatic scaling and run
|
||||
# in the App Engine standard environment.
|
||||
# @param [String] apps_id
|
||||
# Part of `name`. Name of the resource to update. Example: apps/myapp/services/
|
||||
# default/versions/1.
|
||||
@@ -601,14 +530,13 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Deletes an existing Version resource.
|
||||
# Deploys code and resource files to a new version.
|
||||
# @param [String] apps_id
|
||||
# Part of `name`. Name of the resource requested. Example: apps/myapp/services/
|
||||
# default/versions/v1.
|
||||
# Part of `parent`. Name of the parent resource to create this version under.
|
||||
# Example: apps/myapp/services/default.
|
||||
# @param [String] services_id
|
||||
# Part of `name`. See documentation of `appsId`.
|
||||
# @param [String] versions_id
|
||||
# Part of `name`. See documentation of `appsId`.
|
||||
# Part of `parent`. See documentation of `appsId`.
|
||||
# @param [Google::Apis::AppengineV1::Version] version_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -626,98 +554,14 @@ module Google
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def delete_app_service_version(apps_id, services_id, versions_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, 'v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}', options)
|
||||
def create_app_service_version(apps_id, services_id, version_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/apps/{appsId}/services/{servicesId}/versions', options)
|
||||
command.request_representation = Google::Apis::AppengineV1::Version::Representation
|
||||
command.request_object = version_object
|
||||
command.response_representation = Google::Apis::AppengineV1::Operation::Representation
|
||||
command.response_class = Google::Apis::AppengineV1::Operation
|
||||
command.params['appsId'] = apps_id unless apps_id.nil?
|
||||
command.params['servicesId'] = services_id unless services_id.nil?
|
||||
command.params['versionsId'] = versions_id unless versions_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists the instances of a version.Tip: To aggregate details about instances
|
||||
# over time, see the Stackdriver Monitoring API (https://cloud.google.com/
|
||||
# monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
|
||||
# @param [String] apps_id
|
||||
# Part of `parent`. Name of the parent Version resource. Example: apps/myapp/
|
||||
# services/default/versions/v1.
|
||||
# @param [String] services_id
|
||||
# Part of `parent`. See documentation of `appsId`.
|
||||
# @param [String] versions_id
|
||||
# Part of `parent`. See documentation of `appsId`.
|
||||
# @param [Fixnum] page_size
|
||||
# Maximum results to return per page.
|
||||
# @param [String] page_token
|
||||
# Continuation token for fetching the next page of results.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::AppengineV1::ListInstancesResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::AppengineV1::ListInstancesResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_app_service_version_instances(apps_id, services_id, versions_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances', options)
|
||||
command.response_representation = Google::Apis::AppengineV1::ListInstancesResponse::Representation
|
||||
command.response_class = Google::Apis::AppengineV1::ListInstancesResponse
|
||||
command.params['appsId'] = apps_id unless apps_id.nil?
|
||||
command.params['servicesId'] = services_id unless services_id.nil?
|
||||
command.params['versionsId'] = versions_id unless versions_id.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Gets instance information.
|
||||
# @param [String] apps_id
|
||||
# Part of `name`. Name of the resource requested. Example: apps/myapp/services/
|
||||
# default/versions/v1/instances/instance-1.
|
||||
# @param [String] services_id
|
||||
# Part of `name`. See documentation of `appsId`.
|
||||
# @param [String] versions_id
|
||||
# Part of `name`. See documentation of `appsId`.
|
||||
# @param [String] instances_id
|
||||
# Part of `name`. See documentation of `appsId`.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::AppengineV1::Instance] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::AppengineV1::Instance]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_app_service_version_instance(apps_id, services_id, versions_id, instances_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}', options)
|
||||
command.response_representation = Google::Apis::AppengineV1::Instance::Representation
|
||||
command.response_class = Google::Apis::AppengineV1::Instance
|
||||
command.params['appsId'] = apps_id unless apps_id.nil?
|
||||
command.params['servicesId'] = services_id unless services_id.nil?
|
||||
command.params['versionsId'] = versions_id unless versions_id.nil?
|
||||
command.params['instancesId'] = instances_id unless instances_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
@@ -763,6 +607,91 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists the instances of a version.Tip: To aggregate details about instances
|
||||
# over time, see the Stackdriver Monitoring API (https://cloud.google.com/
|
||||
# monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
|
||||
# @param [String] apps_id
|
||||
# Part of `parent`. Name of the parent Version resource. Example: apps/myapp/
|
||||
# services/default/versions/v1.
|
||||
# @param [String] services_id
|
||||
# Part of `parent`. See documentation of `appsId`.
|
||||
# @param [String] versions_id
|
||||
# Part of `parent`. See documentation of `appsId`.
|
||||
# @param [String] page_token
|
||||
# Continuation token for fetching the next page of results.
|
||||
# @param [Fixnum] page_size
|
||||
# Maximum results to return per page.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::AppengineV1::ListInstancesResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::AppengineV1::ListInstancesResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_app_service_version_instances(apps_id, services_id, versions_id, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances', options)
|
||||
command.response_representation = Google::Apis::AppengineV1::ListInstancesResponse::Representation
|
||||
command.response_class = Google::Apis::AppengineV1::ListInstancesResponse
|
||||
command.params['appsId'] = apps_id unless apps_id.nil?
|
||||
command.params['servicesId'] = services_id unless services_id.nil?
|
||||
command.params['versionsId'] = versions_id unless versions_id.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Gets instance information.
|
||||
# @param [String] apps_id
|
||||
# Part of `name`. Name of the resource requested. Example: apps/myapp/services/
|
||||
# default/versions/v1/instances/instance-1.
|
||||
# @param [String] services_id
|
||||
# Part of `name`. See documentation of `appsId`.
|
||||
# @param [String] versions_id
|
||||
# Part of `name`. See documentation of `appsId`.
|
||||
# @param [String] instances_id
|
||||
# Part of `name`. See documentation of `appsId`.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::AppengineV1::Instance] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::AppengineV1::Instance]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_app_service_version_instance(apps_id, services_id, versions_id, instances_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}', options)
|
||||
command.response_representation = Google::Apis::AppengineV1::Instance::Representation
|
||||
command.response_class = Google::Apis::AppengineV1::Instance
|
||||
command.params['appsId'] = apps_id unless apps_id.nil?
|
||||
command.params['servicesId'] = services_id unless services_id.nil?
|
||||
command.params['versionsId'] = versions_id unless versions_id.nil?
|
||||
command.params['instancesId'] = instances_id unless instances_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Enables debugging on a VM instance. This allows you to use the SSH command to
|
||||
# connect to the virtual machine where the instance lives. While in "debug mode",
|
||||
# the instance continues to serve live traffic. You should delete the instance
|
||||
@@ -811,15 +740,91 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists operations that match the specified filter in the request. If the server
|
||||
# doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding
|
||||
# below allows API services to override the binding to use different resource
|
||||
# name schemes, such as users/*/operations.
|
||||
# @param [String] apps_id
|
||||
# Part of `name`. The name of the operation collection.
|
||||
# @param [Fixnum] page_size
|
||||
# The standard list page size.
|
||||
# @param [String] filter
|
||||
# The standard list filter.
|
||||
# @param [String] page_token
|
||||
# The standard list page token.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::AppengineV1::ListOperationsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::AppengineV1::ListOperationsResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_app_operations(apps_id, page_size: nil, filter: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/apps/{appsId}/operations', options)
|
||||
command.response_representation = Google::Apis::AppengineV1::ListOperationsResponse::Representation
|
||||
command.response_class = Google::Apis::AppengineV1::ListOperationsResponse
|
||||
command.params['appsId'] = apps_id unless apps_id.nil?
|
||||
command.query['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
|
||||
|
||||
# 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] apps_id
|
||||
# Part of `name`. The name of the operation resource.
|
||||
# @param [String] operations_id
|
||||
# Part of `name`. See documentation of `appsId`.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::AppengineV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::AppengineV1::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_app_operation(apps_id, operations_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/apps/{appsId}/operations/{operationsId}', options)
|
||||
command.response_representation = Google::Apis::AppengineV1::Operation::Representation
|
||||
command.response_class = Google::Apis::AppengineV1::Operation
|
||||
command.params['appsId'] = apps_id unless apps_id.nil?
|
||||
command.params['operationsId'] = operations_id unless operations_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 information about the supported locations for this service.
|
||||
# @param [String] apps_id
|
||||
# Part of `name`. The resource that owns the locations collection, if applicable.
|
||||
# @param [String] filter
|
||||
# The standard list filter.
|
||||
# @param [Fixnum] page_size
|
||||
# The standard list page size.
|
||||
# @param [String] page_token
|
||||
# The standard list page token.
|
||||
# @param [Fixnum] page_size
|
||||
# The standard list page size.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -837,14 +842,14 @@ module Google
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_app_locations(apps_id, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def list_app_locations(apps_id, filter: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/apps/{appsId}/locations', options)
|
||||
command.response_representation = Google::Apis::AppengineV1::ListLocationsResponse::Representation
|
||||
command.response_class = Google::Apis::AppengineV1::ListLocationsResponse
|
||||
command.params['appsId'] = apps_id unless apps_id.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
|
||||
@@ -25,7 +25,7 @@ module Google
|
||||
# @see https://developers.google.com/games/services/web/api/states
|
||||
module AppstateV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20170329'
|
||||
REVISION = '20170427'
|
||||
|
||||
# View and manage your data for this application
|
||||
AUTH_APPSTATE = 'https://www.googleapis.com/auth/appstate'
|
||||
|
||||
@@ -25,7 +25,7 @@ module Google
|
||||
# @see https://cloud.google.com/bigquery/
|
||||
module BigqueryV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20170324'
|
||||
REVISION = '20170423'
|
||||
|
||||
# View and manage your data in Google BigQuery
|
||||
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
|
||||
|
||||
@@ -25,7 +25,7 @@ module Google
|
||||
# @see https://developers.google.com/google-apps/calendar/firstapp
|
||||
module CalendarV3
|
||||
VERSION = 'V3'
|
||||
REVISION = '20170328'
|
||||
REVISION = '20170402'
|
||||
|
||||
# Manage your calendars
|
||||
AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar'
|
||||
|
||||
@@ -25,7 +25,7 @@ module Google
|
||||
# @see https://developers.google.com/classroom/
|
||||
module ClassroomV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20170329'
|
||||
REVISION = '20170502'
|
||||
|
||||
# View your Google Classroom class rosters
|
||||
AUTH_CLASSROOM_ROSTERS_READONLY = 'https://www.googleapis.com/auth/classroom.rosters.readonly'
|
||||
|
||||
@@ -26,7 +26,7 @@ module Google
|
||||
# @see https://cloud.google.com/billing/
|
||||
module CloudbillingV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20170210'
|
||||
REVISION = '20170418'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
@@ -25,7 +25,7 @@ module Google
|
||||
# @see https://cloud.google.com/container-builder/docs/
|
||||
module CloudbuildV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20170403'
|
||||
REVISION = '20170504'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -22,90 +22,6 @@ module Google
|
||||
module Apis
|
||||
module CloudbuildV1
|
||||
|
||||
class Source
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class BuildOptions
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class StorageSource
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Results
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class BuildOperationMetadata
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SourceProvenance
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CancelOperationRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListBuildTriggersResponse
|
||||
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 BuiltImage
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class BuildStep
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class RepoSource
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class HashProp
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class FileHashes
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Status
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -149,141 +65,95 @@ module Google
|
||||
end
|
||||
|
||||
class Source
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :storage_source, as: 'storageSource', class: Google::Apis::CloudbuildV1::StorageSource, decorator: Google::Apis::CloudbuildV1::StorageSource::Representation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
property :repo_source, as: 'repoSource', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
|
||||
|
||||
end
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class BuildOptions
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :requested_verify_option, as: 'requestedVerifyOption'
|
||||
collection :source_provenance_hash, as: 'sourceProvenanceHash'
|
||||
end
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class StorageSource
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :generation, :numeric_string => true, as: 'generation'
|
||||
property :bucket, as: 'bucket'
|
||||
property :object, as: 'object'
|
||||
end
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Results
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :images, as: 'images', class: Google::Apis::CloudbuildV1::BuiltImage, decorator: Google::Apis::CloudbuildV1::BuiltImage::Representation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
collection :build_step_images, as: 'buildStepImages'
|
||||
end
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class BuildOperationMetadata
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :build, as: 'build', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
end
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SourceProvenance
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :resolved_storage_source, as: 'resolvedStorageSource', class: Google::Apis::CloudbuildV1::StorageSource, decorator: Google::Apis::CloudbuildV1::StorageSource::Representation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
hash :file_hashes, as: 'fileHashes', class: Google::Apis::CloudbuildV1::FileHashes, decorator: Google::Apis::CloudbuildV1::FileHashes::Representation
|
||||
|
||||
property :resolved_repo_source, as: 'resolvedRepoSource', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
|
||||
|
||||
end
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CancelOperationRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
class ListBuildTriggersResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :triggers, as: 'triggers', class: Google::Apis::CloudbuildV1::BuildTrigger, decorator: Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
||||
|
||||
end
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Operation
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :done, as: 'done'
|
||||
hash :response, as: 'response'
|
||||
property :name, as: 'name'
|
||||
property :error, as: 'error', class: Google::Apis::CloudbuildV1::Status, decorator: Google::Apis::CloudbuildV1::Status::Representation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
hash :metadata, as: 'metadata'
|
||||
end
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListBuildTriggersResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class BuiltImage
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :name, as: 'name'
|
||||
property :digest, as: 'digest'
|
||||
end
|
||||
end
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
class BuildStep
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :entrypoint, as: 'entrypoint'
|
||||
property :id, as: 'id'
|
||||
property :dir, as: 'dir'
|
||||
collection :env, as: 'env'
|
||||
collection :wait_for, as: 'waitFor'
|
||||
collection :args, as: 'args'
|
||||
property :name, as: 'name'
|
||||
end
|
||||
end
|
||||
|
||||
class RepoSource
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :tag_name, as: 'tagName'
|
||||
property :commit_sha, as: 'commitSha'
|
||||
property :project_id, as: 'projectId'
|
||||
property :repo_name, as: 'repoName'
|
||||
property :branch_name, as: 'branchName'
|
||||
end
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class HashProp
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :type, as: 'type'
|
||||
property :value, :base64 => true, as: 'value'
|
||||
end
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class BuildStep
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class RepoSource
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class FileHashes
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :file_hash, as: 'fileHash', class: Google::Apis::CloudbuildV1::HashProp, decorator: Google::Apis::CloudbuildV1::HashProp::Representation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
end
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Status
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :message, as: 'message'
|
||||
collection :details, as: 'details'
|
||||
property :code, as: 'code'
|
||||
property :message, as: 'message'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -296,45 +166,46 @@ module Google
|
||||
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'
|
||||
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
|
||||
|
||||
class Build
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :status_detail, as: 'statusDetail'
|
||||
property :status, as: 'status'
|
||||
property :timeout, as: 'timeout'
|
||||
property :logs_bucket, as: 'logsBucket'
|
||||
property :results, as: 'results', class: Google::Apis::CloudbuildV1::Results, decorator: Google::Apis::CloudbuildV1::Results::Representation
|
||||
|
||||
collection :steps, as: 'steps', class: Google::Apis::CloudbuildV1::BuildStep, decorator: Google::Apis::CloudbuildV1::BuildStep::Representation
|
||||
|
||||
property :build_trigger_id, as: 'buildTriggerId'
|
||||
collection :tags, as: 'tags'
|
||||
property :id, as: 'id'
|
||||
property :start_time, as: 'startTime'
|
||||
hash :substitutions, as: 'substitutions'
|
||||
property :create_time, as: 'createTime'
|
||||
property :start_time, as: 'startTime'
|
||||
property :source_provenance, as: 'sourceProvenance', class: Google::Apis::CloudbuildV1::SourceProvenance, decorator: Google::Apis::CloudbuildV1::SourceProvenance::Representation
|
||||
|
||||
property :create_time, as: 'createTime'
|
||||
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 :finish_time, as: 'finishTime'
|
||||
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'
|
||||
property :options, as: 'options', class: Google::Apis::CloudbuildV1::BuildOptions, decorator: Google::Apis::CloudbuildV1::BuildOptions::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
@@ -361,6 +232,136 @@ module Google
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Source
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :storage_source, as: 'storageSource', class: Google::Apis::CloudbuildV1::StorageSource, decorator: Google::Apis::CloudbuildV1::StorageSource::Representation
|
||||
|
||||
property :repo_source, as: 'repoSource', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class BuildOptions
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :requested_verify_option, as: 'requestedVerifyOption'
|
||||
collection :source_provenance_hash, as: 'sourceProvenanceHash'
|
||||
end
|
||||
end
|
||||
|
||||
class StorageSource
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :object, as: 'object'
|
||||
property :generation, :numeric_string => true, as: 'generation'
|
||||
property :bucket, as: 'bucket'
|
||||
end
|
||||
end
|
||||
|
||||
class Results
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :build_step_images, as: 'buildStepImages'
|
||||
collection :images, as: 'images', class: Google::Apis::CloudbuildV1::BuiltImage, decorator: Google::Apis::CloudbuildV1::BuiltImage::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class BuildOperationMetadata
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :build, as: 'build', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class SourceProvenance
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
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_storage_source, as: 'resolvedStorageSource', class: Google::Apis::CloudbuildV1::StorageSource, decorator: Google::Apis::CloudbuildV1::StorageSource::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class CancelOperationRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class Operation
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
hash :response, as: 'response'
|
||||
property :name, as: 'name'
|
||||
property :error, as: 'error', class: Google::Apis::CloudbuildV1::Status, decorator: Google::Apis::CloudbuildV1::Status::Representation
|
||||
|
||||
hash :metadata, as: 'metadata'
|
||||
property :done, as: 'done'
|
||||
end
|
||||
end
|
||||
|
||||
class ListBuildTriggersResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :triggers, as: 'triggers', class: Google::Apis::CloudbuildV1::BuildTrigger, decorator: Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class BuiltImage
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :name, as: 'name'
|
||||
property :digest, as: 'digest'
|
||||
end
|
||||
end
|
||||
|
||||
class HashProp
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :type, as: 'type'
|
||||
property :value, :base64 => true, as: 'value'
|
||||
end
|
||||
end
|
||||
|
||||
class BuildStep
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :entrypoint, as: 'entrypoint'
|
||||
property :id, as: 'id'
|
||||
property :dir, as: 'dir'
|
||||
collection :wait_for, as: 'waitFor'
|
||||
collection :env, as: 'env'
|
||||
collection :args, as: 'args'
|
||||
property :name, as: 'name'
|
||||
end
|
||||
end
|
||||
|
||||
class RepoSource
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :tag_name, as: 'tagName'
|
||||
property :commit_sha, as: 'commitSha'
|
||||
property :project_id, as: 'projectId'
|
||||
property :repo_name, as: 'repoName'
|
||||
property :branch_name, as: 'branchName'
|
||||
end
|
||||
end
|
||||
|
||||
class FileHashes
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :file_hash, as: 'fileHash', class: Google::Apis::CloudbuildV1::HashProp, decorator: Google::Apis::CloudbuildV1::HashProp::Representation
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -32,16 +32,16 @@ module Google
|
||||
#
|
||||
# @see https://cloud.google.com/container-builder/docs/
|
||||
class CloudBuildService < Google::Apis::Core::BaseService
|
||||
# @return [String]
|
||||
# API key. Your API key identifies your project and provides you with API access,
|
||||
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
||||
attr_accessor :key
|
||||
|
||||
# @return [String]
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
attr_accessor :quota_user
|
||||
|
||||
# @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
|
||||
super('https://cloudbuild.googleapis.com/', '')
|
||||
@batch_path = 'batch'
|
||||
@@ -53,11 +53,11 @@ module Google
|
||||
# ID of the project that owns the trigger.
|
||||
# @param [String] trigger_id
|
||||
# ID of the BuildTrigger to delete.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
@@ -70,14 +70,14 @@ module Google
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def delete_project_trigger(project_id, trigger_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def delete_project_trigger(project_id, trigger_id, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, 'v1/projects/{projectId}/triggers/{triggerId}', options)
|
||||
command.response_representation = Google::Apis::CloudbuildV1::Empty::Representation
|
||||
command.response_class = Google::Apis::CloudbuildV1::Empty
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['triggerId'] = trigger_id unless trigger_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
@@ -87,11 +87,11 @@ module Google
|
||||
# ID of the project that owns the trigger.
|
||||
# @param [String] trigger_id
|
||||
# ID of the BuildTrigger to get.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
@@ -104,14 +104,14 @@ module Google
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_project_trigger(project_id, trigger_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def get_project_trigger(project_id, trigger_id, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/projects/{projectId}/triggers/{triggerId}', options)
|
||||
command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
||||
command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['triggerId'] = trigger_id unless trigger_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
@@ -119,11 +119,11 @@ module Google
|
||||
# This API is experimental.
|
||||
# @param [String] project_id
|
||||
# ID of the project for which to list BuildTriggers.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
@@ -136,13 +136,13 @@ module Google
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_project_triggers(project_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def list_project_triggers(project_id, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/projects/{projectId}/triggers', options)
|
||||
command.response_representation = Google::Apis::CloudbuildV1::ListBuildTriggersResponse::Representation
|
||||
command.response_class = Google::Apis::CloudbuildV1::ListBuildTriggersResponse
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
@@ -153,11 +153,11 @@ module Google
|
||||
# @param [String] trigger_id
|
||||
# ID of the BuildTrigger to update.
|
||||
# @param [Google::Apis::CloudbuildV1::BuildTrigger] build_trigger_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
@@ -170,7 +170,7 @@ module Google
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def patch_project_trigger(project_id, trigger_id, build_trigger_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def patch_project_trigger(project_id, trigger_id, build_trigger_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:patch, 'v1/projects/{projectId}/triggers/{triggerId}', options)
|
||||
command.request_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
||||
command.request_object = build_trigger_object
|
||||
@@ -178,8 +178,8 @@ module Google
|
||||
command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['triggerId'] = trigger_id unless trigger_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
@@ -188,11 +188,11 @@ module Google
|
||||
# @param [String] project_id
|
||||
# ID of the project for which to configure automatic builds.
|
||||
# @param [Google::Apis::CloudbuildV1::BuildTrigger] build_trigger_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
@@ -205,15 +205,51 @@ module Google
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def create_project_trigger(project_id, build_trigger_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def create_project_trigger(project_id, build_trigger_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/projects/{projectId}/triggers', options)
|
||||
command.request_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
||||
command.request_object = build_trigger_object
|
||||
command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
||||
command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Starts 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] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CloudbuildV1::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def create_project_build(project_id, build_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/projects/{projectId}/builds', options)
|
||||
command.request_representation = Google::Apis::CloudbuildV1::Build::Representation
|
||||
command.request_object = build_object
|
||||
command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
|
||||
command.response_class = Google::Apis::CloudbuildV1::Operation
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
@@ -223,11 +259,11 @@ module Google
|
||||
# @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 [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
@@ -240,7 +276,7 @@ module Google
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def cancel_build(project_id, id, cancel_build_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def cancel_build(project_id, id, cancel_build_request_object = nil, quota_user: nil, fields: 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
|
||||
@@ -248,8 +284,8 @@ module Google
|
||||
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['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
@@ -260,11 +296,11 @@ module Google
|
||||
# ID of the project.
|
||||
# @param [String] id
|
||||
# ID of the build.
|
||||
# @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 [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
@@ -277,14 +313,14 @@ module Google
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_project_build(project_id, id, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def get_project_build(project_id, id, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/projects/{projectId}/builds/{id}', options)
|
||||
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['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
@@ -299,11 +335,11 @@ module Google
|
||||
# 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 [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
@@ -316,7 +352,7 @@ module Google
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_project_builds(project_id, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def list_project_builds(project_id, page_token: nil, page_size: nil, filter: nil, quota_user: nil, fields: 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
|
||||
@@ -324,44 +360,8 @@ module Google
|
||||
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
|
||||
|
||||
# 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
|
||||
|
||||
@@ -378,11 +378,11 @@ module Google
|
||||
# @param [String] name
|
||||
# The name of the operation resource to be cancelled.
|
||||
# @param [Google::Apis::CloudbuildV1::CancelOperationRequest] cancel_operation_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
@@ -395,15 +395,15 @@ module Google
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def cancel_operation(name, cancel_operation_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
||||
command.request_representation = Google::Apis::CloudbuildV1::CancelOperationRequest::Representation
|
||||
command.request_object = cancel_operation_request_object
|
||||
command.response_representation = Google::Apis::CloudbuildV1::Empty::Representation
|
||||
command.response_class = Google::Apis::CloudbuildV1::Empty
|
||||
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['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
@@ -413,17 +413,17 @@ module Google
|
||||
# to use different resource name schemes, such as `users/*/operations`.
|
||||
# @param [String] name
|
||||
# The name of the operation collection.
|
||||
# @param [String] filter
|
||||
# The standard list filter.
|
||||
# @param [String] page_token
|
||||
# The standard list page token.
|
||||
# @param [Fixnum] page_size
|
||||
# The standard list page size.
|
||||
# @param [String] 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 [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
@@ -436,16 +436,16 @@ module Google
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_operations(name, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def list_operations(name, filter: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||
command.response_representation = Google::Apis::CloudbuildV1::ListOperationsResponse::Representation
|
||||
command.response_class = Google::Apis::CloudbuildV1::ListOperationsResponse
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
@@ -454,11 +454,11 @@ module Google
|
||||
# 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 [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
@@ -471,21 +471,21 @@ module Google
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def get_operation(name, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||
command.response_representation = Google::Apis::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?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
def apply_command_defaults(command)
|
||||
command.query['key'] = key unless key.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['key'] = key unless key.nil?
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -26,13 +26,13 @@ module Google
|
||||
# @see http://cloud.google.com/debugger
|
||||
module ClouddebuggerV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20170322'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
REVISION = '20170413'
|
||||
|
||||
# Manage cloud debugger
|
||||
AUTH_CLOUD_DEBUGGER = 'https://www.googleapis.com/auth/cloud_debugger'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -22,231 +22,6 @@ module Google
|
||||
module Apis
|
||||
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
|
||||
@@ -282,6 +57,32 @@ module Google
|
||||
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
|
||||
|
||||
# A CloudWorkspaceSourceContext denotes a workspace at a particular snapshot.
|
||||
class CloudWorkspaceSourceContext
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -445,10 +246,11 @@ module Google
|
||||
# @return [Array<Google::Apis::ClouddebuggerV2::Variable>]
|
||||
attr_accessor :variable_table
|
||||
|
||||
# Time this breakpoint was created by the server in seconds resolution.
|
||||
# Corresponds to the JSON property `createTime`
|
||||
# @return [String]
|
||||
attr_accessor :create_time
|
||||
# A set of custom breakpoint properties, populated by the agent, to be
|
||||
# displayed to the user.
|
||||
# Corresponds to the JSON property `labels`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :labels
|
||||
|
||||
# Only relevant when action is `LOG`. Defines the message to log when
|
||||
# the breakpoint hits. The message may include parameter placeholders `$0`,
|
||||
@@ -461,11 +263,10 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :log_message_format
|
||||
|
||||
# A set of custom breakpoint properties, populated by the agent, to be
|
||||
# displayed to the user.
|
||||
# Corresponds to the JSON property `labels`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :labels
|
||||
# Time this breakpoint was created by the server in seconds resolution.
|
||||
# Corresponds to the JSON property `createTime`
|
||||
# @return [String]
|
||||
attr_accessor :create_time
|
||||
|
||||
# List of read-only expressions to evaluate at the breakpoint location.
|
||||
# The expressions are composed using expressions in the programming language
|
||||
@@ -553,9 +354,9 @@ module Google
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@variable_table = args[:variable_table] if args.key?(:variable_table)
|
||||
@create_time = args[:create_time] if args.key?(:create_time)
|
||||
@log_message_format = args[:log_message_format] if args.key?(:log_message_format)
|
||||
@labels = args[:labels] if args.key?(:labels)
|
||||
@log_message_format = args[:log_message_format] if args.key?(:log_message_format)
|
||||
@create_time = args[:create_time] if args.key?(:create_time)
|
||||
@expressions = args[:expressions] if args.key?(:expressions)
|
||||
@evaluated_expressions = args[:evaluated_expressions] if args.key?(:evaluated_expressions)
|
||||
@is_final_state = args[:is_final_state] if args.key?(:is_final_state)
|
||||
@@ -654,11 +455,6 @@ module Google
|
||||
class CloudRepoSourceContext
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A revision ID.
|
||||
# Corresponds to the JSON property `revisionId`
|
||||
# @return [String]
|
||||
attr_accessor :revision_id
|
||||
|
||||
# The name of an alias (branch, tag, etc.).
|
||||
# Corresponds to the JSON property `aliasName`
|
||||
# @return [String]
|
||||
@@ -674,21 +470,26 @@ module Google
|
||||
# @return [Google::Apis::ClouddebuggerV2::AliasContext]
|
||||
attr_accessor :alias_context
|
||||
|
||||
# A revision ID.
|
||||
# Corresponds to the JSON property `revisionId`
|
||||
# @return [String]
|
||||
attr_accessor :revision_id
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@revision_id = args[:revision_id] if args.key?(:revision_id)
|
||||
@alias_name = args[:alias_name] if args.key?(:alias_name)
|
||||
@repo_id = args[:repo_id] if args.key?(:repo_id)
|
||||
@alias_context = args[:alias_context] if args.key?(:alias_context)
|
||||
@revision_id = args[:revision_id] if args.key?(:revision_id)
|
||||
end
|
||||
end
|
||||
|
||||
# Response for registering a debuggee.
|
||||
class RegisterDebuggeeResponse
|
||||
# Request to register a debuggee.
|
||||
class RegisterDebuggeeRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Represents the application to debug. The application may include one or more
|
||||
@@ -710,8 +511,8 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# Request to register a debuggee.
|
||||
class RegisterDebuggeeRequest
|
||||
# Response for registering a debuggee.
|
||||
class RegisterDebuggeeResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Represents the application to debug. The application may include one or more
|
||||
@@ -793,25 +594,25 @@ module Google
|
||||
class GitSourceContext
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Git repository URL.
|
||||
# Corresponds to the JSON property `url`
|
||||
# @return [String]
|
||||
attr_accessor :url
|
||||
|
||||
# Git commit hash.
|
||||
# required.
|
||||
# Corresponds to the JSON property `revisionId`
|
||||
# @return [String]
|
||||
attr_accessor :revision_id
|
||||
|
||||
# Git repository URL.
|
||||
# Corresponds to the JSON property `url`
|
||||
# @return [String]
|
||||
attr_accessor :url
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@revision_id = args[:revision_id] if args.key?(:revision_id)
|
||||
@url = args[:url] if args.key?(:url)
|
||||
@revision_id = args[:revision_id] if args.key?(:revision_id)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -900,18 +701,6 @@ module Google
|
||||
class Variable
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Simple value of the variable.
|
||||
# Corresponds to the JSON property `value`
|
||||
# @return [String]
|
||||
attr_accessor :value
|
||||
|
||||
# Reference to a variable in the shared variable table. More than
|
||||
# one variable can reference the same variable in the table. The
|
||||
# `var_table_index` field is an index into `variable_table` in Breakpoint.
|
||||
# Corresponds to the JSON property `varTableIndex`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :var_table_index
|
||||
|
||||
# Members contained or pointed to by the variable.
|
||||
# Corresponds to the JSON property `members`
|
||||
# @return [Array<Google::Apis::ClouddebuggerV2::Variable>]
|
||||
@@ -939,18 +728,30 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :type
|
||||
|
||||
# Reference to a variable in the shared variable table. More than
|
||||
# one variable can reference the same variable in the table. The
|
||||
# `var_table_index` field is an index into `variable_table` in Breakpoint.
|
||||
# Corresponds to the JSON property `varTableIndex`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :var_table_index
|
||||
|
||||
# Simple value of the variable.
|
||||
# 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)
|
||||
@value = args[:value] if args.key?(:value)
|
||||
@var_table_index = args[:var_table_index] if args.key?(:var_table_index)
|
||||
@members = args[:members] if args.key?(:members)
|
||||
@status = args[:status] if args.key?(:status)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@type = args[:type] if args.key?(:type)
|
||||
@var_table_index = args[:var_table_index] if args.key?(:var_table_index)
|
||||
@value = args[:value] if args.key?(:value)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -958,12 +759,6 @@ module Google
|
||||
class StackFrame
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Set of arguments passed to this function.
|
||||
# Note that this might not be populated for all stack frames.
|
||||
# Corresponds to the JSON property `arguments`
|
||||
# @return [Array<Google::Apis::ClouddebuggerV2::Variable>]
|
||||
attr_accessor :arguments
|
||||
|
||||
# Set of local variables at the stack frame location.
|
||||
# Note that this might not be populated for all stack frames.
|
||||
# Corresponds to the JSON property `locals`
|
||||
@@ -980,16 +775,22 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :function
|
||||
|
||||
# Set of arguments passed to this function.
|
||||
# Note that this might not be populated for all stack frames.
|
||||
# Corresponds to the JSON property `arguments`
|
||||
# @return [Array<Google::Apis::ClouddebuggerV2::Variable>]
|
||||
attr_accessor :arguments
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@arguments = args[:arguments] if args.key?(:arguments)
|
||||
@locals = args[:locals] if args.key?(:locals)
|
||||
@location = args[:location] if args.key?(:location)
|
||||
@function = args[:function] if args.key?(:function)
|
||||
@arguments = args[:arguments] if args.key?(:arguments)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1076,6 +877,205 @@ module Google
|
||||
@labels = args[:labels] if args.key?(:labels)
|
||||
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
|
||||
|
||||
# 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
|
||||
|
||||
# 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
|
||||
|
||||
# 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
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@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)
|
||||
@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)
|
||||
@status = args[:status] if args.key?(:status)
|
||||
@is_inactive = args[:is_inactive] if args.key?(:is_inactive)
|
||||
@project = args[:project] if args.key?(:project)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -22,31 +22,7 @@ module Google
|
||||
module Apis
|
||||
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 ListActiveBreakpointsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
@@ -58,12 +34,6 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListActiveBreakpointsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CloudWorkspaceSourceContext
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -124,13 +94,13 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class RegisterDebuggeeResponse
|
||||
class RegisterDebuggeeRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class RegisterDebuggeeRequest
|
||||
class RegisterDebuggeeResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
@@ -185,61 +155,33 @@ module Google
|
||||
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
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
end
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AliasContext
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :name, as: 'name'
|
||||
property :kind, as: 'kind'
|
||||
end
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Empty
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SourceLocation
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :line, as: 'line'
|
||||
property :path, as: 'path'
|
||||
end
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Debuggee
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :ext_source_contexts, as: 'extSourceContexts', class: Google::Apis::ClouddebuggerV2::ExtendedSourceContext, decorator: Google::Apis::ClouddebuggerV2::ExtendedSourceContext::Representation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
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
|
||||
|
||||
class ProjectRepoId
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :project_id, as: 'projectId'
|
||||
property :repo_name, as: 'repoName'
|
||||
end
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListActiveBreakpointsResponse
|
||||
@@ -252,6 +194,14 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class ProjectRepoId
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :project_id, as: 'projectId'
|
||||
property :repo_name, as: 'repoName'
|
||||
end
|
||||
end
|
||||
|
||||
class CloudWorkspaceSourceContext
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -302,9 +252,9 @@ module Google
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :variable_table, as: 'variableTable', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
|
||||
|
||||
property :create_time, as: 'createTime'
|
||||
property :log_message_format, as: 'logMessageFormat'
|
||||
hash :labels, as: 'labels'
|
||||
property :log_message_format, as: 'logMessageFormat'
|
||||
property :create_time, as: 'createTime'
|
||||
collection :expressions, as: 'expressions'
|
||||
collection :evaluated_expressions, as: 'evaluatedExpressions', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
|
||||
|
||||
@@ -357,16 +307,16 @@ module Google
|
||||
class CloudRepoSourceContext
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :revision_id, as: 'revisionId'
|
||||
property :alias_name, as: 'aliasName'
|
||||
property :repo_id, as: 'repoId', class: Google::Apis::ClouddebuggerV2::RepoId, decorator: Google::Apis::ClouddebuggerV2::RepoId::Representation
|
||||
|
||||
property :alias_context, as: 'aliasContext', class: Google::Apis::ClouddebuggerV2::AliasContext, decorator: Google::Apis::ClouddebuggerV2::AliasContext::Representation
|
||||
|
||||
property :revision_id, as: 'revisionId'
|
||||
end
|
||||
end
|
||||
|
||||
class RegisterDebuggeeResponse
|
||||
class RegisterDebuggeeRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :debuggee, as: 'debuggee', class: Google::Apis::ClouddebuggerV2::Debuggee, decorator: Google::Apis::ClouddebuggerV2::Debuggee::Representation
|
||||
@@ -374,7 +324,7 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class RegisterDebuggeeRequest
|
||||
class RegisterDebuggeeResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :debuggee, as: 'debuggee', class: Google::Apis::ClouddebuggerV2::Debuggee, decorator: Google::Apis::ClouddebuggerV2::Debuggee::Representation
|
||||
@@ -403,35 +353,35 @@ module Google
|
||||
class GitSourceContext
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :revision_id, as: 'revisionId'
|
||||
property :url, as: 'url'
|
||||
property :revision_id, as: 'revisionId'
|
||||
end
|
||||
end
|
||||
|
||||
class Variable
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :value, as: 'value'
|
||||
property :var_table_index, as: 'varTableIndex'
|
||||
collection :members, as: 'members', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
|
||||
|
||||
property :status, as: 'status', class: Google::Apis::ClouddebuggerV2::StatusMessage, decorator: Google::Apis::ClouddebuggerV2::StatusMessage::Representation
|
||||
|
||||
property :name, as: 'name'
|
||||
property :type, as: 'type'
|
||||
property :var_table_index, as: 'varTableIndex'
|
||||
property :value, as: 'value'
|
||||
end
|
||||
end
|
||||
|
||||
class StackFrame
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
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
|
||||
|
||||
property :location, as: 'location', class: Google::Apis::ClouddebuggerV2::SourceLocation, decorator: Google::Apis::ClouddebuggerV2::SourceLocation::Representation
|
||||
|
||||
property :function, as: 'function'
|
||||
collection :arguments, as: 'arguments', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
@@ -460,6 +410,56 @@ module Google
|
||||
hash :labels, as: 'labels'
|
||||
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 :is_disabled, as: 'isDisabled'
|
||||
property :agent_version, as: 'agentVersion'
|
||||
property :id, as: 'id'
|
||||
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 :status, as: 'status', class: Google::Apis::ClouddebuggerV2::StatusMessage, decorator: Google::Apis::ClouddebuggerV2::StatusMessage::Representation
|
||||
|
||||
property :is_inactive, as: 'isInactive'
|
||||
property :project, as: 'project'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -48,6 +48,138 @@ module Google
|
||||
@batch_path = 'batch'
|
||||
end
|
||||
|
||||
# Registers the debuggee with the controller service.
|
||||
# All agents attached to the same application should call this method with
|
||||
# the same request content to get back the same stable `debuggee_id`. Agents
|
||||
# should call this method again whenever `google.rpc.Code.NOT_FOUND` is
|
||||
# returned from any controller method.
|
||||
# This allows the controller service to disable the agent or recover from any
|
||||
# data loss. If the debuggee is disabled by the server, the response will
|
||||
# have `is_disabled` set to `true`.
|
||||
# @param [Google::Apis::ClouddebuggerV2::RegisterDebuggeeRequest] register_debuggee_request_object
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ClouddebuggerV2::RegisterDebuggeeResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ClouddebuggerV2::RegisterDebuggeeResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server 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 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.request_representation = Google::Apis::ClouddebuggerV2::RegisterDebuggeeRequest::Representation
|
||||
command.request_object = register_debuggee_request_object
|
||||
command.response_representation = Google::Apis::ClouddebuggerV2::RegisterDebuggeeResponse::Representation
|
||||
command.response_class = Google::Apis::ClouddebuggerV2::RegisterDebuggeeResponse
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Returns the list of all active breakpoints for the debuggee.
|
||||
# The breakpoint specification (location, condition, and expression
|
||||
# fields) is semantically immutable, although the field values may
|
||||
# change. For example, an agent may update the location line number
|
||||
# to reflect the actual line where the breakpoint was set, but this
|
||||
# doesn't change the breakpoint semantics.
|
||||
# This means that an agent does not need to check if a breakpoint has changed
|
||||
# when it encounters the same breakpoint on a successive call.
|
||||
# Moreover, an agent should remember the breakpoints that are completed
|
||||
# until the controller removes them from the active list to avoid
|
||||
# setting those breakpoints again.
|
||||
# @param [String] debuggee_id
|
||||
# Identifies the debuggee.
|
||||
# @param [Boolean] success_on_timeout
|
||||
# If set to `true`, returns `google.rpc.Code.OK` status and sets the
|
||||
# `wait_expired` response field to `true` when the server-selected timeout
|
||||
# has expired (recommended).
|
||||
# If set to `false`, returns `google.rpc.Code.ABORTED` status when the
|
||||
# server-selected timeout has expired (deprecated).
|
||||
# @param [String] wait_token
|
||||
# A wait token that, if specified, blocks the method call until the list
|
||||
# of active breakpoints has changed, or a server selected timeout has
|
||||
# expired. The value should be set from the last returned 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 [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ClouddebuggerV2::ListActiveBreakpointsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ClouddebuggerV2::ListActiveBreakpointsResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server 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_controller_debuggee_breakpoints(debuggee_id, success_on_timeout: nil, wait_token: nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v2/controller/debuggees/{debuggeeId}/breakpoints', options)
|
||||
command.response_representation = Google::Apis::ClouddebuggerV2::ListActiveBreakpointsResponse::Representation
|
||||
command.response_class = Google::Apis::ClouddebuggerV2::ListActiveBreakpointsResponse
|
||||
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
|
||||
command.query['successOnTimeout'] = success_on_timeout unless success_on_timeout.nil?
|
||||
command.query['waitToken'] = wait_token unless wait_token.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Updates the breakpoint state or mutable fields.
|
||||
# The entire Breakpoint message must be sent back to the controller
|
||||
# service.
|
||||
# Updates to active breakpoint fields are only allowed if the new value
|
||||
# does not change the breakpoint specification. Updates to the `location`,
|
||||
# `condition` and `expression` fields should not alter the breakpoint
|
||||
# semantics. These may only make changes such as canonicalizing a value
|
||||
# or snapping the location to the correct line of code.
|
||||
# @param [String] debuggee_id
|
||||
# Identifies the debuggee being debugged.
|
||||
# @param [String] id
|
||||
# Breakpoint identifier, unique in the scope of the debuggee.
|
||||
# @param [Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointRequest] update_active_breakpoint_request_object
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def update_active_breakpoint(debuggee_id, id, update_active_breakpoint_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:put, 'v2/controller/debuggees/{debuggeeId}/breakpoints/{id}', options)
|
||||
command.request_representation = Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointRequest::Representation
|
||||
command.request_object = update_active_breakpoint_request_object
|
||||
command.response_representation = Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse::Representation
|
||||
command.response_class = Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse
|
||||
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
|
||||
command.params['id'] = id unless id.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists all the debuggees that the user can set breakpoints to.
|
||||
# @param [String] client_version
|
||||
# The client version making the call.
|
||||
@@ -200,6 +332,9 @@ module Google
|
||||
# Lists all breakpoints for the debuggee.
|
||||
# @param [String] debuggee_id
|
||||
# ID of the debuggee whose breakpoints to list.
|
||||
# @param [Boolean] strip_results
|
||||
# This field is deprecated. The following fields are always stripped out of
|
||||
# the result: `stack_frames`, `evaluated_expressions` and `variable_table`.
|
||||
# @param [String] wait_token
|
||||
# A wait token that, if specified, blocks the call until the breakpoints
|
||||
# list has changed, or a server selected timeout has expired. The value
|
||||
@@ -217,9 +352,6 @@ module Google
|
||||
# @param [Boolean] include_all_users
|
||||
# When set to `true`, the response includes the list of breakpoints set by
|
||||
# any user. Otherwise, it includes only breakpoints set by the caller.
|
||||
# @param [Boolean] strip_results
|
||||
# This field is deprecated. The following fields are always stripped out of
|
||||
# the result: `stack_frames`, `evaluated_expressions` and `variable_table`.
|
||||
# @param [String] 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.
|
||||
@@ -237,149 +369,17 @@ module Google
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_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)
|
||||
def list_debugger_debuggee_breakpoints(debuggee_id, strip_results: nil, wait_token: nil, client_version: nil, action_value: nil, include_inactive: nil, include_all_users: nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v2/debugger/debuggees/{debuggeeId}/breakpoints', options)
|
||||
command.response_representation = Google::Apis::ClouddebuggerV2::ListBreakpointsResponse::Representation
|
||||
command.response_class = Google::Apis::ClouddebuggerV2::ListBreakpointsResponse
|
||||
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
|
||||
command.query['stripResults'] = strip_results unless strip_results.nil?
|
||||
command.query['waitToken'] = wait_token unless wait_token.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['includeAllUsers'] = include_all_users unless include_all_users.nil?
|
||||
command.query['stripResults'] = strip_results unless strip_results.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Registers the debuggee with the controller service.
|
||||
# All agents attached to the same application should call this method with
|
||||
# the same request content to get back the same stable `debuggee_id`. Agents
|
||||
# should call this method again whenever `google.rpc.Code.NOT_FOUND` is
|
||||
# returned from any controller method.
|
||||
# This allows the controller service to disable the agent or recover from any
|
||||
# data loss. If the debuggee is disabled by the server, the response will
|
||||
# have `is_disabled` set to `true`.
|
||||
# @param [Google::Apis::ClouddebuggerV2::RegisterDebuggeeRequest] register_debuggee_request_object
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ClouddebuggerV2::RegisterDebuggeeResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ClouddebuggerV2::RegisterDebuggeeResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server 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 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.request_representation = Google::Apis::ClouddebuggerV2::RegisterDebuggeeRequest::Representation
|
||||
command.request_object = register_debuggee_request_object
|
||||
command.response_representation = Google::Apis::ClouddebuggerV2::RegisterDebuggeeResponse::Representation
|
||||
command.response_class = Google::Apis::ClouddebuggerV2::RegisterDebuggeeResponse
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Updates the breakpoint state or mutable fields.
|
||||
# The entire Breakpoint message must be sent back to the controller
|
||||
# service.
|
||||
# Updates to active breakpoint fields are only allowed if the new value
|
||||
# does not change the breakpoint specification. Updates to the `location`,
|
||||
# `condition` and `expression` fields should not alter the breakpoint
|
||||
# semantics. These may only make changes such as canonicalizing a value
|
||||
# or snapping the location to the correct line of code.
|
||||
# @param [String] debuggee_id
|
||||
# Identifies the debuggee being debugged.
|
||||
# @param [String] id
|
||||
# Breakpoint identifier, unique in the scope of the debuggee.
|
||||
# @param [Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointRequest] update_active_breakpoint_request_object
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def update_active_breakpoint(debuggee_id, id, update_active_breakpoint_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:put, 'v2/controller/debuggees/{debuggeeId}/breakpoints/{id}', options)
|
||||
command.request_representation = Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointRequest::Representation
|
||||
command.request_object = update_active_breakpoint_request_object
|
||||
command.response_representation = Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse::Representation
|
||||
command.response_class = Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse
|
||||
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
|
||||
command.params['id'] = id unless id.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Returns the list of all active breakpoints for the debuggee.
|
||||
# The breakpoint specification (location, condition, and expression
|
||||
# fields) is semantically immutable, although the field values may
|
||||
# change. For example, an agent may update the location line number
|
||||
# to reflect the actual line where the breakpoint was set, but this
|
||||
# doesn't change the breakpoint semantics.
|
||||
# This means that an agent does not need to check if a breakpoint has changed
|
||||
# when it encounters the same breakpoint on a successive call.
|
||||
# Moreover, an agent should remember the breakpoints that are completed
|
||||
# until the controller removes them from the active list to avoid
|
||||
# setting those breakpoints again.
|
||||
# @param [String] debuggee_id
|
||||
# Identifies the debuggee.
|
||||
# @param [String] wait_token
|
||||
# A wait token that, if specified, blocks the method call until the list
|
||||
# of active breakpoints has changed, or a server selected timeout has
|
||||
# expired. The value should be set from the last returned response.
|
||||
# @param [Boolean] success_on_timeout
|
||||
# If set to `true`, returns `google.rpc.Code.OK` status and sets the
|
||||
# `wait_expired` response field to `true` when the server-selected timeout
|
||||
# has expired (recommended).
|
||||
# If set to `false`, returns `google.rpc.Code.ABORTED` status when the
|
||||
# server-selected timeout has expired (deprecated).
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ClouddebuggerV2::ListActiveBreakpointsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ClouddebuggerV2::ListActiveBreakpointsResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server 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_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.response_representation = Google::Apis::ClouddebuggerV2::ListActiveBreakpointsResponse::Representation
|
||||
command.response_class = Google::Apis::ClouddebuggerV2::ListActiveBreakpointsResponse
|
||||
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
|
||||
command.query['waitToken'] = wait_token unless wait_token.nil?
|
||||
command.query['successOnTimeout'] = success_on_timeout unless success_on_timeout.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
|
||||
@@ -27,7 +27,7 @@ module Google
|
||||
# @see https://cloud.google.com/error-reporting/
|
||||
module ClouderrorreportingV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20170328'
|
||||
REVISION = '20170414'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
@@ -22,6 +22,49 @@ module Google
|
||||
module Apis
|
||||
module ClouderrorreportingV1beta1
|
||||
|
||||
# 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.
|
||||
class ReportedErrorEvent
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -95,6 +138,18 @@ module Google
|
||||
class ErrorContext
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The user who caused or was affected by the crash.
|
||||
# This can be a user ID, an email address, or an arbitrary token that
|
||||
# uniquely identifies the user.
|
||||
# When sending an error report, leave this field empty if the user was not
|
||||
# logged in. In this case the
|
||||
# Error Reporting system will use other data, such as remote IP address, to
|
||||
# distinguish affected users. See `affected_users_count` in
|
||||
# `ErrorGroupStats`.
|
||||
# Corresponds to the JSON property `user`
|
||||
# @return [String]
|
||||
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
|
||||
@@ -111,27 +166,15 @@ module Google
|
||||
# @return [Google::Apis::ClouderrorreportingV1beta1::HttpRequestContext]
|
||||
attr_accessor :http_request
|
||||
|
||||
# The user who caused or was affected by the crash.
|
||||
# This can be a user ID, an email address, or an arbitrary token that
|
||||
# uniquely identifies the user.
|
||||
# When sending an error report, leave this field empty if the user was not
|
||||
# logged in. In this case the
|
||||
# Error Reporting system will use other data, such as remote IP address, to
|
||||
# distinguish affected users. See `affected_users_count` in
|
||||
# `ErrorGroupStats`.
|
||||
# Corresponds to the JSON property `user`
|
||||
# @return [String]
|
||||
attr_accessor :user
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@user = args[:user] if args.key?(:user)
|
||||
@report_location = args[:report_location] if args.key?(:report_location)
|
||||
@http_request = args[:http_request] if args.key?(:http_request)
|
||||
@user = args[:user] if args.key?(:user)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -160,33 +203,6 @@ module Google
|
||||
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]
|
||||
@@ -228,21 +244,48 @@ module Google
|
||||
# @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)
|
||||
@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)
|
||||
@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
|
||||
|
||||
@@ -250,6 +293,11 @@ module Google
|
||||
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>]
|
||||
@@ -262,20 +310,15 @@ module Google
|
||||
# @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)
|
||||
@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)
|
||||
@time_range_begin = args[:time_range_begin] if args.key?(:time_range_begin)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -285,11 +328,6 @@ module Google
|
||||
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]
|
||||
@@ -300,15 +338,20 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :start_time
|
||||
|
||||
# End of the time period to which `count` refers (excluded).
|
||||
# Corresponds to the JSON property `endTime`
|
||||
# @return [String]
|
||||
attr_accessor :end_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_time = args[:end_time] if args.key?(:end_time)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -316,6 +359,12 @@ module Google
|
||||
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`
|
||||
@@ -327,21 +376,15 @@ module Google
|
||||
# @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)
|
||||
@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)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -350,6 +393,14 @@ module Google
|
||||
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
|
||||
@@ -368,23 +419,15 @@ module Google
|
||||
# @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)
|
||||
@version = args[:version] if args.key?(:version)
|
||||
@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
|
||||
|
||||
@@ -395,6 +438,13 @@ module Google
|
||||
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`
|
||||
@@ -406,22 +456,15 @@ module Google
|
||||
# @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)
|
||||
@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)
|
||||
@function_name = args[:function_name] if args.key?(:function_name)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -498,13 +541,6 @@ module Google
|
||||
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
|
||||
@@ -518,15 +554,22 @@ module Google
|
||||
# @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)
|
||||
@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)
|
||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -542,49 +585,6 @@ module Google
|
||||
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
|
||||
@@ -22,6 +22,12 @@ module Google
|
||||
module Apis
|
||||
module ClouderrorreportingV1beta1
|
||||
|
||||
class ErrorEvent
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ReportedErrorEvent
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -101,9 +107,15 @@ module Google
|
||||
end
|
||||
|
||||
class ErrorEvent
|
||||
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
|
||||
|
||||
class ReportedErrorEvent
|
||||
@@ -121,11 +133,11 @@ module Google
|
||||
class ErrorContext
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :user, as: 'user'
|
||||
property :report_location, as: 'reportLocation', class: Google::Apis::ClouderrorreportingV1beta1::SourceLocation, decorator: Google::Apis::ClouderrorreportingV1beta1::SourceLocation::Representation
|
||||
|
||||
property :http_request, as: 'httpRequest', class: Google::Apis::ClouderrorreportingV1beta1::HttpRequestContext, decorator: Google::Apis::ClouderrorreportingV1beta1::HttpRequestContext::Representation
|
||||
|
||||
property :user, as: 'user'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -139,66 +151,66 @@ module Google
|
||||
class ErrorGroupStats
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
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
|
||||
|
||||
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'
|
||||
property :num_affected_services, as: 'numAffectedServices'
|
||||
collection :affected_services, as: 'affectedServices', class: Google::Apis::ClouderrorreportingV1beta1::ServiceContext, decorator: Google::Apis::ClouderrorreportingV1beta1::ServiceContext::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
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class ListEventsResponse
|
||||
# @private
|
||||
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
|
||||
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
property :time_range_begin, as: 'timeRangeBegin'
|
||||
end
|
||||
end
|
||||
|
||||
class TimedCount
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :end_time, as: 'endTime'
|
||||
property :count, :numeric_string => true, as: 'count'
|
||||
property :start_time, as: 'startTime'
|
||||
property :end_time, as: 'endTime'
|
||||
end
|
||||
end
|
||||
|
||||
class ErrorGroup
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :name, as: 'name'
|
||||
property :group_id, as: 'groupId'
|
||||
collection :tracking_issues, as: 'trackingIssues', class: Google::Apis::ClouderrorreportingV1beta1::TrackingIssue, decorator: Google::Apis::ClouderrorreportingV1beta1::TrackingIssue::Representation
|
||||
|
||||
property :name, as: 'name'
|
||||
end
|
||||
end
|
||||
|
||||
class ServiceContext
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :version, as: 'version'
|
||||
property :service, as: 'service'
|
||||
property :resource_type, as: 'resourceType'
|
||||
property :version, as: 'version'
|
||||
end
|
||||
end
|
||||
|
||||
class SourceLocation
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :function_name, as: 'functionName'
|
||||
property :file_path, as: 'filePath'
|
||||
property :line_number, as: 'lineNumber'
|
||||
property :function_name, as: 'functionName'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -223,10 +235,10 @@ module Google
|
||||
class ListGroupStatsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
property :time_range_begin, as: 'timeRangeBegin'
|
||||
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
|
||||
|
||||
@@ -235,18 +247,6 @@ module Google
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class ErrorEvent
|
||||
# @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
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -134,14 +134,12 @@ module Google
|
||||
# [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] page_token
|
||||
# [Optional] A `next_page_token` provided by a previous response.
|
||||
# @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
|
||||
@@ -154,6 +152,8 @@ module Google
|
||||
# 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
|
||||
@@ -171,18 +171,18 @@ module Google
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_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)
|
||||
def list_project_events(project_name, page_token: nil, service_filter_service: 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['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['serviceFilter.service'] = service_filter_service unless service_filter_service.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)
|
||||
@@ -266,10 +266,6 @@ module Google
|
||||
# <a href="https://support.google.com/cloud/answer/6158840">Google Cloud
|
||||
# Platform project ID</a>.
|
||||
# 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
|
||||
# Restricts the query to the specified time range.
|
||||
# @param [String] alignment
|
||||
@@ -291,16 +287,20 @@ module Google
|
||||
# [Optional] The exact value to match against
|
||||
# [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/
|
||||
# ServiceContext#FIELDS.version).
|
||||
# @param [String] alignment_time
|
||||
# [Optional] Time where the timed counts shall be aligned if rounded
|
||||
# alignment is chosen. Default is 00:00 UTC.
|
||||
# @param [String] service_filter_resource_type
|
||||
# [Optional] The exact value to match against
|
||||
# [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/
|
||||
# ServiceContext#FIELDS.resource_type).
|
||||
# @param [String] 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
|
||||
# [Optional] The preferred duration for a single returned `TimedCount`.
|
||||
# If not set, no timed counts are returned.
|
||||
# @param [String] page_token
|
||||
# [Optional] A `next_page_token` provided by a previous response. To view
|
||||
# additional results, pass this token along with the identical query
|
||||
# parameters as the first request.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -318,12 +318,11 @@ module Google
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_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)
|
||||
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)
|
||||
command = make_simple_command(:get, 'v1beta1/{+projectName}/groupStats', options)
|
||||
command.response_representation = Google::Apis::ClouderrorreportingV1beta1::ListGroupStatsResponse::Representation
|
||||
command.response_class = Google::Apis::ClouderrorreportingV1beta1::ListGroupStatsResponse
|
||||
command.params['projectName'] = project_name unless project_name.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['timeRange.period'] = time_range_period unless time_range_period.nil?
|
||||
command.query['alignment'] = alignment unless alignment.nil?
|
||||
command.query['groupId'] = group_id unless group_id.nil?
|
||||
@@ -331,9 +330,10 @@ module Google
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['order'] = order unless order.nil?
|
||||
command.query['serviceFilter.version'] = service_filter_version unless service_filter_version.nil?
|
||||
command.query['alignmentTime'] = alignment_time unless alignment_time.nil?
|
||||
command.query['serviceFilter.resourceType'] = service_filter_resource_type unless service_filter_resource_type.nil?
|
||||
command.query['alignmentTime'] = alignment_time unless alignment_time.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['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
|
||||
@@ -26,10 +26,7 @@ module Google
|
||||
# @see https://cloud.google.com/functions
|
||||
module CloudfunctionsV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20170328'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
REVISION = '20170425'
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -22,50 +22,16 @@ module Google
|
||||
module Apis
|
||||
module CloudfunctionsV1
|
||||
|
||||
# A resource that represents Google Cloud Platform location.
|
||||
class Location
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Service-specific metadata. For example the available capacity at the given
|
||||
# location.
|
||||
# Corresponds to the JSON property `metadata`
|
||||
# @return [Hash<String,Object>]
|
||||
attr_accessor :metadata
|
||||
|
||||
# Cross-service attributes for the location. For example
|
||||
# `"cloud.googleapis.com/region": "us-east1"`
|
||||
# Corresponds to the JSON property `labels`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :labels
|
||||
|
||||
# Resource name for the location, which may vary between implementations.
|
||||
# For example: `"projects/example-project/locations/us-east1"`
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# The canonical id for this location. For example: `"us-east1"`.
|
||||
# Corresponds to the JSON property `locationId`
|
||||
# @return [String]
|
||||
attr_accessor :location_id
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@metadata = args[:metadata] if args.key?(:metadata)
|
||||
@labels = args[:labels] if args.key?(:labels)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@location_id = args[:location_id] if args.key?(:location_id)
|
||||
end
|
||||
end
|
||||
|
||||
# Metadata describing an Operation
|
||||
class OperationMetadataV1Beta2
|
||||
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.
|
||||
# Corresponds to the JSON property `request`
|
||||
# @return [Hash<String,Object>]
|
||||
@@ -76,21 +42,15 @@ module Google
|
||||
# @return [String]
|
||||
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)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@target = args[:target] if args.key?(:target)
|
||||
@request = args[:request] if args.key?(:request)
|
||||
@type = args[:type] if args.key?(:type)
|
||||
@target = args[:target] if args.key?(:target)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -22,34 +22,18 @@ module Google
|
||||
module Apis
|
||||
module CloudfunctionsV1
|
||||
|
||||
class Location
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OperationMetadataV1Beta2
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Location
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
hash :metadata, as: 'metadata'
|
||||
hash :labels, as: 'labels'
|
||||
property :name, as: 'name'
|
||||
property :location_id, as: 'locationId'
|
||||
end
|
||||
end
|
||||
|
||||
class OperationMetadataV1Beta2
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :target, as: 'target'
|
||||
hash :request, as: 'request'
|
||||
property :type, as: 'type'
|
||||
property :target, as: 'target'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -47,36 +47,6 @@ module Google
|
||||
super('https://cloudfunctions.googleapis.com/', '')
|
||||
@batch_path = 'batch'
|
||||
end
|
||||
|
||||
# Get information about a location.
|
||||
# @param [String] name
|
||||
# Resource name for the location.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::CloudfunctionsV1::Location] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CloudfunctionsV1::Location]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server 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(name, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||
command.response_representation = Google::Apis::CloudfunctionsV1::Location::Representation
|
||||
command.response_class = Google::Apis::CloudfunctionsV1::Location
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ module Google
|
||||
# @see https://cloud.google.com/kms/
|
||||
module CloudkmsV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20170320'
|
||||
REVISION = '20170425'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -22,121 +22,19 @@ module Google
|
||||
module Apis
|
||||
module CloudkmsV1
|
||||
|
||||
class DecryptResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TestIamPermissionsRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListLocationsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Policy
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class 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 Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class UpdateCryptoKeyPrimaryVersionRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class DataAccessOptions
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListKeyRingsResponse
|
||||
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 CryptoKeyVersion
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CloudAuditOptions
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Binding
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class EncryptRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListCryptoKeyVersionsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TestIamPermissionsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class DestroyCryptoKeyVersionRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CryptoKey
|
||||
class Rule
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Rule
|
||||
class CryptoKey
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
@@ -191,146 +89,105 @@ module Google
|
||||
end
|
||||
|
||||
class DecryptResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :plaintext, :base64 => true, as: 'plaintext'
|
||||
end
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TestIamPermissionsRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :permissions, as: 'permissions'
|
||||
end
|
||||
end
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
class ListLocationsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :locations, as: 'locations', class: Google::Apis::CloudkmsV1::Location, decorator: Google::Apis::CloudkmsV1::Location::Representation
|
||||
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
end
|
||||
end
|
||||
|
||||
class Policy
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :etag, :base64 => true, as: 'etag'
|
||||
property :iam_owned, as: 'iamOwned'
|
||||
collection :rules, as: 'rules', class: Google::Apis::CloudkmsV1::Rule, decorator: Google::Apis::CloudkmsV1::Rule::Representation
|
||||
|
||||
property :version, as: 'version'
|
||||
collection :audit_configs, as: 'auditConfigs', class: Google::Apis::CloudkmsV1::AuditConfig, decorator: Google::Apis::CloudkmsV1::AuditConfig::Representation
|
||||
|
||||
collection :bindings, as: 'bindings', class: Google::Apis::CloudkmsV1::Binding, decorator: Google::Apis::CloudkmsV1::Binding::Representation
|
||||
|
||||
end
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class EncryptResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :name, as: 'name'
|
||||
property :ciphertext, :base64 => true, as: 'ciphertext'
|
||||
end
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class KeyRing
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :create_time, as: 'createTime'
|
||||
property :name, as: 'name'
|
||||
end
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListLocationsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Policy
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class RestoreCryptoKeyVersionRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class UpdateCryptoKeyPrimaryVersionRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :crypto_key_version_id, as: 'cryptoKeyVersionId'
|
||||
end
|
||||
end
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
class DataAccessOptions
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListKeyRingsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
property :total_size, as: 'totalSize'
|
||||
collection :key_rings, as: 'keyRings', class: Google::Apis::CloudkmsV1::KeyRing, decorator: Google::Apis::CloudkmsV1::KeyRing::Representation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
end
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class DataAccessOptions
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AuditConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :service, as: 'service'
|
||||
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::CloudkmsV1::AuditLogConfig, decorator: Google::Apis::CloudkmsV1::AuditLogConfig::Representation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
collection :exempted_members, as: 'exemptedMembers'
|
||||
end
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CryptoKeyVersion
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :destroy_time, as: 'destroyTime'
|
||||
property :create_time, as: 'createTime'
|
||||
property :state, as: 'state'
|
||||
property :name, as: 'name'
|
||||
property :destroy_event_time, as: 'destroyEventTime'
|
||||
end
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CloudAuditOptions
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Binding
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :members, as: 'members'
|
||||
property :role, as: 'role'
|
||||
end
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class EncryptRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :plaintext, :base64 => true, as: 'plaintext'
|
||||
property :additional_authenticated_data, :base64 => true, as: 'additionalAuthenticatedData'
|
||||
end
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListCryptoKeyVersionsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
property :total_size, as: 'totalSize'
|
||||
collection :crypto_key_versions, as: 'cryptoKeyVersions', class: Google::Apis::CloudkmsV1::CryptoKeyVersion, decorator: Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
end
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TestIamPermissionsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :permissions, as: 'permissions'
|
||||
end
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class DestroyCryptoKeyVersionRequest
|
||||
@@ -339,22 +196,10 @@ module Google
|
||||
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
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :not_in, as: 'notIn'
|
||||
property :description, as: 'description'
|
||||
collection :conditions, as: 'conditions', class: Google::Apis::CloudkmsV1::Condition, decorator: Google::Apis::CloudkmsV1::Condition::Representation
|
||||
|
||||
@@ -363,28 +208,40 @@ module Google
|
||||
collection :in, as: 'in'
|
||||
collection :permissions, as: 'permissions'
|
||||
property :action, as: 'action'
|
||||
collection :not_in, as: 'notIn'
|
||||
end
|
||||
end
|
||||
|
||||
class CryptoKey
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
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'
|
||||
property :purpose, as: 'purpose'
|
||||
property :next_rotation_time, as: 'nextRotationTime'
|
||||
end
|
||||
end
|
||||
|
||||
class LogConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :cloud_audit, as: 'cloudAudit', class: Google::Apis::CloudkmsV1::CloudAuditOptions, decorator: Google::Apis::CloudkmsV1::CloudAuditOptions::Representation
|
||||
|
||||
property :counter, as: 'counter', class: Google::Apis::CloudkmsV1::CounterOptions, decorator: Google::Apis::CloudkmsV1::CounterOptions::Representation
|
||||
|
||||
property :data_access, as: 'dataAccess', class: Google::Apis::CloudkmsV1::DataAccessOptions, decorator: Google::Apis::CloudkmsV1::DataAccessOptions::Representation
|
||||
|
||||
property :cloud_audit, as: 'cloudAudit', class: Google::Apis::CloudkmsV1::CloudAuditOptions, decorator: Google::Apis::CloudkmsV1::CloudAuditOptions::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class SetIamPolicyRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :update_mask, as: 'updateMask'
|
||||
property :policy, as: 'policy', class: Google::Apis::CloudkmsV1::Policy, decorator: Google::Apis::CloudkmsV1::Policy::Representation
|
||||
|
||||
property :update_mask, as: 'updateMask'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -419,12 +276,12 @@ module Google
|
||||
class Condition
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :values, as: 'values'
|
||||
property :value, as: 'value'
|
||||
property :sys, as: 'sys'
|
||||
property :iam, as: 'iam'
|
||||
collection :values, as: 'values'
|
||||
property :op, as: 'op'
|
||||
property :svc, as: 'svc'
|
||||
property :sys, as: 'sys'
|
||||
property :value, as: 'value'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -439,8 +296,151 @@ module Google
|
||||
class AuditLogConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :exempted_members, as: 'exemptedMembers'
|
||||
property :log_type, as: 'logType'
|
||||
collection :exempted_members, as: 'exemptedMembers'
|
||||
end
|
||||
end
|
||||
|
||||
class DecryptResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :plaintext, :base64 => true, as: 'plaintext'
|
||||
end
|
||||
end
|
||||
|
||||
class TestIamPermissionsRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :permissions, as: 'permissions'
|
||||
end
|
||||
end
|
||||
|
||||
class EncryptResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :ciphertext, :base64 => true, as: 'ciphertext'
|
||||
property :name, as: 'name'
|
||||
end
|
||||
end
|
||||
|
||||
class KeyRing
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :create_time, as: 'createTime'
|
||||
property :name, as: 'name'
|
||||
end
|
||||
end
|
||||
|
||||
class ListLocationsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
collection :locations, as: 'locations', class: Google::Apis::CloudkmsV1::Location, decorator: Google::Apis::CloudkmsV1::Location::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Policy
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :iam_owned, as: 'iamOwned'
|
||||
collection :rules, as: 'rules', class: Google::Apis::CloudkmsV1::Rule, decorator: Google::Apis::CloudkmsV1::Rule::Representation
|
||||
|
||||
property :version, as: 'version'
|
||||
collection :audit_configs, as: 'auditConfigs', class: Google::Apis::CloudkmsV1::AuditConfig, decorator: Google::Apis::CloudkmsV1::AuditConfig::Representation
|
||||
|
||||
collection :bindings, as: 'bindings', class: Google::Apis::CloudkmsV1::Binding, decorator: Google::Apis::CloudkmsV1::Binding::Representation
|
||||
|
||||
property :etag, :base64 => true, as: 'etag'
|
||||
end
|
||||
end
|
||||
|
||||
class RestoreCryptoKeyVersionRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class UpdateCryptoKeyPrimaryVersionRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :crypto_key_version_id, as: 'cryptoKeyVersionId'
|
||||
end
|
||||
end
|
||||
|
||||
class ListKeyRingsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :key_rings, as: 'keyRings', class: Google::Apis::CloudkmsV1::KeyRing, decorator: Google::Apis::CloudkmsV1::KeyRing::Representation
|
||||
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
property :total_size, as: 'totalSize'
|
||||
end
|
||||
end
|
||||
|
||||
class DataAccessOptions
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class AuditConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :exempted_members, as: 'exemptedMembers'
|
||||
property :service, as: 'service'
|
||||
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::CloudkmsV1::AuditLogConfig, decorator: Google::Apis::CloudkmsV1::AuditLogConfig::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class CryptoKeyVersion
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :destroy_event_time, as: 'destroyEventTime'
|
||||
property :destroy_time, as: 'destroyTime'
|
||||
property :create_time, as: 'createTime'
|
||||
property :state, as: 'state'
|
||||
property :name, as: 'name'
|
||||
end
|
||||
end
|
||||
|
||||
class CloudAuditOptions
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class Binding
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :members, as: 'members'
|
||||
property :role, as: 'role'
|
||||
end
|
||||
end
|
||||
|
||||
class EncryptRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :additional_authenticated_data, :base64 => true, as: 'additionalAuthenticatedData'
|
||||
property :plaintext, :base64 => true, as: 'plaintext'
|
||||
end
|
||||
end
|
||||
|
||||
class ListCryptoKeyVersionsResponse
|
||||
# @private
|
||||
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 :total_size, as: 'totalSize'
|
||||
end
|
||||
end
|
||||
|
||||
class TestIamPermissionsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :permissions, as: 'permissions'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -25,7 +25,7 @@ module Google
|
||||
# @see https://cloud.google.com/monitoring/v2beta2/
|
||||
module CloudmonitoringV2beta2
|
||||
VERSION = 'V2beta2'
|
||||
REVISION = '20170323'
|
||||
REVISION = '20170501'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
@@ -26,13 +26,13 @@ module Google
|
||||
# @see https://cloud.google.com/resource-manager
|
||||
module CloudresourcemanagerV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20170329'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
REVISION = '20170501'
|
||||
|
||||
# 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
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -38,17 +38,6 @@ module Google
|
||||
class Constraint
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A `Constraint` that allows or disallows a list of string values, which are
|
||||
# configured by an Organization's policy administrator with a `Policy`.
|
||||
# Corresponds to the JSON property `listConstraint`
|
||||
# @return [Google::Apis::CloudresourcemanagerV1::ListConstraint]
|
||||
attr_accessor :list_constraint
|
||||
|
||||
# Version of the `Constraint`. Default version is 0;
|
||||
# Corresponds to the JSON property `version`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :version
|
||||
|
||||
# Detailed description of what this `Constraint` controls as well as how and
|
||||
# where it is enforced.
|
||||
# Mutable.
|
||||
@@ -81,45 +70,30 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# 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
|
||||
# configured by an Organization's policy administrator with a `Policy`.
|
||||
# Corresponds to the JSON property `listConstraint`
|
||||
# @return [Google::Apis::CloudresourcemanagerV1::ListConstraint]
|
||||
attr_accessor :list_constraint
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@list_constraint = args[:list_constraint] if args.key?(:list_constraint)
|
||||
@version = args[:version] if args.key?(:version)
|
||||
@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)
|
||||
@constraint_default = args[:constraint_default] if args.key?(:constraint_default)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
end
|
||||
end
|
||||
|
||||
# The response message for Liens.ListLiens.
|
||||
class ListLiensResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Token to retrieve the next page of results, or empty if there are no more
|
||||
# results in the list.
|
||||
# Corresponds to the JSON property `nextPageToken`
|
||||
# @return [String]
|
||||
attr_accessor :next_page_token
|
||||
|
||||
# A list of Liens.
|
||||
# Corresponds to the JSON property `liens`
|
||||
# @return [Array<Google::Apis::CloudresourcemanagerV1::Lien>]
|
||||
attr_accessor :liens
|
||||
|
||||
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)
|
||||
@liens = args[:liens] if args.key?(:liens)
|
||||
@version = args[:version] if args.key?(:version)
|
||||
@list_constraint = args[:list_constraint] if args.key?(:list_constraint)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -195,6 +169,32 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# The response message for Liens.ListLiens.
|
||||
class ListLiensResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Token to retrieve the next page of results, or empty if there are no more
|
||||
# results in the list.
|
||||
# Corresponds to the JSON property `nextPageToken`
|
||||
# @return [String]
|
||||
attr_accessor :next_page_token
|
||||
|
||||
# A list of Liens.
|
||||
# Corresponds to the JSON property `liens`
|
||||
# @return [Array<Google::Apis::CloudresourcemanagerV1::Lien>]
|
||||
attr_accessor :liens
|
||||
|
||||
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)
|
||||
@liens = args[:liens] if args.key?(:liens)
|
||||
end
|
||||
end
|
||||
|
||||
# Associates `members` with a `role`.
|
||||
class Binding
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -235,6 +235,25 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# The request sent to the GetOrgPolicy method.
|
||||
class GetOrgPolicyRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Name of the `Constraint` to get the `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
|
||||
|
||||
# Ignores policies set above this resource and restores the
|
||||
# `constraint_default` enforcement behavior of the specific `Constraint` at
|
||||
# this resource.
|
||||
@@ -258,25 +277,6 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# The request sent to the GetOrgPolicy method.
|
||||
class GetOrgPolicyRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Name of the `Constraint` to get the `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 UndeleteProject
|
||||
# method.
|
||||
class UndeleteProjectRequest
|
||||
@@ -491,12 +491,6 @@ module Google
|
||||
# @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\])?.
|
||||
@@ -511,6 +505,12 @@ module Google
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :labels
|
||||
|
||||
# Creation time.
|
||||
# Read-only.
|
||||
# Corresponds to the JSON property `createTime`
|
||||
# @return [String]
|
||||
attr_accessor :create_time
|
||||
|
||||
# The user-assigned display name of the Project.
|
||||
# It must be 4 to 30 characters.
|
||||
# Allowed characters are: lowercase and uppercase letters, numbers,
|
||||
@@ -540,8 +540,8 @@ module Google
|
||||
@lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
|
||||
@project_number = args[:project_number] if args.key?(:project_number)
|
||||
@parent = args[:parent] if args.key?(:parent)
|
||||
@create_time = args[:create_time] if args.key?(:create_time)
|
||||
@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
|
||||
@@ -624,6 +624,98 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# Defines a Cloud Organization `Policy` which is used to specify `Constraints`
|
||||
# for configurations of Cloud Platform resources.
|
||||
class OrgPolicy
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# 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
|
||||
# resource.
|
||||
# A `ListPolicy` can define specific values that are allowed or denied by
|
||||
# setting either the `allowed_values` or `denied_values` fields. It can also
|
||||
# be used to allow or deny all values, by setting the `all_values` field. If
|
||||
# `all_values` is `ALL_VALUES_UNSPECIFIED`, exactly one of `allowed_values`
|
||||
# or `denied_values` must be set (attempting to set both or neither will
|
||||
# result in a failed request). If `all_values` is set to either `ALLOW` or
|
||||
# `DENY`, `allowed_values` and `denied_values` must be unset.
|
||||
# Corresponds to the JSON property `listPolicy`
|
||||
# @return [Google::Apis::CloudresourcemanagerV1::ListPolicy]
|
||||
attr_accessor :list_policy
|
||||
|
||||
# An opaque tag indicating the current version of the `Policy`, used for
|
||||
# concurrency control.
|
||||
# When the `Policy` is returned from either a `GetPolicy` or a
|
||||
# `ListOrgPolicy` request, this `etag` indicates the version of the current
|
||||
# `Policy` to use when executing a read-modify-write loop.
|
||||
# When the `Policy` is returned from a `GetEffectivePolicy` request, the
|
||||
# `etag` will be unset.
|
||||
# When the `Policy` is used in a `SetOrgPolicy` method, use the `etag` value
|
||||
# that was returned from a `GetOrgPolicy` request as part of a
|
||||
# read-modify-write loop for concurrency control. Not setting the `etag`in a
|
||||
# `SetOrgPolicy` request will result in an unconditional write of the
|
||||
# `Policy`.
|
||||
# Corresponds to the JSON property `etag`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :etag
|
||||
|
||||
# The name of the `Constraint` the `Policy` is configuring, for example,
|
||||
# `constraints/serviceuser.services`.
|
||||
# Immutable after creation.
|
||||
# Corresponds to the JSON property `constraint`
|
||||
# @return [String]
|
||||
attr_accessor :constraint
|
||||
|
||||
# Used in `policy_type` to specify how `boolean_policy` will behave at this
|
||||
# resource.
|
||||
# Corresponds to the JSON property `booleanPolicy`
|
||||
# @return [Google::Apis::CloudresourcemanagerV1::BooleanPolicy]
|
||||
attr_accessor :boolean_policy
|
||||
|
||||
# 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
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@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)
|
||||
@etag = args[:etag] if args.key?(:etag)
|
||||
@constraint = args[:constraint] if args.key?(:constraint)
|
||||
@boolean_policy = args[:boolean_policy] if args.key?(:boolean_policy)
|
||||
@update_time = args[:update_time] if args.key?(:update_time)
|
||||
end
|
||||
end
|
||||
|
||||
# Used in `policy_type` to specify how `boolean_policy` will behave at this
|
||||
# resource.
|
||||
class BooleanPolicy
|
||||
@@ -682,98 +774,6 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# Defines a Cloud Organization `Policy` which is used to specify `Constraints`
|
||||
# for configurations of Cloud Platform resources.
|
||||
class OrgPolicy
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Used in `policy_type` to specify how `list_policy` behaves at this
|
||||
# resource.
|
||||
# A `ListPolicy` can define specific values that are allowed or denied by
|
||||
# setting either the `allowed_values` or `denied_values` fields. It can also
|
||||
# be used to allow or deny all values, by setting the `all_values` field. If
|
||||
# `all_values` is `ALL_VALUES_UNSPECIFIED`, exactly one of `allowed_values`
|
||||
# or `denied_values` must be set (attempting to set both or neither will
|
||||
# result in a failed request). If `all_values` is set to either `ALLOW` or
|
||||
# `DENY`, `allowed_values` and `denied_values` must be unset.
|
||||
# Corresponds to the JSON property `listPolicy`
|
||||
# @return [Google::Apis::CloudresourcemanagerV1::ListPolicy]
|
||||
attr_accessor :list_policy
|
||||
|
||||
# An opaque tag indicating the current version of the `Policy`, used for
|
||||
# concurrency control.
|
||||
# When the `Policy` is returned from either a `GetPolicy` or a
|
||||
# `ListOrgPolicy` request, this `etag` indicates the version of the current
|
||||
# `Policy` to use when executing a read-modify-write loop.
|
||||
# When the `Policy` is returned from a `GetEffectivePolicy` request, the
|
||||
# `etag` will be unset.
|
||||
# When the `Policy` is used in a `SetOrgPolicy` method, use the `etag` value
|
||||
# that was returned from a `GetOrgPolicy` request as part of a
|
||||
# read-modify-write loop for concurrency control. Not setting the `etag`in a
|
||||
# `SetOrgPolicy` request will result in an unconditional write of the
|
||||
# `Policy`.
|
||||
# Corresponds to the JSON property `etag`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :etag
|
||||
|
||||
# Used in `policy_type` to specify how `boolean_policy` will behave at this
|
||||
# resource.
|
||||
# Corresponds to the JSON property `booleanPolicy`
|
||||
# @return [Google::Apis::CloudresourcemanagerV1::BooleanPolicy]
|
||||
attr_accessor :boolean_policy
|
||||
|
||||
# The name of the `Constraint` the `Policy` is configuring, for example,
|
||||
# `constraints/serviceuser.services`.
|
||||
# Immutable after creation.
|
||||
# Corresponds to the JSON property `constraint`
|
||||
# @return [String]
|
||||
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)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@list_policy = args[:list_policy] if args.key?(:list_policy)
|
||||
@etag = args[:etag] if args.key?(:etag)
|
||||
@boolean_policy = args[:boolean_policy] if args.key?(:boolean_policy)
|
||||
@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
|
||||
|
||||
# A Lien represents an encumbrance on the actions that can be performed on a
|
||||
# resource.
|
||||
class Lien
|
||||
@@ -1475,26 +1475,26 @@ module Google
|
||||
class ResourceId
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Required field for the type-specific id. This should correspond to the id
|
||||
# used in the type-specific API's.
|
||||
# Corresponds to the JSON property `id`
|
||||
# @return [String]
|
||||
attr_accessor :id
|
||||
|
||||
# Required field representing the resource type this id is for.
|
||||
# At present, the valid types are: "organization"
|
||||
# Corresponds to the JSON property `type`
|
||||
# @return [String]
|
||||
attr_accessor :type
|
||||
|
||||
# Required field for the type-specific id. This should correspond to the id
|
||||
# used in the type-specific API's.
|
||||
# Corresponds to the JSON property `id`
|
||||
# @return [String]
|
||||
attr_accessor :id
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@id = args[:id] if args.key?(:id)
|
||||
@type = args[:type] if args.key?(:type)
|
||||
@id = args[:id] if args.key?(:id)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1545,93 +1545,11 @@ module Google
|
||||
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
|
||||
@@ -1702,17 +1620,99 @@ module Google
|
||||
# @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)
|
||||
@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)
|
||||
@done = args[:done] if args.key?(:done)
|
||||
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 AuditConfig 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
|
||||
end
|
||||
|
||||
@@ -28,13 +28,13 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListLiensResponse
|
||||
class Status
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Status
|
||||
class ListLiensResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
@@ -46,13 +46,13 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class RestoreDefault
|
||||
class GetOrgPolicyRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GetOrgPolicyRequest
|
||||
class RestoreDefault
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
@@ -130,13 +130,13 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class BooleanPolicy
|
||||
class OrgPolicy
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrgPolicy
|
||||
class BooleanPolicy
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
@@ -262,13 +262,13 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AuditConfig
|
||||
class Operation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Operation
|
||||
class AuditConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
@@ -277,23 +277,14 @@ module Google
|
||||
class Constraint
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :list_constraint, as: 'listConstraint', class: Google::Apis::CloudresourcemanagerV1::ListConstraint, decorator: Google::Apis::CloudresourcemanagerV1::ListConstraint::Representation
|
||||
|
||||
property :version, as: 'version'
|
||||
property :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 :constraint_default, as: 'constraintDefault'
|
||||
property :name, as: 'name'
|
||||
end
|
||||
end
|
||||
|
||||
class ListLiensResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
collection :liens, as: 'liens', class: Google::Apis::CloudresourcemanagerV1::Lien, decorator: Google::Apis::CloudresourcemanagerV1::Lien::Representation
|
||||
property :version, as: 'version'
|
||||
property :list_constraint, as: 'listConstraint', class: Google::Apis::CloudresourcemanagerV1::ListConstraint, decorator: Google::Apis::CloudresourcemanagerV1::ListConstraint::Representation
|
||||
|
||||
end
|
||||
end
|
||||
@@ -307,6 +298,15 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class ListLiensResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
collection :liens, as: 'liens', class: Google::Apis::CloudresourcemanagerV1::Lien, decorator: Google::Apis::CloudresourcemanagerV1::Lien::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Binding
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -315,12 +315,6 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class RestoreDefault
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class GetOrgPolicyRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -328,6 +322,12 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class RestoreDefault
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class UndeleteProjectRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -393,8 +393,8 @@ module Google
|
||||
property :project_number, :numeric_string => true, as: 'projectNumber'
|
||||
property :parent, as: 'parent', class: Google::Apis::CloudresourcemanagerV1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1::ResourceId::Representation
|
||||
|
||||
property :create_time, as: 'createTime'
|
||||
hash :labels, as: 'labels'
|
||||
property :create_time, as: 'createTime'
|
||||
property :name, as: 'name'
|
||||
property :project_id, as: 'projectId'
|
||||
end
|
||||
@@ -425,6 +425,22 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class OrgPolicy
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :version, as: 'version'
|
||||
property :restore_default, as: 'restoreDefault', class: Google::Apis::CloudresourcemanagerV1::RestoreDefault, decorator: Google::Apis::CloudresourcemanagerV1::RestoreDefault::Representation
|
||||
|
||||
property :list_policy, as: 'listPolicy', class: Google::Apis::CloudresourcemanagerV1::ListPolicy, decorator: Google::Apis::CloudresourcemanagerV1::ListPolicy::Representation
|
||||
|
||||
property :etag, :base64 => true, as: 'etag'
|
||||
property :constraint, as: 'constraint'
|
||||
property :boolean_policy, as: 'booleanPolicy', class: Google::Apis::CloudresourcemanagerV1::BooleanPolicy, decorator: Google::Apis::CloudresourcemanagerV1::BooleanPolicy::Representation
|
||||
|
||||
property :update_time, as: 'updateTime'
|
||||
end
|
||||
end
|
||||
|
||||
class BooleanPolicy
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -432,22 +448,6 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class OrgPolicy
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :list_policy, as: 'listPolicy', class: Google::Apis::CloudresourcemanagerV1::ListPolicy, decorator: Google::Apis::CloudresourcemanagerV1::ListPolicy::Representation
|
||||
|
||||
property :etag, :base64 => true, as: 'etag'
|
||||
property :boolean_policy, as: 'booleanPolicy', class: Google::Apis::CloudresourcemanagerV1::BooleanPolicy, decorator: Google::Apis::CloudresourcemanagerV1::BooleanPolicy::Representation
|
||||
|
||||
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
|
||||
|
||||
class Lien
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -601,8 +601,8 @@ module Google
|
||||
class ResourceId
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :id, as: 'id'
|
||||
property :type, as: 'type'
|
||||
property :id, as: 'id'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -621,6 +621,18 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class Operation
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
hash :response, as: 'response'
|
||||
property :name, as: 'name'
|
||||
property :error, as: 'error', class: Google::Apis::CloudresourcemanagerV1::Status, decorator: Google::Apis::CloudresourcemanagerV1::Status::Representation
|
||||
|
||||
hash :metadata, as: 'metadata'
|
||||
property :done, as: 'done'
|
||||
end
|
||||
end
|
||||
|
||||
class AuditConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -629,18 +641,6 @@ module Google
|
||||
|
||||
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
|
||||
File diff suppressed because it is too large.
Load diff
@@ -26,13 +26,13 @@ module Google
|
||||
# @see https://cloud.google.com/resource-manager
|
||||
module CloudresourcemanagerV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20170329'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
REVISION = '20170501'
|
||||
|
||||
# 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
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -25,7 +25,7 @@ module Google
|
||||
# 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.
|
||||
# An AuditConfig 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
|
||||
@@ -51,7 +51,7 @@ module Google
|
||||
# ]
|
||||
# `,
|
||||
# `
|
||||
# "service": "fooservice@googleapis.com"
|
||||
# "service": "fooservice.googleapis.com"
|
||||
# "audit_log_configs": [
|
||||
# `
|
||||
# "log_type": "DATA_READ",
|
||||
@@ -72,12 +72,6 @@ module Google
|
||||
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.
|
||||
@@ -85,14 +79,20 @@ module Google
|
||||
# @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)
|
||||
@audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
|
||||
@service = args[:service] if args.key?(:service)
|
||||
@audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -260,25 +260,19 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# The request sent to the UndeleteProject
|
||||
# method.
|
||||
class UndeleteProjectRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
end
|
||||
end
|
||||
|
||||
# The root node in the resource hierarchy to which a particular entity's
|
||||
# (e.g., company) resources belong.
|
||||
class Organization
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# An immutable id for the Organization that is assigned on creation. This
|
||||
# should be omitted when creating a new Organization.
|
||||
# This field is read-only.
|
||||
# This field is deprecated and will be removed in v1. Use name instead.
|
||||
# Corresponds to the JSON property `organizationId`
|
||||
# @return [String]
|
||||
attr_accessor :organization_id
|
||||
|
||||
# The organization's current lifecycle state. Assigned by the server.
|
||||
# @OutputOnly
|
||||
# Corresponds to the JSON property `lifecycleState`
|
||||
@@ -314,13 +308,25 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# An immutable id for the Organization that is assigned on creation. This
|
||||
# should be omitted when creating a new Organization.
|
||||
# This field is read-only.
|
||||
# This field is deprecated and will be removed in v1. Use name instead.
|
||||
# Corresponds to the JSON property `organizationId`
|
||||
# @return [String]
|
||||
attr_accessor :organization_id
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@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)
|
||||
@creation_time = args[:creation_time] if args.key?(:creation_time)
|
||||
@owner = args[:owner] if args.key?(:owner)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
end
|
||||
end
|
||||
|
||||
# The request sent to the UndeleteProject
|
||||
# method.
|
||||
class UndeleteProjectRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
@@ -328,12 +334,6 @@ module Google
|
||||
|
||||
# Update properties of this object
|
||||
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)
|
||||
@owner = args[:owner] if args.key?(:owner)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@organization_id = args[:organization_id] if args.key?(:organization_id)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -374,19 +374,6 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# Request message for `GetIamPolicy` method.
|
||||
class GetIamPolicyRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
end
|
||||
end
|
||||
|
||||
# Response message for `TestIamPermissions` method.
|
||||
class TestIamPermissionsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -407,6 +394,19 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# Request message for `GetIamPolicy` method.
|
||||
class GetIamPolicyRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
end
|
||||
end
|
||||
|
||||
# Response from the GetAncestry method.
|
||||
class GetAncestryResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -450,49 +450,6 @@ module Google
|
||||
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
|
||||
|
||||
# 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
|
||||
# permission.
|
||||
# Follows the same format of Binding.members.
|
||||
# Corresponds to the JSON property `exemptedMembers`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :exempted_members
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@log_type = args[:log_type] if args.key?(:log_type)
|
||||
@exempted_members = args[:exempted_members] if args.key?(:exempted_members)
|
||||
end
|
||||
end
|
||||
|
||||
# A page of the response received from the
|
||||
# ListProjects
|
||||
# method.
|
||||
@@ -531,6 +488,49 @@ module Google
|
||||
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
|
||||
|
||||
# The request sent to the
|
||||
# GetAncestry
|
||||
# method.
|
||||
@@ -552,11 +552,20 @@ module Google
|
||||
class Project
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Creation time.
|
||||
# The number uniquely identifying the project.
|
||||
# Example: <code>415104041262</code>
|
||||
# Read-only.
|
||||
# Corresponds to the JSON property `createTime`
|
||||
# @return [String]
|
||||
attr_accessor :create_time
|
||||
# Corresponds to the JSON property `projectNumber`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :project_number
|
||||
|
||||
# A container to reference an id for any resource type. A `resource` in Google
|
||||
# Cloud Platform is a generic term for something you (a developer) may want to
|
||||
# interact with through one of our API's. Some examples are an App Engine app,
|
||||
# a Compute Engine instance, a Cloud SQL database, and so on.
|
||||
# Corresponds to the JSON property `parent`
|
||||
# @return [Google::Apis::CloudresourcemanagerV1beta1::ResourceId]
|
||||
attr_accessor :parent
|
||||
|
||||
# The labels associated with this Project.
|
||||
# Label keys must be between 1 and 63 characters long and must conform
|
||||
@@ -572,6 +581,12 @@ module Google
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :labels
|
||||
|
||||
# Creation time.
|
||||
# Read-only.
|
||||
# Corresponds to the JSON property `createTime`
|
||||
# @return [String]
|
||||
attr_accessor :create_time
|
||||
|
||||
# The user-assigned display name of the Project.
|
||||
# It must be 4 to 30 characters.
|
||||
# Allowed characters are: lowercase and uppercase letters, numbers,
|
||||
@@ -598,34 +613,19 @@ module Google
|
||||
# @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)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@create_time = args[:create_time] if args.key?(:create_time)
|
||||
@project_number = args[:project_number] if args.key?(:project_number)
|
||||
@parent = args[:parent] if args.key?(:parent)
|
||||
@labels = args[:labels] if args.key?(:labels)
|
||||
@create_time = args[:create_time] if args.key?(:create_time)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@project_id = args[:project_id] if args.key?(:project_id)
|
||||
@lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
|
||||
@project_number = args[:project_number] if args.key?(:project_number)
|
||||
@parent = args[:parent] if args.key?(:parent)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -651,14 +651,65 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# A classification of the Folder Operation error.
|
||||
class FolderOperationError
|
||||
# Defines an Identity and Access Management (IAM) policy. It is used to
|
||||
# specify access control policies for Cloud Platform resources.
|
||||
# A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
|
||||
# `members` to a `role`, where the members can be user accounts, Google groups,
|
||||
# Google domains, and service accounts. A `role` is a named list of permissions
|
||||
# defined by IAM.
|
||||
# **Example**
|
||||
# `
|
||||
# "bindings": [
|
||||
# `
|
||||
# "role": "roles/owner",
|
||||
# "members": [
|
||||
# "user:mike@example.com",
|
||||
# "group:admins@example.com",
|
||||
# "domain:google.com",
|
||||
# "serviceAccount:my-other-app@appspot.gserviceaccount.com",
|
||||
# ]
|
||||
# `,
|
||||
# `
|
||||
# "role": "roles/viewer",
|
||||
# "members": ["user:sean@example.com"]
|
||||
# `
|
||||
# ]
|
||||
# `
|
||||
# For a description of IAM and its features, see the
|
||||
# [IAM developer's guide](https://cloud.google.com/iam).
|
||||
class Policy
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The type of operation error experienced.
|
||||
# Corresponds to the JSON property `errorMessageId`
|
||||
# Version of the `Policy`. The default version is 0.
|
||||
# Corresponds to the JSON property `version`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :version
|
||||
|
||||
# Specifies cloud audit logging configuration for this policy.
|
||||
# Corresponds to the JSON property `auditConfigs`
|
||||
# @return [Array<Google::Apis::CloudresourcemanagerV1beta1::AuditConfig>]
|
||||
attr_accessor :audit_configs
|
||||
|
||||
# Associates a list of `members` to a `role`.
|
||||
# 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
|
||||
# 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 :error_message_id
|
||||
attr_accessor :etag
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
@@ -666,7 +717,10 @@ module Google
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@error_message_id = args[:error_message_id] if args.key?(:error_message_id)
|
||||
@version = args[:version] if args.key?(:version)
|
||||
@audit_configs = args[:audit_configs] if args.key?(:audit_configs)
|
||||
@bindings = args[:bindings] if args.key?(:bindings)
|
||||
@etag = args[:etag] if args.key?(:etag)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -709,65 +763,14 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# Defines an Identity and Access Management (IAM) policy. It is used to
|
||||
# specify access control policies for Cloud Platform resources.
|
||||
# A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
|
||||
# `members` to a `role`, where the members can be user accounts, Google groups,
|
||||
# Google domains, and service accounts. A `role` is a named list of permissions
|
||||
# defined by IAM.
|
||||
# **Example**
|
||||
# `
|
||||
# "bindings": [
|
||||
# `
|
||||
# "role": "roles/owner",
|
||||
# "members": [
|
||||
# "user:mike@example.com",
|
||||
# "group:admins@example.com",
|
||||
# "domain:google.com",
|
||||
# "serviceAccount:my-other-app@appspot.gserviceaccount.com",
|
||||
# ]
|
||||
# `,
|
||||
# `
|
||||
# "role": "roles/viewer",
|
||||
# "members": ["user:sean@example.com"]
|
||||
# `
|
||||
# ]
|
||||
# `
|
||||
# For a description of IAM and its features, see the
|
||||
# [IAM developer's guide](https://cloud.google.com/iam).
|
||||
class Policy
|
||||
# A classification of the Folder Operation error.
|
||||
class FolderOperationError
|
||||
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
|
||||
# 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.
|
||||
# The type of operation error experienced.
|
||||
# Corresponds to the JSON property `errorMessageId`
|
||||
# @return [String]
|
||||
attr_accessor :etag
|
||||
|
||||
# Version of the `Policy`. The default version is 0.
|
||||
# Corresponds to the JSON property `version`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :version
|
||||
attr_accessor :error_message_id
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
@@ -775,10 +778,7 @@ module Google
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@audit_configs = args[:audit_configs] if args.key?(:audit_configs)
|
||||
@bindings = args[:bindings] if args.key?(:bindings)
|
||||
@etag = args[:etag] if args.key?(:etag)
|
||||
@version = args[:version] if args.key?(:version)
|
||||
@error_message_id = args[:error_message_id] if args.key?(:error_message_id)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -58,13 +58,13 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class UndeleteProjectRequest
|
||||
class Organization
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Organization
|
||||
class UndeleteProjectRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
@@ -76,13 +76,13 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GetIamPolicyRequest
|
||||
class TestIamPermissionsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TestIamPermissionsResponse
|
||||
class GetIamPolicyRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
@@ -100,13 +100,13 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AuditLogConfig
|
||||
class ListProjectsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListProjectsResponse
|
||||
class AuditLogConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
@@ -130,7 +130,7 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class FolderOperationError
|
||||
class Policy
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
@@ -142,7 +142,7 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Policy
|
||||
class FolderOperationError
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
@@ -157,9 +157,9 @@ module Google
|
||||
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
|
||||
|
||||
property :service, as: 'service'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -203,22 +203,22 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class UndeleteProjectRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class Organization
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :organization_id, as: 'organizationId'
|
||||
property :lifecycle_state, as: 'lifecycleState'
|
||||
property :display_name, as: 'displayName'
|
||||
property :creation_time, as: 'creationTime'
|
||||
property :owner, as: 'owner', class: Google::Apis::CloudresourcemanagerV1beta1::OrganizationOwner, decorator: Google::Apis::CloudresourcemanagerV1beta1::OrganizationOwner::Representation
|
||||
|
||||
property :name, as: 'name'
|
||||
property :organization_id, as: 'organizationId'
|
||||
end
|
||||
end
|
||||
|
||||
class UndeleteProjectRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
@@ -231,12 +231,6 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class GetIamPolicyRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class TestIamPermissionsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -244,6 +238,12 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class GetIamPolicyRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class GetAncestryResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -259,14 +259,6 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class AuditLogConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :log_type, as: 'logType'
|
||||
collection :exempted_members, as: 'exemptedMembers'
|
||||
end
|
||||
end
|
||||
|
||||
class ListProjectsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -276,6 +268,14 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class AuditLogConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :exempted_members, as: 'exemptedMembers'
|
||||
property :log_type, as: 'logType'
|
||||
end
|
||||
end
|
||||
|
||||
class GetAncestryRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -285,14 +285,14 @@ module Google
|
||||
class Project
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :create_time, as: 'createTime'
|
||||
hash :labels, as: 'labels'
|
||||
property :name, as: 'name'
|
||||
property :project_id, as: 'projectId'
|
||||
property :lifecycle_state, as: 'lifecycleState'
|
||||
property :project_number, :numeric_string => true, as: 'projectNumber'
|
||||
property :parent, as: 'parent', class: Google::Apis::CloudresourcemanagerV1beta1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1beta1::ResourceId::Representation
|
||||
|
||||
hash :labels, as: 'labels'
|
||||
property :create_time, as: 'createTime'
|
||||
property :name, as: 'name'
|
||||
property :project_id, as: 'projectId'
|
||||
property :lifecycle_state, as: 'lifecycleState'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -303,10 +303,15 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class FolderOperationError
|
||||
class Policy
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
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
|
||||
|
||||
property :etag, :base64 => true, as: 'etag'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -320,15 +325,10 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class Policy
|
||||
class FolderOperationError
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
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'
|
||||
property :error_message_id, as: 'errorMessageId'
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -48,435 +48,9 @@ module Google
|
||||
@batch_path = 'batch'
|
||||
end
|
||||
|
||||
# Returns the IAM access control policy for the specified Project.
|
||||
# Permission is denied if the policy or the resource does not exist.
|
||||
# @param [String] resource
|
||||
# REQUIRED: The resource for which the policy is being requested.
|
||||
# See the operation documentation for the appropriate value for this field.
|
||||
# @param [Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Policy] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_project_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1beta1/projects/{resource}:getIamPolicy', options)
|
||||
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest::Representation
|
||||
command.request_object = get_iam_policy_request_object
|
||||
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
|
||||
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy
|
||||
command.params['resource'] = resource unless resource.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Restores the Project identified by the specified
|
||||
# `project_id` (for example, `my-project-123`).
|
||||
# You can only use this method for a Project that has a lifecycle state of
|
||||
# DELETE_REQUESTED.
|
||||
# After deletion starts, the Project cannot be restored.
|
||||
# The caller must have modify permissions for this Project.
|
||||
# @param [String] project_id
|
||||
# The project ID (for example, `foo-bar-123`).
|
||||
# Required.
|
||||
# @param [Google::Apis::CloudresourcemanagerV1beta1::UndeleteProjectRequest] undelete_project_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Empty] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CloudresourcemanagerV1beta1::Empty]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def undelete_project(project_id, undelete_project_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1beta1/projects/{projectId}:undelete', options)
|
||||
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::UndeleteProjectRequest::Representation
|
||||
command.request_object = undelete_project_request_object
|
||||
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Empty::Representation
|
||||
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Empty
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Retrieves the Project identified by the specified
|
||||
# `project_id` (for example, `my-project-123`).
|
||||
# The caller must have read permissions for this Project.
|
||||
# @param [String] project_id
|
||||
# The Project ID (for example, `my-project-123`).
|
||||
# Required.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Project] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CloudresourcemanagerV1beta1::Project]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_project(project_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1beta1/projects/{projectId}', options)
|
||||
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
|
||||
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Project
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Gets a list of ancestors in the resource hierarchy for the Project
|
||||
# identified by the specified `project_id` (for example, `my-project-123`).
|
||||
# The caller must have read permissions for this Project.
|
||||
# @param [String] project_id
|
||||
# The Project ID (for example, `my-project-123`).
|
||||
# Required.
|
||||
# @param [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryRequest] get_ancestry_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server 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_ancestry(project_id, get_ancestry_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1beta1/projects/{projectId}:getAncestry', options)
|
||||
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryRequest::Representation
|
||||
command.request_object = get_ancestry_request_object
|
||||
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse::Representation
|
||||
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse
|
||||
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
|
||||
|
||||
# Updates the attributes of the Project identified by the specified
|
||||
# `project_id` (for example, `my-project-123`).
|
||||
# The caller must have modify permissions for this Project.
|
||||
# @param [String] project_id
|
||||
# The project ID (for example, `my-project-123`).
|
||||
# Required.
|
||||
# @param [Google::Apis::CloudresourcemanagerV1beta1::Project] project_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Project] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CloudresourcemanagerV1beta1::Project]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def update_project(project_id, project_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:put, 'v1beta1/projects/{projectId}', options)
|
||||
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
|
||||
command.request_object = project_object
|
||||
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
|
||||
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Project
|
||||
command.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
|
||||
|
||||
# Returns permissions that a caller has on the specified Project.
|
||||
# @param [String] resource
|
||||
# REQUIRED: The resource for which the policy detail is being requested.
|
||||
# See the operation documentation for the appropriate value for this field.
|
||||
# @param [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def test_project_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1beta1/projects/{resource}:testIamPermissions', options)
|
||||
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest::Representation
|
||||
command.request_object = test_iam_permissions_request_object
|
||||
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse::Representation
|
||||
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse
|
||||
command.params['resource'] = resource unless resource.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Marks the Project identified by the specified
|
||||
# `project_id` (for example, `my-project-123`) for deletion.
|
||||
# This method will only affect the Project if the following criteria are met:
|
||||
# + The Project does not have a billing account associated with it.
|
||||
# + The Project has a lifecycle state of
|
||||
# ACTIVE.
|
||||
# This method changes the Project's lifecycle state from
|
||||
# ACTIVE
|
||||
# to DELETE_REQUESTED.
|
||||
# The deletion starts at an unspecified time, at which point the project is
|
||||
# no longer accessible.
|
||||
# Until the deletion completes, you can check the lifecycle state
|
||||
# checked by retrieving the Project with GetProject,
|
||||
# and the Project remains visible to ListProjects.
|
||||
# However, you cannot update the project.
|
||||
# After the deletion completes, the Project is not retrievable by
|
||||
# the GetProject and
|
||||
# ListProjects methods.
|
||||
# The caller must have modify permissions for this Project.
|
||||
# @param [String] project_id
|
||||
# The Project ID (for example, `foo-bar-123`).
|
||||
# Required.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Empty] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CloudresourcemanagerV1beta1::Empty]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def delete_project(project_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, 'v1beta1/projects/{projectId}', options)
|
||||
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Empty::Representation
|
||||
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Empty
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists Projects that are visible to the user and satisfy the
|
||||
# specified filter. This method returns Projects in an unspecified order.
|
||||
# New Projects do not necessarily appear at the end of the list.
|
||||
# @param [String] page_token
|
||||
# A pagination token returned from a previous call to ListProjects
|
||||
# that indicates from where listing should continue.
|
||||
# Optional.
|
||||
# @param [Fixnum] page_size
|
||||
# The maximum number of Projects to return in the response.
|
||||
# The server can return fewer Projects than requested.
|
||||
# If unspecified, server picks an appropriate default.
|
||||
# Optional.
|
||||
# @param [String] filter
|
||||
# An expression for filtering the results of the request. Filter rules are
|
||||
# case insensitive. The fields eligible for filtering are:
|
||||
# + `name`
|
||||
# + `id`
|
||||
# + <code>labels.<em>key</em></code> where *key* is the name of a label
|
||||
# Some examples of using labels as filters:
|
||||
# |Filter|Description|
|
||||
# |------|-----------|
|
||||
# |name:*|The project has a name.|
|
||||
# |name:Howl|The project's name is `Howl` or `howl`.|
|
||||
# |name:HOWL|Equivalent to above.|
|
||||
# |NAME:howl|Equivalent to above.|
|
||||
# |labels.color:*|The project has the label `color`.|
|
||||
# |labels.color:red|The project's label `color` has the value `red`.|
|
||||
# |labels.color:red labels.size:big|The project's label `color` has the
|
||||
# value `red` and its label `size` has the value `big`.
|
||||
# Optional.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_projects(page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1beta1/projects', options)
|
||||
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse::Representation
|
||||
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse
|
||||
command.query['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
|
||||
|
||||
# Creates a Project resource.
|
||||
# Initially, the Project resource is owned by its creator exclusively.
|
||||
# The creator can later grant permission to others to read or update the
|
||||
# Project.
|
||||
# Several APIs are activated automatically for the Project, including
|
||||
# Google Cloud Storage.
|
||||
# @param [Google::Apis::CloudresourcemanagerV1beta1::Project] project_object
|
||||
# @param [Boolean] use_legacy_stack
|
||||
# A safety hatch to opt out of the new reliable project creation process.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Project] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CloudresourcemanagerV1beta1::Project]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def create_project(project_object = nil, use_legacy_stack: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1beta1/projects', options)
|
||||
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
|
||||
command.request_object = project_object
|
||||
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
|
||||
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Project
|
||||
command.query['useLegacyStack'] = use_legacy_stack unless use_legacy_stack.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Sets the IAM access control policy for the specified Project. Replaces
|
||||
# any existing policy.
|
||||
# The following constraints apply when using `setIamPolicy()`:
|
||||
# + Project does not support `allUsers` and `allAuthenticatedUsers` as
|
||||
# `members` in a `Binding` of a `Policy`.
|
||||
# + The owner role can be granted only to `user` and `serviceAccount`.
|
||||
# + Service accounts can be made owners of a project directly
|
||||
# without any restrictions. However, to be added as an owner, a user must be
|
||||
# invited via Cloud Platform console and must accept the invitation.
|
||||
# + A user cannot be granted the owner role using `setIamPolicy()`. The user
|
||||
# must be granted the owner role using the Cloud Platform Console and must
|
||||
# explicitly accept the invitation.
|
||||
# + Invitations to grant the owner role cannot be sent using
|
||||
# `setIamPolicy()`; they must be sent only using the Cloud Platform Console.
|
||||
# + Membership changes that leave the project without any owners that have
|
||||
# accepted the Terms of Service (ToS) will be rejected.
|
||||
# + There must be at least one owner who has accepted the Terms of
|
||||
# Service (ToS) agreement in the policy. Calling `setIamPolicy()` to
|
||||
# remove the last ToS-accepted owner from the policy will fail. This
|
||||
# restriction also applies to legacy projects that no longer have owners
|
||||
# who have accepted the ToS. Edits to IAM policies will be rejected until
|
||||
# the lack of a ToS-accepting owner is rectified.
|
||||
# + Calling this method requires enabling the App Engine Admin API.
|
||||
# Note: Removing service accounts from policies or changing their roles
|
||||
# can render services completely inoperable. It is important to understand
|
||||
# how the service account is being used before removing or updating its
|
||||
# roles.
|
||||
# @param [String] resource
|
||||
# REQUIRED: The resource for which the policy is being specified.
|
||||
# See the operation documentation for the appropriate value for this field.
|
||||
# @param [Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Policy] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def set_project_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1beta1/projects/{resource}:setIamPolicy', options)
|
||||
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest::Representation
|
||||
command.request_object = set_iam_policy_request_object
|
||||
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
|
||||
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy
|
||||
command.params['resource'] = resource unless resource.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists Organization resources that are visible to the user and satisfy
|
||||
# the specified filter. This method returns Organizations in an unspecified
|
||||
# order. New Organizations do not necessarily appear at the end of the list.
|
||||
# @param [String] page_token
|
||||
# A pagination token returned from a previous call to `ListOrganizations`
|
||||
# that indicates from where listing should continue.
|
||||
# This field is optional.
|
||||
# @param [Fixnum] page_size
|
||||
# The maximum number of Organizations to return in the response.
|
||||
# This field is optional.
|
||||
# @param [String] filter
|
||||
# An optional query string used to filter the Organizations to return in
|
||||
# the response. Filter rules are case-insensitive.
|
||||
@@ -488,6 +62,13 @@ module Google
|
||||
# directory_customer_id` equal to `123456789`.|
|
||||
# |domain:google.com|Organizations corresponding to the domain `google.com`.|
|
||||
# This field is optional.
|
||||
# @param [String] page_token
|
||||
# A pagination token returned from a previous call to `ListOrganizations`
|
||||
# that indicates from where listing should continue.
|
||||
# This field is optional.
|
||||
# @param [Fixnum] page_size
|
||||
# The maximum number of Organizations to return in the response.
|
||||
# This field is optional.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -505,13 +86,13 @@ module Google
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_organizations(page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def list_organizations(filter: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1beta1/organizations', options)
|
||||
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse::Representation
|
||||
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['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)
|
||||
@@ -693,6 +274,425 @@ module Google
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Sets the IAM access control policy for the specified Project. Replaces
|
||||
# any existing policy.
|
||||
# The following constraints apply when using `setIamPolicy()`:
|
||||
# + Project does not support `allUsers` and `allAuthenticatedUsers` as
|
||||
# `members` in a `Binding` of a `Policy`.
|
||||
# + The owner role can be granted only to `user` and `serviceAccount`.
|
||||
# + Service accounts can be made owners of a project directly
|
||||
# without any restrictions. However, to be added as an owner, a user must be
|
||||
# invited via Cloud Platform console and must accept the invitation.
|
||||
# + A user cannot be granted the owner role using `setIamPolicy()`. The user
|
||||
# must be granted the owner role using the Cloud Platform Console and must
|
||||
# explicitly accept the invitation.
|
||||
# + Invitations to grant the owner role cannot be sent using
|
||||
# `setIamPolicy()`; they must be sent only using the Cloud Platform Console.
|
||||
# + Membership changes that leave the project without any owners that have
|
||||
# accepted the Terms of Service (ToS) will be rejected.
|
||||
# + There must be at least one owner who has accepted the Terms of
|
||||
# Service (ToS) agreement in the policy. Calling `setIamPolicy()` to
|
||||
# remove the last ToS-accepted owner from the policy will fail. This
|
||||
# restriction also applies to legacy projects that no longer have owners
|
||||
# who have accepted the ToS. Edits to IAM policies will be rejected until
|
||||
# the lack of a ToS-accepting owner is rectified.
|
||||
# + Calling this method requires enabling the App Engine Admin API.
|
||||
# Note: Removing service accounts from policies or changing their roles
|
||||
# can render services completely inoperable. It is important to understand
|
||||
# how the service account is being used before removing or updating its
|
||||
# roles.
|
||||
# @param [String] resource
|
||||
# REQUIRED: The resource for which the policy is being specified.
|
||||
# See the operation documentation for the appropriate value for this field.
|
||||
# @param [Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Policy] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def set_project_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1beta1/projects/{resource}:setIamPolicy', options)
|
||||
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest::Representation
|
||||
command.request_object = set_iam_policy_request_object
|
||||
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
|
||||
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy
|
||||
command.params['resource'] = resource unless resource.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Creates a Project resource.
|
||||
# Initially, the Project resource is owned by its creator exclusively.
|
||||
# The creator can later grant permission to others to read or update the
|
||||
# Project.
|
||||
# Several APIs are activated automatically for the Project, including
|
||||
# Google Cloud Storage.
|
||||
# @param [Google::Apis::CloudresourcemanagerV1beta1::Project] project_object
|
||||
# @param [Boolean] use_legacy_stack
|
||||
# A safety hatch to opt out of the new reliable project creation process.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Project] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CloudresourcemanagerV1beta1::Project]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def create_project(project_object = nil, use_legacy_stack: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1beta1/projects', options)
|
||||
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
|
||||
command.request_object = project_object
|
||||
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
|
||||
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Project
|
||||
command.query['useLegacyStack'] = use_legacy_stack unless use_legacy_stack.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Returns the IAM access control policy for the specified Project.
|
||||
# Permission is denied if the policy or the resource does not exist.
|
||||
# @param [String] resource
|
||||
# REQUIRED: The resource for which the policy is being requested.
|
||||
# See the operation documentation for the appropriate value for this field.
|
||||
# @param [Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Policy] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_project_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1beta1/projects/{resource}:getIamPolicy', options)
|
||||
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest::Representation
|
||||
command.request_object = get_iam_policy_request_object
|
||||
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
|
||||
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy
|
||||
command.params['resource'] = resource unless resource.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Retrieves the Project identified by the specified
|
||||
# `project_id` (for example, `my-project-123`).
|
||||
# The caller must have read permissions for this Project.
|
||||
# @param [String] project_id
|
||||
# The Project ID (for example, `my-project-123`).
|
||||
# Required.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Project] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CloudresourcemanagerV1beta1::Project]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_project(project_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1beta1/projects/{projectId}', options)
|
||||
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
|
||||
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Project
|
||||
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
|
||||
|
||||
# Restores the Project identified by the specified
|
||||
# `project_id` (for example, `my-project-123`).
|
||||
# You can only use this method for a Project that has a lifecycle state of
|
||||
# DELETE_REQUESTED.
|
||||
# After deletion starts, the Project cannot be restored.
|
||||
# The caller must have modify permissions for this Project.
|
||||
# @param [String] project_id
|
||||
# The project ID (for example, `foo-bar-123`).
|
||||
# Required.
|
||||
# @param [Google::Apis::CloudresourcemanagerV1beta1::UndeleteProjectRequest] undelete_project_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Empty] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CloudresourcemanagerV1beta1::Empty]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def undelete_project(project_id, undelete_project_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1beta1/projects/{projectId}:undelete', options)
|
||||
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::UndeleteProjectRequest::Representation
|
||||
command.request_object = undelete_project_request_object
|
||||
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Empty::Representation
|
||||
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Empty
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Updates the attributes of the Project identified by the specified
|
||||
# `project_id` (for example, `my-project-123`).
|
||||
# The caller must have modify permissions for this Project.
|
||||
# @param [String] project_id
|
||||
# The project ID (for example, `my-project-123`).
|
||||
# Required.
|
||||
# @param [Google::Apis::CloudresourcemanagerV1beta1::Project] project_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Project] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CloudresourcemanagerV1beta1::Project]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def update_project(project_id, project_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:put, 'v1beta1/projects/{projectId}', options)
|
||||
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
|
||||
command.request_object = project_object
|
||||
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
|
||||
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Project
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Gets a list of ancestors in the resource hierarchy for the Project
|
||||
# identified by the specified `project_id` (for example, `my-project-123`).
|
||||
# The caller must have read permissions for this Project.
|
||||
# @param [String] project_id
|
||||
# The Project ID (for example, `my-project-123`).
|
||||
# Required.
|
||||
# @param [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryRequest] get_ancestry_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server 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_ancestry(project_id, get_ancestry_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1beta1/projects/{projectId}:getAncestry', options)
|
||||
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryRequest::Representation
|
||||
command.request_object = get_ancestry_request_object
|
||||
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse::Representation
|
||||
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse
|
||||
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
|
||||
|
||||
# Returns permissions that a caller has on the specified Project.
|
||||
# @param [String] resource
|
||||
# REQUIRED: The resource for which the policy detail is being requested.
|
||||
# See the operation documentation for the appropriate value for this field.
|
||||
# @param [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def test_project_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1beta1/projects/{resource}:testIamPermissions', options)
|
||||
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest::Representation
|
||||
command.request_object = test_iam_permissions_request_object
|
||||
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse::Representation
|
||||
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse
|
||||
command.params['resource'] = resource unless resource.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Marks the Project identified by the specified
|
||||
# `project_id` (for example, `my-project-123`) for deletion.
|
||||
# This method will only affect the Project if the following criteria are met:
|
||||
# + The Project does not have a billing account associated with it.
|
||||
# + The Project has a lifecycle state of
|
||||
# ACTIVE.
|
||||
# This method changes the Project's lifecycle state from
|
||||
# ACTIVE
|
||||
# to DELETE_REQUESTED.
|
||||
# The deletion starts at an unspecified time, at which point the project is
|
||||
# no longer accessible.
|
||||
# Until the deletion completes, you can check the lifecycle state
|
||||
# checked by retrieving the Project with GetProject,
|
||||
# and the Project remains visible to ListProjects.
|
||||
# However, you cannot update the project.
|
||||
# After the deletion completes, the Project is not retrievable by
|
||||
# the GetProject and
|
||||
# ListProjects methods.
|
||||
# The caller must have modify permissions for this Project.
|
||||
# @param [String] project_id
|
||||
# The Project ID (for example, `foo-bar-123`).
|
||||
# Required.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Empty] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CloudresourcemanagerV1beta1::Empty]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def delete_project(project_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, 'v1beta1/projects/{projectId}', options)
|
||||
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Empty::Representation
|
||||
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Empty
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists Projects that are visible to the user and satisfy the
|
||||
# specified filter. This method returns Projects in an unspecified order.
|
||||
# New Projects do not necessarily appear at the end of the list.
|
||||
# @param [String] page_token
|
||||
# A pagination token returned from a previous call to ListProjects
|
||||
# that indicates from where listing should continue.
|
||||
# Optional.
|
||||
# @param [Fixnum] page_size
|
||||
# The maximum number of Projects to return in the response.
|
||||
# The server can return fewer Projects than requested.
|
||||
# If unspecified, server picks an appropriate default.
|
||||
# Optional.
|
||||
# @param [String] filter
|
||||
# An expression for filtering the results of the request. Filter rules are
|
||||
# case insensitive. The fields eligible for filtering are:
|
||||
# + `name`
|
||||
# + `id`
|
||||
# + <code>labels.<em>key</em></code> where *key* is the name of a label
|
||||
# Some examples of using labels as filters:
|
||||
# |Filter|Description|
|
||||
# |------|-----------|
|
||||
# |name:how*|The project's name starts with "how".|
|
||||
# |name:Howl|The project's name is `Howl` or `howl`.|
|
||||
# |name:HOWL|Equivalent to above.|
|
||||
# |NAME:howl|Equivalent to above.|
|
||||
# |labels.color:*|The project has the label `color`.|
|
||||
# |labels.color:red|The project's label `color` has the value `red`.|
|
||||
# |labels.color:red labels.size:big|The project's label `color` has the
|
||||
# value `red` and its label `size` has the value `big`.
|
||||
# Optional.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_projects(page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1beta1/projects', options)
|
||||
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse::Representation
|
||||
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse
|
||||
command.query['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
|
||||
|
||||
protected
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ module Google
|
||||
# @see https://cloud.google.com/trace
|
||||
module CloudtraceV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20170320'
|
||||
REVISION = '20170425'
|
||||
|
||||
# Write Trace data for a project or application
|
||||
AUTH_TRACE_APPEND = 'https://www.googleapis.com/auth/trace.append'
|
||||
|
||||
@@ -22,75 +22,6 @@ module Google
|
||||
module Apis
|
||||
module CloudtraceV1
|
||||
|
||||
# A span represents a single timed event within a trace. Spans can be nested
|
||||
# and form a trace tree. Often, a trace contains a root span that describes the
|
||||
# end-to-end latency of an operation and, optionally, one or more subspans for
|
||||
# its suboperations. Spans do not need to be contiguous. There may be gaps
|
||||
# between spans in a trace.
|
||||
class TraceSpan
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Identifier for the span. Must be a 64-bit integer other than 0 and
|
||||
# unique within a trace.
|
||||
# Corresponds to the JSON property `spanId`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :span_id
|
||||
|
||||
# ID of the parent span, if any. Optional.
|
||||
# Corresponds to the JSON property `parentSpanId`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :parent_span_id
|
||||
|
||||
# End time of the span in nanoseconds from the UNIX epoch.
|
||||
# Corresponds to the JSON property `endTime`
|
||||
# @return [String]
|
||||
attr_accessor :end_time
|
||||
|
||||
# Start time of the span in nanoseconds from the UNIX epoch.
|
||||
# Corresponds to the JSON property `startTime`
|
||||
# @return [String]
|
||||
attr_accessor :start_time
|
||||
|
||||
# Distinguishes between spans generated in a particular context. For example,
|
||||
# two spans with the same name may be distinguished using `RPC_CLIENT`
|
||||
# and `RPC_SERVER` to identify queueing latency associated with the span.
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# Collection of labels associated with the span. Label keys must be less than
|
||||
# 128 bytes. Label values must be less than 16 kilobytes.
|
||||
# Corresponds to the JSON property `labels`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :labels
|
||||
|
||||
# Name of the span. Must be less than 128 bytes. The span name is sanitized
|
||||
# and displayed in the Stackdriver Trace tool in the
|
||||
# `% dynamic print site_values.console_name %`.
|
||||
# The name may be a method name or some other per-call site name.
|
||||
# For the same executable and the same call point, a best practice is
|
||||
# to use a consistent name, which makes it easier to correlate
|
||||
# cross-trace spans.
|
||||
# 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)
|
||||
@span_id = args[:span_id] if args.key?(:span_id)
|
||||
@parent_span_id = args[:parent_span_id] if args.key?(:parent_span_id)
|
||||
@end_time = args[:end_time] if args.key?(:end_time)
|
||||
@start_time = args[:start_time] if args.key?(:start_time)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@labels = args[:labels] if args.key?(:labels)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
end
|
||||
end
|
||||
|
||||
# The response message for the `ListTraces` method.
|
||||
class ListTracesResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -189,6 +120,102 @@ module Google
|
||||
@traces = args[:traces] if args.key?(:traces)
|
||||
end
|
||||
end
|
||||
|
||||
# A span represents a single timed event within a trace. Spans can be nested
|
||||
# and form a trace tree. Often, a trace contains a root span that describes the
|
||||
# end-to-end latency of an operation and, optionally, one or more subspans for
|
||||
# its suboperations. Spans do not need to be contiguous. There may be gaps
|
||||
# between spans in a trace.
|
||||
class TraceSpan
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Collection of labels associated with the span. Label keys must be less than
|
||||
# 128 bytes. Label values must be less than 16 kilobytes (10MB for
|
||||
# `/stacktrace` values).
|
||||
# Some predefined label keys exist, or you may create your own. When creating
|
||||
# your own, we recommend the following formats:
|
||||
# * `/category/product/key` for agents of well-known products (e.g.
|
||||
# `/db/mongodb/read_size`).
|
||||
# * `short_host/path/key` for domain-specific keys (e.g.
|
||||
# `foo.com/myproduct/bar`)
|
||||
# Predefined labels include:
|
||||
# * `/agent`
|
||||
# * `/component`
|
||||
# * `/error/message`
|
||||
# * `/error/name`
|
||||
# * `/http/client_city`
|
||||
# * `/http/client_country`
|
||||
# * `/http/client_protocol`
|
||||
# * `/http/client_region`
|
||||
# * `/http/host`
|
||||
# * `/http/method`
|
||||
# * `/http/redirected_url`
|
||||
# * `/http/request/size`
|
||||
# * `/http/response/size`
|
||||
# * `/http/status_code`
|
||||
# * `/http/url`
|
||||
# * `/http/user_agent`
|
||||
# * `/pid`
|
||||
# * `/stacktrace`
|
||||
# * `/tid`
|
||||
# Corresponds to the JSON property `labels`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :labels
|
||||
|
||||
# Name of the span. Must be less than 128 bytes. The span name is sanitized
|
||||
# and displayed in the Stackdriver Trace tool in the
|
||||
# `% dynamic print site_values.console_name %`.
|
||||
# The name may be a method name or some other per-call site name.
|
||||
# For the same executable and the same call point, a best practice is
|
||||
# to use a consistent name, which makes it easier to correlate
|
||||
# cross-trace spans.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# Identifier for the span. Must be a 64-bit integer other than 0 and
|
||||
# unique within a trace.
|
||||
# Corresponds to the JSON property `spanId`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :span_id
|
||||
|
||||
# ID of the parent span, if any. Optional.
|
||||
# Corresponds to the JSON property `parentSpanId`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :parent_span_id
|
||||
|
||||
# End time of the span in nanoseconds from the UNIX epoch.
|
||||
# Corresponds to the JSON property `endTime`
|
||||
# @return [String]
|
||||
attr_accessor :end_time
|
||||
|
||||
# Start time of the span in nanoseconds from the UNIX epoch.
|
||||
# Corresponds to the JSON property `startTime`
|
||||
# @return [String]
|
||||
attr_accessor :start_time
|
||||
|
||||
# Distinguishes between spans generated in a particular context. For example,
|
||||
# two spans with the same name may be distinguished using `RPC_CLIENT`
|
||||
# and `RPC_SERVER` to identify queueing latency associated with the span.
|
||||
# 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)
|
||||
@labels = args[:labels] if args.key?(:labels)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@span_id = args[:span_id] if args.key?(:span_id)
|
||||
@parent_span_id = args[:parent_span_id] if args.key?(:parent_span_id)
|
||||
@end_time = args[:end_time] if args.key?(:end_time)
|
||||
@start_time = args[:start_time] if args.key?(:start_time)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -22,12 +22,6 @@ module Google
|
||||
module Apis
|
||||
module CloudtraceV1
|
||||
|
||||
class TraceSpan
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListTracesResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -53,16 +47,9 @@ module Google
|
||||
end
|
||||
|
||||
class TraceSpan
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :span_id, :numeric_string => true, as: 'spanId'
|
||||
property :parent_span_id, :numeric_string => true, as: 'parentSpanId'
|
||||
property :end_time, as: 'endTime'
|
||||
property :start_time, as: 'startTime'
|
||||
property :kind, as: 'kind'
|
||||
hash :labels, as: 'labels'
|
||||
property :name, as: 'name'
|
||||
end
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListTracesResponse
|
||||
@@ -97,6 +84,19 @@ module Google
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class TraceSpan
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
hash :labels, as: 'labels'
|
||||
property :name, as: 'name'
|
||||
property :span_id, :numeric_string => true, as: 'spanId'
|
||||
property :parent_span_id, :numeric_string => true, as: 'parentSpanId'
|
||||
property :end_time, as: 'endTime'
|
||||
property :start_time, as: 'startTime'
|
||||
property :kind, as: 'kind'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -90,17 +90,6 @@ module Google
|
||||
# Returns of a list of traces that match the specified filter conditions.
|
||||
# @param [String] project_id
|
||||
# ID of the Cloud project where the trace data is stored.
|
||||
# @param [String] filter
|
||||
# An optional filter for the request.
|
||||
# @param [String] end_time
|
||||
# Start of the time interval (inclusive) during which the trace data was
|
||||
# collected from the application.
|
||||
# @param [String] page_token
|
||||
# Token identifying the page of results to return. If provided, use the
|
||||
# value of the `next_page_token` field from a previous request. Optional.
|
||||
# @param [String] start_time
|
||||
# End of the time interval (inclusive) during which the trace data was
|
||||
# collected from the application.
|
||||
# @param [Fixnum] page_size
|
||||
# Maximum number of traces to return. If not specified or <= 0, the
|
||||
# implementation selects a reasonable value. The implementation may
|
||||
@@ -119,6 +108,44 @@ module Google
|
||||
# Descending order can be specified by appending `desc` to the sort field
|
||||
# (for example, `name desc`).
|
||||
# Only one sort field is permitted.
|
||||
# @param [String] filter
|
||||
# An optional filter against labels for the request.
|
||||
# By default, searches use prefix matching. To specify exact match, prepend
|
||||
# a plus symbol (`+`) to the search term.
|
||||
# Multiple terms are ANDed. Syntax:
|
||||
# * `root:NAME_PREFIX` or `NAME_PREFIX`: Return traces where any root
|
||||
# span starts with `NAME_PREFIX`.
|
||||
# * `+root:NAME` or `+NAME`: Return traces where any root span's name is
|
||||
# exactly `NAME`.
|
||||
# * `span:NAME_PREFIX`: Return traces where any span starts with
|
||||
# `NAME_PREFIX`.
|
||||
# * `+span:NAME`: Return traces where any span's name is exactly
|
||||
# `NAME`.
|
||||
# * `latency:DURATION`: Return traces whose overall latency is
|
||||
# greater or equal to than `DURATION`. Accepted units are nanoseconds
|
||||
# (`ns`), milliseconds (`ms`), and seconds (`s`). Default is `ms`. For
|
||||
# example, `latency:24ms` returns traces whose overall latency
|
||||
# is greater than or equal to 24 milliseconds.
|
||||
# * `label:LABEL_KEY`: Return all traces containing the specified
|
||||
# label key (exact match, case-sensitive) regardless of the key:value
|
||||
# pair's value (including empty values).
|
||||
# * `LABEL_KEY:VALUE_PREFIX`: Return all traces containing the specified
|
||||
# label key (exact match, case-sensitive) whose value starts with
|
||||
# `VALUE_PREFIX`. Both a key and a value must be specified.
|
||||
# * `+LABEL_KEY:VALUE`: Return all traces containing a key:value pair
|
||||
# exactly matching the specified text. Both a key and a value must be
|
||||
# specified.
|
||||
# * `method:VALUE`: Equivalent to `/http/method:VALUE`.
|
||||
# * `url:VALUE`: Equivalent to `/http/url:VALUE`.
|
||||
# @param [String] end_time
|
||||
# End of the time interval (inclusive) during which the trace data was
|
||||
# collected from the application.
|
||||
# @param [String] page_token
|
||||
# Token identifying the page of results to return. If provided, use the
|
||||
# value of the `next_page_token` field from a previous request. Optional.
|
||||
# @param [String] start_time
|
||||
# Start of the time interval (inclusive) during which the trace data was
|
||||
# collected from the application.
|
||||
# @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.
|
||||
@@ -136,18 +163,18 @@ module Google
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_project_traces(project_id, filter: nil, end_time: nil, page_token: nil, start_time: nil, page_size: nil, view: nil, order_by: nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
def list_project_traces(project_id, page_size: nil, view: nil, order_by: nil, filter: nil, end_time: nil, page_token: nil, start_time: nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/projects/{projectId}/traces', options)
|
||||
command.response_representation = Google::Apis::CloudtraceV1::ListTracesResponse::Representation
|
||||
command.response_class = Google::Apis::CloudtraceV1::ListTracesResponse
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['view'] = view unless view.nil?
|
||||
command.query['orderBy'] = order_by unless order_by.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['endTime'] = end_time unless end_time.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['startTime'] = start_time unless start_time.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['view'] = view unless view.nil?
|
||||
command.query['orderBy'] = order_by unless order_by.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
|
||||
@@ -25,7 +25,7 @@ module Google
|
||||
# @see https://developers.google.com/compute/docs/reference/latest/
|
||||
module ComputeBeta
|
||||
VERSION = 'Beta'
|
||||
REVISION = '20170313'
|
||||
REVISION = '20170416'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
@@ -314,7 +314,9 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# Name of this access configuration.
|
||||
# The name of this access configuration. The default and recommended name is
|
||||
# External NAT but you can use any arbitrary string you would like. For example,
|
||||
# My external IP or Network Access.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
@@ -350,8 +352,7 @@ module Google
|
||||
class Address
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The static external IP address represented by this resource. Only IPv4 is
|
||||
# supported.
|
||||
# The static external IP address represented by this resource.
|
||||
# Corresponds to the JSON property `address`
|
||||
# @return [String]
|
||||
attr_accessor :address
|
||||
@@ -373,6 +374,12 @@ module Google
|
||||
# @return [Fixnum]
|
||||
attr_accessor :id
|
||||
|
||||
# The IP Version that will be used by this address. Valid options are IPV4 or
|
||||
# IPV6. This can only be specified for a global address.
|
||||
# Corresponds to the JSON property `ipVersion`
|
||||
# @return [String]
|
||||
attr_accessor :ip_version
|
||||
|
||||
# [Output Only] Type of the resource. Always compute#address for addresses.
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
@@ -422,6 +429,7 @@ module Google
|
||||
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
|
||||
@description = args[:description] if args.key?(:description)
|
||||
@id = args[:id] if args.key?(:id)
|
||||
@ip_version = args[:ip_version] if args.key?(:ip_version)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@region = args[:region] if args.key?(:region)
|
||||
@@ -847,17 +855,19 @@ module Google
|
||||
|
||||
# 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.
|
||||
# from logging. An AuditConfig 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": [ ` "
|
||||
# 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", `,
|
||||
# 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
|
||||
# ] `
|
||||
# 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
|
||||
@@ -3618,7 +3628,7 @@ module Google
|
||||
|
||||
# A ForwardingRule resource. A ForwardingRule resource specifies which pool of
|
||||
# target virtual machines to forward a packet to if it matches the given [
|
||||
# IPAddress, IPProtocol, portRange] tuple.
|
||||
# IPAddress, IPProtocol, ports] tuple.
|
||||
class ForwardingRule
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
@@ -3667,6 +3677,12 @@ module Google
|
||||
# @return [Fixnum]
|
||||
attr_accessor :id
|
||||
|
||||
# The IP Version that will be used by this forwarding rule. Valid options are
|
||||
# IPV4 or IPV6. This can only be specified for a global forwarding rule.
|
||||
# Corresponds to the JSON property `ipVersion`
|
||||
# @return [String]
|
||||
attr_accessor :ip_version
|
||||
|
||||
# [Output Only] Type of the resource. Always compute#forwardingRule for
|
||||
# Forwarding Rule resources.
|
||||
# Corresponds to the JSON property `kind`
|
||||
@@ -3700,19 +3716,27 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :network
|
||||
|
||||
# This field is used along with the target field for TargetHttpProxy,
|
||||
# TargetHttpsProxy, TargetSslProxy, TargetTcpProxy, TargetVpnGateway, TargetPool,
|
||||
# TargetInstance.
|
||||
# Applicable only when IPProtocol is TCP, UDP, or SCTP, only packets addressed
|
||||
# to ports in the specified range will be forwarded to target. Forwarding rules
|
||||
# with the same [IPAddress, IPProtocol] pair must have disjoint port ranges.
|
||||
# This field is not used for internal load balancing.
|
||||
# Some types of forwarding target have constraints on the acceptable ports:
|
||||
# - TargetHttpProxy: 80, 8080
|
||||
# - TargetHttpsProxy: 443
|
||||
# - TargetSslProxy: 443
|
||||
# - TargetVpnGateway: 500, 4500
|
||||
# -
|
||||
# Corresponds to the JSON property `portRange`
|
||||
# @return [String]
|
||||
attr_accessor :port_range
|
||||
|
||||
# This field is not used for external load balancing.
|
||||
# This field is used along with the backend_service field for internal load
|
||||
# balancing.
|
||||
# When the load balancing scheme is INTERNAL, a single port or a comma separated
|
||||
# list of ports can be configured. Only packets addressed to these ports will be
|
||||
# forwarded to the backends configured with this forwarding rule. If the port
|
||||
# list is not provided then all ports are allowed to pass through.
|
||||
# forwarded to the backends configured with this forwarding rule.
|
||||
# You may specify a maximum of up to 5 ports.
|
||||
# Corresponds to the JSON property `ports`
|
||||
# @return [Array<String>]
|
||||
@@ -3729,6 +3753,25 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :self_link
|
||||
|
||||
# An optional prefix to the service name for this Forwarding Rule. If specified,
|
||||
# will be the first label of the fully qualified service name.
|
||||
# The label must be 1-63 characters long, and comply with RFC1035. Specifically,
|
||||
# the label must be 1-63 characters long and match the regular expression [a-z]([
|
||||
# -a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter,
|
||||
# and all following characters must be a dash, lowercase letter, or digit,
|
||||
# except the last character, which cannot be a dash.
|
||||
# This field is only used for internal load balancing.
|
||||
# Corresponds to the JSON property `serviceLabel`
|
||||
# @return [String]
|
||||
attr_accessor :service_label
|
||||
|
||||
# [Output Only] The internal fully qualified service name for this Forwarding
|
||||
# Rule.
|
||||
# This field is only used for internal load balancing.
|
||||
# Corresponds to the JSON property `serviceName`
|
||||
# @return [String]
|
||||
attr_accessor :service_name
|
||||
|
||||
# This field is not used for external load balancing.
|
||||
# For internal load balancing, this field identifies the subnetwork that the
|
||||
# load balanced IP should belong to for this Forwarding Rule.
|
||||
@@ -3743,8 +3786,7 @@ module Google
|
||||
# forwarding rules, this target must live in the same region as the forwarding
|
||||
# rule. For global forwarding rules, this target must be a global load balancing
|
||||
# resource. The forwarded traffic must be of a type appropriate to the target
|
||||
# object. For example, TargetHttpProxy requires HTTP traffic, and
|
||||
# TargetHttpsProxy requires HTTPS traffic.
|
||||
# object.
|
||||
# This field is not used for internal load balancing.
|
||||
# Corresponds to the JSON property `target`
|
||||
# @return [String]
|
||||
@@ -3762,6 +3804,7 @@ module Google
|
||||
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
|
||||
@description = args[:description] if args.key?(:description)
|
||||
@id = args[:id] if args.key?(:id)
|
||||
@ip_version = args[:ip_version] if args.key?(:ip_version)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@load_balancing_scheme = args[:load_balancing_scheme] if args.key?(:load_balancing_scheme)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@@ -3770,6 +3813,8 @@ module Google
|
||||
@ports = args[:ports] if args.key?(:ports)
|
||||
@region = args[:region] if args.key?(:region)
|
||||
@self_link = args[:self_link] if args.key?(:self_link)
|
||||
@service_label = args[:service_label] if args.key?(:service_label)
|
||||
@service_name = args[:service_name] if args.key?(:service_name)
|
||||
@subnetwork = args[:subnetwork] if args.key?(:subnetwork)
|
||||
@target = args[:target] if args.key?(:target)
|
||||
end
|
||||
@@ -4984,7 +5029,7 @@ module Google
|
||||
# @return [Array<Google::Apis::ComputeBeta::AttachedDisk>]
|
||||
attr_accessor :disks
|
||||
|
||||
#
|
||||
# List of the type and count of accelerator cards attached to the instance.
|
||||
# Corresponds to the JSON property `guestAccelerators`
|
||||
# @return [Array<Google::Apis::ComputeBeta::AcceleratorConfig>]
|
||||
attr_accessor :guest_accelerators
|
||||
@@ -5744,7 +5789,8 @@ module Google
|
||||
class InstanceGroupManagersAbandonInstancesRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The URL for one or more instances to abandon from the managed instance group.
|
||||
# The URLs of one or more instances to abandon. This can be a full URL or a
|
||||
# partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
|
||||
# Corresponds to the JSON property `instances`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :instances
|
||||
@@ -5763,8 +5809,8 @@ module Google
|
||||
class InstanceGroupManagersDeleteInstancesRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The list of instances to delete from this managed instance group. Specify one
|
||||
# or more instance URLs.
|
||||
# The URLs of one or more instances to delete. This can be a full URL or a
|
||||
# partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
|
||||
# Corresponds to the JSON property `instances`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :instances
|
||||
@@ -5788,6 +5834,15 @@ module Google
|
||||
# @return [Array<Google::Apis::ComputeBeta::ManagedInstance>]
|
||||
attr_accessor :managed_instances
|
||||
|
||||
# [Output Only] This token allows you to get the next page of results for list
|
||||
# requests. If the number of results is larger than maxResults, use the
|
||||
# nextPageToken as a value for the query parameter pageToken in the next list
|
||||
# request. Subsequent list requests will have their own nextPageToken to
|
||||
# continue paging through the results.
|
||||
# Corresponds to the JSON property `nextPageToken`
|
||||
# @return [String]
|
||||
attr_accessor :next_page_token
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
@@ -5795,6 +5850,7 @@ module Google
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@managed_instances = args[:managed_instances] if args.key?(:managed_instances)
|
||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -5802,7 +5858,8 @@ module Google
|
||||
class InstanceGroupManagersRecreateInstancesRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The URL for one or more instances to recreate.
|
||||
# The URLs of one or more instances to recreate. This can be a full URL or a
|
||||
# partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
|
||||
# Corresponds to the JSON property `instances`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :instances
|
||||
@@ -6307,6 +6364,55 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# Contains a list of instance referrers.
|
||||
class InstanceListReferrers
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# [Output Only] The unique identifier for the resource. This identifier is
|
||||
# defined by the server.
|
||||
# Corresponds to the JSON property `id`
|
||||
# @return [String]
|
||||
attr_accessor :id
|
||||
|
||||
# [Output Only] A list of referrers.
|
||||
# Corresponds to the JSON property `items`
|
||||
# @return [Array<Google::Apis::ComputeBeta::Reference>]
|
||||
attr_accessor :items
|
||||
|
||||
# [Output Only] Type of resource. Always compute#instanceListReferrers for lists
|
||||
# of Instance referrers.
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# [Output Only] This token allows you to get the next page of results for list
|
||||
# requests. If the number of results is larger than maxResults, use the
|
||||
# nextPageToken as a value for the query parameter pageToken in the next list
|
||||
# request. Subsequent list requests will have their own nextPageToken to
|
||||
# continue paging through the results.
|
||||
# Corresponds to the JSON property `nextPageToken`
|
||||
# @return [String]
|
||||
attr_accessor :next_page_token
|
||||
|
||||
# [Output Only] Server-defined URL for this resource.
|
||||
# Corresponds to the JSON property `selfLink`
|
||||
# @return [String]
|
||||
attr_accessor :self_link
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@id = args[:id] if args.key?(:id)
|
||||
@items = args[:items] if args.key?(:items)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||
@self_link = args[:self_link] if args.key?(:self_link)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class MoveInstanceRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -6368,6 +6474,12 @@ module Google
|
||||
# @return [Array<Google::Apis::ComputeBeta::AttachedDisk>]
|
||||
attr_accessor :disks
|
||||
|
||||
# A list of guest accelerator cards' type and count to use for instances created
|
||||
# from the instance template.
|
||||
# Corresponds to the JSON property `guestAccelerators`
|
||||
# @return [Array<Google::Apis::ComputeBeta::AcceleratorConfig>]
|
||||
attr_accessor :guest_accelerators
|
||||
|
||||
# Labels to apply to instances that are created from this template.
|
||||
# Corresponds to the JSON property `labels`
|
||||
# @return [Hash<String,String>]
|
||||
@@ -6414,6 +6526,7 @@ module Google
|
||||
@can_ip_forward = args[:can_ip_forward] if args.key?(:can_ip_forward)
|
||||
@description = args[:description] if args.key?(:description)
|
||||
@disks = args[:disks] if args.key?(:disks)
|
||||
@guest_accelerators = args[:guest_accelerators] if args.key?(:guest_accelerators)
|
||||
@labels = args[:labels] if args.key?(:labels)
|
||||
@machine_type = args[:machine_type] if args.key?(:machine_type)
|
||||
@metadata = args[:metadata] if args.key?(:metadata)
|
||||
@@ -6711,7 +6824,7 @@ module Google
|
||||
class InstancesSetMachineResourcesRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
#
|
||||
# List of the type and count of accelerator cards attached to the instance.
|
||||
# Corresponds to the JSON property `guestAccelerators`
|
||||
# @return [Array<Google::Apis::ComputeBeta::AcceleratorConfig>]
|
||||
attr_accessor :guest_accelerators
|
||||
@@ -8615,6 +8728,45 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# Represents a reference to a resource.
|
||||
class Reference
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# [Output Only] Type of the resource. Always compute#reference for references.
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# A description of the reference type with no implied semantics. Possible values
|
||||
# include:
|
||||
# - MEMBER_OF
|
||||
# Corresponds to the JSON property `referenceType`
|
||||
# @return [String]
|
||||
attr_accessor :reference_type
|
||||
|
||||
# URL of the resource which refers to the target.
|
||||
# Corresponds to the JSON property `referrer`
|
||||
# @return [String]
|
||||
attr_accessor :referrer
|
||||
|
||||
# URL of the resource to which this reference points.
|
||||
# Corresponds to the JSON property `target`
|
||||
# @return [String]
|
||||
attr_accessor :target
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@reference_type = args[:reference_type] if args.key?(:reference_type)
|
||||
@referrer = args[:referrer] if args.key?(:referrer)
|
||||
@target = args[:target] if args.key?(:target)
|
||||
end
|
||||
end
|
||||
|
||||
# Region resource.
|
||||
class Region
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -8832,7 +8984,8 @@ module Google
|
||||
class RegionInstanceGroupManagersAbandonInstancesRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The names of one or more instances to abandon.
|
||||
# The URLs of one or more instances to abandon. This can be a full URL or a
|
||||
# partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
|
||||
# Corresponds to the JSON property `instances`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :instances
|
||||
@@ -8851,7 +9004,8 @@ module Google
|
||||
class RegionInstanceGroupManagersDeleteInstancesRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The names of one or more instances to delete.
|
||||
# The URLs of one or more instances to delete. This can be a full URL or a
|
||||
# partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
|
||||
# Corresponds to the JSON property `instances`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :instances
|
||||
@@ -8875,6 +9029,15 @@ module Google
|
||||
# @return [Array<Google::Apis::ComputeBeta::ManagedInstance>]
|
||||
attr_accessor :managed_instances
|
||||
|
||||
# [Output Only] This token allows you to get the next page of results for list
|
||||
# requests. If the number of results is larger than maxResults, use the
|
||||
# nextPageToken as a value for the query parameter pageToken in the next list
|
||||
# request. Subsequent list requests will have their own nextPageToken to
|
||||
# continue paging through the results.
|
||||
# Corresponds to the JSON property `nextPageToken`
|
||||
# @return [String]
|
||||
attr_accessor :next_page_token
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
@@ -8882,6 +9045,7 @@ module Google
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@managed_instances = args[:managed_instances] if args.key?(:managed_instances)
|
||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -8889,7 +9053,8 @@ module Google
|
||||
class RegionInstanceGroupManagersRecreateRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The URL for one or more instances to recreate.
|
||||
# The URLs of one or more instances to recreate. This can be a full URL or a
|
||||
# partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
|
||||
# Corresponds to the JSON property `instances`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :instances
|
||||
@@ -10091,6 +10256,8 @@ module Google
|
||||
# terminated by Compute Engine (not terminated by a user). You can only set the
|
||||
# automatic restart option for standard instances. Preemptible instances cannot
|
||||
# be automatically restarted.
|
||||
# By default, this is set to true so an instance is automatically restarted if
|
||||
# it is terminated by Compute Engine.
|
||||
# Corresponds to the JSON property `automaticRestart`
|
||||
# @return [Boolean]
|
||||
attr_accessor :automatic_restart
|
||||
@@ -10104,7 +10271,9 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :on_host_maintenance
|
||||
|
||||
# Whether the instance is preemptible.
|
||||
# Defines whether the instance is preemptible. This can only be set during
|
||||
# instance creation, it cannot be set or changed after the instance has been
|
||||
# created.
|
||||
# Corresponds to the JSON property `preemptible`
|
||||
# @return [Boolean]
|
||||
attr_accessor :preemptible
|
||||
|
||||
@@ -778,6 +778,12 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class InstanceListReferrers
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class MoveInstanceRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -1114,6 +1120,12 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Reference
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Region
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -1897,6 +1909,7 @@ module Google
|
||||
property :creation_timestamp, as: 'creationTimestamp'
|
||||
property :description, as: 'description'
|
||||
property :id, :numeric_string => true, as: 'id'
|
||||
property :ip_version, as: 'ipVersion'
|
||||
property :kind, as: 'kind'
|
||||
property :name, as: 'name'
|
||||
property :region, as: 'region'
|
||||
@@ -2663,6 +2676,7 @@ module Google
|
||||
property :creation_timestamp, as: 'creationTimestamp'
|
||||
property :description, as: 'description'
|
||||
property :id, :numeric_string => true, as: 'id'
|
||||
property :ip_version, as: 'ipVersion'
|
||||
property :kind, as: 'kind'
|
||||
property :load_balancing_scheme, as: 'loadBalancingScheme'
|
||||
property :name, as: 'name'
|
||||
@@ -2671,6 +2685,8 @@ module Google
|
||||
collection :ports, as: 'ports'
|
||||
property :region, as: 'region'
|
||||
property :self_link, as: 'selfLink'
|
||||
property :service_label, as: 'serviceLabel'
|
||||
property :service_name, as: 'serviceName'
|
||||
property :subnetwork, as: 'subnetwork'
|
||||
property :target, as: 'target'
|
||||
end
|
||||
@@ -3128,6 +3144,7 @@ module Google
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :managed_instances, as: 'managedInstances', class: Google::Apis::ComputeBeta::ManagedInstance, decorator: Google::Apis::ComputeBeta::ManagedInstance::Representation
|
||||
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -3281,6 +3298,18 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class InstanceListReferrers
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :id, as: 'id'
|
||||
collection :items, as: 'items', class: Google::Apis::ComputeBeta::Reference, decorator: Google::Apis::ComputeBeta::Reference::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
property :self_link, as: 'selfLink'
|
||||
end
|
||||
end
|
||||
|
||||
class MoveInstanceRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -3296,6 +3325,8 @@ module Google
|
||||
property :description, as: 'description'
|
||||
collection :disks, as: 'disks', class: Google::Apis::ComputeBeta::AttachedDisk, decorator: Google::Apis::ComputeBeta::AttachedDisk::Representation
|
||||
|
||||
collection :guest_accelerators, as: 'guestAccelerators', class: Google::Apis::ComputeBeta::AcceleratorConfig, decorator: Google::Apis::ComputeBeta::AcceleratorConfig::Representation
|
||||
|
||||
hash :labels, as: 'labels'
|
||||
property :machine_type, as: 'machineType'
|
||||
property :metadata, as: 'metadata', class: Google::Apis::ComputeBeta::Metadata, decorator: Google::Apis::ComputeBeta::Metadata::Representation
|
||||
@@ -3879,6 +3910,16 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class Reference
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :kind, as: 'kind'
|
||||
property :reference_type, as: 'referenceType'
|
||||
property :referrer, as: 'referrer'
|
||||
property :target, as: 'target'
|
||||
end
|
||||
end
|
||||
|
||||
class Region
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -3952,6 +3993,7 @@ module Google
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :managed_instances, as: 'managedInstances', class: Google::Apis::ComputeBeta::ManagedInstance, decorator: Google::Apis::ComputeBeta::ManagedInstance::Representation
|
||||
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -865,9 +865,9 @@ module Google
|
||||
# Project ID for this request.
|
||||
# @param [String] zone
|
||||
# Name of the zone for this request.
|
||||
# @param [String] autoscaler
|
||||
# Name of the autoscaler to update.
|
||||
# @param [Google::Apis::ComputeBeta::Autoscaler] autoscaler_object
|
||||
# @param [String] autoscaler
|
||||
# Name of the autoscaler to patch.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -889,7 +889,7 @@ module Google
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def patch_autoscaler(project, zone, autoscaler, autoscaler_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
def patch_autoscaler(project, zone, autoscaler_object = nil, autoscaler: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:patch, '{project}/zones/{zone}/autoscalers', options)
|
||||
command.request_representation = Google::Apis::ComputeBeta::Autoscaler::Representation
|
||||
command.request_object = autoscaler_object
|
||||
@@ -1714,83 +1714,6 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Retrieves an aggregated list of commitments.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] filter
|
||||
# Sets a filter expression for filtering listed resources, in the form filter=`
|
||||
# expression`. Your `expression` must be in the format: field_name
|
||||
# comparison_string literal_string.
|
||||
# The field_name is the name of the field you want to compare. Only atomic field
|
||||
# types are supported (string, number, boolean). The comparison_string must be
|
||||
# either eq (equals) or ne (not equals). The literal_string is the string value
|
||||
# to filter to. The literal value must be valid for the type of field you are
|
||||
# filtering by (string, number, boolean). For string fields, the literal value
|
||||
# is interpreted as a regular expression using RE2 syntax. The literal value
|
||||
# must match the entire field.
|
||||
# For example, to filter for instances that do not have a name of example-
|
||||
# instance, you would use filter=name ne example-instance.
|
||||
# You can filter on nested fields. For example, you could filter on instances
|
||||
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
||||
# nested fields to take advantage of labels to organize and search for results
|
||||
# based on label values.
|
||||
# To filter on multiple expressions, provide each separate expression within
|
||||
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
||||
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
||||
# resources must match all expressions to pass the filters.
|
||||
# @param [Fixnum] max_results
|
||||
# The maximum number of results per page that should be returned. If the number
|
||||
# of available results is larger than maxResults, Compute Engine returns a
|
||||
# nextPageToken that can be used to get the next page of results in subsequent
|
||||
# list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
|
||||
# @param [String] order_by
|
||||
# Sorts list results by a certain order. By default, results are returned in
|
||||
# alphanumerical order based on the resource name.
|
||||
# You can also sort results in descending order based on the creation timestamp
|
||||
# using orderBy="creationTimestamp desc". This sorts results based on the
|
||||
# creationTimestamp field in reverse chronological order (newest result first).
|
||||
# Use this to sort resources like operations so that the newest operation is
|
||||
# returned first.
|
||||
# Currently, only sorting by name or creationTimestamp desc is supported.
|
||||
# @param [String] page_token
|
||||
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
|
||||
# a previous list request to get the next page of results.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ComputeBeta::CommitmentAggregatedList] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ComputeBeta::CommitmentAggregatedList]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def aggregated_commitment_list(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, '{project}/aggregated/commitments', options)
|
||||
command.response_representation = Google::Apis::ComputeBeta::CommitmentAggregatedList::Representation
|
||||
command.response_class = Google::Apis::ComputeBeta::CommitmentAggregatedList
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['maxResults'] = max_results unless max_results.nil?
|
||||
command.query['orderBy'] = order_by unless order_by.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Retrieves an aggregated list of disk types.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
@@ -2734,6 +2657,8 @@ module Google
|
||||
end
|
||||
|
||||
# Updates the specified firewall rule with the data included in the request.
|
||||
# Using PUT method, can only update following fields of firewall rule: allowed,
|
||||
# description, sourceRanges, sourceTags, targetTags.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] firewall
|
||||
@@ -3379,7 +3304,7 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Deletes the specified ForwardingRule resource.
|
||||
# Deletes the specified GlobalForwardingRule resource.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] forwarding_rule
|
||||
@@ -3417,7 +3342,7 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Returns the specified ForwardingRule resource. Get a list of available
|
||||
# Returns the specified GlobalForwardingRule resource. Get a list of available
|
||||
# forwarding rules by making a list() request.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
@@ -3456,8 +3381,8 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Creates a ForwardingRule resource in the specified project and region using
|
||||
# the data included in the request.
|
||||
# Creates a GlobalForwardingRule resource in the specified project using the
|
||||
# data included in the request.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [Google::Apis::ComputeBeta::ForwardingRule] forwarding_rule_object
|
||||
@@ -3495,7 +3420,7 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Retrieves a list of ForwardingRule resources available to the specified
|
||||
# Retrieves a list of GlobalForwardingRule resources available to the specified
|
||||
# project.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
@@ -3573,8 +3498,8 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Changes target URL for forwarding rule. The new target should be of the same
|
||||
# type as the old target.
|
||||
# Changes target URL for the GlobalForwardingRule resource. The new target
|
||||
# should be of the same type as the old target.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] forwarding_rule
|
||||
@@ -5210,6 +5135,7 @@ module Google
|
||||
# DONE when the action is scheduled even if the instances have not yet been
|
||||
# removed from the group. You must separately verify the status of the
|
||||
# abandoning action with the listmanagedinstances method.
|
||||
# You can specify a maximum of 1000 instances with this method per request.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] zone
|
||||
@@ -5380,6 +5306,7 @@ module Google
|
||||
# DONE when the action is scheduled even if the instances are still being
|
||||
# deleted. You must separately verify the status of the deleting action with the
|
||||
# listmanagedinstances method.
|
||||
# You can specify a maximum of 1000 instances with this method per request.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] zone
|
||||
@@ -5471,6 +5398,7 @@ module Google
|
||||
# is marked as DONE when the group is created even if the instances in the group
|
||||
# have not yet been created. You must separately verify the status of the
|
||||
# individual instances with the listmanagedinstances method.
|
||||
# A managed instance group can have up to 1000 VM instances per group.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] zone
|
||||
@@ -5646,10 +5574,10 @@ module Google
|
||||
end
|
||||
|
||||
# Updates a managed instance group using the information that you specify in the
|
||||
# request. This operation is marked as DONE when the group is updated even if
|
||||
# the instances in the group have not yet been updated. You must separately
|
||||
# verify the status of the individual instances with the listmanagedinstances
|
||||
# method. This method supports patch semantics.
|
||||
# request. This operation is marked as DONE when the group is patched even if
|
||||
# the instances in the group are still in the process of being patched. You must
|
||||
# separately verify the status of the individual instances with the
|
||||
# listManagedInstances method. This method supports patch semantics.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] zone
|
||||
@@ -5699,6 +5627,7 @@ module Google
|
||||
# DONE when the action is scheduled even if the instances have not yet been
|
||||
# recreated. You must separately verify the status of the recreating action with
|
||||
# the listmanagedinstances method.
|
||||
# You can specify a maximum of 1000 instances with this method per request.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] zone
|
||||
@@ -6031,7 +5960,7 @@ module Google
|
||||
# Updates a managed instance group using the information that you specify in the
|
||||
# request. This operation is marked as DONE when the group is updated even if
|
||||
# the instances in the group have not yet been updated. You must separately
|
||||
# verify the status of the individual instances with the listmanagedinstances
|
||||
# verify the status of the individual instances with the listManagedInstances
|
||||
# method.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
@@ -7382,7 +7311,93 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Performs a hard reset on the instance.
|
||||
# Retrieves the list of referrers to instances contained within the specified
|
||||
# zone.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] zone
|
||||
# The name of the zone for this request.
|
||||
# @param [String] instance
|
||||
# Name of the target instance scoping this request, or '-' if the request should
|
||||
# span over all instances in the container.
|
||||
# @param [String] filter
|
||||
# Sets a filter expression for filtering listed resources, in the form filter=`
|
||||
# expression`. Your `expression` must be in the format: field_name
|
||||
# comparison_string literal_string.
|
||||
# The field_name is the name of the field you want to compare. Only atomic field
|
||||
# types are supported (string, number, boolean). The comparison_string must be
|
||||
# either eq (equals) or ne (not equals). The literal_string is the string value
|
||||
# to filter to. The literal value must be valid for the type of field you are
|
||||
# filtering by (string, number, boolean). For string fields, the literal value
|
||||
# is interpreted as a regular expression using RE2 syntax. The literal value
|
||||
# must match the entire field.
|
||||
# For example, to filter for instances that do not have a name of example-
|
||||
# instance, you would use filter=name ne example-instance.
|
||||
# You can filter on nested fields. For example, you could filter on instances
|
||||
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
||||
# nested fields to take advantage of labels to organize and search for results
|
||||
# based on label values.
|
||||
# To filter on multiple expressions, provide each separate expression within
|
||||
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
||||
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
||||
# resources must match all expressions to pass the filters.
|
||||
# @param [Fixnum] max_results
|
||||
# The maximum number of results per page that should be returned. If the number
|
||||
# of available results is larger than maxResults, Compute Engine returns a
|
||||
# nextPageToken that can be used to get the next page of results in subsequent
|
||||
# list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
|
||||
# @param [String] order_by
|
||||
# Sorts list results by a certain order. By default, results are returned in
|
||||
# alphanumerical order based on the resource name.
|
||||
# You can also sort results in descending order based on the creation timestamp
|
||||
# using orderBy="creationTimestamp desc". This sorts results based on the
|
||||
# creationTimestamp field in reverse chronological order (newest result first).
|
||||
# Use this to sort resources like operations so that the newest operation is
|
||||
# returned first.
|
||||
# Currently, only sorting by name or creationTimestamp desc is supported.
|
||||
# @param [String] page_token
|
||||
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
|
||||
# a previous list request to get the next page of results.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ComputeBeta::InstanceListReferrers] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ComputeBeta::InstanceListReferrers]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server 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_instance_referrers(project, zone, instance, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, '{project}/zones/{zone}/instances/{instance}/referrers', options)
|
||||
command.response_representation = Google::Apis::ComputeBeta::InstanceListReferrers::Representation
|
||||
command.response_class = Google::Apis::ComputeBeta::InstanceListReferrers
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.params['zone'] = zone unless zone.nil?
|
||||
command.params['instance'] = instance unless instance.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['maxResults'] = max_results unless max_results.nil?
|
||||
command.query['orderBy'] = order_by unless order_by.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Performs a reset on the instance. For more information, see Resetting an
|
||||
# instance.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] zone
|
||||
@@ -9224,9 +9239,9 @@ module Google
|
||||
# Project ID for this request.
|
||||
# @param [String] region
|
||||
# Name of the region scoping this request.
|
||||
# @param [String] autoscaler
|
||||
# Name of the autoscaler to update.
|
||||
# @param [Google::Apis::ComputeBeta::Autoscaler] autoscaler_object
|
||||
# @param [String] autoscaler
|
||||
# Name of the autoscaler to patch.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -9248,7 +9263,7 @@ module Google
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def patch_region_autoscaler(project, region, autoscaler, autoscaler_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
def patch_region_autoscaler(project, region, autoscaler_object = nil, autoscaler: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:patch, '{project}/regions/{region}/autoscalers', options)
|
||||
command.request_representation = Google::Apis::ComputeBeta::Autoscaler::Representation
|
||||
command.request_object = autoscaler_object
|
||||
@@ -9740,6 +9755,83 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Retrieves an aggregated list of commitments.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] filter
|
||||
# Sets a filter expression for filtering listed resources, in the form filter=`
|
||||
# expression`. Your `expression` must be in the format: field_name
|
||||
# comparison_string literal_string.
|
||||
# The field_name is the name of the field you want to compare. Only atomic field
|
||||
# types are supported (string, number, boolean). The comparison_string must be
|
||||
# either eq (equals) or ne (not equals). The literal_string is the string value
|
||||
# to filter to. The literal value must be valid for the type of field you are
|
||||
# filtering by (string, number, boolean). For string fields, the literal value
|
||||
# is interpreted as a regular expression using RE2 syntax. The literal value
|
||||
# must match the entire field.
|
||||
# For example, to filter for instances that do not have a name of example-
|
||||
# instance, you would use filter=name ne example-instance.
|
||||
# You can filter on nested fields. For example, you could filter on instances
|
||||
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
||||
# nested fields to take advantage of labels to organize and search for results
|
||||
# based on label values.
|
||||
# To filter on multiple expressions, provide each separate expression within
|
||||
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
||||
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
||||
# resources must match all expressions to pass the filters.
|
||||
# @param [Fixnum] max_results
|
||||
# The maximum number of results per page that should be returned. If the number
|
||||
# of available results is larger than maxResults, Compute Engine returns a
|
||||
# nextPageToken that can be used to get the next page of results in subsequent
|
||||
# list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
|
||||
# @param [String] order_by
|
||||
# Sorts list results by a certain order. By default, results are returned in
|
||||
# alphanumerical order based on the resource name.
|
||||
# You can also sort results in descending order based on the creation timestamp
|
||||
# using orderBy="creationTimestamp desc". This sorts results based on the
|
||||
# creationTimestamp field in reverse chronological order (newest result first).
|
||||
# Use this to sort resources like operations so that the newest operation is
|
||||
# returned first.
|
||||
# Currently, only sorting by name or creationTimestamp desc is supported.
|
||||
# @param [String] page_token
|
||||
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
|
||||
# a previous list request to get the next page of results.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ComputeBeta::CommitmentAggregatedList] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ComputeBeta::CommitmentAggregatedList]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def aggregated_region_commitment_list(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, '{project}/aggregated/commitments', options)
|
||||
command.response_representation = Google::Apis::ComputeBeta::CommitmentAggregatedList::Representation
|
||||
command.response_class = Google::Apis::ComputeBeta::CommitmentAggregatedList
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['maxResults'] = max_results unless max_results.nil?
|
||||
command.query['orderBy'] = order_by unless order_by.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Returns the specified commitment resource. Get a list of available commitments
|
||||
# by making a list() request.
|
||||
# @param [String] project
|
||||
@@ -9912,6 +10004,7 @@ module Google
|
||||
# DONE when the action is scheduled even if the instances have not yet been
|
||||
# removed from the group. You must separately verify the status of the
|
||||
# abandoning action with the listmanagedinstances method.
|
||||
# You can specify a maximum of 1000 instances with this method per request.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] region
|
||||
@@ -10004,6 +10097,7 @@ module Google
|
||||
# DONE when the action is scheduled even if the instances are still being
|
||||
# deleted. You must separately verify the status of the deleting action with the
|
||||
# listmanagedinstances method.
|
||||
# You can specify a maximum of 1000 instances with this method per request.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] region
|
||||
@@ -10094,6 +10188,7 @@ module Google
|
||||
# is marked as DONE when the group is created even if the instances in the group
|
||||
# have not yet been created. You must separately verify the status of the
|
||||
# individual instances with the listmanagedinstances method.
|
||||
# A regional managed instance group can contain up to 2000 instances.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] region
|
||||
@@ -10267,10 +10362,10 @@ module Google
|
||||
end
|
||||
|
||||
# Updates a managed instance group using the information that you specify in the
|
||||
# request. This operation is marked as DONE when the group is updated even if
|
||||
# the instances in the group have not yet been updated. You must separately
|
||||
# verify the status of the individual instances with the listmanagedinstances
|
||||
# method. This method supports patch semantics.
|
||||
# request. This operation is marked as DONE when the group is patched even if
|
||||
# the instances in the group are still in the process of being patched. You must
|
||||
# separately verify the status of the individual instances with the
|
||||
# listmanagedinstances method. This method supports patch semantics.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] region
|
||||
@@ -10320,6 +10415,7 @@ module Google
|
||||
# DONE when the action is scheduled even if the instances have not yet been
|
||||
# recreated. You must separately verify the status of the recreating action with
|
||||
# the listmanagedinstances method.
|
||||
# You can specify a maximum of 1000 instances with this method per request.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] region
|
||||
|
||||
@@ -25,7 +25,7 @@ module Google
|
||||
# @see https://developers.google.com/compute/docs/reference/latest/
|
||||
module ComputeV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20170313'
|
||||
REVISION = '20170416'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
@@ -33,7 +33,9 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# Name of this access configuration.
|
||||
# The name of this access configuration. The default and recommended name is
|
||||
# External NAT but you can use any arbitrary string you would like. For example,
|
||||
# My external IP or Network Access.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
@@ -69,8 +71,7 @@ module Google
|
||||
class Address
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The static external IP address represented by this resource. Only IPv4 is
|
||||
# supported.
|
||||
# The static external IP address represented by this resource.
|
||||
# Corresponds to the JSON property `address`
|
||||
# @return [String]
|
||||
attr_accessor :address
|
||||
@@ -2654,7 +2655,7 @@ module Google
|
||||
|
||||
# A ForwardingRule resource. A ForwardingRule resource specifies which pool of
|
||||
# target virtual machines to forward a packet to if it matches the given [
|
||||
# IPAddress, IPProtocol, portRange] tuple.
|
||||
# IPAddress, IPProtocol, ports] tuple.
|
||||
class ForwardingRule
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
@@ -2736,19 +2737,27 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :network
|
||||
|
||||
# This field is used along with the target field for TargetHttpProxy,
|
||||
# TargetHttpsProxy, TargetSslProxy, TargetTcpProxy, TargetVpnGateway, TargetPool,
|
||||
# TargetInstance.
|
||||
# Applicable only when IPProtocol is TCP, UDP, or SCTP, only packets addressed
|
||||
# to ports in the specified range will be forwarded to target. Forwarding rules
|
||||
# with the same [IPAddress, IPProtocol] pair must have disjoint port ranges.
|
||||
# This field is not used for internal load balancing.
|
||||
# Some types of forwarding target have constraints on the acceptable ports:
|
||||
# - TargetHttpProxy: 80, 8080
|
||||
# - TargetHttpsProxy: 443
|
||||
# - TargetSslProxy: 443
|
||||
# - TargetVpnGateway: 500, 4500
|
||||
# -
|
||||
# Corresponds to the JSON property `portRange`
|
||||
# @return [String]
|
||||
attr_accessor :port_range
|
||||
|
||||
# This field is not used for external load balancing.
|
||||
# This field is used along with the backend_service field for internal load
|
||||
# balancing.
|
||||
# When the load balancing scheme is INTERNAL, a single port or a comma separated
|
||||
# list of ports can be configured. Only packets addressed to these ports will be
|
||||
# forwarded to the backends configured with this forwarding rule. If the port
|
||||
# list is not provided then all ports are allowed to pass through.
|
||||
# forwarded to the backends configured with this forwarding rule.
|
||||
# You may specify a maximum of up to 5 ports.
|
||||
# Corresponds to the JSON property `ports`
|
||||
# @return [Array<String>]
|
||||
@@ -2779,8 +2788,7 @@ module Google
|
||||
# forwarding rules, this target must live in the same region as the forwarding
|
||||
# rule. For global forwarding rules, this target must be a global load balancing
|
||||
# resource. The forwarded traffic must be of a type appropriate to the target
|
||||
# object. For example, TargetHttpProxy requires HTTP traffic, and
|
||||
# TargetHttpsProxy requires HTTPS traffic.
|
||||
# object.
|
||||
# This field is not used for internal load balancing.
|
||||
# Corresponds to the JSON property `target`
|
||||
# @return [String]
|
||||
@@ -4641,7 +4649,8 @@ module Google
|
||||
class InstanceGroupManagersAbandonInstancesRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The URL for one or more instances to abandon from the managed instance group.
|
||||
# The URLs of one or more instances to abandon. This can be a full URL or a
|
||||
# partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
|
||||
# Corresponds to the JSON property `instances`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :instances
|
||||
@@ -4660,8 +4669,8 @@ module Google
|
||||
class InstanceGroupManagersDeleteInstancesRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The list of instances to delete from this managed instance group. Specify one
|
||||
# or more instance URLs.
|
||||
# The URLs of one or more instances to delete. This can be a full URL or a
|
||||
# partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
|
||||
# Corresponds to the JSON property `instances`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :instances
|
||||
@@ -4699,7 +4708,8 @@ module Google
|
||||
class InstanceGroupManagersRecreateInstancesRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The URL for one or more instances to recreate.
|
||||
# The URLs of one or more instances to recreate. This can be a full URL or a
|
||||
# partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
|
||||
# Corresponds to the JSON property `instances`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :instances
|
||||
@@ -7265,7 +7275,8 @@ module Google
|
||||
class RegionInstanceGroupManagersAbandonInstancesRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The names of one or more instances to abandon.
|
||||
# The URLs of one or more instances to abandon. This can be a full URL or a
|
||||
# partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
|
||||
# Corresponds to the JSON property `instances`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :instances
|
||||
@@ -7284,7 +7295,8 @@ module Google
|
||||
class RegionInstanceGroupManagersDeleteInstancesRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The names of one or more instances to delete.
|
||||
# The URLs of one or more instances to delete. This can be a full URL or a
|
||||
# partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
|
||||
# Corresponds to the JSON property `instances`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :instances
|
||||
@@ -7322,7 +7334,8 @@ module Google
|
||||
class RegionInstanceGroupManagersRecreateRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The URL for one or more instances to recreate.
|
||||
# The URLs of one or more instances to recreate. This can be a full URL or a
|
||||
# partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
|
||||
# Corresponds to the JSON property `instances`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :instances
|
||||
@@ -8116,6 +8129,11 @@ module Google
|
||||
# @return [Array<Google::Apis::ComputeV1::Route>]
|
||||
attr_accessor :best_routes
|
||||
|
||||
# Best routes learned by this router.
|
||||
# Corresponds to the JSON property `bestRoutesForRouter`
|
||||
# @return [Array<Google::Apis::ComputeV1::Route>]
|
||||
attr_accessor :best_routes_for_router
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `bgpPeerStatus`
|
||||
# @return [Array<Google::Apis::ComputeV1::RouterStatusBgpPeerStatus>]
|
||||
@@ -8133,6 +8151,7 @@ module Google
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@best_routes = args[:best_routes] if args.key?(:best_routes)
|
||||
@best_routes_for_router = args[:best_routes_for_router] if args.key?(:best_routes_for_router)
|
||||
@bgp_peer_status = args[:bgp_peer_status] if args.key?(:bgp_peer_status)
|
||||
@network = args[:network] if args.key?(:network)
|
||||
end
|
||||
@@ -8406,6 +8425,8 @@ module Google
|
||||
# terminated by Compute Engine (not terminated by a user). You can only set the
|
||||
# automatic restart option for standard instances. Preemptible instances cannot
|
||||
# be automatically restarted.
|
||||
# By default, this is set to true so an instance is automatically restarted if
|
||||
# it is terminated by Compute Engine.
|
||||
# Corresponds to the JSON property `automaticRestart`
|
||||
# @return [Boolean]
|
||||
attr_accessor :automatic_restart
|
||||
@@ -8419,7 +8440,9 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :on_host_maintenance
|
||||
|
||||
# Whether the instance is preemptible.
|
||||
# Defines whether the instance is preemptible. This can only be set during
|
||||
# instance creation, it cannot be set or changed after the instance has been
|
||||
# created.
|
||||
# Corresponds to the JSON property `preemptible`
|
||||
# @return [Boolean]
|
||||
attr_accessor :preemptible
|
||||
@@ -8858,6 +8881,13 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :network
|
||||
|
||||
# Whether the VMs in this subnet can access Google services without assigned
|
||||
# external IP addresses.
|
||||
# Corresponds to the JSON property `privateIpGoogleAccess`
|
||||
# @return [Boolean]
|
||||
attr_accessor :private_ip_google_access
|
||||
alias_method :private_ip_google_access?, :private_ip_google_access
|
||||
|
||||
# URL of the region where the Subnetwork resides.
|
||||
# Corresponds to the JSON property `region`
|
||||
# @return [String]
|
||||
@@ -8882,6 +8912,7 @@ module Google
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@network = args[:network] if args.key?(:network)
|
||||
@private_ip_google_access = args[:private_ip_google_access] if args.key?(:private_ip_google_access)
|
||||
@region = args[:region] if args.key?(:region)
|
||||
@self_link = args[:self_link] if args.key?(:self_link)
|
||||
end
|
||||
@@ -9096,6 +9127,26 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class SubnetworksSetPrivateIpGoogleAccessRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `privateIpGoogleAccess`
|
||||
# @return [Boolean]
|
||||
attr_accessor :private_ip_google_access
|
||||
alias_method :private_ip_google_access?, :private_ip_google_access
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@private_ip_google_access = args[:private_ip_google_access] if args.key?(:private_ip_google_access)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class TcpHealthCheck
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
@@ -1174,6 +1174,12 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SubnetworksSetPrivateIpGoogleAccessRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TcpHealthCheck
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -3451,6 +3457,8 @@ module Google
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :best_routes, as: 'bestRoutes', class: Google::Apis::ComputeV1::Route, decorator: Google::Apis::ComputeV1::Route::Representation
|
||||
|
||||
collection :best_routes_for_router, as: 'bestRoutesForRouter', class: Google::Apis::ComputeV1::Route, decorator: Google::Apis::ComputeV1::Route::Representation
|
||||
|
||||
collection :bgp_peer_status, as: 'bgpPeerStatus', class: Google::Apis::ComputeV1::RouterStatusBgpPeerStatus, decorator: Google::Apis::ComputeV1::RouterStatusBgpPeerStatus::Representation
|
||||
|
||||
property :network, as: 'network'
|
||||
@@ -3630,6 +3638,7 @@ module Google
|
||||
property :kind, as: 'kind'
|
||||
property :name, as: 'name'
|
||||
property :network, as: 'network'
|
||||
property :private_ip_google_access, as: 'privateIpGoogleAccess'
|
||||
property :region, as: 'region'
|
||||
property :self_link, as: 'selfLink'
|
||||
end
|
||||
@@ -3694,6 +3703,13 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class SubnetworksSetPrivateIpGoogleAccessRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :private_ip_google_access, as: 'privateIpGoogleAccess'
|
||||
end
|
||||
end
|
||||
|
||||
class TcpHealthCheck
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
||||
@@ -622,9 +622,9 @@ module Google
|
||||
# Project ID for this request.
|
||||
# @param [String] zone
|
||||
# Name of the zone for this request.
|
||||
# @param [String] autoscaler
|
||||
# Name of the autoscaler to update.
|
||||
# @param [Google::Apis::ComputeV1::Autoscaler] autoscaler_object
|
||||
# @param [String] autoscaler
|
||||
# Name of the autoscaler to patch.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -646,7 +646,7 @@ module Google
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def patch_autoscaler(project, zone, autoscaler, autoscaler_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
def patch_autoscaler(project, zone, autoscaler_object = nil, autoscaler: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:patch, '{project}/zones/{zone}/autoscalers', options)
|
||||
command.request_representation = Google::Apis::ComputeV1::Autoscaler::Representation
|
||||
command.request_object = autoscaler_object
|
||||
@@ -905,7 +905,7 @@ module Google
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] backend_bucket
|
||||
# Name of the BackendBucket resource to update.
|
||||
# Name of the BackendBucket resource to patch.
|
||||
# @param [Google::Apis::ComputeV1::BackendBucket] backend_bucket_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -1298,14 +1298,14 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Updates the specified BackendService resource with the data included in the
|
||||
# Patches the specified BackendService resource with the data included in the
|
||||
# request. There are several restrictions and guidelines to keep in mind when
|
||||
# updating a backend service. Read Restrictions and Guidelines for more
|
||||
# information. This method supports patch semantics.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] backend_service
|
||||
# Name of the BackendService resource to update.
|
||||
# Name of the BackendService resource to patch.
|
||||
# @param [Google::Apis::ComputeV1::BackendService] backend_service_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -2157,7 +2157,9 @@ module Google
|
||||
end
|
||||
|
||||
# Updates the specified firewall rule with the data included in the request.
|
||||
# This method supports patch semantics.
|
||||
# Using PUT method, can only update following fields of firewall rule: allowed,
|
||||
# description, sourceRanges, sourceTags, targetTags. This method supports patch
|
||||
# semantics.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] firewall
|
||||
@@ -2199,6 +2201,8 @@ module Google
|
||||
end
|
||||
|
||||
# Updates the specified firewall rule with the data included in the request.
|
||||
# Using PUT method, can only update following fields of firewall rule: allowed,
|
||||
# description, sourceRanges, sourceTags, targetTags.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] firewall
|
||||
@@ -2759,7 +2763,7 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Deletes the specified ForwardingRule resource.
|
||||
# Deletes the specified GlobalForwardingRule resource.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] forwarding_rule
|
||||
@@ -2797,7 +2801,7 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Returns the specified ForwardingRule resource. Get a list of available
|
||||
# Returns the specified GlobalForwardingRule resource. Get a list of available
|
||||
# forwarding rules by making a list() request.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
@@ -2836,8 +2840,8 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Creates a ForwardingRule resource in the specified project and region using
|
||||
# the data included in the request.
|
||||
# Creates a GlobalForwardingRule resource in the specified project using the
|
||||
# data included in the request.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [Google::Apis::ComputeV1::ForwardingRule] forwarding_rule_object
|
||||
@@ -2875,7 +2879,7 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Retrieves a list of ForwardingRule resources available to the specified
|
||||
# Retrieves a list of GlobalForwardingRule resources available to the specified
|
||||
# project.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
@@ -2953,8 +2957,8 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Changes target URL for forwarding rule. The new target should be of the same
|
||||
# type as the old target.
|
||||
# Changes target URL for the GlobalForwardingRule resource. The new target
|
||||
# should be of the same type as the old target.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] forwarding_rule
|
||||
@@ -3422,7 +3426,7 @@ module Google
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] health_check
|
||||
# Name of the HealthCheck resource to update.
|
||||
# Name of the HealthCheck resource to patch.
|
||||
# @param [Google::Apis::ComputeV1::HealthCheck] health_check_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -3700,7 +3704,7 @@ module Google
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] http_health_check
|
||||
# Name of the HttpHealthCheck resource to update.
|
||||
# Name of the HttpHealthCheck resource to patch.
|
||||
# @param [Google::Apis::ComputeV1::HttpHealthCheck] http_health_check_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -3978,7 +3982,7 @@ module Google
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] https_health_check
|
||||
# Name of the HttpsHealthCheck resource to update.
|
||||
# Name of the HttpsHealthCheck resource to patch.
|
||||
# @param [Google::Apis::ComputeV1::HttpsHealthCheck] https_health_check_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -4343,6 +4347,7 @@ module Google
|
||||
# DONE when the action is scheduled even if the instances have not yet been
|
||||
# removed from the group. You must separately verify the status of the
|
||||
# abandoning action with the listmanagedinstances method.
|
||||
# You can specify a maximum of 1000 instances with this method per request.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] zone
|
||||
@@ -4513,6 +4518,7 @@ module Google
|
||||
# DONE when the action is scheduled even if the instances are still being
|
||||
# deleted. You must separately verify the status of the deleting action with the
|
||||
# listmanagedinstances method.
|
||||
# You can specify a maximum of 1000 instances with this method per request.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] zone
|
||||
@@ -4604,6 +4610,7 @@ module Google
|
||||
# is marked as DONE when the group is created even if the instances in the group
|
||||
# have not yet been created. You must separately verify the status of the
|
||||
# individual instances with the listmanagedinstances method.
|
||||
# A managed instance group can have up to 1000 VM instances per group.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] zone
|
||||
@@ -4784,6 +4791,7 @@ module Google
|
||||
# DONE when the action is scheduled even if the instances have not yet been
|
||||
# recreated. You must separately verify the status of the recreating action with
|
||||
# the listmanagedinstances method.
|
||||
# You can specify a maximum of 1000 instances with this method per request.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] zone
|
||||
@@ -6194,7 +6202,8 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Performs a hard reset on the instance.
|
||||
# Performs a reset on the instance. For more information, see Resetting an
|
||||
# instance.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] zone
|
||||
@@ -7506,9 +7515,9 @@ module Google
|
||||
# Project ID for this request.
|
||||
# @param [String] region
|
||||
# Name of the region scoping this request.
|
||||
# @param [String] autoscaler
|
||||
# Name of the autoscaler to update.
|
||||
# @param [Google::Apis::ComputeV1::Autoscaler] autoscaler_object
|
||||
# @param [String] autoscaler
|
||||
# Name of the autoscaler to patch.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -7530,7 +7539,7 @@ module Google
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def patch_region_autoscaler(project, region, autoscaler, autoscaler_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
def patch_region_autoscaler(project, region, autoscaler_object = nil, autoscaler: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:patch, '{project}/regions/{region}/autoscalers', options)
|
||||
command.request_representation = Google::Apis::ComputeV1::Autoscaler::Representation
|
||||
command.request_object = autoscaler_object
|
||||
@@ -7849,7 +7858,7 @@ module Google
|
||||
# @param [String] region
|
||||
# Name of the region scoping this request.
|
||||
# @param [String] backend_service
|
||||
# Name of the BackendService resource to update.
|
||||
# Name of the BackendService resource to patch.
|
||||
# @param [Google::Apis::ComputeV1::BackendService] backend_service_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -7942,6 +7951,7 @@ module Google
|
||||
# DONE when the action is scheduled even if the instances have not yet been
|
||||
# removed from the group. You must separately verify the status of the
|
||||
# abandoning action with the listmanagedinstances method.
|
||||
# You can specify a maximum of 1000 instances with this method per request.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] region
|
||||
@@ -8034,6 +8044,7 @@ module Google
|
||||
# DONE when the action is scheduled even if the instances are still being
|
||||
# deleted. You must separately verify the status of the deleting action with the
|
||||
# listmanagedinstances method.
|
||||
# You can specify a maximum of 1000 instances with this method per request.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] region
|
||||
@@ -8124,6 +8135,7 @@ module Google
|
||||
# is marked as DONE when the group is created even if the instances in the group
|
||||
# have not yet been created. You must separately verify the status of the
|
||||
# individual instances with the listmanagedinstances method.
|
||||
# A regional managed instance group can contain up to 2000 instances.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] region
|
||||
@@ -8302,6 +8314,7 @@ module Google
|
||||
# DONE when the action is scheduled even if the instances have not yet been
|
||||
# recreated. You must separately verify the status of the recreating action with
|
||||
# the listmanagedinstances method.
|
||||
# You can specify a maximum of 1000 instances with this method per request.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] region
|
||||
@@ -9338,14 +9351,14 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Updates the specified Router resource with the data included in the request.
|
||||
# Patches the specified Router resource with the data included in the request.
|
||||
# This method supports patch semantics.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] region
|
||||
# Name of the region for this request.
|
||||
# @param [String] router
|
||||
# Name of the Router resource to update.
|
||||
# Name of the Router resource to patch.
|
||||
# @param [Google::Apis::ComputeV1::Router] router_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -10344,6 +10357,51 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Set whether VMs in this subnet can access Google services without assigning
|
||||
# external IP addresses through Cloudpath.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] region
|
||||
# Name of the region scoping this request.
|
||||
# @param [String] subnetwork
|
||||
# Name of the Subnetwork resource.
|
||||
# @param [Google::Apis::ComputeV1::SubnetworksSetPrivateIpGoogleAccessRequest] subnetworks_set_private_ip_google_access_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ComputeV1::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def set_subnetwork_private_ip_google_access(project, region, subnetwork, subnetworks_set_private_ip_google_access_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, '{project}/regions/{region}/subnetworks/{subnetwork}/setPrivateIpGoogleAccess', options)
|
||||
command.request_representation = Google::Apis::ComputeV1::SubnetworksSetPrivateIpGoogleAccessRequest::Representation
|
||||
command.request_object = subnetworks_set_private_ip_google_access_request_object
|
||||
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
||||
command.response_class = Google::Apis::ComputeV1::Operation
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.params['region'] = region unless region.nil?
|
||||
command.params['subnetwork'] = subnetwork unless subnetwork.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Deletes the specified TargetHttpProxy resource.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
@@ -12523,12 +12581,12 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Updates the specified UrlMap resource with the data included in the request.
|
||||
# Patches the specified UrlMap resource with the data included in the request.
|
||||
# This method supports patch semantics.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] url_map
|
||||
# Name of the UrlMap resource to update.
|
||||
# Name of the UrlMap resource to patch.
|
||||
# @param [Google::Apis::ComputeV1::UrlMap] url_map_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
|
||||
@@ -20,13 +20,13 @@ module Google
|
||||
module Apis
|
||||
# Google Container Engine API
|
||||
#
|
||||
# Builds and manages clusters that run container-based applications, powered by
|
||||
# open source Kubernetes technology.
|
||||
# The Google Container Engine API is used for building and managing container
|
||||
# based applications, powered by the open source Kubernetes technology.
|
||||
#
|
||||
# @see https://cloud.google.com/container-engine/
|
||||
module ContainerV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20161024'
|
||||
REVISION = '20170424'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -22,121 +22,13 @@ module Google
|
||||
module Apis
|
||||
module ContainerV1
|
||||
|
||||
class ListClustersResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Cluster
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class NodeConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class MasterAuth
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AddonsConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class HttpLoadBalancing
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class HorizontalPodAutoscaling
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class NodePool
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class NodePoolAutoscaling
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class NodeManagement
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AutoUpgradeOptions
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CreateClusterRequest
|
||||
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 UpdateClusterRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ClusterUpdate
|
||||
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 CancelOperationRequest
|
||||
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 ServerConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListNodePoolsResponse
|
||||
class Cluster
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
@@ -148,7 +40,67 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class RollbackNodePoolUpgradeRequest
|
||||
class ListOperationsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ServerConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class NodeConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class MasterAuth
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AutoUpgradeOptions
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListClustersResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class HttpLoadBalancing
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SetMasterAuthRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class NodePoolAutoscaling
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ClusterUpdate
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class HorizontalPodAutoscaling
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
@@ -160,169 +112,88 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListClustersResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :clusters, as: 'clusters', class: Google::Apis::ContainerV1::Cluster, decorator: Google::Apis::ContainerV1::Cluster::Representation
|
||||
class Empty
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
collection :missing_zones, as: 'missingZones'
|
||||
end
|
||||
end
|
||||
|
||||
class Cluster
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :name, as: 'name'
|
||||
property :description, as: 'description'
|
||||
property :initial_node_count, as: 'initialNodeCount'
|
||||
property :node_config, as: 'nodeConfig', class: Google::Apis::ContainerV1::NodeConfig, decorator: Google::Apis::ContainerV1::NodeConfig::Representation
|
||||
|
||||
property :master_auth, as: 'masterAuth', class: Google::Apis::ContainerV1::MasterAuth, decorator: Google::Apis::ContainerV1::MasterAuth::Representation
|
||||
|
||||
property :logging_service, as: 'loggingService'
|
||||
property :monitoring_service, as: 'monitoringService'
|
||||
property :network, as: 'network'
|
||||
property :cluster_ipv4_cidr, as: 'clusterIpv4Cidr'
|
||||
property :addons_config, as: 'addonsConfig', class: Google::Apis::ContainerV1::AddonsConfig, decorator: Google::Apis::ContainerV1::AddonsConfig::Representation
|
||||
|
||||
property :subnetwork, as: 'subnetwork'
|
||||
collection :node_pools, as: 'nodePools', class: Google::Apis::ContainerV1::NodePool, decorator: Google::Apis::ContainerV1::NodePool::Representation
|
||||
|
||||
collection :locations, as: 'locations'
|
||||
property :enable_kubernetes_alpha, as: 'enableKubernetesAlpha'
|
||||
property :self_link, as: 'selfLink'
|
||||
property :zone, as: 'zone'
|
||||
property :endpoint, as: 'endpoint'
|
||||
property :initial_cluster_version, as: 'initialClusterVersion'
|
||||
property :current_master_version, as: 'currentMasterVersion'
|
||||
property :current_node_version, as: 'currentNodeVersion'
|
||||
property :create_time, as: 'createTime'
|
||||
property :status, as: 'status'
|
||||
property :status_message, as: 'statusMessage'
|
||||
property :node_ipv4_cidr_size, as: 'nodeIpv4CidrSize'
|
||||
property :services_ipv4_cidr, as: 'servicesIpv4Cidr'
|
||||
collection :instance_group_urls, as: 'instanceGroupUrls'
|
||||
property :current_node_count, as: 'currentNodeCount'
|
||||
property :expire_time, as: 'expireTime'
|
||||
end
|
||||
end
|
||||
|
||||
class NodeConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :machine_type, as: 'machineType'
|
||||
property :disk_size_gb, as: 'diskSizeGb'
|
||||
collection :oauth_scopes, as: 'oauthScopes'
|
||||
property :service_account, as: 'serviceAccount'
|
||||
hash :metadata, as: 'metadata'
|
||||
property :image_type, as: 'imageType'
|
||||
hash :labels, as: 'labels'
|
||||
property :local_ssd_count, as: 'localSsdCount'
|
||||
collection :tags, as: 'tags'
|
||||
property :preemptible, as: 'preemptible'
|
||||
end
|
||||
end
|
||||
|
||||
class MasterAuth
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :username, as: 'username'
|
||||
property :password, as: 'password'
|
||||
property :cluster_ca_certificate, as: 'clusterCaCertificate'
|
||||
property :client_certificate, as: 'clientCertificate'
|
||||
property :client_key, as: 'clientKey'
|
||||
end
|
||||
end
|
||||
|
||||
class AddonsConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :http_load_balancing, as: 'httpLoadBalancing', class: Google::Apis::ContainerV1::HttpLoadBalancing, decorator: Google::Apis::ContainerV1::HttpLoadBalancing::Representation
|
||||
|
||||
property :horizontal_pod_autoscaling, as: 'horizontalPodAutoscaling', class: Google::Apis::ContainerV1::HorizontalPodAutoscaling, decorator: Google::Apis::ContainerV1::HorizontalPodAutoscaling::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class HttpLoadBalancing
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :disabled, as: 'disabled'
|
||||
end
|
||||
end
|
||||
|
||||
class HorizontalPodAutoscaling
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :disabled, as: 'disabled'
|
||||
end
|
||||
end
|
||||
|
||||
class NodePool
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :name, as: 'name'
|
||||
property :config, as: 'config', class: Google::Apis::ContainerV1::NodeConfig, decorator: Google::Apis::ContainerV1::NodeConfig::Representation
|
||||
|
||||
property :initial_node_count, as: 'initialNodeCount'
|
||||
property :self_link, as: 'selfLink'
|
||||
property :version, as: 'version'
|
||||
collection :instance_group_urls, as: 'instanceGroupUrls'
|
||||
property :status, as: 'status'
|
||||
property :status_message, as: 'statusMessage'
|
||||
property :autoscaling, as: 'autoscaling', class: Google::Apis::ContainerV1::NodePoolAutoscaling, decorator: Google::Apis::ContainerV1::NodePoolAutoscaling::Representation
|
||||
|
||||
property :management, as: 'management', class: Google::Apis::ContainerV1::NodeManagement, decorator: Google::Apis::ContainerV1::NodeManagement::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class NodePoolAutoscaling
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :enabled, as: 'enabled'
|
||||
property :min_node_count, as: 'minNodeCount'
|
||||
property :max_node_count, as: 'maxNodeCount'
|
||||
end
|
||||
end
|
||||
|
||||
class NodeManagement
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :auto_upgrade, as: 'autoUpgrade'
|
||||
property :upgrade_options, as: 'upgradeOptions', class: Google::Apis::ContainerV1::AutoUpgradeOptions, decorator: Google::Apis::ContainerV1::AutoUpgradeOptions::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class AutoUpgradeOptions
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :auto_upgrade_start_time, as: 'autoUpgradeStartTime'
|
||||
property :description, as: 'description'
|
||||
end
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CreateClusterRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :cluster, as: 'cluster', class: Google::Apis::ContainerV1::Cluster, decorator: Google::Apis::ContainerV1::Cluster::Representation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
end
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListNodePoolsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CompleteIpRotationRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class StartIpRotationRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class LegacyAbac
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class NodePool
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SetLabelsRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class NodeManagement
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CancelOperationRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SetLegacyAbacRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Operation
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :name, as: 'name'
|
||||
property :zone, as: 'zone'
|
||||
property :operation_type, as: 'operationType'
|
||||
property :status, as: 'status'
|
||||
property :detail, as: 'detail'
|
||||
property :status_message, as: 'statusMessage'
|
||||
property :self_link, as: 'selfLink'
|
||||
property :target_link, as: 'targetLink'
|
||||
end
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AddonsConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class RollbackNodePoolUpgradeRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class UpdateClusterRequest
|
||||
@@ -333,19 +204,53 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class ClusterUpdate
|
||||
class Cluster
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :desired_node_version, as: 'desiredNodeVersion'
|
||||
property :desired_monitoring_service, as: 'desiredMonitoringService'
|
||||
property :desired_addons_config, as: 'desiredAddonsConfig', class: Google::Apis::ContainerV1::AddonsConfig, decorator: Google::Apis::ContainerV1::AddonsConfig::Representation
|
||||
property :node_config, as: 'nodeConfig', class: Google::Apis::ContainerV1::NodeConfig, decorator: Google::Apis::ContainerV1::NodeConfig::Representation
|
||||
|
||||
property :desired_node_pool_id, as: 'desiredNodePoolId'
|
||||
property :desired_image_type, as: 'desiredImageType'
|
||||
property :desired_node_pool_autoscaling, as: 'desiredNodePoolAutoscaling', class: Google::Apis::ContainerV1::NodePoolAutoscaling, decorator: Google::Apis::ContainerV1::NodePoolAutoscaling::Representation
|
||||
property :addons_config, as: 'addonsConfig', class: Google::Apis::ContainerV1::AddonsConfig, decorator: Google::Apis::ContainerV1::AddonsConfig::Representation
|
||||
|
||||
property :status, as: 'status'
|
||||
property :subnetwork, as: 'subnetwork'
|
||||
property :current_node_version, as: 'currentNodeVersion'
|
||||
hash :resource_labels, as: 'resourceLabels'
|
||||
property :name, as: 'name'
|
||||
property :initial_cluster_version, as: 'initialClusterVersion'
|
||||
property :endpoint, as: 'endpoint'
|
||||
property :legacy_abac, as: 'legacyAbac', class: Google::Apis::ContainerV1::LegacyAbac, decorator: Google::Apis::ContainerV1::LegacyAbac::Representation
|
||||
|
||||
property :create_time, as: 'createTime'
|
||||
property :cluster_ipv4_cidr, as: 'clusterIpv4Cidr'
|
||||
property :initial_node_count, as: 'initialNodeCount'
|
||||
collection :node_pools, as: 'nodePools', class: Google::Apis::ContainerV1::NodePool, decorator: Google::Apis::ContainerV1::NodePool::Representation
|
||||
|
||||
collection :locations, as: 'locations'
|
||||
property :self_link, as: 'selfLink'
|
||||
collection :instance_group_urls, as: 'instanceGroupUrls'
|
||||
property :services_ipv4_cidr, as: 'servicesIpv4Cidr'
|
||||
property :enable_kubernetes_alpha, as: 'enableKubernetesAlpha'
|
||||
property :description, as: 'description'
|
||||
property :current_node_count, as: 'currentNodeCount'
|
||||
property :monitoring_service, as: 'monitoringService'
|
||||
property :network, as: 'network'
|
||||
property :label_fingerprint, as: 'labelFingerprint'
|
||||
property :zone, as: 'zone'
|
||||
property :logging_service, as: 'loggingService'
|
||||
property :node_ipv4_cidr_size, as: 'nodeIpv4CidrSize'
|
||||
property :expire_time, as: 'expireTime'
|
||||
property :status_message, as: 'statusMessage'
|
||||
property :master_auth, as: 'masterAuth', class: Google::Apis::ContainerV1::MasterAuth, decorator: Google::Apis::ContainerV1::MasterAuth::Representation
|
||||
|
||||
property :current_master_version, as: 'currentMasterVersion'
|
||||
end
|
||||
end
|
||||
|
||||
class CreateNodePoolRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :node_pool, as: 'nodePool', class: Google::Apis::ContainerV1::NodePool, decorator: Google::Apis::ContainerV1::NodePool::Representation
|
||||
|
||||
collection :desired_locations, as: 'desiredLocations'
|
||||
property :desired_master_version, as: 'desiredMasterVersion'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -358,9 +263,114 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class CancelOperationRequest
|
||||
class ServerConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :valid_master_versions, as: 'validMasterVersions'
|
||||
property :default_cluster_version, as: 'defaultClusterVersion'
|
||||
property :default_image_type, as: 'defaultImageType'
|
||||
collection :valid_node_versions, as: 'validNodeVersions'
|
||||
collection :valid_image_types, as: 'validImageTypes'
|
||||
end
|
||||
end
|
||||
|
||||
class NodeConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :oauth_scopes, as: 'oauthScopes'
|
||||
property :preemptible, as: 'preemptible'
|
||||
hash :labels, as: 'labels'
|
||||
property :local_ssd_count, as: 'localSsdCount'
|
||||
hash :metadata, as: 'metadata'
|
||||
property :disk_size_gb, as: 'diskSizeGb'
|
||||
collection :tags, as: 'tags'
|
||||
property :service_account, as: 'serviceAccount'
|
||||
property :machine_type, as: 'machineType'
|
||||
property :image_type, as: 'imageType'
|
||||
end
|
||||
end
|
||||
|
||||
class MasterAuth
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :cluster_ca_certificate, as: 'clusterCaCertificate'
|
||||
property :password, as: 'password'
|
||||
property :client_certificate, as: 'clientCertificate'
|
||||
property :username, as: 'username'
|
||||
property :client_key, as: 'clientKey'
|
||||
end
|
||||
end
|
||||
|
||||
class AutoUpgradeOptions
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :description, as: 'description'
|
||||
property :auto_upgrade_start_time, as: 'autoUpgradeStartTime'
|
||||
end
|
||||
end
|
||||
|
||||
class ListClustersResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :missing_zones, as: 'missingZones'
|
||||
collection :clusters, as: 'clusters', class: Google::Apis::ContainerV1::Cluster, decorator: Google::Apis::ContainerV1::Cluster::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class HttpLoadBalancing
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :disabled, as: 'disabled'
|
||||
end
|
||||
end
|
||||
|
||||
class SetMasterAuthRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :update, as: 'update', class: Google::Apis::ContainerV1::MasterAuth, decorator: Google::Apis::ContainerV1::MasterAuth::Representation
|
||||
|
||||
property :action, as: 'action'
|
||||
end
|
||||
end
|
||||
|
||||
class NodePoolAutoscaling
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :enabled, as: 'enabled'
|
||||
property :max_node_count, as: 'maxNodeCount'
|
||||
property :min_node_count, as: 'minNodeCount'
|
||||
end
|
||||
end
|
||||
|
||||
class ClusterUpdate
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :desired_monitoring_service, as: 'desiredMonitoringService'
|
||||
property :desired_image_type, as: 'desiredImageType'
|
||||
property :desired_addons_config, as: 'desiredAddonsConfig', class: Google::Apis::ContainerV1::AddonsConfig, decorator: Google::Apis::ContainerV1::AddonsConfig::Representation
|
||||
|
||||
property :desired_node_pool_id, as: 'desiredNodePoolId'
|
||||
property :desired_node_version, as: 'desiredNodeVersion'
|
||||
property :desired_master_version, as: 'desiredMasterVersion'
|
||||
collection :desired_locations, as: 'desiredLocations'
|
||||
property :desired_node_pool_autoscaling, as: 'desiredNodePoolAutoscaling', class: Google::Apis::ContainerV1::NodePoolAutoscaling, decorator: Google::Apis::ContainerV1::NodePoolAutoscaling::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class HorizontalPodAutoscaling
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :disabled, as: 'disabled'
|
||||
end
|
||||
end
|
||||
|
||||
class SetNodePoolManagementRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :management, as: 'management', class: Google::Apis::ContainerV1::NodeManagement, decorator: Google::Apis::ContainerV1::NodeManagement::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
@@ -370,14 +380,11 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class ServerConfig
|
||||
class CreateClusterRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :default_cluster_version, as: 'defaultClusterVersion'
|
||||
collection :valid_node_versions, as: 'validNodeVersions'
|
||||
property :default_image_type, as: 'defaultImageType'
|
||||
collection :valid_image_types, as: 'validImageTypes'
|
||||
collection :valid_master_versions, as: 'validMasterVersions'
|
||||
property :cluster, as: 'cluster', class: Google::Apis::ContainerV1::Cluster, decorator: Google::Apis::ContainerV1::Cluster::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
@@ -389,10 +396,95 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class CreateNodePoolRequest
|
||||
class CompleteIpRotationRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :node_pool, as: 'nodePool', class: Google::Apis::ContainerV1::NodePool, decorator: Google::Apis::ContainerV1::NodePool::Representation
|
||||
end
|
||||
end
|
||||
|
||||
class StartIpRotationRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class LegacyAbac
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :enabled, as: 'enabled'
|
||||
end
|
||||
end
|
||||
|
||||
class NodePool
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :autoscaling, as: 'autoscaling', class: Google::Apis::ContainerV1::NodePoolAutoscaling, decorator: Google::Apis::ContainerV1::NodePoolAutoscaling::Representation
|
||||
|
||||
property :initial_node_count, as: 'initialNodeCount'
|
||||
property :management, as: 'management', class: Google::Apis::ContainerV1::NodeManagement, decorator: Google::Apis::ContainerV1::NodeManagement::Representation
|
||||
|
||||
property :self_link, as: 'selfLink'
|
||||
property :version, as: 'version'
|
||||
collection :instance_group_urls, as: 'instanceGroupUrls'
|
||||
property :status, as: 'status'
|
||||
property :config, as: 'config', class: Google::Apis::ContainerV1::NodeConfig, decorator: Google::Apis::ContainerV1::NodeConfig::Representation
|
||||
|
||||
property :status_message, as: 'statusMessage'
|
||||
property :name, as: 'name'
|
||||
end
|
||||
end
|
||||
|
||||
class SetLabelsRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
hash :resource_labels, as: 'resourceLabels'
|
||||
property :label_fingerprint, as: 'labelFingerprint'
|
||||
end
|
||||
end
|
||||
|
||||
class NodeManagement
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :auto_upgrade, as: 'autoUpgrade'
|
||||
property :auto_repair, as: 'autoRepair'
|
||||
property :upgrade_options, as: 'upgradeOptions', class: Google::Apis::ContainerV1::AutoUpgradeOptions, decorator: Google::Apis::ContainerV1::AutoUpgradeOptions::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class CancelOperationRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class SetLegacyAbacRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :enabled, as: 'enabled'
|
||||
end
|
||||
end
|
||||
|
||||
class Operation
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :status_message, as: 'statusMessage'
|
||||
property :name, as: 'name'
|
||||
property :self_link, as: 'selfLink'
|
||||
property :target_link, as: 'targetLink'
|
||||
property :detail, as: 'detail'
|
||||
property :operation_type, as: 'operationType'
|
||||
property :zone, as: 'zone'
|
||||
property :status, as: 'status'
|
||||
end
|
||||
end
|
||||
|
||||
class AddonsConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :horizontal_pod_autoscaling, as: 'horizontalPodAutoscaling', class: Google::Apis::ContainerV1::HorizontalPodAutoscaling, decorator: Google::Apis::ContainerV1::HorizontalPodAutoscaling::Representation
|
||||
|
||||
property :http_load_balancing, as: 'httpLoadBalancing', class: Google::Apis::ContainerV1::HttpLoadBalancing, decorator: Google::Apis::ContainerV1::HttpLoadBalancing::Representation
|
||||
|
||||
end
|
||||
end
|
||||
@@ -402,14 +494,6 @@ module Google
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class SetNodePoolManagementRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :management, as: 'management', class: Google::Apis::ContainerV1::NodeManagement, decorator: Google::Apis::ContainerV1::NodeManagement::Representation
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -22,8 +22,8 @@ module Google
|
||||
module ContainerV1
|
||||
# Google Container Engine API
|
||||
#
|
||||
# Builds and manages clusters that run container-based applications, powered by
|
||||
# open source Kubernetes technology.
|
||||
# The Google Container Engine API is used for building and managing container
|
||||
# based applications, powered by the open source Kubernetes technology.
|
||||
#
|
||||
# @example
|
||||
# require 'google/apis/container_v1'
|
||||
@@ -50,11 +50,11 @@ module Google
|
||||
|
||||
# Returns configuration info about the Container Engine service.
|
||||
# @param [String] project_id
|
||||
# The Google Developers Console [project ID or project number](https://support.
|
||||
# google.com/cloud/answer/6158840).
|
||||
# The Google Developers Console [project ID or project
|
||||
# number](https://support.google.com/cloud/answer/6158840).
|
||||
# @param [String] zone
|
||||
# The name of the Google Compute Engine [zone](/compute/docs/zones#available) to
|
||||
# return operations for.
|
||||
# The name of the Google Compute Engine [zone](/compute/docs/zones#available)
|
||||
# to return operations for.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -83,14 +83,130 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Cancels the specified operation.
|
||||
# @param [String] project_id
|
||||
# The Google Developers Console [project ID or project
|
||||
# number](https://support.google.com/cloud/answer/6158840).
|
||||
# @param [String] zone
|
||||
# The name of the Google Compute Engine
|
||||
# [zone](/compute/docs/zones#available) in which the operation resides.
|
||||
# @param [String] operation_id
|
||||
# The server-assigned `name` of the operation.
|
||||
# @param [Google::Apis::ContainerV1::CancelOperationRequest] cancel_operation_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ContainerV1::Empty] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContainerV1::Empty]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def cancel_operation(project_id, zone, operation_id, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/operations/{operationId}:cancel', options)
|
||||
command.request_representation = Google::Apis::ContainerV1::CancelOperationRequest::Representation
|
||||
command.request_object = cancel_operation_request_object
|
||||
command.response_representation = Google::Apis::ContainerV1::Empty::Representation
|
||||
command.response_class = Google::Apis::ContainerV1::Empty
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['zone'] = zone unless zone.nil?
|
||||
command.params['operationId'] = operation_id unless operation_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists all operations in a project in a specific zone or all zones.
|
||||
# @param [String] project_id
|
||||
# The Google Developers Console [project ID or project
|
||||
# number](https://support.google.com/cloud/answer/6158840).
|
||||
# @param [String] zone
|
||||
# The name of the Google Compute Engine [zone](/compute/docs/zones#available)
|
||||
# to return operations for, or `-` for all zones.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ContainerV1::ListOperationsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContainerV1::ListOperationsResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_zone_operations(project_id, zone, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/operations', options)
|
||||
command.response_representation = Google::Apis::ContainerV1::ListOperationsResponse::Representation
|
||||
command.response_class = Google::Apis::ContainerV1::ListOperationsResponse
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['zone'] = zone unless zone.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Gets the specified operation.
|
||||
# @param [String] project_id
|
||||
# The Google Developers Console [project ID or project
|
||||
# number](https://support.google.com/cloud/answer/6158840).
|
||||
# @param [String] zone
|
||||
# The name of the Google Compute Engine
|
||||
# [zone](/compute/docs/zones#available) in which the cluster
|
||||
# resides.
|
||||
# @param [String] operation_id
|
||||
# The server-assigned `name` of the operation.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContainerV1::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_zone_operation(project_id, zone, operation_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/operations/{operationId}', options)
|
||||
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
||||
command.response_class = Google::Apis::ContainerV1::Operation
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['zone'] = zone unless zone.nil?
|
||||
command.params['operationId'] = operation_id unless operation_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists all clusters owned by a project in either the specified zone or all
|
||||
# zones.
|
||||
# @param [String] project_id
|
||||
# The Google Developers Console [project ID or project number](https://support.
|
||||
# google.com/cloud/answer/6158840).
|
||||
# The Google Developers Console [project ID or project
|
||||
# number](https://support.google.com/cloud/answer/6158840).
|
||||
# @param [String] zone
|
||||
# The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
|
||||
# which the cluster resides, or "-" for all zones.
|
||||
# The name of the Google Compute Engine
|
||||
# [zone](/compute/docs/zones#available) in which the cluster
|
||||
# resides, or "-" for all zones.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -119,57 +235,23 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Gets the details of a specific cluster.
|
||||
# @param [String] project_id
|
||||
# The Google Developers Console [project ID or project number](https://support.
|
||||
# google.com/cloud/answer/6158840).
|
||||
# @param [String] zone
|
||||
# The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
|
||||
# which the cluster resides.
|
||||
# @param [String] cluster_id
|
||||
# The name of the cluster to retrieve.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ContainerV1::Cluster] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContainerV1::Cluster]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_zone_cluster(project_id, zone, cluster_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}', options)
|
||||
command.response_representation = Google::Apis::ContainerV1::Cluster::Representation
|
||||
command.response_class = Google::Apis::ContainerV1::Cluster
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['zone'] = zone unless zone.nil?
|
||||
command.params['clusterId'] = cluster_id unless cluster_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Creates a cluster, consisting of the specified number and type of Google
|
||||
# Compute Engine instances. By default, the cluster is created in the project's [
|
||||
# default network](/compute/docs/networks-and-firewalls#networks). One firewall
|
||||
# is added for the cluster. After cluster creation, the cluster creates routes
|
||||
# for each node to allow the containers on that node to communicate with all
|
||||
# other instances in the cluster. Finally, an entry is added to the project's
|
||||
# global metadata indicating which CIDR range is being used by the cluster.
|
||||
# Compute Engine instances.
|
||||
# By default, the cluster is created in the project's
|
||||
# [default network](/compute/docs/networks-and-firewalls#networks).
|
||||
# One firewall is added for the cluster. After cluster creation,
|
||||
# the cluster creates routes for each node to allow the containers
|
||||
# on that node to communicate with all other instances in the
|
||||
# cluster.
|
||||
# Finally, an entry is added to the project's global metadata indicating
|
||||
# which CIDR range is being used by the cluster.
|
||||
# @param [String] project_id
|
||||
# The Google Developers Console [project ID or project number](https://support.
|
||||
# google.com/cloud/answer/6158840).
|
||||
# The Google Developers Console [project ID or project
|
||||
# number](https://support.google.com/cloud/answer/6158840).
|
||||
# @param [String] zone
|
||||
# The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
|
||||
# which the cluster resides.
|
||||
# The name of the Google Compute Engine
|
||||
# [zone](/compute/docs/zones#available) in which the cluster
|
||||
# resides.
|
||||
# @param [Google::Apis::ContainerV1::CreateClusterRequest] create_cluster_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -201,13 +283,179 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Sets labels on a cluster.
|
||||
# @param [String] project_id
|
||||
# The Google Developers Console [project ID or project
|
||||
# number](https://developers.google.com/console/help/new/#projectnumber).
|
||||
# @param [String] zone
|
||||
# The name of the Google Compute Engine
|
||||
# [zone](/compute/docs/zones#available) in which the cluster
|
||||
# resides.
|
||||
# @param [String] cluster_id
|
||||
# The name of the cluster.
|
||||
# @param [Google::Apis::ContainerV1::SetLabelsRequest] set_labels_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContainerV1::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def resource_project_zone_cluster_labels(project_id, zone, cluster_id, set_labels_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/resourceLabels', options)
|
||||
command.request_representation = Google::Apis::ContainerV1::SetLabelsRequest::Representation
|
||||
command.request_object = set_labels_request_object
|
||||
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
||||
command.response_class = Google::Apis::ContainerV1::Operation
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['zone'] = zone unless zone.nil?
|
||||
command.params['clusterId'] = cluster_id unless cluster_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Completes master IP rotation.
|
||||
# @param [String] project_id
|
||||
# The Google Developers Console [project ID or project
|
||||
# number](https://developers.google.com/console/help/new/#projectnumber).
|
||||
# @param [String] zone
|
||||
# The name of the Google Compute Engine
|
||||
# [zone](/compute/docs/zones#available) in which the cluster
|
||||
# resides.
|
||||
# @param [String] cluster_id
|
||||
# The name of the cluster.
|
||||
# @param [Google::Apis::ContainerV1::CompleteIpRotationRequest] complete_ip_rotation_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContainerV1::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def complete_cluster_ip_rotation(project_id, zone, cluster_id, complete_ip_rotation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:completeIpRotation', options)
|
||||
command.request_representation = Google::Apis::ContainerV1::CompleteIpRotationRequest::Representation
|
||||
command.request_object = complete_ip_rotation_request_object
|
||||
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
||||
command.response_class = Google::Apis::ContainerV1::Operation
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['zone'] = zone unless zone.nil?
|
||||
command.params['clusterId'] = cluster_id unless cluster_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Enables or disables the ABAC authorization mechanism on a cluster.
|
||||
# @param [String] project_id
|
||||
# The Google Developers Console [project ID or project
|
||||
# number](https://support.google.com/cloud/answer/6158840).
|
||||
# @param [String] zone
|
||||
# The name of the Google Compute Engine
|
||||
# [zone](/compute/docs/zones#available) in which the cluster
|
||||
# resides.
|
||||
# @param [String] cluster_id
|
||||
# The name of the cluster to update.
|
||||
# @param [Google::Apis::ContainerV1::SetLegacyAbacRequest] set_legacy_abac_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContainerV1::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def legacy_project_zone_cluster_abac(project_id, zone, cluster_id, set_legacy_abac_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/legacyAbac', options)
|
||||
command.request_representation = Google::Apis::ContainerV1::SetLegacyAbacRequest::Representation
|
||||
command.request_object = set_legacy_abac_request_object
|
||||
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
||||
command.response_class = Google::Apis::ContainerV1::Operation
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['zone'] = zone unless zone.nil?
|
||||
command.params['clusterId'] = cluster_id unless cluster_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Gets the details of a specific cluster.
|
||||
# @param [String] project_id
|
||||
# The Google Developers Console [project ID or project
|
||||
# number](https://support.google.com/cloud/answer/6158840).
|
||||
# @param [String] zone
|
||||
# The name of the Google Compute Engine
|
||||
# [zone](/compute/docs/zones#available) in which the cluster
|
||||
# resides.
|
||||
# @param [String] cluster_id
|
||||
# The name of the cluster to retrieve.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ContainerV1::Cluster] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContainerV1::Cluster]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_zone_cluster(project_id, zone, cluster_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}', options)
|
||||
command.response_representation = Google::Apis::ContainerV1::Cluster::Representation
|
||||
command.response_class = Google::Apis::ContainerV1::Cluster
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['zone'] = zone unless zone.nil?
|
||||
command.params['clusterId'] = cluster_id unless cluster_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Updates the settings of a specific cluster.
|
||||
# @param [String] project_id
|
||||
# The Google Developers Console [project ID or project number](https://support.
|
||||
# google.com/cloud/answer/6158840).
|
||||
# The Google Developers Console [project ID or project
|
||||
# number](https://support.google.com/cloud/answer/6158840).
|
||||
# @param [String] zone
|
||||
# The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
|
||||
# which the cluster resides.
|
||||
# The name of the Google Compute Engine
|
||||
# [zone](/compute/docs/zones#available) in which the cluster
|
||||
# resides.
|
||||
# @param [String] cluster_id
|
||||
# The name of the cluster to upgrade.
|
||||
# @param [Google::Apis::ContainerV1::UpdateClusterRequest] update_cluster_request_object
|
||||
@@ -242,17 +490,106 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Deletes the cluster, including the Kubernetes endpoint and all worker nodes.
|
||||
# Firewalls and routes that were configured during cluster creation are also
|
||||
# deleted. Other Google Compute Engine resources that might be in use by the
|
||||
# cluster (e.g. load balancer resources) will not be deleted if they weren't
|
||||
# present at the initial create time.
|
||||
# Start master IP rotation.
|
||||
# @param [String] project_id
|
||||
# The Google Developers Console [project ID or project number](https://support.
|
||||
# google.com/cloud/answer/6158840).
|
||||
# The Google Developers Console [project ID or project
|
||||
# number](https://developers.google.com/console/help/new/#projectnumber).
|
||||
# @param [String] zone
|
||||
# The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
|
||||
# which the cluster resides.
|
||||
# The name of the Google Compute Engine
|
||||
# [zone](/compute/docs/zones#available) in which the cluster
|
||||
# resides.
|
||||
# @param [String] cluster_id
|
||||
# The name of the cluster.
|
||||
# @param [Google::Apis::ContainerV1::StartIpRotationRequest] start_ip_rotation_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContainerV1::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def start_cluster_ip_rotation(project_id, zone, cluster_id, start_ip_rotation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:startIpRotation', options)
|
||||
command.request_representation = Google::Apis::ContainerV1::StartIpRotationRequest::Representation
|
||||
command.request_object = start_ip_rotation_request_object
|
||||
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
||||
command.response_class = Google::Apis::ContainerV1::Operation
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['zone'] = zone unless zone.nil?
|
||||
command.params['clusterId'] = cluster_id unless cluster_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Used to set master auth materials. Currently supports :-
|
||||
# Changing the admin password of a specific cluster.
|
||||
# This can be either via password generation or explicitly set the password.
|
||||
# @param [String] project_id
|
||||
# The Google Developers Console [project ID or project
|
||||
# number](https://support.google.com/cloud/answer/6158840).
|
||||
# @param [String] zone
|
||||
# The name of the Google Compute Engine
|
||||
# [zone](/compute/docs/zones#available) in which the cluster
|
||||
# resides.
|
||||
# @param [String] cluster_id
|
||||
# The name of the cluster to upgrade.
|
||||
# @param [Google::Apis::ContainerV1::SetMasterAuthRequest] set_master_auth_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContainerV1::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def set_cluster_master_auth(project_id, zone, cluster_id, set_master_auth_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMasterAuth', options)
|
||||
command.request_representation = Google::Apis::ContainerV1::SetMasterAuthRequest::Representation
|
||||
command.request_object = set_master_auth_request_object
|
||||
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
||||
command.response_class = Google::Apis::ContainerV1::Operation
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['zone'] = zone unless zone.nil?
|
||||
command.params['clusterId'] = cluster_id unless cluster_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Deletes the cluster, including the Kubernetes endpoint and all worker
|
||||
# nodes.
|
||||
# Firewalls and routes that were configured during cluster creation
|
||||
# are also deleted.
|
||||
# Other Google Compute Engine resources that might be in use by the cluster
|
||||
# (e.g. load balancer resources) will not be deleted if they weren't present
|
||||
# at the initial create time.
|
||||
# @param [String] project_id
|
||||
# The Google Developers Console [project ID or project
|
||||
# number](https://support.google.com/cloud/answer/6158840).
|
||||
# @param [String] zone
|
||||
# The name of the Google Compute Engine
|
||||
# [zone](/compute/docs/zones#available) in which the cluster
|
||||
# resides.
|
||||
# @param [String] cluster_id
|
||||
# The name of the cluster to delete.
|
||||
# @param [String] fields
|
||||
@@ -284,51 +621,14 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists the node pools for a cluster.
|
||||
# @param [String] project_id
|
||||
# The Google Developers Console [project ID or project number](https://
|
||||
# developers.google.com/console/help/new/#projectnumber).
|
||||
# @param [String] zone
|
||||
# The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
|
||||
# which the cluster resides.
|
||||
# @param [String] cluster_id
|
||||
# The name of the cluster.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ContainerV1::ListNodePoolsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContainerV1::ListNodePoolsResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_project_zone_cluster_node_pools(project_id, zone, cluster_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools', options)
|
||||
command.response_representation = Google::Apis::ContainerV1::ListNodePoolsResponse::Representation
|
||||
command.response_class = Google::Apis::ContainerV1::ListNodePoolsResponse
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['zone'] = zone unless zone.nil?
|
||||
command.params['clusterId'] = cluster_id unless cluster_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Retrieves the node pool requested.
|
||||
# @param [String] project_id
|
||||
# The Google Developers Console [project ID or project number](https://
|
||||
# developers.google.com/console/help/new/#projectnumber).
|
||||
# The Google Developers Console [project ID or project
|
||||
# number](https://developers.google.com/console/help/new/#projectnumber).
|
||||
# @param [String] zone
|
||||
# The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
|
||||
# which the cluster resides.
|
||||
# The name of the Google Compute Engine
|
||||
# [zone](/compute/docs/zones#available) in which the cluster
|
||||
# resides.
|
||||
# @param [String] cluster_id
|
||||
# The name of the cluster.
|
||||
# @param [String] node_pool_id
|
||||
@@ -363,140 +663,14 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Creates a node pool for a cluster.
|
||||
# @param [String] project_id
|
||||
# The Google Developers Console [project ID or project number](https://
|
||||
# developers.google.com/console/help/new/#projectnumber).
|
||||
# @param [String] zone
|
||||
# The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
|
||||
# which the cluster resides.
|
||||
# @param [String] cluster_id
|
||||
# The name of the cluster.
|
||||
# @param [Google::Apis::ContainerV1::CreateNodePoolRequest] create_node_pool_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContainerV1::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def create_node_pool(project_id, zone, cluster_id, create_node_pool_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools', options)
|
||||
command.request_representation = Google::Apis::ContainerV1::CreateNodePoolRequest::Representation
|
||||
command.request_object = create_node_pool_request_object
|
||||
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
||||
command.response_class = Google::Apis::ContainerV1::Operation
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['zone'] = zone unless zone.nil?
|
||||
command.params['clusterId'] = cluster_id unless cluster_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Deletes a node pool from a cluster.
|
||||
# @param [String] project_id
|
||||
# The Google Developers Console [project ID or project number](https://
|
||||
# developers.google.com/console/help/new/#projectnumber).
|
||||
# @param [String] zone
|
||||
# The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
|
||||
# which the cluster resides.
|
||||
# @param [String] cluster_id
|
||||
# The name of the cluster.
|
||||
# @param [String] node_pool_id
|
||||
# The name of the node pool to delete.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContainerV1::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def delete_project_zone_cluster_node_pool(project_id, zone, cluster_id, node_pool_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}', options)
|
||||
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
||||
command.response_class = Google::Apis::ContainerV1::Operation
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['zone'] = zone unless zone.nil?
|
||||
command.params['clusterId'] = cluster_id unless cluster_id.nil?
|
||||
command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Roll back the previously Aborted or Failed NodePool upgrade. This will be an
|
||||
# no-op if the last upgrade successfully completed.
|
||||
# @param [String] project_id
|
||||
# The Google Developers Console [project ID or project number](https://support.
|
||||
# google.com/cloud/answer/6158840).
|
||||
# @param [String] zone
|
||||
# The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
|
||||
# which the cluster resides.
|
||||
# @param [String] cluster_id
|
||||
# The name of the cluster to rollback.
|
||||
# @param [String] node_pool_id
|
||||
# The name of the node pool to rollback.
|
||||
# @param [Google::Apis::ContainerV1::RollbackNodePoolUpgradeRequest] rollback_node_pool_upgrade_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContainerV1::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def rollback_node_pool_upgrade(project_id, zone, cluster_id, node_pool_id, rollback_node_pool_upgrade_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback', options)
|
||||
command.request_representation = Google::Apis::ContainerV1::RollbackNodePoolUpgradeRequest::Representation
|
||||
command.request_object = rollback_node_pool_upgrade_request_object
|
||||
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
||||
command.response_class = Google::Apis::ContainerV1::Operation
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['zone'] = zone unless zone.nil?
|
||||
command.params['clusterId'] = cluster_id unless cluster_id.nil?
|
||||
command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Sets the NodeManagement options for a node pool.
|
||||
# @param [String] project_id
|
||||
# The Google Developers Console [project ID or project number](https://support.
|
||||
# google.com/cloud/answer/6158840).
|
||||
# The Google Developers Console [project ID or project
|
||||
# number](https://support.google.com/cloud/answer/6158840).
|
||||
# @param [String] zone
|
||||
# The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
|
||||
# which the cluster resides.
|
||||
# The name of the Google Compute Engine
|
||||
# [zone](/compute/docs/zones#available) in which the cluster
|
||||
# resides.
|
||||
# @param [String] cluster_id
|
||||
# The name of the cluster to update.
|
||||
# @param [String] node_pool_id
|
||||
@@ -534,50 +708,18 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists all operations in a project in a specific zone or all zones.
|
||||
# Deletes a node pool from a cluster.
|
||||
# @param [String] project_id
|
||||
# The Google Developers Console [project ID or project number](https://support.
|
||||
# google.com/cloud/answer/6158840).
|
||||
# The Google Developers Console [project ID or project
|
||||
# number](https://developers.google.com/console/help/new/#projectnumber).
|
||||
# @param [String] zone
|
||||
# The name of the Google Compute Engine [zone](/compute/docs/zones#available) to
|
||||
# return operations for, or `-` for all zones.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ContainerV1::ListOperationsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContainerV1::ListOperationsResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_zone_operations(project_id, zone, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/operations', options)
|
||||
command.response_representation = Google::Apis::ContainerV1::ListOperationsResponse::Representation
|
||||
command.response_class = Google::Apis::ContainerV1::ListOperationsResponse
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['zone'] = zone unless zone.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Gets the specified operation.
|
||||
# @param [String] project_id
|
||||
# The Google Developers Console [project ID or project number](https://support.
|
||||
# google.com/cloud/answer/6158840).
|
||||
# @param [String] zone
|
||||
# The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
|
||||
# which the cluster resides.
|
||||
# @param [String] operation_id
|
||||
# The server-assigned `name` of the operation.
|
||||
# The name of the Google Compute Engine
|
||||
# [zone](/compute/docs/zones#available) in which the cluster
|
||||
# resides.
|
||||
# @param [String] cluster_id
|
||||
# The name of the cluster.
|
||||
# @param [String] node_pool_id
|
||||
# The name of the node pool to delete.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -595,28 +737,29 @@ module Google
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_zone_operation(project_id, zone, operation_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/operations/{operationId}', options)
|
||||
def delete_project_zone_cluster_node_pool(project_id, zone, cluster_id, node_pool_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}', options)
|
||||
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
||||
command.response_class = Google::Apis::ContainerV1::Operation
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['zone'] = zone unless zone.nil?
|
||||
command.params['operationId'] = operation_id unless operation_id.nil?
|
||||
command.params['clusterId'] = cluster_id unless cluster_id.nil?
|
||||
command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Cancels the specified operation.
|
||||
# Lists the node pools for a cluster.
|
||||
# @param [String] project_id
|
||||
# The Google Developers Console [project ID or project number](https://support.
|
||||
# google.com/cloud/answer/6158840).
|
||||
# The Google Developers Console [project ID or project
|
||||
# number](https://developers.google.com/console/help/new/#projectnumber).
|
||||
# @param [String] zone
|
||||
# The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
|
||||
# which the operation resides.
|
||||
# @param [String] operation_id
|
||||
# The server-assigned `name` of the operation.
|
||||
# @param [Google::Apis::ContainerV1::CancelOperationRequest] cancel_operation_request_object
|
||||
# The name of the Google Compute Engine
|
||||
# [zone](/compute/docs/zones#available) in which the cluster
|
||||
# resides.
|
||||
# @param [String] cluster_id
|
||||
# The name of the cluster.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -626,23 +769,109 @@ module Google
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ContainerV1::Empty] parsed result object
|
||||
# @yieldparam result [Google::Apis::ContainerV1::ListNodePoolsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContainerV1::Empty]
|
||||
# @return [Google::Apis::ContainerV1::ListNodePoolsResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def cancel_operation(project_id, zone, operation_id, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/operations/{operationId}:cancel', options)
|
||||
command.request_representation = Google::Apis::ContainerV1::CancelOperationRequest::Representation
|
||||
command.request_object = cancel_operation_request_object
|
||||
command.response_representation = Google::Apis::ContainerV1::Empty::Representation
|
||||
command.response_class = Google::Apis::ContainerV1::Empty
|
||||
def list_project_zone_cluster_node_pools(project_id, zone, cluster_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools', options)
|
||||
command.response_representation = Google::Apis::ContainerV1::ListNodePoolsResponse::Representation
|
||||
command.response_class = Google::Apis::ContainerV1::ListNodePoolsResponse
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['zone'] = zone unless zone.nil?
|
||||
command.params['operationId'] = operation_id unless operation_id.nil?
|
||||
command.params['clusterId'] = cluster_id unless cluster_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Roll back the previously Aborted or Failed NodePool upgrade.
|
||||
# This will be an no-op if the last upgrade successfully completed.
|
||||
# @param [String] project_id
|
||||
# The Google Developers Console [project ID or project
|
||||
# number](https://support.google.com/cloud/answer/6158840).
|
||||
# @param [String] zone
|
||||
# The name of the Google Compute Engine
|
||||
# [zone](/compute/docs/zones#available) in which the cluster
|
||||
# resides.
|
||||
# @param [String] cluster_id
|
||||
# The name of the cluster to rollback.
|
||||
# @param [String] node_pool_id
|
||||
# The name of the node pool to rollback.
|
||||
# @param [Google::Apis::ContainerV1::RollbackNodePoolUpgradeRequest] rollback_node_pool_upgrade_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContainerV1::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def rollback_node_pool_upgrade(project_id, zone, cluster_id, node_pool_id, rollback_node_pool_upgrade_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback', options)
|
||||
command.request_representation = Google::Apis::ContainerV1::RollbackNodePoolUpgradeRequest::Representation
|
||||
command.request_object = rollback_node_pool_upgrade_request_object
|
||||
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
||||
command.response_class = Google::Apis::ContainerV1::Operation
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['zone'] = zone unless zone.nil?
|
||||
command.params['clusterId'] = cluster_id unless cluster_id.nil?
|
||||
command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Creates a node pool for a cluster.
|
||||
# @param [String] project_id
|
||||
# The Google Developers Console [project ID or project
|
||||
# number](https://developers.google.com/console/help/new/#projectnumber).
|
||||
# @param [String] zone
|
||||
# The name of the Google Compute Engine
|
||||
# [zone](/compute/docs/zones#available) in which the cluster
|
||||
# resides.
|
||||
# @param [String] cluster_id
|
||||
# The name of the cluster.
|
||||
# @param [Google::Apis::ContainerV1::CreateNodePoolRequest] create_node_pool_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContainerV1::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def create_node_pool(project_id, zone, cluster_id, create_node_pool_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools', options)
|
||||
command.request_representation = Google::Apis::ContainerV1::CreateNodePoolRequest::Representation
|
||||
command.request_object = create_node_pool_request_object
|
||||
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
||||
command.response_class = Google::Apis::ContainerV1::Operation
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['zone'] = zone unless zone.nil?
|
||||
command.params['clusterId'] = cluster_id unless cluster_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
|
||||
@@ -26,7 +26,7 @@ module Google
|
||||
# @see https://developers.google.com/shopping-content
|
||||
module ContentV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20170324'
|
||||
REVISION = '20170406'
|
||||
|
||||
# Manage your product listings and accounts for Google Shopping
|
||||
AUTH_CONTENT = 'https://www.googleapis.com/auth/content'
|
||||
|
||||
@@ -1281,8 +1281,8 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Cancels all line items in an order. This method can only be called for non-
|
||||
# multi-client accounts.
|
||||
# Cancels all line items in an order, making a full refund. This method can only
|
||||
# be called for non-multi-client accounts.
|
||||
# @param [Fixnum] merchant_id
|
||||
# The ID of the managing account.
|
||||
# @param [String] order_id
|
||||
@@ -1323,8 +1323,8 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Cancels a line item. This method can only be called for non-multi-client
|
||||
# accounts.
|
||||
# Cancels a line item, making a full refund. This method can only be called for
|
||||
# non-multi-client accounts.
|
||||
# @param [Fixnum] merchant_id
|
||||
# The ID of the managing account.
|
||||
# @param [String] order_id
|
||||
|
||||
@@ -25,7 +25,7 @@ module Google
|
||||
# @see https://cloud.google.com/dataproc/
|
||||
module DataprocV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20170328'
|
||||
REVISION = '20170502'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -40,13 +40,13 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class InstanceGroupConfig
|
||||
class JobScheduling
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class JobScheduling
|
||||
class InstanceGroupConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
@@ -106,13 +106,13 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class PigJob
|
||||
class ClusterStatus
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ClusterStatus
|
||||
class PigJob
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
@@ -154,7 +154,7 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class HadoopJob
|
||||
class YarnApplication
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
@@ -166,7 +166,7 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class YarnApplication
|
||||
class HadoopJob
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
@@ -281,26 +281,9 @@ module Google
|
||||
class Status
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :message, as: 'message'
|
||||
collection :details, as: 'details'
|
||||
property :code, as: 'code'
|
||||
property :message, as: 'message'
|
||||
end
|
||||
end
|
||||
|
||||
class InstanceGroupConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :instance_names, as: 'instanceNames'
|
||||
collection :accelerators, as: 'accelerators', class: Google::Apis::DataprocV1::AcceleratorConfig, decorator: Google::Apis::DataprocV1::AcceleratorConfig::Representation
|
||||
|
||||
property :num_instances, as: 'numInstances'
|
||||
property :disk_config, as: 'diskConfig', class: Google::Apis::DataprocV1::DiskConfig, decorator: Google::Apis::DataprocV1::DiskConfig::Representation
|
||||
|
||||
property :is_preemptible, as: 'isPreemptible'
|
||||
property :machine_type_uri, as: 'machineTypeUri'
|
||||
property :image_uri, as: 'imageUri'
|
||||
property :managed_group_config, as: 'managedGroupConfig', class: Google::Apis::DataprocV1::ManagedGroupConfig, decorator: Google::Apis::DataprocV1::ManagedGroupConfig::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
@@ -311,6 +294,23 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class InstanceGroupConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :disk_config, as: 'diskConfig', class: Google::Apis::DataprocV1::DiskConfig, decorator: Google::Apis::DataprocV1::DiskConfig::Representation
|
||||
|
||||
property :image_uri, as: 'imageUri'
|
||||
property :machine_type_uri, as: 'machineTypeUri'
|
||||
property :managed_group_config, as: 'managedGroupConfig', class: Google::Apis::DataprocV1::ManagedGroupConfig, decorator: Google::Apis::DataprocV1::ManagedGroupConfig::Representation
|
||||
|
||||
property :is_preemptible, as: 'isPreemptible'
|
||||
collection :instance_names, as: 'instanceNames'
|
||||
collection :accelerators, as: 'accelerators', class: Google::Apis::DataprocV1::AcceleratorConfig, decorator: Google::Apis::DataprocV1::AcceleratorConfig::Representation
|
||||
|
||||
property :num_instances, as: 'numInstances'
|
||||
end
|
||||
end
|
||||
|
||||
class ListJobsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -337,32 +337,32 @@ module Google
|
||||
class SparkSqlJob
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :query_list, as: 'queryList', class: Google::Apis::DataprocV1::QueryList, decorator: Google::Apis::DataprocV1::QueryList::Representation
|
||||
|
||||
property :query_file_uri, as: 'queryFileUri'
|
||||
hash :script_variables, as: 'scriptVariables'
|
||||
collection :jar_file_uris, as: 'jarFileUris'
|
||||
property :logging_config, as: 'loggingConfig', class: Google::Apis::DataprocV1::LoggingConfig, decorator: Google::Apis::DataprocV1::LoggingConfig::Representation
|
||||
|
||||
hash :properties, as: 'properties'
|
||||
property :query_list, as: 'queryList', class: Google::Apis::DataprocV1::QueryList, decorator: Google::Apis::DataprocV1::QueryList::Representation
|
||||
|
||||
property :query_file_uri, as: 'queryFileUri'
|
||||
end
|
||||
end
|
||||
|
||||
class Cluster
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
hash :labels, as: 'labels'
|
||||
property :metrics, as: 'metrics', class: Google::Apis::DataprocV1::ClusterMetrics, decorator: Google::Apis::DataprocV1::ClusterMetrics::Representation
|
||||
|
||||
property :status, as: 'status', class: Google::Apis::DataprocV1::ClusterStatus, decorator: Google::Apis::DataprocV1::ClusterStatus::Representation
|
||||
|
||||
collection :status_history, as: 'statusHistory', class: Google::Apis::DataprocV1::ClusterStatus, decorator: Google::Apis::DataprocV1::ClusterStatus::Representation
|
||||
|
||||
property :config, as: 'config', class: Google::Apis::DataprocV1::ClusterConfig, decorator: Google::Apis::DataprocV1::ClusterConfig::Representation
|
||||
|
||||
property :cluster_name, as: 'clusterName'
|
||||
property :cluster_uuid, as: 'clusterUuid'
|
||||
property :cluster_name, as: 'clusterName'
|
||||
property :project_id, as: 'projectId'
|
||||
hash :labels, as: 'labels'
|
||||
property :status, as: 'status', class: Google::Apis::DataprocV1::ClusterStatus, decorator: Google::Apis::DataprocV1::ClusterStatus::Representation
|
||||
|
||||
property :metrics, as: 'metrics', class: Google::Apis::DataprocV1::ClusterMetrics, decorator: Google::Apis::DataprocV1::ClusterMetrics::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
@@ -388,8 +388,8 @@ module Google
|
||||
property :description, as: 'description'
|
||||
property :status, as: 'status', class: Google::Apis::DataprocV1::OperationStatus, decorator: Google::Apis::DataprocV1::OperationStatus::Representation
|
||||
|
||||
property :details, as: 'details'
|
||||
property :state, as: 'state'
|
||||
property :details, as: 'details'
|
||||
property :cluster_uuid, as: 'clusterUuid'
|
||||
property :cluster_name, as: 'clusterName'
|
||||
property :inner_state, as: 'innerState'
|
||||
@@ -407,23 +407,8 @@ module Google
|
||||
class SoftwareConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
hash :properties, as: 'properties'
|
||||
property :image_version, as: 'imageVersion'
|
||||
hash :properties, as: 'properties'
|
||||
end
|
||||
end
|
||||
|
||||
class PigJob
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :jar_file_uris, as: 'jarFileUris'
|
||||
hash :script_variables, as: 'scriptVariables'
|
||||
property :logging_config, as: 'loggingConfig', class: Google::Apis::DataprocV1::LoggingConfig, decorator: Google::Apis::DataprocV1::LoggingConfig::Representation
|
||||
|
||||
hash :properties, as: 'properties'
|
||||
property :continue_on_failure, as: 'continueOnFailure'
|
||||
property :query_list, as: 'queryList', class: Google::Apis::DataprocV1::QueryList, decorator: Google::Apis::DataprocV1::QueryList::Representation
|
||||
|
||||
property :query_file_uri, as: 'queryFileUri'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -437,6 +422,21 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class PigJob
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
hash :properties, as: 'properties'
|
||||
property :continue_on_failure, as: 'continueOnFailure'
|
||||
property :query_file_uri, as: 'queryFileUri'
|
||||
property :query_list, as: 'queryList', class: Google::Apis::DataprocV1::QueryList, decorator: Google::Apis::DataprocV1::QueryList::Representation
|
||||
|
||||
collection :jar_file_uris, as: 'jarFileUris'
|
||||
hash :script_variables, as: 'scriptVariables'
|
||||
property :logging_config, as: 'loggingConfig', class: Google::Apis::DataprocV1::LoggingConfig, decorator: Google::Apis::DataprocV1::LoggingConfig::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class ListClustersResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -449,6 +449,7 @@ module Google
|
||||
class SparkJob
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :main_jar_file_uri, as: 'mainJarFileUri'
|
||||
collection :jar_file_uris, as: 'jarFileUris'
|
||||
property :logging_config, as: 'loggingConfig', class: Google::Apis::DataprocV1::LoggingConfig, decorator: Google::Apis::DataprocV1::LoggingConfig::Representation
|
||||
|
||||
@@ -457,14 +458,12 @@ module Google
|
||||
collection :file_uris, as: 'fileUris'
|
||||
property :main_class, as: 'mainClass'
|
||||
collection :archive_uris, as: 'archiveUris'
|
||||
property :main_jar_file_uri, as: 'mainJarFileUri'
|
||||
end
|
||||
end
|
||||
|
||||
class Job
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :driver_control_files_uri, as: 'driverControlFilesUri'
|
||||
property :scheduling, as: 'scheduling', class: Google::Apis::DataprocV1::JobScheduling, decorator: Google::Apis::DataprocV1::JobScheduling::Representation
|
||||
|
||||
property :pig_job, as: 'pigJob', class: Google::Apis::DataprocV1::PigJob, decorator: Google::Apis::DataprocV1::PigJob::Representation
|
||||
@@ -473,12 +472,12 @@ module Google
|
||||
|
||||
hash :labels, as: 'labels'
|
||||
property :driver_output_resource_uri, as: 'driverOutputResourceUri'
|
||||
property :spark_job, as: 'sparkJob', class: Google::Apis::DataprocV1::SparkJob, decorator: Google::Apis::DataprocV1::SparkJob::Representation
|
||||
|
||||
collection :status_history, as: 'statusHistory', class: Google::Apis::DataprocV1::JobStatus, decorator: Google::Apis::DataprocV1::JobStatus::Representation
|
||||
|
||||
property :spark_sql_job, as: 'sparkSqlJob', class: Google::Apis::DataprocV1::SparkSqlJob, decorator: Google::Apis::DataprocV1::SparkSqlJob::Representation
|
||||
|
||||
property :spark_job, as: 'sparkJob', class: Google::Apis::DataprocV1::SparkJob, decorator: Google::Apis::DataprocV1::SparkJob::Representation
|
||||
|
||||
collection :yarn_applications, as: 'yarnApplications', class: Google::Apis::DataprocV1::YarnApplication, decorator: Google::Apis::DataprocV1::YarnApplication::Representation
|
||||
|
||||
property :pyspark_job, as: 'pysparkJob', class: Google::Apis::DataprocV1::PySparkJob, decorator: Google::Apis::DataprocV1::PySparkJob::Representation
|
||||
@@ -487,20 +486,21 @@ module Google
|
||||
|
||||
property :hadoop_job, as: 'hadoopJob', class: Google::Apis::DataprocV1::HadoopJob, decorator: Google::Apis::DataprocV1::HadoopJob::Representation
|
||||
|
||||
property :status, as: 'status', class: Google::Apis::DataprocV1::JobStatus, decorator: Google::Apis::DataprocV1::JobStatus::Representation
|
||||
|
||||
property :placement, as: 'placement', class: Google::Apis::DataprocV1::JobPlacement, decorator: Google::Apis::DataprocV1::JobPlacement::Representation
|
||||
|
||||
property :status, as: 'status', class: Google::Apis::DataprocV1::JobStatus, decorator: Google::Apis::DataprocV1::JobStatus::Representation
|
||||
|
||||
property :driver_control_files_uri, as: 'driverControlFilesUri'
|
||||
end
|
||||
end
|
||||
|
||||
class JobStatus
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :state_start_time, as: 'stateStartTime'
|
||||
property :substate, as: 'substate'
|
||||
property :state, as: 'state'
|
||||
property :details, as: 'details'
|
||||
property :state_start_time, as: 'stateStartTime'
|
||||
property :substate, as: 'substate'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -515,32 +515,10 @@ module Google
|
||||
class ClusterOperationStatus
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :state_start_time, as: 'stateStartTime'
|
||||
property :state, as: 'state'
|
||||
property :details, as: 'details'
|
||||
property :inner_state, as: 'innerState'
|
||||
property :state_start_time, as: 'stateStartTime'
|
||||
end
|
||||
end
|
||||
|
||||
class HadoopJob
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
hash :properties, as: 'properties'
|
||||
collection :args, as: 'args'
|
||||
collection :file_uris, as: 'fileUris'
|
||||
property :main_class, as: 'mainClass'
|
||||
collection :archive_uris, as: 'archiveUris'
|
||||
property :main_jar_file_uri, as: 'mainJarFileUri'
|
||||
collection :jar_file_uris, as: 'jarFileUris'
|
||||
property :logging_config, as: 'loggingConfig', class: Google::Apis::DataprocV1::LoggingConfig, decorator: Google::Apis::DataprocV1::LoggingConfig::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class QueryList
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :queries, as: 'queries'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -554,6 +532,28 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class QueryList
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :queries, as: 'queries'
|
||||
end
|
||||
end
|
||||
|
||||
class HadoopJob
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :main_class, as: 'mainClass'
|
||||
collection :archive_uris, as: 'archiveUris'
|
||||
property :main_jar_file_uri, as: 'mainJarFileUri'
|
||||
collection :jar_file_uris, as: 'jarFileUris'
|
||||
property :logging_config, as: 'loggingConfig', class: Google::Apis::DataprocV1::LoggingConfig, decorator: Google::Apis::DataprocV1::LoggingConfig::Representation
|
||||
|
||||
hash :properties, as: 'properties'
|
||||
collection :args, as: 'args'
|
||||
collection :file_uris, as: 'fileUris'
|
||||
end
|
||||
end
|
||||
|
||||
class DiagnoseClusterRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -563,14 +563,16 @@ module Google
|
||||
class DiskConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :boot_disk_size_gb, as: 'bootDiskSizeGb'
|
||||
property :num_local_ssds, as: 'numLocalSsds'
|
||||
property :boot_disk_size_gb, as: 'bootDiskSizeGb'
|
||||
end
|
||||
end
|
||||
|
||||
class ClusterOperationMetadata
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :operation_type, as: 'operationType'
|
||||
property :description, as: 'description'
|
||||
collection :warnings, as: 'warnings'
|
||||
hash :labels, as: 'labels'
|
||||
property :status, as: 'status', class: Google::Apis::DataprocV1::ClusterOperationStatus, decorator: Google::Apis::DataprocV1::ClusterOperationStatus::Representation
|
||||
@@ -579,8 +581,6 @@ module Google
|
||||
|
||||
property :cluster_name, as: 'clusterName'
|
||||
property :cluster_uuid, as: 'clusterUuid'
|
||||
property :operation_type, as: 'operationType'
|
||||
property :description, as: 'description'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -593,13 +593,13 @@ module Google
|
||||
class HiveJob
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
hash :script_variables, as: 'scriptVariables'
|
||||
collection :jar_file_uris, as: 'jarFileUris'
|
||||
hash :properties, as: 'properties'
|
||||
property :continue_on_failure, as: 'continueOnFailure'
|
||||
property :query_file_uri, as: 'queryFileUri'
|
||||
property :query_list, as: 'queryList', class: Google::Apis::DataprocV1::QueryList, decorator: Google::Apis::DataprocV1::QueryList::Representation
|
||||
|
||||
collection :jar_file_uris, as: 'jarFileUris'
|
||||
hash :script_variables, as: 'scriptVariables'
|
||||
hash :properties, as: 'properties'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -613,6 +613,9 @@ module Google
|
||||
class ClusterConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :initialization_actions, as: 'initializationActions', class: Google::Apis::DataprocV1::NodeInitializationAction, decorator: Google::Apis::DataprocV1::NodeInitializationAction::Representation
|
||||
|
||||
property :config_bucket, as: 'configBucket'
|
||||
property :worker_config, as: 'workerConfig', class: Google::Apis::DataprocV1::InstanceGroupConfig, decorator: Google::Apis::DataprocV1::InstanceGroupConfig::Representation
|
||||
|
||||
property :gce_cluster_config, as: 'gceClusterConfig', class: Google::Apis::DataprocV1::GceClusterConfig, decorator: Google::Apis::DataprocV1::GceClusterConfig::Representation
|
||||
@@ -623,32 +626,29 @@ module Google
|
||||
|
||||
property :secondary_worker_config, as: 'secondaryWorkerConfig', class: Google::Apis::DataprocV1::InstanceGroupConfig, decorator: Google::Apis::DataprocV1::InstanceGroupConfig::Representation
|
||||
|
||||
collection :initialization_actions, as: 'initializationActions', class: Google::Apis::DataprocV1::NodeInitializationAction, decorator: Google::Apis::DataprocV1::NodeInitializationAction::Representation
|
||||
|
||||
property :config_bucket, as: 'configBucket'
|
||||
end
|
||||
end
|
||||
|
||||
class PySparkJob
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :jar_file_uris, as: 'jarFileUris'
|
||||
property :logging_config, as: 'loggingConfig', class: Google::Apis::DataprocV1::LoggingConfig, decorator: Google::Apis::DataprocV1::LoggingConfig::Representation
|
||||
|
||||
hash :properties, as: 'properties'
|
||||
collection :args, as: 'args'
|
||||
collection :file_uris, as: 'fileUris'
|
||||
collection :python_file_uris, as: 'pythonFileUris'
|
||||
property :main_python_file_uri, as: 'mainPythonFileUri'
|
||||
collection :archive_uris, as: 'archiveUris'
|
||||
collection :jar_file_uris, as: 'jarFileUris'
|
||||
property :logging_config, as: 'loggingConfig', class: Google::Apis::DataprocV1::LoggingConfig, decorator: Google::Apis::DataprocV1::LoggingConfig::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class GceClusterConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :internal_ip_only, as: 'internalIpOnly'
|
||||
hash :metadata, as: 'metadata'
|
||||
property :internal_ip_only, as: 'internalIpOnly'
|
||||
collection :service_account_scopes, as: 'serviceAccountScopes'
|
||||
collection :tags, as: 'tags'
|
||||
property :service_account, as: 'serviceAccount'
|
||||
@@ -691,22 +691,22 @@ module Google
|
||||
class Operation
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :done, as: 'done'
|
||||
hash :response, as: 'response'
|
||||
property :name, as: 'name'
|
||||
property :error, as: 'error', class: Google::Apis::DataprocV1::Status, decorator: Google::Apis::DataprocV1::Status::Representation
|
||||
|
||||
hash :metadata, as: 'metadata'
|
||||
property :done, as: 'done'
|
||||
end
|
||||
end
|
||||
|
||||
class OperationStatus
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :state_start_time, as: 'stateStartTime'
|
||||
property :state, as: 'state'
|
||||
property :details, as: 'details'
|
||||
property :inner_state, as: 'innerState'
|
||||
property :state_start_time, as: 'stateStartTime'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -47,14 +47,12 @@ module Google
|
||||
@batch_path = 'batch'
|
||||
end
|
||||
|
||||
# Deletes a cluster in a project.
|
||||
# Submits a job to a cluster.
|
||||
# @param [String] project_id
|
||||
# Required The ID of the Google Cloud Platform project that the cluster belongs
|
||||
# to.
|
||||
# Required. The ID of the Google Cloud Platform project that the job belongs to.
|
||||
# @param [String] region
|
||||
# Required The Cloud Dataproc region in which to handle the request.
|
||||
# @param [String] cluster_name
|
||||
# Required The cluster name.
|
||||
# Required. The Cloud Dataproc region in which to handle the request.
|
||||
# @param [Google::Apis::DataprocV1::SubmitJobRequest] submit_job_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -64,21 +62,238 @@ module Google
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::DataprocV1::Operation] parsed result object
|
||||
# @yieldparam result [Google::Apis::DataprocV1::Job] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DataprocV1::Operation]
|
||||
# @return [Google::Apis::DataprocV1::Job]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def delete_cluster(project_id, region, cluster_name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}', options)
|
||||
command.response_representation = Google::Apis::DataprocV1::Operation::Representation
|
||||
command.response_class = Google::Apis::DataprocV1::Operation
|
||||
def submit_job(project_id, region, submit_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/jobs:submit', options)
|
||||
command.request_representation = Google::Apis::DataprocV1::SubmitJobRequest::Representation
|
||||
command.request_object = submit_job_request_object
|
||||
command.response_representation = Google::Apis::DataprocV1::Job::Representation
|
||||
command.response_class = Google::Apis::DataprocV1::Job
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['region'] = region unless region.nil?
|
||||
command.params['clusterName'] = cluster_name unless cluster_name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Deletes the job from the project. If the job is active, the delete fails, and
|
||||
# the response returns FAILED_PRECONDITION.
|
||||
# @param [String] project_id
|
||||
# Required. The ID of the Google Cloud Platform project that the job belongs to.
|
||||
# @param [String] region
|
||||
# Required. The Cloud Dataproc region in which to handle the request.
|
||||
# @param [String] job_id
|
||||
# Required. The job ID.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::DataprocV1::Empty] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DataprocV1::Empty]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def delete_job(project_id, region, job_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}', options)
|
||||
command.response_representation = Google::Apis::DataprocV1::Empty::Representation
|
||||
command.response_class = Google::Apis::DataprocV1::Empty
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['region'] = region unless region.nil?
|
||||
command.params['jobId'] = job_id unless job_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists regions/`region`/jobs in a project.
|
||||
# @param [String] project_id
|
||||
# Required. The ID of the Google Cloud Platform project that the job belongs to.
|
||||
# @param [String] region
|
||||
# Required. The Cloud Dataproc region in which to handle the request.
|
||||
# @param [String] cluster_name
|
||||
# Optional. If set, the returned jobs list includes only jobs that were
|
||||
# submitted to the named cluster.
|
||||
# @param [String] filter
|
||||
# Optional. A filter constraining the jobs to list. Filters are case-sensitive
|
||||
# and have the following syntax:field = value AND field = value ...where field
|
||||
# is status.state or labels.[KEY], and [KEY] is a label key. value can be * to
|
||||
# match all values. status.state can be either ACTIVE or INACTIVE. Only the
|
||||
# logical AND operator is supported; space-separated items are treated as having
|
||||
# an implicit AND operator.Example filter:status.state = ACTIVE AND labels.env =
|
||||
# staging AND labels.starred = *
|
||||
# @param [String] job_state_matcher
|
||||
# Optional. Specifies enumerated categories of jobs to list (default = match ALL
|
||||
# jobs).
|
||||
# @param [String] page_token
|
||||
# Optional. The page token, returned by a previous call, to request the next
|
||||
# page of results.
|
||||
# @param [Fixnum] page_size
|
||||
# Optional. The number of results to return in each response.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::DataprocV1::ListJobsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DataprocV1::ListJobsResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_jobs(project_id, region, cluster_name: nil, filter: nil, job_state_matcher: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/jobs', options)
|
||||
command.response_representation = Google::Apis::DataprocV1::ListJobsResponse::Representation
|
||||
command.response_class = Google::Apis::DataprocV1::ListJobsResponse
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['region'] = region unless region.nil?
|
||||
command.query['clusterName'] = cluster_name unless cluster_name.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['jobStateMatcher'] = job_state_matcher unless job_state_matcher.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Starts a job cancellation request. To access the job resource after
|
||||
# cancellation, call regions/`region`/jobs.list or regions/`region`/jobs.get.
|
||||
# @param [String] project_id
|
||||
# Required. The ID of the Google Cloud Platform project that the job belongs to.
|
||||
# @param [String] region
|
||||
# Required. The Cloud Dataproc region in which to handle the request.
|
||||
# @param [String] job_id
|
||||
# Required. The job ID.
|
||||
# @param [Google::Apis::DataprocV1::CancelJobRequest] cancel_job_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::DataprocV1::Job] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DataprocV1::Job]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def cancel_job(project_id, region, job_id, cancel_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}:cancel', options)
|
||||
command.request_representation = Google::Apis::DataprocV1::CancelJobRequest::Representation
|
||||
command.request_object = cancel_job_request_object
|
||||
command.response_representation = Google::Apis::DataprocV1::Job::Representation
|
||||
command.response_class = Google::Apis::DataprocV1::Job
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['region'] = region unless region.nil?
|
||||
command.params['jobId'] = job_id unless job_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Updates a job in a project.
|
||||
# @param [String] project_id
|
||||
# Required. The ID of the Google Cloud Platform project that the job belongs to.
|
||||
# @param [String] region
|
||||
# Required. The Cloud Dataproc region in which to handle the request.
|
||||
# @param [String] job_id
|
||||
# Required. The job ID.
|
||||
# @param [Google::Apis::DataprocV1::Job] job_object
|
||||
# @param [String] update_mask
|
||||
# Required. Specifies the path, relative to <code>Job</code>, of the field to
|
||||
# update. For example, to update the labels of a Job the <code>update_mask</code>
|
||||
# parameter would be specified as <code>labels</code>, and the PATCH request
|
||||
# body would specify the new value. <strong>Note:</strong> Currently, <code>
|
||||
# labels</code> is the only field that can be updated.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::DataprocV1::Job] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DataprocV1::Job]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def patch_project_region_job(project_id, region, job_id, job_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:patch, 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}', options)
|
||||
command.request_representation = Google::Apis::DataprocV1::Job::Representation
|
||||
command.request_object = job_object
|
||||
command.response_representation = Google::Apis::DataprocV1::Job::Representation
|
||||
command.response_class = Google::Apis::DataprocV1::Job
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['region'] = region unless region.nil?
|
||||
command.params['jobId'] = job_id unless job_id.nil?
|
||||
command.query['updateMask'] = update_mask unless update_mask.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Gets the resource representation for a job in a project.
|
||||
# @param [String] project_id
|
||||
# Required. The ID of the Google Cloud Platform project that the job belongs to.
|
||||
# @param [String] region
|
||||
# Required. The Cloud Dataproc region in which to handle the request.
|
||||
# @param [String] job_id
|
||||
# Required. The job ID.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::DataprocV1::Job] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DataprocV1::Job]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_job(project_id, region, job_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}', options)
|
||||
command.response_representation = Google::Apis::DataprocV1::Job::Representation
|
||||
command.response_class = Google::Apis::DataprocV1::Job
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['region'] = region unless region.nil?
|
||||
command.params['jobId'] = job_id unless job_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
@@ -87,12 +302,12 @@ module Google
|
||||
# Gets cluster diagnostic information. After the operation completes, the
|
||||
# Operation.response field contains DiagnoseClusterOutputLocation.
|
||||
# @param [String] project_id
|
||||
# Required The ID of the Google Cloud Platform project that the cluster belongs
|
||||
# Required. The ID of the Google Cloud Platform project that the cluster belongs
|
||||
# to.
|
||||
# @param [String] region
|
||||
# Required The Cloud Dataproc region in which to handle the request.
|
||||
# Required. The Cloud Dataproc region in which to handle the request.
|
||||
# @param [String] cluster_name
|
||||
# Required The cluster name.
|
||||
# Required. The cluster name.
|
||||
# @param [Google::Apis::DataprocV1::DiagnoseClusterRequest] diagnose_cluster_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -125,14 +340,51 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists all regions/`region`/clusters in a project.
|
||||
# Deletes a cluster in a project.
|
||||
# @param [String] project_id
|
||||
# Required The ID of the Google Cloud Platform project that the cluster belongs
|
||||
# Required. The ID of the Google Cloud Platform project that the cluster belongs
|
||||
# to.
|
||||
# @param [String] region
|
||||
# Required The Cloud Dataproc region in which to handle the request.
|
||||
# Required. The Cloud Dataproc region in which to handle the request.
|
||||
# @param [String] cluster_name
|
||||
# Required. The cluster name.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::DataprocV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DataprocV1::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def delete_cluster(project_id, region, cluster_name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}', options)
|
||||
command.response_representation = Google::Apis::DataprocV1::Operation::Representation
|
||||
command.response_class = Google::Apis::DataprocV1::Operation
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['region'] = region unless region.nil?
|
||||
command.params['clusterName'] = cluster_name unless cluster_name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists all regions/`region`/clusters in a project.
|
||||
# @param [String] project_id
|
||||
# Required. The ID of the Google Cloud Platform project that the cluster belongs
|
||||
# to.
|
||||
# @param [String] region
|
||||
# Required. The Cloud Dataproc region in which to handle the request.
|
||||
# @param [String] filter
|
||||
# Optional A filter constraining the clusters to list. Filters are case-
|
||||
# Optional. A filter constraining the clusters to list. Filters are case-
|
||||
# sensitive and have the following syntax:field = value AND field = value ...
|
||||
# where field is one of status.state, clusterName, or labels.[KEY], and [KEY] is
|
||||
# a label key. value can be * to match all values. status.state can be one of
|
||||
@@ -144,9 +396,9 @@ module Google
|
||||
# status.state = ACTIVE AND clusterName = mycluster AND labels.env = staging AND
|
||||
# labels.starred = *
|
||||
# @param [String] page_token
|
||||
# Optional The standard List page token.
|
||||
# Optional. The standard List page token.
|
||||
# @param [Fixnum] page_size
|
||||
# Optional The standard List page size.
|
||||
# Optional. The standard List page size.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -180,10 +432,10 @@ module Google
|
||||
|
||||
# Creates a cluster in a project.
|
||||
# @param [String] project_id
|
||||
# Required The ID of the Google Cloud Platform project that the cluster belongs
|
||||
# Required. The ID of the Google Cloud Platform project that the cluster belongs
|
||||
# to.
|
||||
# @param [String] region
|
||||
# Required The Cloud Dataproc region in which to handle the request.
|
||||
# Required. The Cloud Dataproc region in which to handle the request.
|
||||
# @param [Google::Apis::DataprocV1::Cluster] cluster_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -215,20 +467,56 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Gets the resource representation for a cluster in a project.
|
||||
# @param [String] project_id
|
||||
# Required. The ID of the Google Cloud Platform project that the cluster belongs
|
||||
# to.
|
||||
# @param [String] region
|
||||
# Required. The Cloud Dataproc region in which to handle the request.
|
||||
# @param [String] cluster_name
|
||||
# Required. The cluster name.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::DataprocV1::Cluster] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DataprocV1::Cluster]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server 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_cluster(project_id, region, cluster_name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}', options)
|
||||
command.response_representation = Google::Apis::DataprocV1::Cluster::Representation
|
||||
command.response_class = Google::Apis::DataprocV1::Cluster
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['region'] = region unless region.nil?
|
||||
command.params['clusterName'] = cluster_name unless cluster_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
|
||||
|
||||
# Updates a cluster in a project.
|
||||
# @param [String] project_id
|
||||
# Required The ID of the Google Cloud Platform project the cluster belongs to.
|
||||
# Required. The ID of the Google Cloud Platform project the cluster belongs to.
|
||||
# @param [String] region
|
||||
# Required The Cloud Dataproc region in which to handle the request.
|
||||
# Required. The Cloud Dataproc region in which to handle the request.
|
||||
# @param [String] cluster_name
|
||||
# Required The cluster name.
|
||||
# Required. The cluster name.
|
||||
# @param [Google::Apis::DataprocV1::Cluster] cluster_object
|
||||
# @param [String] update_mask
|
||||
# Required Specifies the path, relative to <code>Cluster</code>, of the field to
|
||||
# update. For example, to change the number of workers in a cluster to 5, the <
|
||||
# code>update_mask</code> parameter would be specified as <code>config.
|
||||
# worker_config.num_instances</code>, and the PATCH request body would specify
|
||||
# the new value, as follows:
|
||||
# Required. Specifies the path, relative to Cluster, of the field to update. For
|
||||
# example, to change the number of workers in a cluster to 5, the update_mask
|
||||
# parameter would be specified as config.worker_config.num_instances, and the
|
||||
# PATCH request body would specify the new value, as follows:
|
||||
# `
|
||||
# "config":`
|
||||
# "workerConfig":`
|
||||
@@ -236,10 +524,9 @@ module Google
|
||||
# `
|
||||
# `
|
||||
# `
|
||||
# Similarly, to change the number of preemptible workers in a cluster to 5, the <
|
||||
# code>update_mask</code> parameter would be <code>config.
|
||||
# secondary_worker_config.num_instances</code>, and the PATCH request body would
|
||||
# be set as follows:
|
||||
# Similarly, to change the number of preemptible workers in a cluster to 5, the
|
||||
# update_mask parameter would be config.secondary_worker_config.num_instances,
|
||||
# and the PATCH request body would be set as follows:
|
||||
# `
|
||||
# "config":`
|
||||
# "secondaryWorkerConfig":`
|
||||
@@ -247,9 +534,13 @@ module Google
|
||||
# `
|
||||
# `
|
||||
# `
|
||||
# <strong>Note:</strong> Currently, <code>config.worker_config.num_instances</
|
||||
# code> and <code>config.secondary_worker_config.num_instances</code> are the
|
||||
# only fields that can be updated.
|
||||
# <strong>Note:</strong> Currently, only the following fields can be updated:<
|
||||
# table> <tbody> <tr> <td><strong>Mask</strong></td> <td><strong>Purpose</
|
||||
# strong></td> </tr> <tr> <td><strong><em>labels</em></strong></td> <td>
|
||||
# Update labels</td> </tr> <tr> <td><strong><em>config.worker_config.
|
||||
# num_instances</em></strong></td> <td>Resize primary worker group</td> </tr>
|
||||
# <tr> <td><strong><em>config.secondary_worker_config.num_instances</em></
|
||||
# strong></td> <td>Resize secondary worker group</td> </tr> </tbody> </table>
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -282,43 +573,6 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Gets the resource representation for a cluster in a project.
|
||||
# @param [String] project_id
|
||||
# Required The ID of the Google Cloud Platform project that the cluster belongs
|
||||
# to.
|
||||
# @param [String] region
|
||||
# Required The Cloud Dataproc region in which to handle the request.
|
||||
# @param [String] cluster_name
|
||||
# Required The cluster name.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::DataprocV1::Cluster] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DataprocV1::Cluster]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server 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_cluster(project_id, region, cluster_name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}', options)
|
||||
command.response_representation = Google::Apis::DataprocV1::Cluster::Representation
|
||||
command.response_class = Google::Apis::DataprocV1::Cluster
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['region'] = region unless region.nil?
|
||||
command.params['clusterName'] = cluster_name unless cluster_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
|
||||
|
||||
# Starts asynchronous cancellation on a long-running operation. The server makes
|
||||
# a best effort to cancel the operation, but success is not guaranteed. If the
|
||||
# server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.
|
||||
@@ -395,12 +649,12 @@ module Google
|
||||
# name schemes, such as users/*/operations.
|
||||
# @param [String] name
|
||||
# The name of the operation collection.
|
||||
# @param [String] filter
|
||||
# The standard list filter.
|
||||
# @param [String] page_token
|
||||
# The standard list page token.
|
||||
# @param [Fixnum] page_size
|
||||
# The standard list page size.
|
||||
# @param [String] filter
|
||||
# The standard list filter.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -418,14 +672,14 @@ module Google
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_operations(name, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def list_operations(name, filter: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||
command.response_representation = Google::Apis::DataprocV1::ListOperationsResponse::Representation
|
||||
command.response_class = Google::Apis::DataprocV1::ListOperationsResponse
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['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)
|
||||
@@ -461,258 +715,6 @@ module Google
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Starts a job cancellation request. To access the job resource after
|
||||
# cancellation, call regions/`region`/jobs.list or regions/`region`/jobs.get.
|
||||
# @param [String] project_id
|
||||
# Required The ID of the Google Cloud Platform project that the job belongs to.
|
||||
# @param [String] region
|
||||
# Required The Cloud Dataproc region in which to handle the request.
|
||||
# @param [String] job_id
|
||||
# Required The job ID.
|
||||
# @param [Google::Apis::DataprocV1::CancelJobRequest] cancel_job_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::DataprocV1::Job] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DataprocV1::Job]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def cancel_job(project_id, region, job_id, cancel_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}:cancel', options)
|
||||
command.request_representation = Google::Apis::DataprocV1::CancelJobRequest::Representation
|
||||
command.request_object = cancel_job_request_object
|
||||
command.response_representation = Google::Apis::DataprocV1::Job::Representation
|
||||
command.response_class = Google::Apis::DataprocV1::Job
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['region'] = region unless region.nil?
|
||||
command.params['jobId'] = job_id unless job_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Updates a job in a project.
|
||||
# @param [String] project_id
|
||||
# Required The ID of the Google Cloud Platform project that the job belongs to.
|
||||
# @param [String] region
|
||||
# Required The Cloud Dataproc region in which to handle the request.
|
||||
# @param [String] job_id
|
||||
# Required The job ID.
|
||||
# @param [Google::Apis::DataprocV1::Job] job_object
|
||||
# @param [String] update_mask
|
||||
# Required Specifies the path, relative to <code>Job</code>, of the field to
|
||||
# update. For example, to update the labels of a Job the <code>update_mask</code>
|
||||
# parameter would be specified as <code>labels</code>, and the PATCH request
|
||||
# body would specify the new value. <strong>Note:</strong> Currently, <code>
|
||||
# labels</code> is the only field that can be updated.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::DataprocV1::Job] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DataprocV1::Job]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def patch_project_region_job(project_id, region, job_id, job_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:patch, 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}', options)
|
||||
command.request_representation = Google::Apis::DataprocV1::Job::Representation
|
||||
command.request_object = job_object
|
||||
command.response_representation = Google::Apis::DataprocV1::Job::Representation
|
||||
command.response_class = Google::Apis::DataprocV1::Job
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['region'] = region unless region.nil?
|
||||
command.params['jobId'] = job_id unless job_id.nil?
|
||||
command.query['updateMask'] = update_mask unless update_mask.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Gets the resource representation for a job in a project.
|
||||
# @param [String] project_id
|
||||
# Required The ID of the Google Cloud Platform project that the job belongs to.
|
||||
# @param [String] region
|
||||
# Required The Cloud Dataproc region in which to handle the request.
|
||||
# @param [String] job_id
|
||||
# Required The job ID.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::DataprocV1::Job] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DataprocV1::Job]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_job(project_id, region, job_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}', options)
|
||||
command.response_representation = Google::Apis::DataprocV1::Job::Representation
|
||||
command.response_class = Google::Apis::DataprocV1::Job
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['region'] = region unless region.nil?
|
||||
command.params['jobId'] = job_id unless job_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Submits a job to a cluster.
|
||||
# @param [String] project_id
|
||||
# Required The ID of the Google Cloud Platform project that the job belongs to.
|
||||
# @param [String] region
|
||||
# Required The Cloud Dataproc region in which to handle the request.
|
||||
# @param [Google::Apis::DataprocV1::SubmitJobRequest] submit_job_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::DataprocV1::Job] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DataprocV1::Job]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def submit_job(project_id, region, submit_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/jobs:submit', options)
|
||||
command.request_representation = Google::Apis::DataprocV1::SubmitJobRequest::Representation
|
||||
command.request_object = submit_job_request_object
|
||||
command.response_representation = Google::Apis::DataprocV1::Job::Representation
|
||||
command.response_class = Google::Apis::DataprocV1::Job
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['region'] = region unless region.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Deletes the job from the project. If the job is active, the delete fails, and
|
||||
# the response returns FAILED_PRECONDITION.
|
||||
# @param [String] project_id
|
||||
# Required The ID of the Google Cloud Platform project that the job belongs to.
|
||||
# @param [String] region
|
||||
# Required The Cloud Dataproc region in which to handle the request.
|
||||
# @param [String] job_id
|
||||
# Required The job ID.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::DataprocV1::Empty] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DataprocV1::Empty]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def delete_job(project_id, region, job_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}', options)
|
||||
command.response_representation = Google::Apis::DataprocV1::Empty::Representation
|
||||
command.response_class = Google::Apis::DataprocV1::Empty
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['region'] = region unless region.nil?
|
||||
command.params['jobId'] = job_id unless job_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists regions/`region`/jobs in a project.
|
||||
# @param [String] project_id
|
||||
# Required The ID of the Google Cloud Platform project that the job belongs to.
|
||||
# @param [String] region
|
||||
# Required The Cloud Dataproc region in which to handle the request.
|
||||
# @param [String] page_token
|
||||
# Optional The page token, returned by a previous call, to request the next page
|
||||
# of results.
|
||||
# @param [Fixnum] page_size
|
||||
# Optional The number of results to return in each response.
|
||||
# @param [String] cluster_name
|
||||
# Optional If set, the returned jobs list includes only jobs that were submitted
|
||||
# to the named cluster.
|
||||
# @param [String] filter
|
||||
# Optional A filter constraining the jobs to list. Filters are case-sensitive
|
||||
# and have the following syntax:field = value AND field = value ...where field
|
||||
# is status.state or labels.[KEY], and [KEY] is a label key. value can be * to
|
||||
# match all values. status.state can be either ACTIVE or INACTIVE. Only the
|
||||
# logical AND operator is supported; space-separated items are treated as having
|
||||
# an implicit AND operator.Example filter:status.state = ACTIVE AND labels.env =
|
||||
# staging AND labels.starred = *
|
||||
# @param [String] job_state_matcher
|
||||
# Optional Specifies enumerated categories of jobs to list (default = match ALL
|
||||
# jobs).
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::DataprocV1::ListJobsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DataprocV1::ListJobsResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_jobs(project_id, region, page_token: nil, page_size: nil, cluster_name: nil, filter: nil, job_state_matcher: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/jobs', options)
|
||||
command.response_representation = Google::Apis::DataprocV1::ListJobsResponse::Representation
|
||||
command.response_class = Google::Apis::DataprocV1::ListJobsResponse
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['region'] = region unless region.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['clusterName'] = cluster_name unless cluster_name.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['jobStateMatcher'] = job_state_matcher unless job_state_matcher.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
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ module Google
|
||||
# @see https://cloud.google.com/datastore/
|
||||
module DatastoreV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20170314'
|
||||
REVISION = '20170426'
|
||||
|
||||
# View and manage your Google Cloud Datastore data
|
||||
AUTH_DATASTORE = 'https://www.googleapis.com/auth/datastore'
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -22,6 +22,48 @@ module Google
|
||||
module Apis
|
||||
module DatastoreV1
|
||||
|
||||
class GqlQuery
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Filter
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class RollbackRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class RunQueryRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CompositeFilter
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AllocateIdsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Query
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class PropertyFilter
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -34,13 +76,13 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CommitResponse
|
||||
class Value
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Value
|
||||
class CommitResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
@@ -88,7 +130,7 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class RunQueryResponse
|
||||
class AllocateIdsRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
@@ -100,7 +142,13 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AllocateIdsRequest
|
||||
class RunQueryResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CommitRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
@@ -118,25 +166,19 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CommitRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class KindExpression
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Key
|
||||
class LatLng
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class LatLng
|
||||
class Key
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
@@ -185,45 +227,83 @@ module Google
|
||||
end
|
||||
|
||||
class GqlQuery
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :query_string, as: 'queryString'
|
||||
property :allow_literals, as: 'allowLiterals'
|
||||
hash :named_bindings, as: 'namedBindings', class: Google::Apis::DatastoreV1::GqlQueryParameter, decorator: Google::Apis::DatastoreV1::GqlQueryParameter::Representation
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
collection :positional_bindings, as: 'positionalBindings', class: Google::Apis::DatastoreV1::GqlQueryParameter, decorator: Google::Apis::DatastoreV1::GqlQueryParameter::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Filter
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :composite_filter, as: 'compositeFilter', class: Google::Apis::DatastoreV1::CompositeFilter, decorator: Google::Apis::DatastoreV1::CompositeFilter::Representation
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
property :property_filter, as: 'propertyFilter', class: Google::Apis::DatastoreV1::PropertyFilter, decorator: Google::Apis::DatastoreV1::PropertyFilter::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class RollbackRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :transaction, :base64 => true, as: 'transaction'
|
||||
end
|
||||
end
|
||||
|
||||
class RunQueryRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :partition_id, as: 'partitionId', class: Google::Apis::DatastoreV1::PartitionId, decorator: Google::Apis::DatastoreV1::PartitionId::Representation
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
property :gql_query, as: 'gqlQuery', class: Google::Apis::DatastoreV1::GqlQuery, decorator: Google::Apis::DatastoreV1::GqlQuery::Representation
|
||||
|
||||
property :read_options, as: 'readOptions', class: Google::Apis::DatastoreV1::ReadOptions, decorator: Google::Apis::DatastoreV1::ReadOptions::Representation
|
||||
|
||||
property :query, as: 'query', class: Google::Apis::DatastoreV1::Query, decorator: Google::Apis::DatastoreV1::Query::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class CompositeFilter
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :filters, as: 'filters', class: Google::Apis::DatastoreV1::Filter, decorator: Google::Apis::DatastoreV1::Filter::Representation
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
property :op, as: 'op'
|
||||
end
|
||||
end
|
||||
|
||||
class AllocateIdsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :keys, as: 'keys', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
end
|
||||
|
||||
class Query
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :projection, as: 'projection', class: Google::Apis::DatastoreV1::Projection, decorator: Google::Apis::DatastoreV1::Projection::Representation
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
property :end_cursor, :base64 => true, as: 'endCursor'
|
||||
property :filter, as: 'filter', class: Google::Apis::DatastoreV1::Filter, decorator: Google::Apis::DatastoreV1::Filter::Representation
|
||||
|
||||
property :limit, as: 'limit'
|
||||
property :offset, as: 'offset'
|
||||
property :start_cursor, :base64 => true, as: 'startCursor'
|
||||
collection :kind, as: 'kind', class: Google::Apis::DatastoreV1::KindExpression, decorator: Google::Apis::DatastoreV1::KindExpression::Representation
|
||||
|
||||
collection :distinct_on, as: 'distinctOn', class: Google::Apis::DatastoreV1::PropertyReference, decorator: Google::Apis::DatastoreV1::PropertyReference::Representation
|
||||
|
||||
collection :order, as: 'order', class: Google::Apis::DatastoreV1::PropertyOrder, decorator: Google::Apis::DatastoreV1::PropertyOrder::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class PropertyFilter
|
||||
@@ -247,23 +327,9 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class CommitResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :mutation_results, as: 'mutationResults', class: Google::Apis::DatastoreV1::MutationResult, decorator: Google::Apis::DatastoreV1::MutationResult::Representation
|
||||
|
||||
property :index_updates, as: 'indexUpdates'
|
||||
end
|
||||
end
|
||||
|
||||
class Value
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :meaning, as: 'meaning'
|
||||
property :array_value, as: 'arrayValue', class: Google::Apis::DatastoreV1::ArrayValue, decorator: Google::Apis::DatastoreV1::ArrayValue::Representation
|
||||
|
||||
property :entity_value, as: 'entityValue', class: Google::Apis::DatastoreV1::Entity, decorator: Google::Apis::DatastoreV1::Entity::Representation
|
||||
|
||||
property :geo_point_value, as: 'geoPointValue', class: Google::Apis::DatastoreV1::LatLng, decorator: Google::Apis::DatastoreV1::LatLng::Representation
|
||||
|
||||
property :key_value, as: 'keyValue', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
|
||||
@@ -273,9 +339,23 @@ module Google
|
||||
property :exclude_from_indexes, as: 'excludeFromIndexes'
|
||||
property :double_value, as: 'doubleValue'
|
||||
property :timestamp_value, as: 'timestampValue'
|
||||
property :boolean_value, as: 'booleanValue'
|
||||
property :null_value, as: 'nullValue'
|
||||
property :boolean_value, as: 'booleanValue'
|
||||
property :blob_value, :base64 => true, as: 'blobValue'
|
||||
property :meaning, as: 'meaning'
|
||||
property :array_value, as: 'arrayValue', class: Google::Apis::DatastoreV1::ArrayValue, decorator: Google::Apis::DatastoreV1::ArrayValue::Representation
|
||||
|
||||
property :entity_value, as: 'entityValue', class: Google::Apis::DatastoreV1::Entity, decorator: Google::Apis::DatastoreV1::Entity::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class CommitResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :index_updates, as: 'indexUpdates'
|
||||
collection :mutation_results, as: 'mutationResults', class: Google::Apis::DatastoreV1::MutationResult, decorator: Google::Apis::DatastoreV1::MutationResult::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
@@ -300,33 +380,33 @@ module Google
|
||||
class QueryResultBatch
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :entity_results, as: 'entityResults', class: Google::Apis::DatastoreV1::EntityResult, decorator: Google::Apis::DatastoreV1::EntityResult::Representation
|
||||
|
||||
property :more_results, as: 'moreResults'
|
||||
property :end_cursor, :base64 => true, as: 'endCursor'
|
||||
property :snapshot_version, :numeric_string => true, as: 'snapshotVersion'
|
||||
property :skipped_cursor, :base64 => true, as: 'skippedCursor'
|
||||
property :skipped_results, as: 'skippedResults'
|
||||
property :entity_result_type, as: 'entityResultType'
|
||||
collection :entity_results, as: 'entityResults', class: Google::Apis::DatastoreV1::EntityResult, decorator: Google::Apis::DatastoreV1::EntityResult::Representation
|
||||
|
||||
property :end_cursor, :base64 => true, as: 'endCursor'
|
||||
property :more_results, as: 'moreResults'
|
||||
property :snapshot_version, :numeric_string => true, as: 'snapshotVersion'
|
||||
end
|
||||
end
|
||||
|
||||
class LookupRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :keys, as: 'keys', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
|
||||
|
||||
property :read_options, as: 'readOptions', class: Google::Apis::DatastoreV1::ReadOptions, decorator: Google::Apis::DatastoreV1::ReadOptions::Representation
|
||||
|
||||
collection :keys, as: 'keys', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class PathElement
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :id, :numeric_string => true, as: 'id'
|
||||
property :name, as: 'name'
|
||||
property :kind, as: 'kind'
|
||||
property :id, :numeric_string => true, as: 'id'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -346,12 +426,10 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class RunQueryResponse
|
||||
class AllocateIdsRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :query, as: 'query', class: Google::Apis::DatastoreV1::Query, decorator: Google::Apis::DatastoreV1::Query::Representation
|
||||
|
||||
property :batch, as: 'batch', class: Google::Apis::DatastoreV1::QueryResultBatch, decorator: Google::Apis::DatastoreV1::QueryResultBatch::Representation
|
||||
collection :keys, as: 'keys', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
|
||||
|
||||
end
|
||||
end
|
||||
@@ -368,11 +446,23 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class AllocateIdsRequest
|
||||
class RunQueryResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :keys, as: 'keys', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
|
||||
property :query, as: 'query', class: Google::Apis::DatastoreV1::Query, decorator: Google::Apis::DatastoreV1::Query::Representation
|
||||
|
||||
property :batch, as: 'batch', class: Google::Apis::DatastoreV1::QueryResultBatch, decorator: Google::Apis::DatastoreV1::QueryResultBatch::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class CommitRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :mutations, as: 'mutations', class: Google::Apis::DatastoreV1::Mutation, decorator: Google::Apis::DatastoreV1::Mutation::Representation
|
||||
|
||||
property :transaction, :base64 => true, as: 'transaction'
|
||||
property :mode, as: 'mode'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -391,16 +481,6 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class CommitRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :transaction, :base64 => true, as: 'transaction'
|
||||
property :mode, as: 'mode'
|
||||
collection :mutations, as: 'mutations', class: Google::Apis::DatastoreV1::Mutation, decorator: Google::Apis::DatastoreV1::Mutation::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class KindExpression
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -408,6 +488,14 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class LatLng
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :longitude, as: 'longitude'
|
||||
property :latitude, as: 'latitude'
|
||||
end
|
||||
end
|
||||
|
||||
class Key
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -418,14 +506,6 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class LatLng
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :latitude, as: 'latitude'
|
||||
property :longitude, as: 'longitude'
|
||||
end
|
||||
end
|
||||
|
||||
class PropertyReference
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -481,90 +561,10 @@ module Google
|
||||
class MutationResult
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :version, :numeric_string => true, as: 'version'
|
||||
property :conflict_detected, as: 'conflictDetected'
|
||||
property :key, as: 'key', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
|
||||
|
||||
property :version, :numeric_string => true, as: 'version'
|
||||
end
|
||||
end
|
||||
|
||||
class GqlQuery
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :allow_literals, as: 'allowLiterals'
|
||||
hash :named_bindings, as: 'namedBindings', class: Google::Apis::DatastoreV1::GqlQueryParameter, decorator: Google::Apis::DatastoreV1::GqlQueryParameter::Representation
|
||||
|
||||
collection :positional_bindings, as: 'positionalBindings', class: Google::Apis::DatastoreV1::GqlQueryParameter, decorator: Google::Apis::DatastoreV1::GqlQueryParameter::Representation
|
||||
|
||||
property :query_string, as: 'queryString'
|
||||
end
|
||||
end
|
||||
|
||||
class Filter
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :property_filter, as: 'propertyFilter', class: Google::Apis::DatastoreV1::PropertyFilter, decorator: Google::Apis::DatastoreV1::PropertyFilter::Representation
|
||||
|
||||
property :composite_filter, as: 'compositeFilter', class: Google::Apis::DatastoreV1::CompositeFilter, decorator: Google::Apis::DatastoreV1::CompositeFilter::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class RollbackRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :transaction, :base64 => true, as: 'transaction'
|
||||
end
|
||||
end
|
||||
|
||||
class RunQueryRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :query, as: 'query', class: Google::Apis::DatastoreV1::Query, decorator: Google::Apis::DatastoreV1::Query::Representation
|
||||
|
||||
property :partition_id, as: 'partitionId', class: Google::Apis::DatastoreV1::PartitionId, decorator: Google::Apis::DatastoreV1::PartitionId::Representation
|
||||
|
||||
property :gql_query, as: 'gqlQuery', class: Google::Apis::DatastoreV1::GqlQuery, decorator: Google::Apis::DatastoreV1::GqlQuery::Representation
|
||||
|
||||
property :read_options, as: 'readOptions', class: Google::Apis::DatastoreV1::ReadOptions, decorator: Google::Apis::DatastoreV1::ReadOptions::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class CompositeFilter
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :filters, as: 'filters', class: Google::Apis::DatastoreV1::Filter, decorator: Google::Apis::DatastoreV1::Filter::Representation
|
||||
|
||||
property :op, as: 'op'
|
||||
end
|
||||
end
|
||||
|
||||
class AllocateIdsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :keys, as: 'keys', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Query
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :projection, as: 'projection', class: Google::Apis::DatastoreV1::Projection, decorator: Google::Apis::DatastoreV1::Projection::Representation
|
||||
|
||||
property :end_cursor, :base64 => true, as: 'endCursor'
|
||||
property :limit, as: 'limit'
|
||||
property :filter, as: 'filter', class: Google::Apis::DatastoreV1::Filter, decorator: Google::Apis::DatastoreV1::Filter::Representation
|
||||
|
||||
property :offset, as: 'offset'
|
||||
property :start_cursor, :base64 => true, as: 'startCursor'
|
||||
collection :kind, as: 'kind', class: Google::Apis::DatastoreV1::KindExpression, decorator: Google::Apis::DatastoreV1::KindExpression::Representation
|
||||
|
||||
collection :distinct_on, as: 'distinctOn', class: Google::Apis::DatastoreV1::PropertyReference, decorator: Google::Apis::DatastoreV1::PropertyReference::Representation
|
||||
|
||||
collection :order, as: 'order', class: Google::Apis::DatastoreV1::PropertyOrder, decorator: Google::Apis::DatastoreV1::PropertyOrder::Representation
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -48,182 +48,16 @@ module Google
|
||||
@batch_path = 'batch'
|
||||
end
|
||||
|
||||
# Commits a transaction, optionally creating, deleting or modifying some
|
||||
# entities.
|
||||
# @param [String] project_id
|
||||
# The ID of the project against which to make the request.
|
||||
# @param [Google::Apis::DatastoreV1::CommitRequest] commit_request_object
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::DatastoreV1::CommitResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DatastoreV1::CommitResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server 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 commit_project(project_id, commit_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/projects/{projectId}:commit', options)
|
||||
command.request_representation = Google::Apis::DatastoreV1::CommitRequest::Representation
|
||||
command.request_object = commit_request_object
|
||||
command.response_representation = Google::Apis::DatastoreV1::CommitResponse::Representation
|
||||
command.response_class = Google::Apis::DatastoreV1::CommitResponse
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Begins a new transaction.
|
||||
# @param [String] project_id
|
||||
# The ID of the project against which to make the request.
|
||||
# @param [Google::Apis::DatastoreV1::BeginTransactionRequest] begin_transaction_request_object
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::DatastoreV1::BeginTransactionResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DatastoreV1::BeginTransactionResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server 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 begin_project_transaction(project_id, begin_transaction_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/projects/{projectId}:beginTransaction', options)
|
||||
command.request_representation = Google::Apis::DatastoreV1::BeginTransactionRequest::Representation
|
||||
command.request_object = begin_transaction_request_object
|
||||
command.response_representation = Google::Apis::DatastoreV1::BeginTransactionResponse::Representation
|
||||
command.response_class = Google::Apis::DatastoreV1::BeginTransactionResponse
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Queries for entities.
|
||||
# @param [String] project_id
|
||||
# The ID of the project against which to make the request.
|
||||
# @param [Google::Apis::DatastoreV1::RunQueryRequest] run_query_request_object
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::DatastoreV1::RunQueryResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DatastoreV1::RunQueryResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def run_project_query(project_id, run_query_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/projects/{projectId}:runQuery', options)
|
||||
command.request_representation = Google::Apis::DatastoreV1::RunQueryRequest::Representation
|
||||
command.request_object = run_query_request_object
|
||||
command.response_representation = Google::Apis::DatastoreV1::RunQueryResponse::Representation
|
||||
command.response_class = Google::Apis::DatastoreV1::RunQueryResponse
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Rolls back a transaction.
|
||||
# @param [String] project_id
|
||||
# The ID of the project against which to make the request.
|
||||
# @param [Google::Apis::DatastoreV1::RollbackRequest] rollback_request_object
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::DatastoreV1::RollbackResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DatastoreV1::RollbackResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def rollback_project(project_id, rollback_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/projects/{projectId}:rollback', options)
|
||||
command.request_representation = Google::Apis::DatastoreV1::RollbackRequest::Representation
|
||||
command.request_object = rollback_request_object
|
||||
command.response_representation = Google::Apis::DatastoreV1::RollbackResponse::Representation
|
||||
command.response_class = Google::Apis::DatastoreV1::RollbackResponse
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Looks up entities by key.
|
||||
# @param [String] project_id
|
||||
# The ID of the project against which to make the request.
|
||||
# @param [Google::Apis::DatastoreV1::LookupRequest] lookup_request_object
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::DatastoreV1::LookupResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DatastoreV1::LookupResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def lookup_project(project_id, lookup_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/projects/{projectId}:lookup', options)
|
||||
command.request_representation = Google::Apis::DatastoreV1::LookupRequest::Representation
|
||||
command.request_object = lookup_request_object
|
||||
command.response_representation = Google::Apis::DatastoreV1::LookupResponse::Representation
|
||||
command.response_class = Google::Apis::DatastoreV1::LookupResponse
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Allocates IDs for the given keys, which is useful for referencing an entity
|
||||
# before it is inserted.
|
||||
# @param [String] project_id
|
||||
# The ID of the project against which to make the request.
|
||||
# @param [Google::Apis::DatastoreV1::AllocateIdsRequest] allocate_ids_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 [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
@@ -236,15 +70,181 @@ module Google
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def allocate_project_ids(project_id, allocate_ids_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
def allocate_project_ids(project_id, allocate_ids_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/projects/{projectId}:allocateIds', options)
|
||||
command.request_representation = Google::Apis::DatastoreV1::AllocateIdsRequest::Representation
|
||||
command.request_object = allocate_ids_request_object
|
||||
command.response_representation = Google::Apis::DatastoreV1::AllocateIdsResponse::Representation
|
||||
command.response_class = Google::Apis::DatastoreV1::AllocateIdsResponse
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Begins a new transaction.
|
||||
# @param [String] project_id
|
||||
# The ID of the project against which to make the request.
|
||||
# @param [Google::Apis::DatastoreV1::BeginTransactionRequest] begin_transaction_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::DatastoreV1::BeginTransactionResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DatastoreV1::BeginTransactionResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server 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 begin_project_transaction(project_id, begin_transaction_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/projects/{projectId}:beginTransaction', options)
|
||||
command.request_representation = Google::Apis::DatastoreV1::BeginTransactionRequest::Representation
|
||||
command.request_object = begin_transaction_request_object
|
||||
command.response_representation = Google::Apis::DatastoreV1::BeginTransactionResponse::Representation
|
||||
command.response_class = Google::Apis::DatastoreV1::BeginTransactionResponse
|
||||
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
|
||||
|
||||
# Commits a transaction, optionally creating, deleting or modifying some
|
||||
# entities.
|
||||
# @param [String] project_id
|
||||
# The ID of the project against which to make the request.
|
||||
# @param [Google::Apis::DatastoreV1::CommitRequest] commit_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::DatastoreV1::CommitResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DatastoreV1::CommitResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server 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 commit_project(project_id, commit_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/projects/{projectId}:commit', options)
|
||||
command.request_representation = Google::Apis::DatastoreV1::CommitRequest::Representation
|
||||
command.request_object = commit_request_object
|
||||
command.response_representation = Google::Apis::DatastoreV1::CommitResponse::Representation
|
||||
command.response_class = Google::Apis::DatastoreV1::CommitResponse
|
||||
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
|
||||
|
||||
# Queries for entities.
|
||||
# @param [String] project_id
|
||||
# The ID of the project against which to make the request.
|
||||
# @param [Google::Apis::DatastoreV1::RunQueryRequest] run_query_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::DatastoreV1::RunQueryResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DatastoreV1::RunQueryResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def run_project_query(project_id, run_query_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/projects/{projectId}:runQuery', options)
|
||||
command.request_representation = Google::Apis::DatastoreV1::RunQueryRequest::Representation
|
||||
command.request_object = run_query_request_object
|
||||
command.response_representation = Google::Apis::DatastoreV1::RunQueryResponse::Representation
|
||||
command.response_class = Google::Apis::DatastoreV1::RunQueryResponse
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Rolls back a transaction.
|
||||
# @param [String] project_id
|
||||
# The ID of the project against which to make the request.
|
||||
# @param [Google::Apis::DatastoreV1::RollbackRequest] rollback_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::DatastoreV1::RollbackResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DatastoreV1::RollbackResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def rollback_project(project_id, rollback_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/projects/{projectId}:rollback', options)
|
||||
command.request_representation = Google::Apis::DatastoreV1::RollbackRequest::Representation
|
||||
command.request_object = rollback_request_object
|
||||
command.response_representation = Google::Apis::DatastoreV1::RollbackResponse::Representation
|
||||
command.response_class = Google::Apis::DatastoreV1::RollbackResponse
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Looks up entities by key.
|
||||
# @param [String] project_id
|
||||
# The ID of the project against which to make the request.
|
||||
# @param [Google::Apis::DatastoreV1::LookupRequest] lookup_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::DatastoreV1::LookupResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DatastoreV1::LookupResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def lookup_project(project_id, lookup_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/projects/{projectId}:lookup', options)
|
||||
command.request_representation = Google::Apis::DatastoreV1::LookupRequest::Representation
|
||||
command.request_object = lookup_request_object
|
||||
command.response_representation = Google::Apis::DatastoreV1::LookupResponse::Representation
|
||||
command.response_class = Google::Apis::DatastoreV1::LookupResponse
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ module Google
|
||||
# @see https://cloud.google.com/deployment-manager/
|
||||
module DeploymentmanagerV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20170315'
|
||||
REVISION = '20170501'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
@@ -24,17 +24,19 @@ module Google
|
||||
|
||||
# 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.
|
||||
# from logging. An AuditConfig 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": [ ` "
|
||||
# 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", `,
|
||||
# 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
|
||||
# ] `
|
||||
# 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
|
||||
|
||||
@@ -25,7 +25,7 @@ module Google
|
||||
# @see https://developers.google.com/doubleclick-advertisers/
|
||||
module DfareportingV2_6
|
||||
VERSION = 'V2_6'
|
||||
REVISION = '20161027'
|
||||
REVISION = '20170428'
|
||||
|
||||
# Manage DoubleClick Digital Marketing conversions
|
||||
AUTH_DDMCONVERSIONS = 'https://www.googleapis.com/auth/ddmconversions'
|
||||
|
||||
@@ -113,6 +113,7 @@ module Google
|
||||
# - "46" for AED
|
||||
# - "47" for BGN
|
||||
# - "48" for HRK
|
||||
# - "49" for MXN
|
||||
# Corresponds to the JSON property `currencyId`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :currency_id
|
||||
@@ -160,7 +161,8 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :locale
|
||||
|
||||
# Maximum image size allowed for this account.
|
||||
# Maximum image size allowed for this account, in kilobytes. Value must be
|
||||
# greater than or equal to 1.
|
||||
# Corresponds to the JSON property `maximumImageSize`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :maximum_image_size
|
||||
@@ -189,8 +191,8 @@ module Google
|
||||
attr_accessor :share_reports_with_twitter
|
||||
alias_method :share_reports_with_twitter?, :share_reports_with_twitter
|
||||
|
||||
# File size limit in kilobytes of Rich Media teaser creatives. Must be between 1
|
||||
# and 10240.
|
||||
# File size limit in kilobytes of Rich Media teaser creatives. Acceptable values
|
||||
# are 1 to 10240, inclusive.
|
||||
# Corresponds to the JSON property `teaserSizeLimit`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :teaser_size_limit
|
||||
@@ -1247,9 +1249,9 @@ module Google
|
||||
class AudienceSegment
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Weight allocated to this segment. Must be between 1 and 1000. The weight
|
||||
# assigned will be understood in proportion to the weights assigned to other
|
||||
# segments in the same segment group.
|
||||
# Weight allocated to this segment. The weight assigned will be understood in
|
||||
# proportion to the weights assigned to other segments in the same segment group.
|
||||
# Acceptable values are 1 to 1000, inclusive.
|
||||
# Corresponds to the JSON property `allocation`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :allocation
|
||||
@@ -2452,8 +2454,8 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# The status of each conversion's insertion status. The status is returned in
|
||||
# the same order that conversions are inserted.
|
||||
# The insert status of each conversion. Statuses are returned in the same order
|
||||
# that conversions are inserted.
|
||||
# Corresponds to the JSON property `status`
|
||||
# @return [Array<Google::Apis::DfareportingV2_6::ConversionStatus>]
|
||||
attr_accessor :status
|
||||
@@ -3120,7 +3122,8 @@ module Google
|
||||
attr_accessor :companion_creative_ids
|
||||
|
||||
# Custom start time in seconds for making the asset visible. Applicable to the
|
||||
# following creative types: all RICH_MEDIA.
|
||||
# following creative types: all RICH_MEDIA. Value must be greater than or equal
|
||||
# to 0.
|
||||
# Corresponds to the JSON property `customStartTimeValue`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :custom_start_time_value
|
||||
@@ -3141,7 +3144,8 @@ module Google
|
||||
attr_accessor :display_type
|
||||
|
||||
# Duration in seconds for which an asset will be displayed. Applicable to the
|
||||
# following creative types: INSTREAM_VIDEO and VPAID_LINEAR_VIDEO.
|
||||
# following creative types: INSTREAM_VIDEO and VPAID_LINEAR_VIDEO. Value must be
|
||||
# greater than or equal to 1.
|
||||
# Corresponds to the JSON property `duration`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :duration
|
||||
@@ -3255,11 +3259,11 @@ module Google
|
||||
attr_accessor :pushdown
|
||||
alias_method :pushdown?, :pushdown
|
||||
|
||||
# Pushdown duration in seconds for an asset. Must be between 0 and 9.99.
|
||||
# Applicable to the following creative types: all RICH_MEDIA.Additionally, only
|
||||
# applicable when the asset pushdown field is true, the offsets are 0, the
|
||||
# collapsedSize.width matches size.width, and the collapsedSize.height is less
|
||||
# than size.height.
|
||||
# Pushdown duration in seconds for an asset. Applicable to the following
|
||||
# creative types: all RICH_MEDIA.Additionally, only applicable when the asset
|
||||
# pushdown field is true, the offsets are 0, the collapsedSize.width matches
|
||||
# size.width, and the collapsedSize.height is less than size.height. Acceptable
|
||||
# values are 0 to 9.99, inclusive.
|
||||
# Corresponds to the JSON property `pushdownDuration`
|
||||
# @return [Float]
|
||||
attr_accessor :pushdown_duration
|
||||
@@ -3341,10 +3345,11 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :window_mode
|
||||
|
||||
# zIndex value of an asset. This is a read-only field. Applicable to the
|
||||
# following creative types: all RICH_MEDIA.Additionally, only applicable to
|
||||
# assets whose displayType is NOT one of the following types:
|
||||
# ASSET_DISPLAY_TYPE_INPAGE or ASSET_DISPLAY_TYPE_OVERLAY.
|
||||
# zIndex value of an asset. Applicable to the following creative types: all
|
||||
# RICH_MEDIA.Additionally, only applicable to assets whose displayType is NOT
|
||||
# one of the following types: ASSET_DISPLAY_TYPE_INPAGE or
|
||||
# ASSET_DISPLAY_TYPE_OVERLAY. Acceptable values are -999999999 to 999999999,
|
||||
# inclusive.
|
||||
# Corresponds to the JSON property `zIndex`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :z_index
|
||||
@@ -3616,6 +3621,7 @@ module Google
|
||||
|
||||
# Rich media exit overrides for this creative assignment.
|
||||
# Applicable when the creative type is any of the following:
|
||||
# - DISPLAY
|
||||
# - RICH_MEDIA_INPAGE
|
||||
# - RICH_MEDIA_INPAGE_FLOATING
|
||||
# - RICH_MEDIA_IM_EXPAND
|
||||
@@ -3624,7 +3630,6 @@ module Google
|
||||
# - RICH_MEDIA_MOBILE_IN_APP
|
||||
# - RICH_MEDIA_MULTI_FLOATING
|
||||
# - RICH_MEDIA_PEEL_DOWN
|
||||
# - ADVANCED_BANNER
|
||||
# - VPAID_LINEAR
|
||||
# - VPAID_NON_LINEAR
|
||||
# Corresponds to the JSON property `richMediaExitOverrides`
|
||||
@@ -3632,7 +3637,8 @@ module Google
|
||||
attr_accessor :rich_media_exit_overrides
|
||||
|
||||
# Sequence number of the creative assignment, applicable when the rotation type
|
||||
# is CREATIVE_ROTATION_TYPE_SEQUENTIAL.
|
||||
# is CREATIVE_ROTATION_TYPE_SEQUENTIAL. Acceptable values are 1 to 65535,
|
||||
# inclusive.
|
||||
# Corresponds to the JSON property `sequence`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :sequence
|
||||
@@ -3650,7 +3656,7 @@ module Google
|
||||
attr_accessor :start_time
|
||||
|
||||
# Weight of the creative assignment, applicable when the rotation type is
|
||||
# CREATIVE_ROTATION_TYPE_RANDOM.
|
||||
# CREATIVE_ROTATION_TYPE_RANDOM. Value must be greater than or equal to 1.
|
||||
# Corresponds to the JSON property `weight`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :weight
|
||||
@@ -3955,12 +3961,10 @@ module Google
|
||||
# @return [Google::Apis::DfareportingV2_6::DimensionValue]
|
||||
attr_accessor :advertiser_id_dimension_value
|
||||
|
||||
# Subgroup of the creative group. Assign your creative groups to one of the
|
||||
# following subgroups in order to filter or manage them more easily. This field
|
||||
# is required on insertion and is read-only after insertion.
|
||||
# Acceptable values are:
|
||||
# - 1
|
||||
# - 2
|
||||
# Subgroup of the creative group. Assign your creative groups to a subgroup in
|
||||
# order to filter or manage them more easily. This field is required on
|
||||
# insertion and is read-only after insertion. Acceptable values are 1 to 2,
|
||||
# inclusive.
|
||||
# Corresponds to the JSON property `groupNumber`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :group_number
|
||||
@@ -4366,12 +4370,12 @@ module Google
|
||||
# @return [Array<String>]
|
||||
attr_accessor :days_of_week
|
||||
|
||||
# Hours of the day when the ad will serve. Must be an integer between 0 and 23 (
|
||||
# inclusive), where 0 is midnight to 1 AM, and 23 is 11 PM to midnight. Can be
|
||||
# specified with days of week, in which case the ad would serve during these
|
||||
# hours on the specified days. For example, if Monday, Wednesday, Friday are the
|
||||
# days of week specified and 9-10am, 3-5pm (hours 9, 15, and 16) is specified,
|
||||
# the ad would serve Monday, Wednesdays, and Fridays at 9-10am and 3-5pm.
|
||||
# Hours of the day when the ad will serve, where 0 is midnight to 1 AM and 23 is
|
||||
# 11 PM to midnight. Can be specified with days of week, in which case the ad
|
||||
# would serve during these hours on the specified days. For example if Monday,
|
||||
# Wednesday, Friday are the days of week specified and 9-10am, 3-5pm (hours 9,
|
||||
# 15, and 16) is specified, the ad would serve Monday, Wednesdays, and Fridays
|
||||
# at 9-10am and 3-5pm. Acceptable values are 0 to 23, inclusive.
|
||||
# Corresponds to the JSON property `hoursOfDay`
|
||||
# @return [Array<Fixnum>]
|
||||
attr_accessor :hours_of_day
|
||||
@@ -4444,7 +4448,7 @@ module Google
|
||||
# Impression ratio for this ad. This ratio determines how often each ad is
|
||||
# served relative to the others. For example, if ad A has an impression ratio of
|
||||
# 1 and ad B has an impression ratio of 3, then DCM will serve ad B three times
|
||||
# as often as ad A. Must be between 1 and 10.
|
||||
# as often as ad A. Acceptable values are 1 to 10, inclusive.
|
||||
# Corresponds to the JSON property `impressionRatio`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :impression_ratio
|
||||
@@ -4725,12 +4729,12 @@ module Google
|
||||
# @return [Array<Google::Apis::DfareportingV2_6::DirectorySiteContactAssignment>]
|
||||
attr_accessor :contact_assignments
|
||||
|
||||
# Country ID of this directory site.
|
||||
# Country ID of this directory site. This is a read-only field.
|
||||
# Corresponds to the JSON property `countryId`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :country_id
|
||||
|
||||
# Currency ID of this directory site.
|
||||
# Currency ID of this directory site. This is a read-only field.
|
||||
# Possible values are:
|
||||
# - "1" for USD
|
||||
# - "2" for GBP
|
||||
@@ -4779,11 +4783,12 @@ module Google
|
||||
# - "46" for AED
|
||||
# - "47" for BGN
|
||||
# - "48" for HRK
|
||||
# - "49" for MXN
|
||||
# Corresponds to the JSON property `currencyId`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :currency_id
|
||||
|
||||
# Description of this directory site.
|
||||
# Description of this directory site. This is a read-only field.
|
||||
# Corresponds to the JSON property `description`
|
||||
# @return [String]
|
||||
attr_accessor :description
|
||||
@@ -5656,7 +5661,9 @@ module Google
|
||||
# @return [Google::Apis::DfareportingV2_6::DimensionValue]
|
||||
attr_accessor :advertiser_id_dimension_value
|
||||
|
||||
# Code type used for cache busting in the generated tag.
|
||||
# Code type used for cache busting in the generated tag. Applicable only when
|
||||
# floodlightActivityGroupType is COUNTER and countingMethod is STANDARD_COUNTING
|
||||
# or UNIQUE_COUNTING.
|
||||
# Corresponds to the JSON property `cacheBustingType`
|
||||
# @return [String]
|
||||
attr_accessor :cache_busting_type
|
||||
@@ -6283,13 +6290,13 @@ module Google
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Duration of time, in seconds, for this frequency cap. The maximum duration is
|
||||
# 90 days in seconds, or 7,776,000.
|
||||
# 90 days. Acceptable values are 1 to 7776000, inclusive.
|
||||
# Corresponds to the JSON property `duration`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :duration
|
||||
|
||||
# Number of times an individual user can be served the ad within the specified
|
||||
# duration. The maximum allowed is 15.
|
||||
# duration. Acceptable values are 1 to 15, inclusive.
|
||||
# Corresponds to the JSON property `impressions`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :impressions
|
||||
@@ -6947,7 +6954,7 @@ module Google
|
||||
# Lookback window, in days, from the last time a given user clicked on one of
|
||||
# your ads. If you enter 0, clicks will not be considered as triggering events
|
||||
# for floodlight tracking. If you leave this field blank, the default value for
|
||||
# your account will be used.
|
||||
# your account will be used. Acceptable values are 0 to 90, inclusive.
|
||||
# Corresponds to the JSON property `clickDuration`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :click_duration
|
||||
@@ -6955,7 +6962,7 @@ module Google
|
||||
# Lookback window, in days, from the last time a given user viewed one of your
|
||||
# ads. If you enter 0, impressions will not be considered as triggering events
|
||||
# for floodlight tracking. If you leave this field blank, the default value for
|
||||
# your account will be used.
|
||||
# your account will be used. Acceptable values are 0 to 90, inclusive.
|
||||
# Corresponds to the JSON property `postImpressionActivitiesDuration`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :post_impression_activities_duration
|
||||
@@ -7401,9 +7408,9 @@ module Google
|
||||
# @return [Google::Apis::DfareportingV2_6::DimensionValue]
|
||||
attr_accessor :floodlight_activity_id_dimension_value
|
||||
|
||||
# Weight associated with this optimization. Must be greater than 1. The weight
|
||||
# assigned will be understood in proportion to the weights assigned to the other
|
||||
# optimization activities.
|
||||
# Weight associated with this optimization. The weight assigned will be
|
||||
# understood in proportion to the weights assigned to the other optimization
|
||||
# activities. Value must be greater than or equal to 1.
|
||||
# Corresponds to the JSON property `weight`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :weight
|
||||
@@ -8041,6 +8048,8 @@ module Google
|
||||
# - "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT"
|
||||
# - "PLACEMENT_TAG_CLICK_COMMANDS"
|
||||
# - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH"
|
||||
# - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_3"
|
||||
# - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_4"
|
||||
# - "PLACEMENT_TAG_TRACKING"
|
||||
# - "PLACEMENT_TAG_TRACKING_IFRAME"
|
||||
# - "PLACEMENT_TAG_TRACKING_JAVASCRIPT"
|
||||
@@ -8871,7 +8880,8 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :pricing_comment
|
||||
|
||||
# Rate or cost of this pricing period.
|
||||
# Rate or cost of this pricing period in nanos (i.e., multipled by 1000000000).
|
||||
# Acceptable values are 0 to 1000000000000000000, inclusive.
|
||||
# Corresponds to the JSON property `rateOrCostNanos`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :rate_or_cost_nanos
|
||||
@@ -8883,7 +8893,8 @@ module Google
|
||||
# @return [Date]
|
||||
attr_accessor :start_date
|
||||
|
||||
# Units of this pricing period.
|
||||
# Units of this pricing period. Acceptable values are 0 to 10000000000,
|
||||
# inclusive.
|
||||
# Corresponds to the JSON property `units`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :units
|
||||
@@ -9295,7 +9306,7 @@ module Google
|
||||
attr_accessor :kind
|
||||
|
||||
# Number of days that a user should remain in the remarketing list without an
|
||||
# impression.
|
||||
# impression. Acceptable values are 1 to 540, inclusive.
|
||||
# Corresponds to the JSON property `lifeSpan`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :life_span
|
||||
@@ -10531,7 +10542,7 @@ module Google
|
||||
class Size
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Height of this size.
|
||||
# Height of this size. Acceptable values are 0 to 32767, inclusive.
|
||||
# Corresponds to the JSON property `height`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :height
|
||||
@@ -10553,7 +10564,7 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# Width of this size.
|
||||
# Width of this size. Acceptable values are 0 to 32767, inclusive.
|
||||
# Corresponds to the JSON property `width`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :width
|
||||
@@ -10711,7 +10722,8 @@ module Google
|
||||
class TagData
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Ad associated with this placement tag.
|
||||
# Ad associated with this placement tag. Applicable only when format is
|
||||
# PLACEMENT_TAG_TRACKING.
|
||||
# Corresponds to the JSON property `adId`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :ad_id
|
||||
@@ -10721,7 +10733,8 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :click_tag
|
||||
|
||||
# Creative associated with this placement tag.
|
||||
# Creative associated with this placement tag. Applicable only when format is
|
||||
# PLACEMENT_TAG_TRACKING.
|
||||
# Corresponds to the JSON property `creativeId`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :creative_id
|
||||
|
||||
@@ -336,7 +336,7 @@ module Google
|
||||
# @param [String] sort_field
|
||||
# Field by which to sort the list.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is ASCENDING.
|
||||
# Order of sorted results.
|
||||
# @param [Fixnum] subaccount_id
|
||||
# Select only user profiles with the specified subaccount ID.
|
||||
# @param [Fixnum] user_role_id
|
||||
@@ -521,7 +521,7 @@ module Google
|
||||
# @param [String] sort_field
|
||||
# Field by which to sort the list.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is ASCENDING.
|
||||
# Order of sorted results.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -772,7 +772,7 @@ module Google
|
||||
# @param [String] sort_field
|
||||
# Field by which to sort the list.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is ASCENDING.
|
||||
# Order of sorted results.
|
||||
# @param [Boolean] ssl_compliant
|
||||
# Select only ads that are SSL-compliant.
|
||||
# @param [Boolean] ssl_required
|
||||
@@ -1047,7 +1047,7 @@ module Google
|
||||
# @param [String] sort_field
|
||||
# Field by which to sort the list.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is ASCENDING.
|
||||
# Order of sorted results.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -1270,7 +1270,7 @@ module Google
|
||||
# @param [String] sort_field
|
||||
# Field by which to sort the list.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is ASCENDING.
|
||||
# Order of sorted results.
|
||||
# @param [String] status
|
||||
# Select only advertisers with the specified status.
|
||||
# @param [Fixnum] subaccount_id
|
||||
@@ -1487,7 +1487,7 @@ module Google
|
||||
# @param [String] page_token
|
||||
# Value of the nextPageToken from the previous result page.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is ASCENDING.
|
||||
# Order of sorted results.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -1639,7 +1639,7 @@ module Google
|
||||
# @param [String] sort_field
|
||||
# Field by which to sort the list.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is ASCENDING.
|
||||
# Order of sorted results.
|
||||
# @param [Fixnum] subaccount_id
|
||||
# Select only campaigns that belong to this subaccount.
|
||||
# @param [String] fields
|
||||
@@ -2133,7 +2133,7 @@ module Google
|
||||
# @param [String] sort_field
|
||||
# Field by which to sort the list.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is ASCENDING.
|
||||
# Order of sorted results.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -2552,7 +2552,7 @@ module Google
|
||||
# @param [String] sort_field
|
||||
# Field by which to sort the list.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is ASCENDING.
|
||||
# Order of sorted results.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -2812,7 +2812,7 @@ module Google
|
||||
# @param [String] sort_field
|
||||
# Field by which to sort the list.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is ASCENDING.
|
||||
# Order of sorted results.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -3032,7 +3032,7 @@ module Google
|
||||
# @param [String] sort_field
|
||||
# Field by which to sort the list.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is ASCENDING.
|
||||
# Order of sorted results.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -3265,7 +3265,7 @@ module Google
|
||||
# @param [String] sort_field
|
||||
# Field by which to sort the list.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is ASCENDING.
|
||||
# Order of sorted results.
|
||||
# @param [Fixnum] studio_creative_id
|
||||
# Select only creatives corresponding to this Studio creative ID.
|
||||
# @param [Array<String>, String] types
|
||||
@@ -3504,7 +3504,7 @@ module Google
|
||||
# @param [String] sort_field
|
||||
# Field by which to sort the list.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is ASCENDING.
|
||||
# Order of sorted results.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -3659,7 +3659,7 @@ module Google
|
||||
# @param [String] sort_field
|
||||
# Field by which to sort the list.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is ASCENDING.
|
||||
# Order of sorted results.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -3989,7 +3989,7 @@ module Google
|
||||
# @param [String] sort_field
|
||||
# Field by which to sort the list.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is ASCENDING.
|
||||
# Order of sorted results.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -4398,7 +4398,7 @@ module Google
|
||||
# @param [String] sort_field
|
||||
# Field by which to sort the list.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is ASCENDING.
|
||||
# Order of sorted results.
|
||||
# @param [String] tag_string
|
||||
# Select only floodlight activities with the specified tag string.
|
||||
# @param [String] fields
|
||||
@@ -4632,7 +4632,7 @@ module Google
|
||||
# @param [String] sort_field
|
||||
# Field by which to sort the list.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is ASCENDING.
|
||||
# Order of sorted results.
|
||||
# @param [String] type
|
||||
# Select only floodlight activity groups with the specified floodlight activity
|
||||
# group type.
|
||||
@@ -4976,7 +4976,7 @@ module Google
|
||||
# @param [String] sort_field
|
||||
# Field by which to sort the list.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is ASCENDING.
|
||||
# Order of sorted results.
|
||||
# @param [String] type
|
||||
# Select only inventory items with this type.
|
||||
# @param [String] fields
|
||||
@@ -5625,7 +5625,7 @@ module Google
|
||||
# @param [String] sort_field
|
||||
# Field by which to sort the list.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is ASCENDING.
|
||||
# Order of sorted results.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -5732,7 +5732,7 @@ module Google
|
||||
# @param [String] sort_field
|
||||
# Field by which to sort the list.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is ASCENDING.
|
||||
# Order of sorted results.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -5907,7 +5907,7 @@ module Google
|
||||
# @param [String] sort_field
|
||||
# Field by which to sort the list.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is ASCENDING.
|
||||
# Order of sorted results.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -6171,7 +6171,7 @@ module Google
|
||||
# @param [String] sort_field
|
||||
# Field by which to sort the list.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is ASCENDING.
|
||||
# Order of sorted results.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -6469,7 +6469,7 @@ module Google
|
||||
# @param [String] sort_field
|
||||
# Field by which to sort the list.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is ASCENDING.
|
||||
# Order of sorted results.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -6808,7 +6808,7 @@ module Google
|
||||
# @param [String] sort_field
|
||||
# Field by which to sort the list.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is ASCENDING.
|
||||
# Order of sorted results.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -7102,7 +7102,7 @@ module Google
|
||||
# @param [String] sort_field
|
||||
# Field by which to sort the list.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is ASCENDING.
|
||||
# Order of sorted results.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -7756,7 +7756,7 @@ module Google
|
||||
# @param [String] sort_field
|
||||
# Field by which to sort the list.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is ASCENDING.
|
||||
# Order of sorted results.
|
||||
# @param [Fixnum] subaccount_id
|
||||
# Select only sites with this subaccount ID.
|
||||
# @param [Boolean] unmapped_site
|
||||
@@ -8105,7 +8105,7 @@ module Google
|
||||
# @param [String] sort_field
|
||||
# Field by which to sort the list.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is ASCENDING.
|
||||
# Order of sorted results.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -8284,7 +8284,7 @@ module Google
|
||||
# @param [String] sort_field
|
||||
# Field by which to sort the list.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is ASCENDING.
|
||||
# Order of sorted results.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -8422,7 +8422,7 @@ module Google
|
||||
# @param [String] sort_field
|
||||
# Field by which to sort the list.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is ASCENDING.
|
||||
# Order of sorted results.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -8891,7 +8891,7 @@ module Google
|
||||
# @param [String] sort_field
|
||||
# Field by which to sort the list.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is ASCENDING.
|
||||
# Order of sorted results.
|
||||
# @param [Fixnum] subaccount_id
|
||||
# Select only user roles that belong to this subaccount.
|
||||
# @param [String] fields
|
||||
|
||||
@@ -25,7 +25,7 @@ module Google
|
||||
# @see https://developers.google.com/doubleclick-advertisers/
|
||||
module DfareportingV2_7
|
||||
VERSION = 'V2_7'
|
||||
REVISION = '20161027'
|
||||
REVISION = '20170428'
|
||||
|
||||
# Manage DoubleClick Digital Marketing conversions
|
||||
AUTH_DDMCONVERSIONS = 'https://www.googleapis.com/auth/ddmconversions'
|
||||
|
||||
@@ -113,6 +113,7 @@ module Google
|
||||
# - "46" for AED
|
||||
# - "47" for BGN
|
||||
# - "48" for HRK
|
||||
# - "49" for MXN
|
||||
# Corresponds to the JSON property `currencyId`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :currency_id
|
||||
@@ -160,7 +161,8 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :locale
|
||||
|
||||
# Maximum image size allowed for this account.
|
||||
# Maximum image size allowed for this account, in kilobytes. Value must be
|
||||
# greater than or equal to 1.
|
||||
# Corresponds to the JSON property `maximumImageSize`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :maximum_image_size
|
||||
@@ -189,8 +191,8 @@ module Google
|
||||
attr_accessor :share_reports_with_twitter
|
||||
alias_method :share_reports_with_twitter?, :share_reports_with_twitter
|
||||
|
||||
# File size limit in kilobytes of Rich Media teaser creatives. Must be between 1
|
||||
# and 10240.
|
||||
# File size limit in kilobytes of Rich Media teaser creatives. Acceptable values
|
||||
# are 1 to 10240, inclusive.
|
||||
# Corresponds to the JSON property `teaserSizeLimit`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :teaser_size_limit
|
||||
@@ -1247,9 +1249,9 @@ module Google
|
||||
class AudienceSegment
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Weight allocated to this segment. Must be between 1 and 1000. The weight
|
||||
# assigned will be understood in proportion to the weights assigned to other
|
||||
# segments in the same segment group.
|
||||
# Weight allocated to this segment. The weight assigned will be understood in
|
||||
# proportion to the weights assigned to other segments in the same segment group.
|
||||
# Acceptable values are 1 to 1000, inclusive.
|
||||
# Corresponds to the JSON property `allocation`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :allocation
|
||||
@@ -2493,8 +2495,8 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# The status of each conversion's insertion status. The status is returned in
|
||||
# the same order that conversions are inserted.
|
||||
# The insert status of each conversion. Statuses are returned in the same order
|
||||
# that conversions are inserted.
|
||||
# Corresponds to the JSON property `status`
|
||||
# @return [Array<Google::Apis::DfareportingV2_7::ConversionStatus>]
|
||||
attr_accessor :status
|
||||
@@ -3173,7 +3175,8 @@ module Google
|
||||
attr_accessor :companion_creative_ids
|
||||
|
||||
# Custom start time in seconds for making the asset visible. Applicable to the
|
||||
# following creative types: all RICH_MEDIA.
|
||||
# following creative types: all RICH_MEDIA. Value must be greater than or equal
|
||||
# to 0.
|
||||
# Corresponds to the JSON property `customStartTimeValue`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :custom_start_time_value
|
||||
@@ -3194,7 +3197,8 @@ module Google
|
||||
attr_accessor :display_type
|
||||
|
||||
# Duration in seconds for which an asset will be displayed. Applicable to the
|
||||
# following creative types: INSTREAM_VIDEO and VPAID_LINEAR_VIDEO.
|
||||
# following creative types: INSTREAM_VIDEO and VPAID_LINEAR_VIDEO. Value must be
|
||||
# greater than or equal to 1.
|
||||
# Corresponds to the JSON property `duration`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :duration
|
||||
@@ -3308,11 +3312,11 @@ module Google
|
||||
attr_accessor :pushdown
|
||||
alias_method :pushdown?, :pushdown
|
||||
|
||||
# Pushdown duration in seconds for an asset. Must be between 0 and 9.99.
|
||||
# Applicable to the following creative types: all RICH_MEDIA.Additionally, only
|
||||
# applicable when the asset pushdown field is true, the offsets are 0, the
|
||||
# collapsedSize.width matches size.width, and the collapsedSize.height is less
|
||||
# than size.height.
|
||||
# Pushdown duration in seconds for an asset. Applicable to the following
|
||||
# creative types: all RICH_MEDIA.Additionally, only applicable when the asset
|
||||
# pushdown field is true, the offsets are 0, the collapsedSize.width matches
|
||||
# size.width, and the collapsedSize.height is less than size.height. Acceptable
|
||||
# values are 0 to 9.99, inclusive.
|
||||
# Corresponds to the JSON property `pushdownDuration`
|
||||
# @return [Float]
|
||||
attr_accessor :pushdown_duration
|
||||
@@ -3394,10 +3398,11 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :window_mode
|
||||
|
||||
# zIndex value of an asset. This is a read-only field. Applicable to the
|
||||
# following creative types: all RICH_MEDIA.Additionally, only applicable to
|
||||
# assets whose displayType is NOT one of the following types:
|
||||
# ASSET_DISPLAY_TYPE_INPAGE or ASSET_DISPLAY_TYPE_OVERLAY.
|
||||
# zIndex value of an asset. Applicable to the following creative types: all
|
||||
# RICH_MEDIA.Additionally, only applicable to assets whose displayType is NOT
|
||||
# one of the following types: ASSET_DISPLAY_TYPE_INPAGE or
|
||||
# ASSET_DISPLAY_TYPE_OVERLAY. Acceptable values are -999999999 to 999999999,
|
||||
# inclusive.
|
||||
# Corresponds to the JSON property `zIndex`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :z_index
|
||||
@@ -3669,6 +3674,7 @@ module Google
|
||||
|
||||
# Rich media exit overrides for this creative assignment.
|
||||
# Applicable when the creative type is any of the following:
|
||||
# - DISPLAY
|
||||
# - RICH_MEDIA_INPAGE
|
||||
# - RICH_MEDIA_INPAGE_FLOATING
|
||||
# - RICH_MEDIA_IM_EXPAND
|
||||
@@ -3677,7 +3683,6 @@ module Google
|
||||
# - RICH_MEDIA_MOBILE_IN_APP
|
||||
# - RICH_MEDIA_MULTI_FLOATING
|
||||
# - RICH_MEDIA_PEEL_DOWN
|
||||
# - ADVANCED_BANNER
|
||||
# - VPAID_LINEAR
|
||||
# - VPAID_NON_LINEAR
|
||||
# Corresponds to the JSON property `richMediaExitOverrides`
|
||||
@@ -3685,7 +3690,8 @@ module Google
|
||||
attr_accessor :rich_media_exit_overrides
|
||||
|
||||
# Sequence number of the creative assignment, applicable when the rotation type
|
||||
# is CREATIVE_ROTATION_TYPE_SEQUENTIAL.
|
||||
# is CREATIVE_ROTATION_TYPE_SEQUENTIAL. Acceptable values are 1 to 65535,
|
||||
# inclusive.
|
||||
# Corresponds to the JSON property `sequence`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :sequence
|
||||
@@ -3703,7 +3709,7 @@ module Google
|
||||
attr_accessor :start_time
|
||||
|
||||
# Weight of the creative assignment, applicable when the rotation type is
|
||||
# CREATIVE_ROTATION_TYPE_RANDOM.
|
||||
# CREATIVE_ROTATION_TYPE_RANDOM. Value must be greater than or equal to 1.
|
||||
# Corresponds to the JSON property `weight`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :weight
|
||||
@@ -4008,12 +4014,10 @@ module Google
|
||||
# @return [Google::Apis::DfareportingV2_7::DimensionValue]
|
||||
attr_accessor :advertiser_id_dimension_value
|
||||
|
||||
# Subgroup of the creative group. Assign your creative groups to one of the
|
||||
# following subgroups in order to filter or manage them more easily. This field
|
||||
# is required on insertion and is read-only after insertion.
|
||||
# Acceptable values are:
|
||||
# - 1
|
||||
# - 2
|
||||
# Subgroup of the creative group. Assign your creative groups to a subgroup in
|
||||
# order to filter or manage them more easily. This field is required on
|
||||
# insertion and is read-only after insertion. Acceptable values are 1 to 2,
|
||||
# inclusive.
|
||||
# Corresponds to the JSON property `groupNumber`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :group_number
|
||||
@@ -4419,12 +4423,12 @@ module Google
|
||||
# @return [Array<String>]
|
||||
attr_accessor :days_of_week
|
||||
|
||||
# Hours of the day when the ad will serve. Must be an integer between 0 and 23 (
|
||||
# inclusive), where 0 is midnight to 1 AM, and 23 is 11 PM to midnight. Can be
|
||||
# specified with days of week, in which case the ad would serve during these
|
||||
# hours on the specified days. For example, if Monday, Wednesday, Friday are the
|
||||
# days of week specified and 9-10am, 3-5pm (hours 9, 15, and 16) is specified,
|
||||
# the ad would serve Monday, Wednesdays, and Fridays at 9-10am and 3-5pm.
|
||||
# Hours of the day when the ad will serve, where 0 is midnight to 1 AM and 23 is
|
||||
# 11 PM to midnight. Can be specified with days of week, in which case the ad
|
||||
# would serve during these hours on the specified days. For example if Monday,
|
||||
# Wednesday, Friday are the days of week specified and 9-10am, 3-5pm (hours 9,
|
||||
# 15, and 16) is specified, the ad would serve Monday, Wednesdays, and Fridays
|
||||
# at 9-10am and 3-5pm. Acceptable values are 0 to 23, inclusive.
|
||||
# Corresponds to the JSON property `hoursOfDay`
|
||||
# @return [Array<Fixnum>]
|
||||
attr_accessor :hours_of_day
|
||||
@@ -4497,7 +4501,7 @@ module Google
|
||||
# Impression ratio for this ad. This ratio determines how often each ad is
|
||||
# served relative to the others. For example, if ad A has an impression ratio of
|
||||
# 1 and ad B has an impression ratio of 3, then DCM will serve ad B three times
|
||||
# as often as ad A. Must be between 1 and 10.
|
||||
# as often as ad A. Acceptable values are 1 to 10, inclusive.
|
||||
# Corresponds to the JSON property `impressionRatio`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :impression_ratio
|
||||
@@ -4778,12 +4782,12 @@ module Google
|
||||
# @return [Array<Google::Apis::DfareportingV2_7::DirectorySiteContactAssignment>]
|
||||
attr_accessor :contact_assignments
|
||||
|
||||
# Country ID of this directory site.
|
||||
# Country ID of this directory site. This is a read-only field.
|
||||
# Corresponds to the JSON property `countryId`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :country_id
|
||||
|
||||
# Currency ID of this directory site.
|
||||
# Currency ID of this directory site. This is a read-only field.
|
||||
# Possible values are:
|
||||
# - "1" for USD
|
||||
# - "2" for GBP
|
||||
@@ -4832,11 +4836,12 @@ module Google
|
||||
# - "46" for AED
|
||||
# - "47" for BGN
|
||||
# - "48" for HRK
|
||||
# - "49" for MXN
|
||||
# Corresponds to the JSON property `currencyId`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :currency_id
|
||||
|
||||
# Description of this directory site.
|
||||
# Description of this directory site. This is a read-only field.
|
||||
# Corresponds to the JSON property `description`
|
||||
# @return [String]
|
||||
attr_accessor :description
|
||||
@@ -5709,7 +5714,9 @@ module Google
|
||||
# @return [Google::Apis::DfareportingV2_7::DimensionValue]
|
||||
attr_accessor :advertiser_id_dimension_value
|
||||
|
||||
# Code type used for cache busting in the generated tag.
|
||||
# Code type used for cache busting in the generated tag. Applicable only when
|
||||
# floodlightActivityGroupType is COUNTER and countingMethod is STANDARD_COUNTING
|
||||
# or UNIQUE_COUNTING.
|
||||
# Corresponds to the JSON property `cacheBustingType`
|
||||
# @return [String]
|
||||
attr_accessor :cache_busting_type
|
||||
@@ -6336,13 +6343,13 @@ module Google
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Duration of time, in seconds, for this frequency cap. The maximum duration is
|
||||
# 90 days in seconds, or 7,776,000.
|
||||
# 90 days. Acceptable values are 1 to 7776000, inclusive.
|
||||
# Corresponds to the JSON property `duration`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :duration
|
||||
|
||||
# Number of times an individual user can be served the ad within the specified
|
||||
# duration. The maximum allowed is 15.
|
||||
# duration. Acceptable values are 1 to 15, inclusive.
|
||||
# Corresponds to the JSON property `impressions`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :impressions
|
||||
@@ -7000,7 +7007,7 @@ module Google
|
||||
# Lookback window, in days, from the last time a given user clicked on one of
|
||||
# your ads. If you enter 0, clicks will not be considered as triggering events
|
||||
# for floodlight tracking. If you leave this field blank, the default value for
|
||||
# your account will be used.
|
||||
# your account will be used. Acceptable values are 0 to 90, inclusive.
|
||||
# Corresponds to the JSON property `clickDuration`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :click_duration
|
||||
@@ -7008,7 +7015,7 @@ module Google
|
||||
# Lookback window, in days, from the last time a given user viewed one of your
|
||||
# ads. If you enter 0, impressions will not be considered as triggering events
|
||||
# for floodlight tracking. If you leave this field blank, the default value for
|
||||
# your account will be used.
|
||||
# your account will be used. Acceptable values are 0 to 90, inclusive.
|
||||
# Corresponds to the JSON property `postImpressionActivitiesDuration`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :post_impression_activities_duration
|
||||
@@ -7454,9 +7461,9 @@ module Google
|
||||
# @return [Google::Apis::DfareportingV2_7::DimensionValue]
|
||||
attr_accessor :floodlight_activity_id_dimension_value
|
||||
|
||||
# Weight associated with this optimization. Must be greater than 1. The weight
|
||||
# assigned will be understood in proportion to the weights assigned to the other
|
||||
# optimization activities.
|
||||
# Weight associated with this optimization. The weight assigned will be
|
||||
# understood in proportion to the weights assigned to the other optimization
|
||||
# activities. Value must be greater than or equal to 1.
|
||||
# Corresponds to the JSON property `weight`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :weight
|
||||
@@ -8094,6 +8101,8 @@ module Google
|
||||
# - "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT"
|
||||
# - "PLACEMENT_TAG_CLICK_COMMANDS"
|
||||
# - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH"
|
||||
# - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_3"
|
||||
# - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_4"
|
||||
# - "PLACEMENT_TAG_TRACKING"
|
||||
# - "PLACEMENT_TAG_TRACKING_IFRAME"
|
||||
# - "PLACEMENT_TAG_TRACKING_JAVASCRIPT"
|
||||
@@ -8951,7 +8960,8 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :pricing_comment
|
||||
|
||||
# Rate or cost of this pricing period.
|
||||
# Rate or cost of this pricing period in nanos (i.e., multipled by 1000000000).
|
||||
# Acceptable values are 0 to 1000000000000000000, inclusive.
|
||||
# Corresponds to the JSON property `rateOrCostNanos`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :rate_or_cost_nanos
|
||||
@@ -8963,7 +8973,8 @@ module Google
|
||||
# @return [Date]
|
||||
attr_accessor :start_date
|
||||
|
||||
# Units of this pricing period.
|
||||
# Units of this pricing period. Acceptable values are 0 to 10000000000,
|
||||
# inclusive.
|
||||
# Corresponds to the JSON property `units`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :units
|
||||
@@ -9375,7 +9386,7 @@ module Google
|
||||
attr_accessor :kind
|
||||
|
||||
# Number of days that a user should remain in the remarketing list without an
|
||||
# impression.
|
||||
# impression. Acceptable values are 1 to 540, inclusive.
|
||||
# Corresponds to the JSON property `lifeSpan`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :life_span
|
||||
@@ -10621,7 +10632,7 @@ module Google
|
||||
class Size
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Height of this size.
|
||||
# Height of this size. Acceptable values are 0 to 32767, inclusive.
|
||||
# Corresponds to the JSON property `height`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :height
|
||||
@@ -10643,7 +10654,7 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# Width of this size.
|
||||
# Width of this size. Acceptable values are 0 to 32767, inclusive.
|
||||
# Corresponds to the JSON property `width`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :width
|
||||
@@ -10840,7 +10851,8 @@ module Google
|
||||
class TagData
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Ad associated with this placement tag.
|
||||
# Ad associated with this placement tag. Applicable only when format is
|
||||
# PLACEMENT_TAG_TRACKING.
|
||||
# Corresponds to the JSON property `adId`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :ad_id
|
||||
@@ -10850,7 +10862,8 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :click_tag
|
||||
|
||||
# Creative associated with this placement tag.
|
||||
# Creative associated with this placement tag. Applicable only when format is
|
||||
# PLACEMENT_TAG_TRACKING.
|
||||
# Corresponds to the JSON property `creativeId`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :creative_id
|
||||
@@ -11813,12 +11826,13 @@ module Google
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Duration, as a percentage of video duration. Do not set when offsetSeconds is
|
||||
# set.
|
||||
# set. Acceptable values are 0 to 100, inclusive.
|
||||
# Corresponds to the JSON property `offsetPercentage`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :offset_percentage
|
||||
|
||||
# Duration, in seconds. Do not set when offsetPercentage is set.
|
||||
# Duration, in seconds. Do not set when offsetPercentage is set. Acceptable
|
||||
# values are 0 to 86399, inclusive.
|
||||
# Corresponds to the JSON property `offsetSeconds`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :offset_seconds
|
||||
|
||||
@@ -336,7 +336,7 @@ module Google
|
||||
# @param [String] sort_field
|
||||
# Field by which to sort the list.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is ASCENDING.
|
||||
# Order of sorted results.
|
||||
# @param [Fixnum] subaccount_id
|
||||
# Select only user profiles with the specified subaccount ID.
|
||||
# @param [Fixnum] user_role_id
|
||||
@@ -521,7 +521,7 @@ module Google
|
||||
# @param [String] sort_field
|
||||
# Field by which to sort the list.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is ASCENDING.
|
||||
# Order of sorted results.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -770,7 +770,7 @@ module Google
|
||||
# @param [String] sort_field
|
||||
# Field by which to sort the list.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is ASCENDING.
|
||||
# Order of sorted results.
|
||||
# @param [Boolean] ssl_compliant
|
||||
# Select only ads that are SSL-compliant.
|
||||
# @param [Boolean] ssl_required
|
||||
@@ -1044,7 +1044,7 @@ module Google
|
||||
# @param [String] sort_field
|
||||
# Field by which to sort the list.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is ASCENDING.
|
||||
# Order of sorted results.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -1267,7 +1267,7 @@ module Google
|
||||
# @param [String] sort_field
|
||||
# Field by which to sort the list.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is ASCENDING.
|
||||
# Order of sorted results.
|
||||
# @param [String] status
|
||||
# Select only advertisers with the specified status.
|
||||
# @param [Fixnum] subaccount_id
|
||||
@@ -1484,7 +1484,7 @@ module Google
|
||||
# @param [String] page_token
|
||||
# Value of the nextPageToken from the previous result page.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is ASCENDING.
|
||||
# Order of sorted results.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -1636,7 +1636,7 @@ module Google
|
||||
# @param [String] sort_field
|
||||
# Field by which to sort the list.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is ASCENDING.
|
||||
# Order of sorted results.
|
||||
# @param [Fixnum] subaccount_id
|
||||
# Select only campaigns that belong to this subaccount.
|
||||
# @param [String] fields
|
||||
@@ -2130,7 +2130,7 @@ module Google
|
||||
# @param [String] sort_field
|
||||
# Field by which to sort the list.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is ASCENDING.
|
||||
# Order of sorted results.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -2549,7 +2549,7 @@ module Google
|
||||
# @param [String] sort_field
|
||||
# Field by which to sort the list.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is ASCENDING.
|
||||
# Order of sorted results.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -2809,7 +2809,7 @@ module Google
|
||||
# @param [String] sort_field
|
||||
# Field by which to sort the list.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is ASCENDING.
|
||||
# Order of sorted results.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -3029,7 +3029,7 @@ module Google
|
||||
# @param [String] sort_field
|
||||
# Field by which to sort the list.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is ASCENDING.
|
||||
# Order of sorted results.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -3262,7 +3262,7 @@ module Google
|
||||
# @param [String] sort_field
|
||||
# Field by which to sort the list.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is ASCENDING.
|
||||
# Order of sorted results.
|
||||
# @param [Fixnum] studio_creative_id
|
||||
# Select only creatives corresponding to this Studio creative ID.
|
||||
# @param [Array<String>, String] types
|
||||
@@ -3501,7 +3501,7 @@ module Google
|
||||
# @param [String] sort_field
|
||||
# Field by which to sort the list.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is ASCENDING.
|
||||
# Order of sorted results.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -3656,7 +3656,7 @@ module Google
|
||||
# @param [String] sort_field
|
||||
# Field by which to sort the list.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is ASCENDING.
|
||||
# Order of sorted results.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -3986,7 +3986,7 @@ module Google
|
||||
# @param [String] sort_field
|
||||
# Field by which to sort the list.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is ASCENDING.
|
||||
# Order of sorted results.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -4108,7 +4108,8 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Retrieves a report file by its report ID and file ID.
|
||||
# Retrieves a report file by its report ID and file ID. This method supports
|
||||
# media download.
|
||||
# @param [Fixnum] report_id
|
||||
# The ID of the report.
|
||||
# @param [Fixnum] file_id
|
||||
@@ -4161,11 +4162,11 @@ module Google
|
||||
# @param [String] page_token
|
||||
# The value of the nextToken from the previous result page.
|
||||
# @param [String] scope
|
||||
# The scope that defines which results are returned, default is 'MINE'.
|
||||
# The scope that defines which results are returned.
|
||||
# @param [String] sort_field
|
||||
# The field by which to sort the list.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is 'DESCENDING'.
|
||||
# Order of sorted results.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -4395,7 +4396,7 @@ module Google
|
||||
# @param [String] sort_field
|
||||
# Field by which to sort the list.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is ASCENDING.
|
||||
# Order of sorted results.
|
||||
# @param [String] tag_string
|
||||
# Select only floodlight activities with the specified tag string.
|
||||
# @param [String] fields
|
||||
@@ -4629,7 +4630,7 @@ module Google
|
||||
# @param [String] sort_field
|
||||
# Field by which to sort the list.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is ASCENDING.
|
||||
# Order of sorted results.
|
||||
# @param [String] type
|
||||
# Select only floodlight activity groups with the specified floodlight activity
|
||||
# group type.
|
||||
@@ -4973,7 +4974,7 @@ module Google
|
||||
# @param [String] sort_field
|
||||
# Field by which to sort the list.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is ASCENDING.
|
||||
# Order of sorted results.
|
||||
# @param [String] type
|
||||
# Select only inventory items with this type.
|
||||
# @param [String] fields
|
||||
@@ -5622,7 +5623,7 @@ module Google
|
||||
# @param [String] sort_field
|
||||
# Field by which to sort the list.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is ASCENDING.
|
||||
# Order of sorted results.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -5729,7 +5730,7 @@ module Google
|
||||
# @param [String] sort_field
|
||||
# Field by which to sort the list.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is ASCENDING.
|
||||
# Order of sorted results.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -5904,7 +5905,7 @@ module Google
|
||||
# @param [String] sort_field
|
||||
# Field by which to sort the list.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is ASCENDING.
|
||||
# Order of sorted results.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -6168,7 +6169,7 @@ module Google
|
||||
# @param [String] sort_field
|
||||
# Field by which to sort the list.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is ASCENDING.
|
||||
# Order of sorted results.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -6466,7 +6467,7 @@ module Google
|
||||
# @param [String] sort_field
|
||||
# Field by which to sort the list.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is ASCENDING.
|
||||
# Order of sorted results.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -6805,7 +6806,7 @@ module Google
|
||||
# @param [String] sort_field
|
||||
# Field by which to sort the list.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is ASCENDING.
|
||||
# Order of sorted results.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -7099,7 +7100,7 @@ module Google
|
||||
# @param [String] sort_field
|
||||
# Field by which to sort the list.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is ASCENDING.
|
||||
# Order of sorted results.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -7339,11 +7340,11 @@ module Google
|
||||
# @param [String] page_token
|
||||
# The value of the nextToken from the previous result page.
|
||||
# @param [String] scope
|
||||
# The scope that defines which results are returned, default is 'MINE'.
|
||||
# The scope that defines which results are returned.
|
||||
# @param [String] sort_field
|
||||
# The field by which to sort the list.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is 'DESCENDING'.
|
||||
# Order of sorted results.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -7544,7 +7545,7 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Retrieves a report file.
|
||||
# Retrieves a report file. This method supports media download.
|
||||
# @param [Fixnum] profile_id
|
||||
# The DFA profile ID.
|
||||
# @param [Fixnum] report_id
|
||||
@@ -7604,7 +7605,7 @@ module Google
|
||||
# @param [String] sort_field
|
||||
# The field by which to sort the list.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is 'DESCENDING'.
|
||||
# Order of sorted results.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -7753,7 +7754,7 @@ module Google
|
||||
# @param [String] sort_field
|
||||
# Field by which to sort the list.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is ASCENDING.
|
||||
# Order of sorted results.
|
||||
# @param [Fixnum] subaccount_id
|
||||
# Select only sites with this subaccount ID.
|
||||
# @param [Boolean] unmapped_site
|
||||
@@ -8102,7 +8103,7 @@ module Google
|
||||
# @param [String] sort_field
|
||||
# Field by which to sort the list.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is ASCENDING.
|
||||
# Order of sorted results.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -8281,7 +8282,7 @@ module Google
|
||||
# @param [String] sort_field
|
||||
# Field by which to sort the list.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is ASCENDING.
|
||||
# Order of sorted results.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -8419,7 +8420,7 @@ module Google
|
||||
# @param [String] sort_field
|
||||
# Field by which to sort the list.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is ASCENDING.
|
||||
# Order of sorted results.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -8888,7 +8889,7 @@ module Google
|
||||
# @param [String] sort_field
|
||||
# Field by which to sort the list.
|
||||
# @param [String] sort_order
|
||||
# Order of sorted results, default is ASCENDING.
|
||||
# Order of sorted results.
|
||||
# @param [Fixnum] subaccount_id
|
||||
# Select only user roles that belong to this subaccount.
|
||||
# @param [String] fields
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
# 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/dfareporting_v2_8/service.rb'
|
||||
require 'google/apis/dfareporting_v2_8/classes.rb'
|
||||
require 'google/apis/dfareporting_v2_8/representations.rb'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
# DCM/DFA Reporting And Trafficking API
|
||||
#
|
||||
# Manages your DoubleClick Campaign Manager ad campaigns and reports.
|
||||
#
|
||||
# @see https://developers.google.com/doubleclick-advertisers/
|
||||
module DfareportingV2_8
|
||||
VERSION = 'V2_8'
|
||||
REVISION = '20170428'
|
||||
|
||||
# Manage DoubleClick Digital Marketing conversions
|
||||
AUTH_DDMCONVERSIONS = 'https://www.googleapis.com/auth/ddmconversions'
|
||||
|
||||
# View and manage DoubleClick for Advertisers reports
|
||||
AUTH_DFAREPORTING = 'https://www.googleapis.com/auth/dfareporting'
|
||||
|
||||
# View and manage your DoubleClick Campaign Manager's (DCM) display ad campaigns
|
||||
AUTH_DFATRAFFICKING = 'https://www.googleapis.com/auth/dfatrafficking'
|
||||
end
|
||||
end
|
||||
end
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -25,7 +25,7 @@ module Google
|
||||
# @see https://developers.google.com/cloud-dns
|
||||
module DnsV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20170322'
|
||||
REVISION = '20170427'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
@@ -25,7 +25,7 @@ module Google
|
||||
# @see https://developers.google.com/cloud-dns
|
||||
module DnsV2beta1
|
||||
VERSION = 'V2beta1'
|
||||
REVISION = '20170322'
|
||||
REVISION = '20170427'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
@@ -26,7 +26,7 @@ module Google
|
||||
# @see https://developers.google.com/doubleclick-search/
|
||||
module DoubleclicksearchV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20170320'
|
||||
REVISION = '20170426'
|
||||
|
||||
# View and manage your advertising data in DoubleClick Search
|
||||
AUTH_DOUBLECLICKSEARCH = 'https://www.googleapis.com/auth/doubleclicksearch'
|
||||
|
||||
Loaded 100 of 252 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user