This commit is contained in:
Steve Bazyl 2017-01-24 12:49:16 -08:00
commit 272482e86c
164 changed files with 89841 additions and 49615 deletions

View File

@ -2,19 +2,23 @@ language: ruby
rvm:
- 2.3.0
- 2.2
- 2.0.0
- 2.1
- 2.0.0
- jruby-9000
env:
- RAILS_VERSION="~>3.2"
- RAILS_VERSION="~>4.0.0"
- RAILS_VERSION="~>4.1.0"
- RAILS_VERSION="~>4.2.0"
matrix:
exclude:
- rvm: 2.0.0
env: RAILS_VERSION="~>4.2.0"
script: "bundle exec rake spec:all"
before_install:
- sudo apt-get update
- sudo apt-get install idn
- gem update bundler
- sudo apt-get update
- sudo apt-get install idn
- gem update bundler
notifications:
email:
recipients:

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/ad-exchange/buyer-rest/guides/client-access/
module Adexchangebuyer2V2beta1
VERSION = 'V2beta1'
REVISION = '20161107'
REVISION = '20170118'
# Manage your Ad Exchange buyer account configuration
AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/ad-exchange/buyer-rest
module AdexchangebuyerV1_4
VERSION = 'V1_4'
REVISION = '20161020'
REVISION = '20170118'
# Manage your Ad Exchange buyer account configuration
AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'

View File

@ -91,15 +91,15 @@ module Google
class BidderLocation
include Google::Apis::Core::Hashable
# The protocol that the bidder endpoint is using. By default, OpenRTB protocols
# use JSON, except PROTOCOL_OPENRTB_PROTOBUF. PROTOCOL_OPENRTB_PROTOBUF uses
# protobuf encoding over the latest OpenRTB protocol version, which is 2.4 right
# now. Allowed values:
# The protocol that the bidder endpoint is using. OpenRTB protocols with prefix
# PROTOCOL_OPENRTB_PROTOBUF use proto buffer, otherwise use JSON. Allowed
# values:
# - PROTOCOL_ADX
# - PROTOCOL_OPENRTB_2_2
# - PROTOCOL_OPENRTB_2_3
# - PROTOCOL_OPENRTB_2_4
# - PROTOCOL_OPENRTB_PROTOBUF
# - PROTOCOL_OPENRTB_PROTOBUF_2_3
# - PROTOCOL_OPENRTB_PROTOBUF_2_4
# Corresponds to the JSON property `bidProtocol`
# @return [String]
attr_accessor :bid_protocol
@ -1901,7 +1901,7 @@ module Google
# @return [String]
attr_accessor :flight_start_time_ms
# Description for the deal terms. (updatable)
# Description for the deal terms. (buyer-readonly)
# Corresponds to the JSON property `inventoryDescription`
# @return [String]
attr_accessor :inventory_description
@ -2398,6 +2398,14 @@ module Google
# @return [Array<String>]
attr_accessor :languages
# Requests where the predicted viewability is below the specified decile will
# not match. E.g. if the buyer sets this value to 5, requests from slots where
# the predicted viewability is below 50% will not match. If the predicted
# viewability is unknown this field will be ignored.
# Corresponds to the JSON property `minimumViewabilityDecile`
# @return [Fixnum]
attr_accessor :minimum_viewability_decile
# Requests containing any of these mobile carrier ids will match. Values are
# from mobile-carriers.csv in the downloadable files section.
# Corresponds to the JSON property `mobileCarriers`
@ -2484,6 +2492,7 @@ module Google
@is_active = args[:is_active] if args.key?(:is_active)
@kind = args[:kind] if args.key?(:kind)
@languages = args[:languages] if args.key?(:languages)
@minimum_viewability_decile = args[:minimum_viewability_decile] if args.key?(:minimum_viewability_decile)
@mobile_carriers = args[:mobile_carriers] if args.key?(:mobile_carriers)
@mobile_devices = args[:mobile_devices] if args.key?(:mobile_devices)
@mobile_operating_system_versions = args[:mobile_operating_system_versions] if args.key?(:mobile_operating_system_versions)
@ -2809,6 +2818,14 @@ module Google
# @return [String]
attr_accessor :legacy_offer_id
# Marketplace publisher profile Id. This Id differs from the regular
# publisher_profile_id in that 1. This is a new id, the old Id will be
# deprecated in 2017. 2. This id uniquely identifies a publisher profile by
# itself.
# Corresponds to the JSON property `marketplacePublisherProfileId`
# @return [String]
attr_accessor :marketplace_publisher_profile_id
# The name for this product as set by the seller. (buyer-readonly)
# Corresponds to the JSON property `name`
# @return [String]
@ -2893,6 +2910,7 @@ module Google
@labels = args[:labels] if args.key?(:labels)
@last_update_time_ms = args[:last_update_time_ms] if args.key?(:last_update_time_ms)
@legacy_offer_id = args[:legacy_offer_id] if args.key?(:legacy_offer_id)
@marketplace_publisher_profile_id = args[:marketplace_publisher_profile_id] if args.key?(:marketplace_publisher_profile_id)
@name = args[:name] if args.key?(:name)
@private_auction_id = args[:private_auction_id] if args.key?(:private_auction_id)
@product_id = args[:product_id] if args.key?(:product_id)

View File

@ -1133,6 +1133,7 @@ module Google
property :is_active, as: 'isActive'
property :kind, as: 'kind'
collection :languages, as: 'languages'
property :minimum_viewability_decile, as: 'minimumViewabilityDecile'
collection :mobile_carriers, as: 'mobileCarriers'
collection :mobile_devices, as: 'mobileDevices'
collection :mobile_operating_system_versions, as: 'mobileOperatingSystemVersions'
@ -1237,6 +1238,7 @@ module Google
property :last_update_time_ms, as: 'lastUpdateTimeMs'
property :legacy_offer_id, as: 'legacyOfferId'
property :marketplace_publisher_profile_id, as: 'marketplacePublisherProfileId'
property :name, as: 'name'
property :private_auction_id, as: 'privateAuctionId'
property :product_id, as: 'productId'

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/admin-sdk/directory/
module AdminDirectoryV1
VERSION = 'DirectoryV1'
REVISION = '20161020'
REVISION = '20161214'
# View and manage customer related information
AUTH_ADMIN_DIRECTORY_CUSTOMER = 'https://www.googleapis.com/auth/admin.directory.customer'

View File

@ -2400,6 +2400,18 @@ module Google
attr_accessor :is_delegated_admin
alias_method :is_delegated_admin?, :is_delegated_admin
# Is 2-step verification enforced (Read-only)
# Corresponds to the JSON property `isEnforcedIn2Sv`
# @return [Boolean]
attr_accessor :is_enforced_in2_sv
alias_method :is_enforced_in2_sv?, :is_enforced_in2_sv
# Is enrolled in 2-step verification (Read-only)
# Corresponds to the JSON property `isEnrolledIn2Sv`
# @return [Boolean]
attr_accessor :is_enrolled_in2_sv
alias_method :is_enrolled_in2_sv?, :is_enrolled_in2_sv
# Is mailbox setup (Read-only)
# Corresponds to the JSON property `isMailboxSetup`
# @return [Boolean]
@ -2511,6 +2523,8 @@ module Google
@ip_whitelisted = args[:ip_whitelisted] if args.key?(:ip_whitelisted)
@is_admin = args[:is_admin] if args.key?(:is_admin)
@is_delegated_admin = args[:is_delegated_admin] if args.key?(:is_delegated_admin)
@is_enforced_in2_sv = args[:is_enforced_in2_sv] if args.key?(:is_enforced_in2_sv)
@is_enrolled_in2_sv = args[:is_enrolled_in2_sv] if args.key?(:is_enrolled_in2_sv)
@is_mailbox_setup = args[:is_mailbox_setup] if args.key?(:is_mailbox_setup)
@kind = args[:kind] if args.key?(:kind)
@last_login_time = args[:last_login_time] if args.key?(:last_login_time)

View File

@ -971,6 +971,8 @@ module Google
property :ip_whitelisted, as: 'ipWhitelisted'
property :is_admin, as: 'isAdmin'
property :is_delegated_admin, as: 'isDelegatedAdmin'
property :is_enforced_in2_sv, as: 'isEnforcedIn2Sv'
property :is_enrolled_in2_sv, as: 'isEnrolledIn2Sv'
property :is_mailbox_setup, as: 'isMailboxSetup'
property :kind, as: 'kind'
property :last_login_time, as: 'lastLoginTime', type: DateTime

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/adsense/management/
module AdsenseV1_4
VERSION = 'V1_4'
REVISION = '20161107'
REVISION = '20170118'
# View and manage your AdSense data
AUTH_ADSENSE = 'https://www.googleapis.com/auth/adsense'

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/adsense/host/
module AdsensehostV4_1
VERSION = 'V4_1'
REVISION = '20161107'
REVISION = '20170118'
# View and manage your AdSense host data and associated accounts
AUTH_ADSENSEHOST = 'https://www.googleapis.com/auth/adsensehost'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/analytics/devguides/reporting/core/v4/
module AnalyticsreportingV4
VERSION = 'V4'
REVISION = '20161011'
REVISION = '20161129'
# View your Google Analytics data
AUTH_ANALYTICS_READONLY = 'https://www.googleapis.com/auth/analytics.readonly'

View File

@ -664,6 +664,12 @@ module Google
# @return [Array<Google::Apis::AnalyticsreportingV4::ReportRow>]
attr_accessor :rows
# The last time the data in the report was refreshed. All the hits received
# before this timestamp are included in the calculation of the report.
# Corresponds to the JSON property `dataLastRefreshed`
# @return [String]
attr_accessor :data_last_refreshed
# For each requested date range, for the set of all rows that match
# the query, every requested value format gets a total. The total
# for a value format is computed by first totaling the metrics
@ -696,6 +702,7 @@ module Google
@samples_read_counts = args[:samples_read_counts] if args.key?(:samples_read_counts)
@minimums = args[:minimums] if args.key?(:minimums)
@rows = args[:rows] if args.key?(:rows)
@data_last_refreshed = args[:data_last_refreshed] if args.key?(:data_last_refreshed)
@totals = args[:totals] if args.key?(:totals)
@is_data_golden = args[:is_data_golden] if args.key?(:is_data_golden)
end

View File

@ -396,6 +396,7 @@ module Google
collection :rows, as: 'rows', class: Google::Apis::AnalyticsreportingV4::ReportRow, decorator: Google::Apis::AnalyticsreportingV4::ReportRow::Representation
property :data_last_refreshed, as: 'dataLastRefreshed'
collection :totals, as: 'totals', class: Google::Apis::AnalyticsreportingV4::DateRangeValues, decorator: Google::Apis::AnalyticsreportingV4::DateRangeValues::Representation
property :is_data_golden, as: 'isDataGolden'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/android/work/play/emm-api
module AndroidenterpriseV1
VERSION = 'V1'
REVISION = '20161102'
REVISION = '20170111'
# Manage corporate Android devices
AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise'

View File

@ -22,12 +22,12 @@ module Google
module Apis
module AndroidenterpriseV1
# This represents an enterprise administrator who can manage the enterprise in
# the Google Play for Work Store.
# This represents an enterprise admin who can manage the enterprise in the
# managed Google Play store.
class Administrator
include Google::Apis::Core::Hashable
# The administrator's email address.
# The admin's email address.
# Corresponds to the JSON property `email`
# @return [String]
attr_accessor :email
@ -42,7 +42,7 @@ module Google
end
end
# A token authorizing an administrator to access an iframe.
# A token authorizing an admin to access an iframe.
class AdministratorWebToken
include Google::Apis::Core::Hashable
@ -300,7 +300,7 @@ module Google
# @return [Fixnum]
attr_accessor :version_code
# The string used in the Play Store by the app developer to identify the version.
# The string used in the Play store by the app developer to identify the version.
# The string is not necessarily unique or localized (for example, the string
# could be "1.4").
# Corresponds to the JSON property `versionString`
@ -374,120 +374,6 @@ module Google
end
end
# A collection resource defines a named set of apps that is visible to a set of
# users in the Google Play Store app running on those users' managed devices.
# Those users can then install any of those apps if they wish (which will
# trigger creation of install and entitlement resources). A user cannot install
# an app on a managed device unless the app is listed in at least one collection
# that is visible to that user.
# Note that the API can be used to directly install an app regardless of whether
# it is in any collection - so an enterprise has a choice of either directly
# pushing apps to users, or allowing users to install apps if they want. Which
# is appropriate will depend on the enterprise's policies and the purpose of the
# apps concerned.
class Collection
include Google::Apis::Core::Hashable
# Arbitrary unique ID, allocated by the API on creation.
# Corresponds to the JSON property `collectionId`
# @return [String]
attr_accessor :collection_id
# Identifies what kind of resource this is. Value: the fixed string "
# androidenterprise#collection".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# A user-friendly name for the collection (should be unique), e.g. "Accounting
# apps".
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The IDs of the products in the collection, in the order in which they should
# be displayed.
# Corresponds to the JSON property `productId`
# @return [Array<String>]
attr_accessor :product_id
# Whether this collection is visible to all users, or only to the users that
# have been granted access through the "Collectionviewers" API. With the launch
# of the "setAvailableProductSet" API, this property should always be set to "
# viewersOnly", as the "allUsers" option will bypass the "availableProductSet"
# for all users within a domain.
# The "allUsers" setting is deprecated, and will be removed.
# Corresponds to the JSON property `visibility`
# @return [String]
attr_accessor :visibility
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@collection_id = args[:collection_id] if args.key?(:collection_id)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
@product_id = args[:product_id] if args.key?(:product_id)
@visibility = args[:visibility] if args.key?(:visibility)
end
end
# The user resources for the collection.
class ListCollectionViewersResponse
include Google::Apis::Core::Hashable
# Identifies what kind of resource this is. Value: the fixed string "
# androidenterprise#collectionViewersListResponse".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# A user of an enterprise.
# Corresponds to the JSON property `user`
# @return [Array<Google::Apis::AndroidenterpriseV1::User>]
attr_accessor :user
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@kind = args[:kind] if args.key?(:kind)
@user = args[:user] if args.key?(:user)
end
end
# The collection resources for the enterprise.
class ListCollectionsResponse
include Google::Apis::Core::Hashable
# An ordered collection of products which can be made visible on the Google Play
# Store to a selected group of users.
# Corresponds to the JSON property `collection`
# @return [Array<Google::Apis::AndroidenterpriseV1::Collection>]
attr_accessor :collection
# Identifies what kind of resource this is. Value: the fixed string "
# androidenterprise#collectionsListResponse".
# 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)
@collection = args[:collection] if args.key?(:collection)
@kind = args[:kind] if args.key?(:kind)
end
end
# A device resource represents a mobile device managed by the EMM and belonging
# to a specific enterprise user.
# This collection cannot be modified via the API; it is automatically populated
@ -507,19 +393,19 @@ module Google
# @return [String]
attr_accessor :kind
# Identifies the extent to which the device is controlled by an Android for Work
# EMM in various deployment configurations.
# Identifies the extent to which the device is controlled by a managed 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,
# - "managedProfile", a device that has a work 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 Android for Work App. The Android for
# Work App is managed by the DPC,
# - "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,
# - "unmanagedProfile", a device that has been allowed (by the domain's admin,
# using the Admin Console to enable the privilege) to use Android for Work apps
# or Google Apps for Work, but the profile is itself not owned by a DPC.
# using the Admin Console to enable the privilege) to use managed Google Play,
# but the profile is itself not owned by a DPC.
# Corresponds to the JSON property `managementType`
# @return [String]
attr_accessor :management_type
@ -599,16 +485,16 @@ module Google
# enroll and Enterprises.setAccount (in conjunction with artifacts obtained from
# the Admin console and the Google API Console) and submitted to the EMM through
# a more-or-less manual process.
# - For Android for Work Accounts customers, the process involves using
# - For managed Google Play Accounts customers, the process involves using
# Enterprises.generateSignupUrl and Enterprises.completeSignup in conjunction
# with the Android for Work Sign-up UI (Google-provided mechanism) to create the
# binding without manual steps. As an EMM, you can support either or both
# with the managed Google Play sign-up UI (Google-provided mechanism) to create
# the binding without manual steps. As an EMM, you can support either or both
# approaches in your EMM console. See Create an Enterprise for details.
class Enterprise
include Google::Apis::Core::Hashable
# Administrators of the enterprise. This is only supported for enterprises
# created via the EMM-initiated flow.
# Admins of the enterprise. This is only supported for enterprises created via
# the EMM-initiated flow.
# Corresponds to the JSON property `administrator`
# @return [Array<Google::Apis::AndroidenterpriseV1::Administrator>]
attr_accessor :administrator
@ -1266,6 +1152,44 @@ module Google
end
end
# An event generated when a new device is ready to be managed.
class NewDeviceEvent
include Google::Apis::Core::Hashable
# The Android ID of the device. This field will always be present.
# Corresponds to the JSON property `deviceId`
# @return [String]
attr_accessor :device_id
# Identifies the extent to which the device is controlled by an Android for Work
# EMM in various deployment configurations.
# Possible values include:
# - "managedDevice", a device that has the EMM's device policy controller (DPC)
# as the device owner,
# - "managedProfile", a device that has a work profile managed by the DPC (DPC
# is profile owner) in addition to a separate, personal profile that is
# unavailable to the DPC,
# Corresponds to the JSON property `managementType`
# @return [String]
attr_accessor :management_type
# The ID of the user. This field will always be present.
# Corresponds to the JSON property `userId`
# @return [String]
attr_accessor :user_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@device_id = args[:device_id] if args.key?(:device_id)
@management_type = args[:management_type] if args.key?(:management_type)
@user_id = args[:user_id] if args.key?(:user_id)
end
end
# An event generated when new permissions are added to an app.
class NewPermissionsEvent
include Google::Apis::Core::Hashable
@ -1331,6 +1255,11 @@ module Google
# @return [Google::Apis::AndroidenterpriseV1::InstallFailureEvent]
attr_accessor :install_failure_event
# An event generated when a new device is ready to be managed.
# Corresponds to the JSON property `newDeviceEvent`
# @return [Google::Apis::AndroidenterpriseV1::NewDeviceEvent]
attr_accessor :new_device_event
# An event generated when new permissions are added to an app.
# Corresponds to the JSON property `newPermissionsEvent`
# @return [Google::Apis::AndroidenterpriseV1::NewPermissionsEvent]
@ -1362,6 +1291,7 @@ module Google
@app_update_event = args[:app_update_event] if args.key?(:app_update_event)
@enterprise_id = args[:enterprise_id] if args.key?(:enterprise_id)
@install_failure_event = args[:install_failure_event] if args.key?(:install_failure_event)
@new_device_event = args[:new_device_event] if args.key?(:new_device_event)
@new_permissions_event = args[:new_permissions_event] if args.key?(:new_permissions_event)
@product_approval_event = args[:product_approval_event] if args.key?(:product_approval_event)
@product_availability_change_event = args[:product_availability_change_event] if args.key?(:product_availability_change_event)
@ -1480,7 +1410,7 @@ module Google
end
end
# A Products resource represents an app in the Google Play Store that is
# A Products resource represents an app in the Google Play store that is
# available to at least some users in the enterprise. (Some apps are restricted
# to a single enterprise, and no information about them is made available
# outside that enterprise.)
@ -1507,7 +1437,7 @@ module Google
attr_accessor :details_url
# How and to whom the package is made available. The value publicGoogleHosted
# means that the package is available through the Play Store and not restricted
# means that the package is available through the Play store and not restricted
# to a specific enterprise. The value privateGoogleHosted means that the package
# is a private app (restricted to an enterprise) but hosted by Google. The value
# privateSelfHosted means that the package is a private app (restricted to an
@ -1541,8 +1471,8 @@ module Google
# @return [String]
attr_accessor :product_pricing
# Whether this app can only be installed on devices using the Android for Work
# container app.
# Whether this app can only be installed on devices using the Android container
# app.
# Corresponds to the JSON property `requiresContainerApp`
# @return [Boolean]
attr_accessor :requires_container_app
@ -1559,8 +1489,8 @@ module Google
# @return [String]
attr_accessor :title
# A link to the Google Play for Work details page for the product, for use by an
# Enterprise administrator.
# A link to the managed Google Play details page for the product, for use by an
# Enterprise admin.
# Corresponds to the JSON property `workDetailsUrl`
# @return [String]
attr_accessor :work_details_url
@ -1718,9 +1648,11 @@ module Google
# The interpretation of this product set. "unknown" should never be sent and
# ignored if received. "whitelist" means that this product set constitutes a
# whitelist. "includeAll" means that all products are accessible (the value of
# the productId field is therefore ignored). If a value is not supplied, it is
# interpreted to be "whitelist" for backwards compatibility.
# whitelist. "includeAll" means that all products are accessible, including
# products that are approved, not approved, and even products where approval has
# been revoked. 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.
# Corresponds to the JSON property `productSetBehavior`
# @return [String]
attr_accessor :product_set_behavior
@ -1797,7 +1729,7 @@ module Google
# @return [Google::Apis::AndroidenterpriseV1::PageInfo]
attr_accessor :page_info
# Information about a product (e.g. an app) in the Google Play Store, for
# Information about a product (e.g. an app) in the Google Play store, for
# display to an enterprise admin.
# Corresponds to the JSON property `product`
# @return [Array<Google::Apis::AndroidenterpriseV1::Product>]
@ -1877,6 +1809,13 @@ module Google
# @return [String]
attr_accessor :kind
# Public key data for the credentials file. This is an X.509 cert. If you are
# using the googleCredentials key type, this is identical to the cert that can
# be retrieved by using the X.509 cert url inside of the credentials file.
# Corresponds to the JSON property `publicData`
# @return [String]
attr_accessor :public_data
# The file format of the generated key data.
# Corresponds to the JSON property `type`
# @return [String]
@ -1891,6 +1830,7 @@ module Google
@data = args[:data] if args.key?(:data)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@public_data = args[:public_data] if args.key?(:public_data)
@type = args[:type] if args.key?(:type)
end
end
@ -1949,7 +1889,7 @@ module Google
end
end
# Definition of a Google Play for Work store cluster, a list of products
# Definition of a managed Google Play store cluster, a list of products
# displayed as part of a store page.
class StoreCluster
include Google::Apis::Core::Hashable
@ -2002,13 +1942,13 @@ module Google
end
end
# General setting for the Google Play for Work store layout, currently only
# General setting for the managed Google Play store layout, currently only
# specifying the page to display the first time the store is opened.
class StoreLayout
include Google::Apis::Core::Hashable
# The ID of the store page to be used as the homepage. The homepage will be used
# as the first page shown in the Google Play for Work store.
# as the first page shown in the managed Google Play store.
# If a homepage has not been set, the Play store shown on devices will be empty.
# Not specifying a homepage on a store layout effectively empties the store.
# If there exists at least one page, this field must be set to the ID of a valid
@ -2098,7 +2038,7 @@ module Google
end
end
# Definition of a Google Play for Work store page, made of a localized name and
# Definition of a managed Google Play store page, made of a localized name and
# links to other pages. A page also contains clusters defined as a subcollection.
class StorePage
include Google::Apis::Core::Hashable
@ -2170,14 +2110,14 @@ module Google
# A Users resource represents an account associated with an enterprise. The
# account may be specific to a device or to an individual user (who can then use
# the account across multiple devices). The account may provide access to Google
# Play for Work only, or to other Google services, depending on the identity
# model:
# - Google managed domain identity model requires synchronization to Google
# the account across multiple devices). The account may provide access to
# managed Google Play only, or to other Google services, depending on the
# identity model:
# - The Google managed domain identity model requires synchronization to Google
# account sources (via primaryEmail).
# - Android for Work Accounts identity model provides a dynamic means for
# - The managed Google Play Accounts identity model provides a dynamic means for
# enterprises to create user or device accounts as needed. These accounts
# provide access to Google Play for Work only.
# provide access to managed Google Play.
class User
include Google::Apis::Core::Hashable
@ -2245,9 +2185,9 @@ module Google
end
# A UserToken is used by a user when setting up a managed device or profile with
# their work account on a device. When the user enters their email address and
# token (activation code) the appropriate EMM app can be automatically
# downloaded.
# their managed Google Play account on a device. When the user enters their
# email address and token (activation code) the appropriate EMM app can be
# automatically downloaded.
class UserToken
include Google::Apis::Core::Hashable

View File

@ -88,24 +88,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Collection
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListCollectionViewersResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListCollectionsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Device
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -232,6 +214,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class NewDeviceEvent
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class NewPermissionsEvent
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -492,35 +480,6 @@ module Google
end
end
class Collection
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :collection_id, as: 'collectionId'
property :kind, as: 'kind'
property :name, as: 'name'
collection :product_id, as: 'productId'
property :visibility, as: 'visibility'
end
end
class ListCollectionViewersResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
collection :user, as: 'user', class: Google::Apis::AndroidenterpriseV1::User, decorator: Google::Apis::AndroidenterpriseV1::User::Representation
end
end
class ListCollectionsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :collection, as: 'collection', class: Google::Apis::AndroidenterpriseV1::Collection, decorator: Google::Apis::AndroidenterpriseV1::Collection::Representation
property :kind, as: 'kind'
end
end
class Device
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -721,6 +680,15 @@ module Google
end
end
class NewDeviceEvent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :device_id, as: 'deviceId'
property :management_type, as: 'managementType'
property :user_id, as: 'userId'
end
end
class NewPermissionsEvent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -740,6 +708,8 @@ module Google
property :enterprise_id, as: 'enterpriseId'
property :install_failure_event, as: 'installFailureEvent', class: Google::Apis::AndroidenterpriseV1::InstallFailureEvent, decorator: Google::Apis::AndroidenterpriseV1::InstallFailureEvent::Representation
property :new_device_event, as: 'newDeviceEvent', class: Google::Apis::AndroidenterpriseV1::NewDeviceEvent, decorator: Google::Apis::AndroidenterpriseV1::NewDeviceEvent::Representation
property :new_permissions_event, as: 'newPermissionsEvent', class: Google::Apis::AndroidenterpriseV1::NewPermissionsEvent, decorator: Google::Apis::AndroidenterpriseV1::NewPermissionsEvent::Representation
property :product_approval_event, as: 'productApprovalEvent', class: Google::Apis::AndroidenterpriseV1::ProductApprovalEvent, decorator: Google::Apis::AndroidenterpriseV1::ProductApprovalEvent::Representation
@ -885,6 +855,7 @@ module Google
property :data, as: 'data'
property :id, as: 'id'
property :kind, as: 'kind'
property :public_data, as: 'publicData'
property :type, as: 'type'
end
end

View File

@ -52,451 +52,6 @@ module Google
super('https://www.googleapis.com/', 'androidenterprise/v1/')
end
# Deletes a collection.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [String] collection_id
# The ID of the collection.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [NilClass] No result returned for this method
# @yieldparam err [StandardError] error object if request failed
#
# @return [void]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_collection(enterprise_id, collection_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, 'enterprises/{enterpriseId}/collections/{collectionId}', options)
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['collectionId'] = collection_id unless collection_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Retrieves the details of a collection.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [String] collection_id
# The ID of the collection.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidenterpriseV1::Collection] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidenterpriseV1::Collection]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_collection(enterprise_id, collection_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'enterprises/{enterpriseId}/collections/{collectionId}', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::Collection::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::Collection
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['collectionId'] = collection_id unless collection_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Creates a new collection.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [Google::Apis::AndroidenterpriseV1::Collection] collection_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidenterpriseV1::Collection] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidenterpriseV1::Collection]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def insert_collection(enterprise_id, collection_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'enterprises/{enterpriseId}/collections', options)
command.request_representation = Google::Apis::AndroidenterpriseV1::Collection::Representation
command.request_object = collection_object
command.response_representation = Google::Apis::AndroidenterpriseV1::Collection::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::Collection
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Retrieves the IDs of all the collections for an enterprise.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidenterpriseV1::ListCollectionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidenterpriseV1::ListCollectionsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_collections(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'enterprises/{enterpriseId}/collections', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::ListCollectionsResponse::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::ListCollectionsResponse
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Updates a collection. This method supports patch semantics.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [String] collection_id
# The ID of the collection.
# @param [Google::Apis::AndroidenterpriseV1::Collection] collection_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidenterpriseV1::Collection] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidenterpriseV1::Collection]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_collection(enterprise_id, collection_id, collection_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, 'enterprises/{enterpriseId}/collections/{collectionId}', options)
command.request_representation = Google::Apis::AndroidenterpriseV1::Collection::Representation
command.request_object = collection_object
command.response_representation = Google::Apis::AndroidenterpriseV1::Collection::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::Collection
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['collectionId'] = collection_id unless collection_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Updates a collection.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [String] collection_id
# The ID of the collection.
# @param [Google::Apis::AndroidenterpriseV1::Collection] collection_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidenterpriseV1::Collection] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidenterpriseV1::Collection]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_collection(enterprise_id, collection_id, collection_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, 'enterprises/{enterpriseId}/collections/{collectionId}', options)
command.request_representation = Google::Apis::AndroidenterpriseV1::Collection::Representation
command.request_object = collection_object
command.response_representation = Google::Apis::AndroidenterpriseV1::Collection::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::Collection
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['collectionId'] = collection_id unless collection_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Removes the user from the list of those specifically allowed to see the
# collection. If the collection's visibility is set to viewersOnly then only
# such users will see the collection.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [String] collection_id
# The ID of the collection.
# @param [String] user_id
# The ID of the user.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [NilClass] No result returned for this method
# @yieldparam err [StandardError] error object if request failed
#
# @return [void]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_collection_viewer(enterprise_id, collection_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, 'enterprises/{enterpriseId}/collections/{collectionId}/users/{userId}', options)
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['collectionId'] = collection_id unless collection_id.nil?
command.params['userId'] = user_id unless user_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Retrieves the ID of the user if they have been specifically allowed to see the
# collection. If the collection's visibility is set to viewersOnly then only
# these users will see the collection.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [String] collection_id
# The ID of the collection.
# @param [String] user_id
# The ID of the user.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidenterpriseV1::User] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidenterpriseV1::User]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_collection_viewer(enterprise_id, collection_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'enterprises/{enterpriseId}/collections/{collectionId}/users/{userId}', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::User::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::User
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['collectionId'] = collection_id unless collection_id.nil?
command.params['userId'] = user_id unless user_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Retrieves the IDs of the users who have been specifically allowed to see the
# collection. If the collection's visibility is set to viewersOnly then only
# these users will see the collection.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [String] collection_id
# The ID of the collection.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidenterpriseV1::ListCollectionViewersResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidenterpriseV1::ListCollectionViewersResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_collection_viewers(enterprise_id, collection_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'enterprises/{enterpriseId}/collections/{collectionId}/users', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::ListCollectionViewersResponse::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::ListCollectionViewersResponse
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['collectionId'] = collection_id unless collection_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Adds the user to the list of those specifically allowed to see the collection.
# If the collection's visibility is set to viewersOnly then only such users will
# see the collection. This method supports patch semantics.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [String] collection_id
# The ID of the collection.
# @param [String] user_id
# The ID of the user.
# @param [Google::Apis::AndroidenterpriseV1::User] user_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidenterpriseV1::User] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidenterpriseV1::User]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_collection_viewer(enterprise_id, collection_id, user_id, user_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, 'enterprises/{enterpriseId}/collections/{collectionId}/users/{userId}', options)
command.request_representation = Google::Apis::AndroidenterpriseV1::User::Representation
command.request_object = user_object
command.response_representation = Google::Apis::AndroidenterpriseV1::User::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::User
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['collectionId'] = collection_id unless collection_id.nil?
command.params['userId'] = user_id unless user_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Adds the user to the list of those specifically allowed to see the collection.
# If the collection's visibility is set to viewersOnly then only such users will
# see the collection.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [String] collection_id
# The ID of the collection.
# @param [String] user_id
# The ID of the user.
# @param [Google::Apis::AndroidenterpriseV1::User] user_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidenterpriseV1::User] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidenterpriseV1::User]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_collection_viewer(enterprise_id, collection_id, user_id, user_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, 'enterprises/{enterpriseId}/collections/{collectionId}/users/{userId}', options)
command.request_representation = Google::Apis::AndroidenterpriseV1::User::Representation
command.request_object = user_object
command.response_representation = Google::Apis::AndroidenterpriseV1::User::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::User
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['collectionId'] = collection_id unless collection_id.nil?
command.params['userId'] = user_id unless user_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Retrieves the details of a device.
# @param [String] enterprise_id
# The ID of the enterprise.
@ -746,9 +301,9 @@ module Google
end
# Returns a unique token to access an embeddable UI. To generate a web UI, pass
# the generated token into the Play for Work javascript API. Each token may only
# be used to start one UI session. See the javascript API documentation for
# further information.
# the generated token into the managed Google Play javascript API. Each token
# may only be used to start one UI session. See the javascript API documentation
# for further information.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [Google::Apis::AndroidenterpriseV1::AdministratorWebTokenSpec] administrator_web_token_spec_object
@ -1228,11 +783,11 @@ module Google
# Sets the store layout for the enterprise. By default, storeLayoutType is set
# to "basic" and the basic store layout is enabled. The basic layout only
# contains apps approved by the administrator, and that have been added to the
# available product set for a user (using the setAvailableProductSet call).
# Apps on the page are sorted in order of their product ID value. If you create
# a custom store layout (by setting storeLayoutType = "custom"), the basic store
# layout is disabled.
# contains apps approved by the admin, and that have been added to the available
# product set for a user (using the setAvailableProductSet call). Apps on the
# page are sorted in order of their product ID value. If you create a custom
# store layout (by setting storeLayoutType = "custom"), the basic store layout
# is disabled.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [Google::Apis::AndroidenterpriseV1::StoreLayout] store_layout_object
@ -2349,8 +1904,8 @@ module Google
# Approves the specified product and the relevant app permissions, if any. The
# maximum number of products that you can approve per enterprise customer is 1,
# 000.
# To learn how to use Google Play for Work to design and create a store layout
# to display approved products to your users, see Store Layout Design.
# To learn how to use managed Google Play to design and create a store layout to
# display approved products to your users, see Store Layout Design.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [String] product_id
@ -2482,7 +2037,7 @@ module Google
# Retrieves the schema that defines the configurable properties for this product.
# All products have a schema, but this schema may be empty if no managed
# configurations have been defined. This schema can be used to populate a UI
# that allows an administrator to configure the product. To apply a managed
# that allows an admin to configure the product. To apply a managed
# configuration based on the schema obtained using this API, see Managed
# Configurations through Play.
# @param [String] enterprise_id
@ -2579,7 +2134,7 @@ module Google
# not specified, uses a default value of 100, which is also the maximum
# retrievable within a single response.
# @param [String] query
# The search query as typed in the Google Play Store search box. If omitted, all
# The search query as typed in the Google Play store search box. If omitted, all
# approved apps will be returned (using the pagination parameters), including
# apps that are not available in the store (e.g. unpublished apps).
# @param [String] token
@ -3378,8 +2933,9 @@ module Google
execute_or_queue_command(command, &block)
end
# Generates a token (activation code) to allow this user to configure their work
# account in the Android Setup Wizard. Revokes any previously generated token.
# Generates a token (activation code) to allow this user to configure their
# managed account in the Android Setup Wizard. Revokes any previously generated
# token.
# This call only works with Google managed accounts.
# @param [String] enterprise_id
# The ID of the enterprise.

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/android-publisher
module AndroidpublisherV2
VERSION = 'V2'
REVISION = '20161017'
REVISION = '20170105'
# View and manage your Google Play Developer account
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'

View File

@ -340,6 +340,85 @@ module Google
end
end
#
class DeviceMetadata
include Google::Apis::Core::Hashable
# Device CPU make e.g. "Qualcomm"
# Corresponds to the JSON property `cpuMake`
# @return [String]
attr_accessor :cpu_make
# Device CPU model e.g. "MSM8974"
# Corresponds to the JSON property `cpuModel`
# @return [String]
attr_accessor :cpu_model
# Device class (e.g. tablet)
# Corresponds to the JSON property `deviceClass`
# @return [String]
attr_accessor :device_class
# OpenGL version
# Corresponds to the JSON property `glEsVersion`
# @return [Fixnum]
attr_accessor :gl_es_version
# Device manufacturer (e.g. Motorola)
# Corresponds to the JSON property `manufacturer`
# @return [String]
attr_accessor :manufacturer
# Comma separated list of native platforms (e.g. "arm", "arm7")
# Corresponds to the JSON property `nativePlatform`
# @return [String]
attr_accessor :native_platform
# Device model name (e.g. Droid)
# Corresponds to the JSON property `productName`
# @return [String]
attr_accessor :product_name
# Device RAM in Megabytes e.g. "2048"
# Corresponds to the JSON property `ramMb`
# @return [Fixnum]
attr_accessor :ram_mb
# Screen density in DPI
# Corresponds to the JSON property `screenDensityDpi`
# @return [Fixnum]
attr_accessor :screen_density_dpi
# Screen height in pixels
# Corresponds to the JSON property `screenHeightPx`
# @return [Fixnum]
attr_accessor :screen_height_px
# Screen width in pixels
# Corresponds to the JSON property `screenWidthPx`
# @return [Fixnum]
attr_accessor :screen_width_px
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@cpu_make = args[:cpu_make] if args.key?(:cpu_make)
@cpu_model = args[:cpu_model] if args.key?(:cpu_model)
@device_class = args[:device_class] if args.key?(:device_class)
@gl_es_version = args[:gl_es_version] if args.key?(:gl_es_version)
@manufacturer = args[:manufacturer] if args.key?(:manufacturer)
@native_platform = args[:native_platform] if args.key?(:native_platform)
@product_name = args[:product_name] if args.key?(:product_name)
@ram_mb = args[:ram_mb] if args.key?(:ram_mb)
@screen_density_dpi = args[:screen_density_dpi] if args.key?(:screen_density_dpi)
@screen_height_px = args[:screen_height_px] if args.key?(:screen_height_px)
@screen_width_px = args[:screen_width_px] if args.key?(:screen_width_px)
end
end
# An Entitlement resource indicates a user's current entitlement to an inapp
# item or subscription.
class Entitlement
@ -1721,11 +1800,22 @@ module Google
# @return [String]
attr_accessor :device
# Some information about the characteristics of the user's device
# Corresponds to the JSON property `deviceMetadata`
# @return [Google::Apis::AndroidpublisherV2::DeviceMetadata]
attr_accessor :device_metadata
# The last time at which this comment was updated.
# Corresponds to the JSON property `lastModified`
# @return [Google::Apis::AndroidpublisherV2::Timestamp]
attr_accessor :last_modified
# Untranslated text of the review, in the case where the review has been
# translated. If the review has not been translated this is left blank.
# Corresponds to the JSON property `originalText`
# @return [String]
attr_accessor :original_text
# Language code for the reviewer. This is taken from the device settings so is
# not guaranteed to match the language the review is written in. May be absent.
# Corresponds to the JSON property `reviewerLanguage`
@ -1744,6 +1834,16 @@ module Google
# @return [String]
attr_accessor :text
# Number of users who have given this review a thumbs down
# Corresponds to the JSON property `thumbsDownCount`
# @return [Fixnum]
attr_accessor :thumbs_down_count
# Number of users who have given this review a thumbs up
# Corresponds to the JSON property `thumbsUpCount`
# @return [Fixnum]
attr_accessor :thumbs_up_count
def initialize(**args)
update!(**args)
end
@ -1754,10 +1854,86 @@ module Google
@app_version_code = args[:app_version_code] if args.key?(:app_version_code)
@app_version_name = args[:app_version_name] if args.key?(:app_version_name)
@device = args[:device] if args.key?(:device)
@device_metadata = args[:device_metadata] if args.key?(:device_metadata)
@last_modified = args[:last_modified] if args.key?(:last_modified)
@original_text = args[:original_text] if args.key?(:original_text)
@reviewer_language = args[:reviewer_language] if args.key?(:reviewer_language)
@star_rating = args[:star_rating] if args.key?(:star_rating)
@text = args[:text] if args.key?(:text)
@thumbs_down_count = args[:thumbs_down_count] if args.key?(:thumbs_down_count)
@thumbs_up_count = args[:thumbs_up_count] if args.key?(:thumbs_up_count)
end
end
# A VoidedPurchase resource indicates a purchase that was either cancelled/
# refunded/charged-back.
class VoidedPurchase
include Google::Apis::Core::Hashable
# This kind represents a voided purchase object in the androidpublisher service.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The time at which the purchase was made, in milliseconds since the epoch (Jan
# 1, 1970).
# Corresponds to the JSON property `purchaseTimeMillis`
# @return [String]
attr_accessor :purchase_time_millis
# The token that was generated when a purchase was made. This uniquely
# identifies a purchase.
# Corresponds to the JSON property `purchaseToken`
# @return [String]
attr_accessor :purchase_token
# The time at which the purchase was cancelled/refunded/charged-back, in
# milliseconds since the epoch (Jan 1, 1970).
# Corresponds to the JSON property `voidedTimeMillis`
# @return [String]
attr_accessor :voided_time_millis
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@kind = args[:kind] if args.key?(:kind)
@purchase_time_millis = args[:purchase_time_millis] if args.key?(:purchase_time_millis)
@purchase_token = args[:purchase_token] if args.key?(:purchase_token)
@voided_time_millis = args[:voided_time_millis] if args.key?(:voided_time_millis)
end
end
#
class VoidedPurchasesListResponse
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `pageInfo`
# @return [Google::Apis::AndroidpublisherV2::PageInfo]
attr_accessor :page_info
#
# Corresponds to the JSON property `tokenPagination`
# @return [Google::Apis::AndroidpublisherV2::TokenPagination]
attr_accessor :token_pagination
#
# Corresponds to the JSON property `voidedPurchases`
# @return [Array<Google::Apis::AndroidpublisherV2::VoidedPurchase>]
attr_accessor :voided_purchases
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@page_info = args[:page_info] if args.key?(:page_info)
@token_pagination = args[:token_pagination] if args.key?(:token_pagination)
@voided_purchases = args[:voided_purchases] if args.key?(:voided_purchases)
end
end
end

View File

@ -100,6 +100,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class DeviceMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Entitlement
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -364,6 +370,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class VoidedPurchase
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class VoidedPurchasesListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Apk
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -474,6 +492,23 @@ module Google
end
end
class DeviceMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :cpu_make, as: 'cpuMake'
property :cpu_model, as: 'cpuModel'
property :device_class, as: 'deviceClass'
property :gl_es_version, as: 'glEsVersion'
property :manufacturer, as: 'manufacturer'
property :native_platform, as: 'nativePlatform'
property :product_name, as: 'productName'
property :ram_mb, as: 'ramMb'
property :screen_density_dpi, as: 'screenDensityDpi'
property :screen_height_px, as: 'screenHeightPx'
property :screen_width_px, as: 'screenWidthPx'
end
end
class Entitlement
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -901,11 +936,38 @@ module Google
property :app_version_code, as: 'appVersionCode'
property :app_version_name, as: 'appVersionName'
property :device, as: 'device'
property :device_metadata, as: 'deviceMetadata', class: Google::Apis::AndroidpublisherV2::DeviceMetadata, decorator: Google::Apis::AndroidpublisherV2::DeviceMetadata::Representation
property :last_modified, as: 'lastModified', class: Google::Apis::AndroidpublisherV2::Timestamp, decorator: Google::Apis::AndroidpublisherV2::Timestamp::Representation
property :original_text, as: 'originalText'
property :reviewer_language, as: 'reviewerLanguage'
property :star_rating, as: 'starRating'
property :text, as: 'text'
property :thumbs_down_count, as: 'thumbsDownCount'
property :thumbs_up_count, as: 'thumbsUpCount'
end
end
class VoidedPurchase
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
property :purchase_time_millis, as: 'purchaseTimeMillis'
property :purchase_token, as: 'purchaseToken'
property :voided_time_millis, as: 'voidedTimeMillis'
end
end
class VoidedPurchasesListResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :page_info, as: 'pageInfo', class: Google::Apis::AndroidpublisherV2::PageInfo, decorator: Google::Apis::AndroidpublisherV2::PageInfo::Representation
property :token_pagination, as: 'tokenPagination', class: Google::Apis::AndroidpublisherV2::TokenPagination, decorator: Google::Apis::AndroidpublisherV2::TokenPagination::Representation
collection :voided_purchases, as: 'voidedPurchases', class: Google::Apis::AndroidpublisherV2::VoidedPurchase, decorator: Google::Apis::AndroidpublisherV2::VoidedPurchase::Representation
end
end
end

View File

@ -2380,11 +2380,66 @@ module Google
execute_or_queue_command(command, &block)
end
# Lists the purchases that were cancelled, refunded or charged-back.
# @param [String] package_name
# The package name of the application for which voided purchases need to be
# returned (for example, 'com.some.thing').
# @param [String] end_time
# The time, in milliseconds since the Epoch, of the newest voided in-app product
# purchase that you want to see in the response. The value of this parameter
# cannot be greater than the current time and is ignored if a pagination token
# is set. Default value is current time.
# @param [Fixnum] max_results
# @param [Fixnum] start_index
# @param [String] start_time
# The time, in milliseconds since the Epoch, of the oldest voided in-app product
# purchase that you want to see in the response. The value of this parameter
# cannot be older than 30 days and is ignored if a pagination token is set.
# Default value is current time minus 30 days.
# @param [String] 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.
# 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::AndroidpublisherV2::VoidedPurchasesListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidpublisherV2::VoidedPurchasesListResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_purchase_voidedpurchases(package_name, end_time: nil, max_results: nil, start_index: nil, start_time: nil, token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{packageName}/purchases/voidedpurchases', options)
command.response_representation = Google::Apis::AndroidpublisherV2::VoidedPurchasesListResponse::Representation
command.response_class = Google::Apis::AndroidpublisherV2::VoidedPurchasesListResponse
command.params['packageName'] = package_name unless package_name.nil?
command.query['endTime'] = end_time unless end_time.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['startIndex'] = start_index unless start_index.nil?
command.query['startTime'] = start_time unless start_time.nil?
command.query['token'] = token unless 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 a single review.
# @param [String] package_name
# Unique identifier for the Android app for which we want reviews; for example, "
# com.spiffygame".
# @param [String] review_id
# @param [String] translation_language
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -2406,12 +2461,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 get_review(package_name, review_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def get_review(package_name, review_id, translation_language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{packageName}/reviews/{reviewId}', options)
command.response_representation = Google::Apis::AndroidpublisherV2::Review::Representation
command.response_class = Google::Apis::AndroidpublisherV2::Review
command.params['packageName'] = package_name unless package_name.nil?
command.params['reviewId'] = review_id unless review_id.nil?
command.query['translationLanguage'] = translation_language unless translation_language.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?
@ -2425,6 +2481,7 @@ module Google
# @param [Fixnum] max_results
# @param [Fixnum] start_index
# @param [String] token
# @param [String] translation_language
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -2446,7 +2503,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_reviews(package_name, max_results: nil, start_index: nil, token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_reviews(package_name, max_results: nil, start_index: nil, token: nil, translation_language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{packageName}/reviews', options)
command.response_representation = Google::Apis::AndroidpublisherV2::ReviewsListResponse::Representation
command.response_class = Google::Apis::AndroidpublisherV2::ReviewsListResponse
@ -2454,6 +2511,7 @@ module Google
command.query['maxResults'] = max_results unless max_results.nil?
command.query['startIndex'] = start_index unless start_index.nil?
command.query['token'] = token unless token.nil?
command.query['translationLanguage'] = translation_language unless translation_language.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?

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/appengine/docs/admin-api/
module AppengineV1beta5
VERSION = 'V1beta5'
REVISION = '20161101'
REVISION = '20161208'
# View and manage your applications deployed on Google App Engine
AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin'

File diff suppressed because it is too large Load Diff

View File

@ -112,6 +112,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Volume
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UrlMap
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -184,6 +190,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class EndpointsApiService
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListVersionsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -364,6 +376,8 @@ module Google
property :nobuild_files_regex, as: 'nobuildFilesRegex'
property :deployment, as: 'deployment', class: Google::Apis::AppengineV1beta5::Deployment, decorator: Google::Apis::AppengineV1beta5::Deployment::Representation
property :endpoints_api_service, as: 'endpointsApiService', class: Google::Apis::AppengineV1beta5::EndpointsApiService, decorator: Google::Apis::AppengineV1beta5::EndpointsApiService::Representation
end
end
@ -446,6 +460,7 @@ module Google
collection :forwarded_ports, as: 'forwardedPorts'
property :instance_tag, as: 'instanceTag'
property :name, as: 'name'
property :subnetwork_name, as: 'subnetworkName'
end
end
@ -455,6 +470,17 @@ module Google
property :cpu, as: 'cpu'
property :disk_gb, as: 'diskGb'
property :memory_gb, as: 'memoryGb'
collection :volumes, as: 'volumes', class: Google::Apis::AppengineV1beta5::Volume, decorator: Google::Apis::AppengineV1beta5::Volume::Representation
end
end
class Volume
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :volume_type, as: 'volumeType'
property :size_gb, as: 'sizeGb'
end
end
@ -579,6 +605,14 @@ module Google
end
end
class EndpointsApiService
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :config_id, as: 'configId'
end
end
class ListVersionsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -714,6 +748,8 @@ module Google
property :end_time, as: 'endTime'
property :user, as: 'user'
property :target, as: 'target'
property :ephemeral_message, as: 'ephemeralMessage'
collection :warning, as: 'warning'
end
end

View File

@ -48,8 +48,8 @@ module Google
# Creates an App Engine application for a Google Cloud Platform project. This
# requires a project that excludes an App Engine application. For details about
# creating a project without an application, see the [Google Cloud Resource
# Manager create project topic](https://cloud.google.com/resource-manager/docs/
# creating a project without an application, see the Google Cloud Resource
# Manager create project topic (https://cloud.google.com/resource-manager/docs/
# creating-project).
# @param [Google::Apis::AppengineV1beta5::Application] application_object
# @param [String] fields
@ -82,10 +82,10 @@ module Google
# Gets information about an application.
# @param [String] apps_id
# Part of `name`. Name of the application to get. Example: `apps/myapp`.
# Part of `name`. Name of the application to get. Example: apps/myapp.
# @param [Boolean] ensure_resources_exist
# Certain resources associated with an application are created on-demand.
# Controls whether these resources should be created when performing the `GET`
# Controls whether these resources should be created when performing the GET
# operation. If specified and any resources could not be created, the request
# will fail with an error code. Additionally, this parameter can cause the
# request to take longer to complete. Note: This parameter will be deprecated in
@ -118,9 +118,14 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates application fields.
# Updates the specified Application resource. You can update the following
# fields: auth_domain (https://cloud.google.com/appengine/docs/admin-api/
# reference/rest/v1beta5/apps#Application.FIELDS.auth_domain)
# default_cookie_expiration (https://cloud.google.com/appengine/docs/admin-api/
# reference/rest/v1beta5/apps#Application.FIELDS.default_cookie_expiration)
# @param [String] apps_id
# Part of `name`. Name of the application to update. Example: `apps/myapp`.
# Part of `name`. Name of the Application resource to update. Example: apps/
# myapp.
# @param [Google::Apis::AppengineV1beta5::Application] application_object
# @param [String] mask
# Standard field mask for the set of fields to be updated.
@ -155,9 +160,9 @@ module Google
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`.
# 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 [String] filter
@ -232,8 +237,8 @@ module Google
# 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`.
# 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
@ -266,8 +271,8 @@ module Google
# Gets the current configuration of the specified service.
# @param [String] apps_id
# Part of `name`. Name of the resource requested. Example: `apps/myapp/services/
# default`.
# 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
@ -300,7 +305,7 @@ module Google
# Lists all the services in the application.
# @param [String] apps_id
# Part of `name`. Name of the resource requested. Example: `apps/myapp`.
# Part of `name`. Name of the resource requested. Example: apps/myapp.
# @param [Fixnum] page_size
# Maximum results to return per page.
# @param [String] page_token
@ -336,25 +341,25 @@ module Google
# Updates the configuration of the specified service.
# @param [String] apps_id
# Part of `name`. Name of the resource to update. Example: `apps/myapp/services/
# default`.
# Part of `name`. Name of the resource to update. Example: apps/myapp/services/
# default.
# @param [String] services_id
# Part of `name`. See documentation of `appsId`.
# @param [Google::Apis::AppengineV1beta5::Service] service_object
# @param [String] mask
# Standard field mask for the set of fields to be updated.
# @param [Boolean] migrate_traffic
# Set to `true` to gradually shift traffic from one version to another single
# Set to true to gradually shift traffic from one version to another single
# version. By default, traffic is shifted immediately. For gradual traffic
# migration, the target version must be located within instances that are
# configured for both [warmup requests](https://cloud.google.com/appengine/docs/
# configured for both warmup requests (https://cloud.google.com/appengine/docs/
# admin-api/reference/rest/v1beta5/apps.services.versions#inboundservicetype)
# and [automatic scaling](https://cloud.google.com/appengine/docs/admin-api/
# and automatic scaling (https://cloud.google.com/appengine/docs/admin-api/
# reference/rest/v1beta5/apps.services.versions#automaticscaling). You must
# specify the [`shardBy`](https://cloud.google.com/appengine/docs/admin-api/
# specify the shardBy (https://cloud.google.com/appengine/docs/admin-api/
# reference/rest/v1beta5/apps.services#shardby) field in the Service resource.
# Gradual traffic migration is not supported in the App Engine flexible
# environment. For examples, see [Migrating and Splitting Traffic](https://cloud.
# environment. For examples, see Migrating and Splitting Traffic (https://cloud.
# google.com/appengine/docs/admin-api/migrating-splitting-traffic).
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -427,8 +432,8 @@ module Google
# Deletes an existing version.
# @param [String] apps_id
# Part of `name`. Name of the resource requested. Example: `apps/myapp/services/
# default/versions/v1`.
# Part of `name`. Name of the resource requested. Example: apps/myapp/services/
# default/versions/v1.
# @param [String] services_id
# Part of `name`. See documentation of `appsId`.
# @param [String] versions_id
@ -462,17 +467,17 @@ module Google
execute_or_queue_command(command, &block)
end
# Gets the specified Version resource. By default, only a `BASIC_VIEW` will be
# returned. Specify the `FULL_VIEW` parameter to get the full resource.
# Gets the specified Version resource. By default, only a BASIC_VIEW will be
# returned. Specify the FULL_VIEW parameter to get the full resource.
# @param [String] apps_id
# Part of `name`. Name of the resource requested. Example: `apps/myapp/services/
# default/versions/v1`.
# Part of `name`. Name of the resource requested. Example: apps/myapp/services/
# default/versions/v1.
# @param [String] services_id
# Part of `name`. See documentation of `appsId`.
# @param [String] versions_id
# Part of `name`. See documentation of `appsId`.
# @param [String] view
# Controls the set of fields returned in the `Get` response.
# Controls the set of fields returned in the Get response.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -505,12 +510,12 @@ module Google
# Lists the versions of a service.
# @param [String] apps_id
# Part of `name`. Name of the resource requested. Example: `apps/myapp/services/
# default`.
# 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] view
# Controls the set of fields returned in the `List` response.
# Controls the set of fields returned in the List response.
# @param [Fixnum] page_size
# Maximum results to return per page.
# @param [String] page_token
@ -548,23 +553,23 @@ module Google
# 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/v1beta5/apps.services.versions#Version.FIELDS.
# resource uses: serving_status (https://cloud.google.com/appengine/docs/admin-
# api/reference/rest/v1beta5/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/v1beta5/apps.services.
# or run in the App Engine flexible environment. instance_class (https://cloud.
# google.com/appengine/docs/admin-api/reference/rest/v1beta5/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/v1beta5/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/
# App Engine standard environment. automatic_scaling.min_idle_instances (https://
# cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/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/v1beta5/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`.
# Part of `name`. Name of the resource to update. Example: apps/myapp/services/
# default/versions/1.
# @param [String] services_id
# Part of `name`. See documentation of `appsId`.
# @param [String] versions_id
@ -646,8 +651,8 @@ module Google
# 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`.
# 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
@ -686,8 +691,8 @@ module Google
# Lists the instances of a version.
# @param [String] apps_id
# Part of `name`. Name of the resource requested. Example: `apps/myapp/services/
# default/versions/v1`.
# Part of `name`. Name of the resource requested. Example: apps/myapp/services/
# default/versions/v1.
# @param [String] services_id
# Part of `name`. See documentation of `appsId`.
# @param [String] versions_id
@ -731,11 +736,11 @@ module Google
# 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
# when you are done debugging and then allow the system to take over and
# determine if another instance should be started. Only applicable for instances
# determine if another instance should be started.Only applicable for instances
# in App Engine flexible environment.
# @param [String] apps_id
# Part of `name`. Name of the resource requested. Example: `apps/myapp/services/
# default/versions/v1/instances/instance-1`.
# 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

View File

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

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/games/services/web/api/states
module AppstateV1
VERSION = 'V1'
REVISION = '20161103'
REVISION = '20170111'
# View and manage your data for this application
AUTH_APPSTATE = 'https://www.googleapis.com/auth/appstate'

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/bigquery/
module BigqueryV2
VERSION = 'V2'
REVISION = '20161029'
REVISION = '20170114'
# View and manage your data in Google BigQuery
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'

View File

@ -637,6 +637,11 @@ module Google
# @return [String]
attr_accessor :records_written
# Current status for the stage.
# Corresponds to the JSON property `status`
# @return [String]
attr_accessor :status
# List of operations within the stage in dependency order (approximately
# chronological).
# Corresponds to the JSON property `steps`
@ -677,6 +682,7 @@ module Google
@read_ratio_max = args[:read_ratio_max] if args.key?(:read_ratio_max)
@records_read = args[:records_read] if args.key?(:records_read)
@records_written = args[:records_written] if args.key?(:records_written)
@status = args[:status] if args.key?(:status)
@steps = args[:steps] if args.key?(:steps)
@wait_ratio_avg = args[:wait_ratio_avg] if args.key?(:wait_ratio_avg)
@wait_ratio_max = args[:wait_ratio_max] if args.key?(:wait_ratio_max)
@ -1239,6 +1245,16 @@ module Google
# @return [Fixnum]
attr_accessor :max_bad_records
# [Optional] Specifies a string that represents a null value in a CSV file. For
# example, if you specify "\N", BigQuery interprets "\N" as a null value when
# loading a CSV file. The default value is the empty string. If you set this
# property to a custom value, BigQuery still interprets the empty string as a
# null value for all data types except for STRING and BYTE. For STRING and BYTE
# columns, BigQuery interprets the empty string as an empty value.
# Corresponds to the JSON property `nullMarker`
# @return [String]
attr_accessor :null_marker
# [Experimental] If sourceFormat is set to "DATASTORE_BACKUP", indicates which
# entity properties to load into BigQuery from a Cloud Datastore backup.
# Property names are case sensitive and must be top-level properties. If no
@ -1339,6 +1355,7 @@ module Google
@field_delimiter = args[:field_delimiter] if args.key?(:field_delimiter)
@ignore_unknown_values = args[:ignore_unknown_values] if args.key?(:ignore_unknown_values)
@max_bad_records = args[:max_bad_records] if args.key?(:max_bad_records)
@null_marker = args[:null_marker] if args.key?(:null_marker)
@projection_fields = args[:projection_fields] if args.key?(:projection_fields)
@quote = args[:quote] if args.key?(:quote)
@schema = args[:schema] if args.key?(:schema)
@ -1406,8 +1423,9 @@ module Google
# @return [String]
attr_accessor :maximum_bytes_billed
# [Experimental] Standard SQL only. Whether to use positional (?) or named (@
# myparam) query parameters in this query.
# [Experimental] Standard SQL only. Set to POSITIONAL to use positional (?)
# query parameters or to NAMED to use named (@myparam) query parameters in this
# query.
# Corresponds to the JSON property `parameterMode`
# @return [String]
attr_accessor :parameter_mode
@ -1804,6 +1822,11 @@ module Google
# @return [Google::Apis::BigqueryV2::TableSchema]
attr_accessor :schema
# [Output-only, Experimental] The type of query statement, if valid.
# Corresponds to the JSON property `statementType`
# @return [String]
attr_accessor :statement_type
# [Output-only] Total bytes billed for the job.
# Corresponds to the JSON property `totalBytesBilled`
# @return [String]
@ -1832,6 +1855,7 @@ module Google
@query_plan = args[:query_plan] if args.key?(:query_plan)
@referenced_tables = args[:referenced_tables] if args.key?(:referenced_tables)
@schema = args[:schema] if args.key?(:schema)
@statement_type = args[:statement_type] if args.key?(:statement_type)
@total_bytes_billed = args[:total_bytes_billed] if args.key?(:total_bytes_billed)
@total_bytes_processed = args[:total_bytes_processed] if args.key?(:total_bytes_processed)
@undeclared_query_parameters = args[:undeclared_query_parameters] if args.key?(:undeclared_query_parameters)
@ -2197,8 +2221,9 @@ module Google
# @return [Fixnum]
attr_accessor :max_results
# [Experimental] Standard SQL only. Whether to use positional (?) or named (@
# myparam) query parameters in this query.
# [Experimental] Standard SQL only. Set to POSITIONAL to use positional (?)
# query parameters or to NAMED to use named (@myparam) query parameters in this
# query.
# Corresponds to the JSON property `parameterMode`
# @return [String]
attr_accessor :parameter_mode
@ -2445,6 +2470,16 @@ module Google
# @return [String]
attr_accessor :kind
# [Experimental] The labels associated with this table. You can use these to
# organize and group your tables. Label keys and values can be no longer than 63
# characters, can only contain letters, numeric characters, underscores and
# dashes. International characters are allowed. Label values are optional. Label
# keys must start with a letter and must be unique within a dataset. Both keys
# and values are additionally constrained to be <= 128 bytes in size.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
# [Output-only] The time when this table was last modified, in milliseconds
# since the epoch.
# Corresponds to the JSON property `lastModifiedTime`
@ -2529,6 +2564,7 @@ module Google
@friendly_name = args[:friendly_name] if args.key?(:friendly_name)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@labels = args[:labels] if args.key?(:labels)
@last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time)
@location = args[:location] if args.key?(:location)
@num_bytes = args[:num_bytes] if args.key?(:num_bytes)
@ -2767,8 +2803,9 @@ module Google
attr_accessor :name
# [Required] The field data type. Possible values include STRING, BYTES, INTEGER,
# FLOAT, BOOLEAN, TIMESTAMP, DATE, TIME, DATETIME, or RECORD (where RECORD
# indicates that the field contains a nested schema).
# INT64 (same as INTEGER), FLOAT, FLOAT64 (same as FLOAT), BOOLEAN, BOOL (same
# as BOOLEAN), TIMESTAMP, DATE, TIME, DATETIME, RECORD (where RECORD indicates
# that the field contains a nested schema) or STRUCT (same as RECORD).
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
@ -2848,6 +2885,12 @@ module Google
# @return [String]
attr_accessor :kind
# [Experimental] The labels associated with this table. You can use these to
# organize and group your tables.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
# A reference uniquely identifying the table.
# Corresponds to the JSON property `tableReference`
# @return [Google::Apis::BigqueryV2::TableReference]
@ -2867,6 +2910,7 @@ module Google
@friendly_name = args[:friendly_name] if args.key?(:friendly_name)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@labels = args[:labels] if args.key?(:labels)
@table_reference = args[:table_reference] if args.key?(:table_reference)
@type = args[:type] if args.key?(:type)
end

View File

@ -490,6 +490,7 @@ module Google
property :read_ratio_max, as: 'readRatioMax'
property :records_read, as: 'recordsRead'
property :records_written, as: 'recordsWritten'
property :status, as: 'status'
collection :steps, as: 'steps', class: Google::Apis::BigqueryV2::ExplainQueryStep, decorator: Google::Apis::BigqueryV2::ExplainQueryStep::Representation
property :wait_ratio_avg, as: 'waitRatioAvg'
@ -627,6 +628,7 @@ module Google
property :field_delimiter, as: 'fieldDelimiter'
property :ignore_unknown_values, as: 'ignoreUnknownValues'
property :max_bad_records, as: 'maxBadRecords'
property :null_marker, as: 'nullMarker'
collection :projection_fields, as: 'projectionFields'
property :quote, as: 'quote'
property :schema, as: 'schema', class: Google::Apis::BigqueryV2::TableSchema, decorator: Google::Apis::BigqueryV2::TableSchema::Representation
@ -751,6 +753,7 @@ module Google
property :schema, as: 'schema', class: Google::Apis::BigqueryV2::TableSchema, decorator: Google::Apis::BigqueryV2::TableSchema::Representation
property :statement_type, as: 'statementType'
property :total_bytes_billed, as: 'totalBytesBilled'
property :total_bytes_processed, as: 'totalBytesProcessed'
collection :undeclared_query_parameters, as: 'undeclaredQueryParameters', class: Google::Apis::BigqueryV2::QueryParameter, decorator: Google::Apis::BigqueryV2::QueryParameter::Representation
@ -921,6 +924,7 @@ module Google
property :friendly_name, as: 'friendlyName'
property :id, as: 'id'
property :kind, as: 'kind'
hash :labels, as: 'labels'
property :last_modified_time, as: 'lastModifiedTime'
property :location, as: 'location'
property :num_bytes, as: 'numBytes'
@ -1027,6 +1031,7 @@ module Google
property :friendly_name, as: 'friendlyName'
property :id, as: 'id'
property :kind, as: 'kind'
hash :labels, as: 'labels'
property :table_reference, as: 'tableReference', class: Google::Apis::BigqueryV2::TableReference, decorator: Google::Apis::BigqueryV2::TableReference::Representation
property :type, as: 'type'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/books/docs/v1/getting_started
module BooksV1
VERSION = 'V1'
REVISION = '20161005'
REVISION = '20161206'
# Manage your books
AUTH_BOOKS = 'https://www.googleapis.com/auth/books'

View File

@ -2026,6 +2026,11 @@ module Google
# @return [String]
attr_accessor :kind
#
# Corresponds to the JSON property `notificationGroup`
# @return [String]
attr_accessor :notification_group
#
# Corresponds to the JSON property `notification_type`
# @return [String]
@ -2070,6 +2075,7 @@ module Google
@dont_show_notification = args[:dont_show_notification] if args.key?(:dont_show_notification)
@icon_url = args[:icon_url] if args.key?(:icon_url)
@kind = args[:kind] if args.key?(:kind)
@notification_group = args[:notification_group] if args.key?(:notification_group)
@notification_type = args[:notification_type] if args.key?(:notification_type)
@pcampaign_id = args[:pcampaign_id] if args.key?(:pcampaign_id)
@reason = args[:reason] if args.key?(:reason)
@ -2413,8 +2419,7 @@ module Google
# @return [String]
attr_accessor :kind
# Series info list. The client always expects this element in the JSON output,
# hence declared here as OutputAlways.
#
# Corresponds to the JSON property `series`
# @return [Array<Google::Apis::BooksV1::Series::Series>]
attr_accessor :series

View File

@ -1212,6 +1212,7 @@ module Google
property :dont_show_notification, as: 'dont_show_notification'
property :icon_url, as: 'iconUrl'
property :kind, as: 'kind'
property :notification_group, as: 'notificationGroup'
property :notification_type, as: 'notification_type'
property :pcampaign_id, as: 'pcampaign_id'
property :reason, as: 'reason'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/google-apps/calendar/firstapp
module CalendarV3
VERSION = 'V3'
REVISION = '20161101'
REVISION = '20170115'
# Manage your calendars
AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/classroom/
module ClassroomV1
VERSION = 'V1'
REVISION = '20161006'
REVISION = '20170110'
# View instructions for teacher-assigned work in your Google Classroom classes
AUTH_CLASSROOM_COURSE_WORK_READONLY = 'https://www.googleapis.com/auth/classroom.course-work.readonly'

View File

@ -572,72 +572,6 @@ module Google
end
end
# Response when listing guardians.
class ListGuardiansResponse
include Google::Apis::Core::Hashable
# Guardians on this page of results that met the criteria specified in the
# request.
# Corresponds to the JSON property `guardians`
# @return [Array<Google::Apis::ClassroomV1::Guardian>]
attr_accessor :guardians
# Token identifying the next page of results to return. If empty, no further
# results are available.
# 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)
@guardians = args[:guardians] if args.key?(:guardians)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# Association between a student and a guardian of that student. The guardian may
# receive information about the student's course work.
class Guardian
include Google::Apis::Core::Hashable
# Identifier for the student to whom the guardian relationship applies.
# Corresponds to the JSON property `studentId`
# @return [String]
attr_accessor :student_id
# Identifier for the guardian.
# Corresponds to the JSON property `guardianId`
# @return [String]
attr_accessor :guardian_id
# Global information for a user.
# Corresponds to the JSON property `guardianProfile`
# @return [Google::Apis::ClassroomV1::UserProfile]
attr_accessor :guardian_profile
# The email address to which the initial guardian invitation was sent. This
# field is only visible to domain administrators.
# Corresponds to the JSON property `invitedEmailAddress`
# @return [String]
attr_accessor :invited_email_address
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@student_id = args[:student_id] if args.key?(:student_id)
@guardian_id = args[:guardian_id] if args.key?(:guardian_id)
@guardian_profile = args[:guardian_profile] if args.key?(:guardian_profile)
@invited_email_address = args[:invited_email_address] if args.key?(:invited_email_address)
end
end
# Global information for a user.
class UserProfile
include Google::Apis::Core::Hashable
@ -858,6 +792,72 @@ module Google
end
end
# Response when listing guardians.
class ListGuardiansResponse
include Google::Apis::Core::Hashable
# Guardians on this page of results that met the criteria specified in the
# request.
# Corresponds to the JSON property `guardians`
# @return [Array<Google::Apis::ClassroomV1::Guardian>]
attr_accessor :guardians
# Token identifying the next page of results to return. If empty, no further
# results are available.
# 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)
@guardians = args[:guardians] if args.key?(:guardians)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# Association between a student and a guardian of that student. The guardian may
# receive information about the student's course work.
class Guardian
include Google::Apis::Core::Hashable
# Identifier for the student to whom the guardian relationship applies.
# Corresponds to the JSON property `studentId`
# @return [String]
attr_accessor :student_id
# Identifier for the guardian.
# Corresponds to the JSON property `guardianId`
# @return [String]
attr_accessor :guardian_id
# Global information for a user.
# Corresponds to the JSON property `guardianProfile`
# @return [Google::Apis::ClassroomV1::UserProfile]
attr_accessor :guardian_profile
# The email address to which the initial guardian invitation was sent. This
# field is only visible to domain administrators.
# Corresponds to the JSON property `invitedEmailAddress`
# @return [String]
attr_accessor :invited_email_address
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@student_id = args[:student_id] if args.key?(:student_id)
@guardian_id = args[:guardian_id] if args.key?(:guardian_id)
@guardian_profile = args[:guardian_profile] if args.key?(:guardian_profile)
@invited_email_address = args[:invited_email_address] if args.key?(:invited_email_address)
end
end
# An invitation to join a course.
class Invitation
include Google::Apis::Core::Hashable
@ -1002,7 +1002,7 @@ module Google
attr_accessor :max_points
# Type of this course work. The type is set when the course work is created and
# cannot be changed. When creating course work, this must be `ASSIGNMENT`.
# cannot be changed.
# Corresponds to the JSON property `workType`
# @return [String]
attr_accessor :work_type
@ -1057,8 +1057,8 @@ module Google
end
end
# Material attached to course work. When creating attachments, only the Link
# field may be specified.
# Material attached to course work. When creating attachments, setting the `form`
# field is not supported.
class Material
include Google::Apis::Core::Hashable
@ -1389,10 +1389,10 @@ module Google
include Google::Apis::Core::Hashable
# Attachments added by the student. Drive files that correspond to materials
# with a share mode of SUBMISSION_COPY may not exist yet if the student has not
# with a share mode of STUDENT_COPY may not exist yet if the student has not
# accessed the assignment in Classroom. Some attachment metadata is only
# populated if the requesting user has permission to access it. Identifier and
# alternate_link fields are available, but others (e.g. title) may not be.
# alternate_link fields are always available, but others (e.g. title) may not be.
# Corresponds to the JSON property `attachments`
# @return [Array<Google::Apis::ClassroomV1::Attachment>]
attr_accessor :attachments
@ -1407,8 +1407,8 @@ module Google
end
end
# Attachment added to student assignment work. When creating attachments, only
# the Link field may be specified.
# Attachment added to student assignment work. When creating attachments,
# setting the `form` field is not supported.
class Attachment
include Google::Apis::Core::Hashable
@ -1553,7 +1553,7 @@ module Google
include Google::Apis::Core::Hashable
# Attachments to add. A student submission may not have more than 20 attachments.
# This may only contain link attachments.
# Form attachments are not supported.
# Corresponds to the JSON property `addAttachments`
# @return [Array<Google::Apis::ClassroomV1::Attachment>]
attr_accessor :add_attachments

View File

@ -106,18 +106,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ListGuardiansResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Guardian
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UserProfile
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -160,6 +148,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ListGuardiansResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Guardian
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Invitation
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -427,26 +427,6 @@ module Google
end
end
class ListGuardiansResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :guardians, as: 'guardians', class: Google::Apis::ClassroomV1::Guardian, decorator: Google::Apis::ClassroomV1::Guardian::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class Guardian
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :student_id, as: 'studentId'
property :guardian_id, as: 'guardianId'
property :guardian_profile, as: 'guardianProfile', class: Google::Apis::ClassroomV1::UserProfile, decorator: Google::Apis::ClassroomV1::UserProfile::Representation
property :invited_email_address, as: 'invitedEmailAddress'
end
end
class UserProfile
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -516,6 +496,26 @@ module Google
end
end
class ListGuardiansResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :guardians, as: 'guardians', class: Google::Apis::ClassroomV1::Guardian, decorator: Google::Apis::ClassroomV1::Guardian::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class Guardian
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :student_id, as: 'studentId'
property :guardian_id, as: 'guardianId'
property :guardian_profile, as: 'guardianProfile', class: Google::Apis::ClassroomV1::UserProfile, decorator: Google::Apis::ClassroomV1::UserProfile::Representation
property :invited_email_address, as: 'invitedEmailAddress'
end
end
class Invitation
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -743,9 +743,10 @@ module Google
# must be made with an OAuth client ID from the associated Developer Console
# project. This method returns the following error codes: * `PERMISSION_DENIED`
# if the requesting user is not permitted to access the requested course, create
# course work in the requested course, or for access errors. * `INVALID_ARGUMENT`
# if the request is malformed. * `NOT_FOUND` if the requested course does not
# exist.
# course work in the requested course, share a Drive attachment, or for access
# errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the
# requested course does not exist. * `FAILED_PRECONDITION` for the following
# request error: * AttachmentNotVisible
# @param [String] course_id
# Identifier of the course. This identifier can be either the Classroom-assigned
# identifier or an alias.
@ -779,6 +780,105 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates one or more fields of a course work. See google.classroom.v1.
# CourseWork for details of which fields may be updated and who may change them.
# This request must be made by the Developer Console project of the [OAuth
# client ID](https://support.google.com/cloud/answer/6158849) used to create the
# corresponding course work item. This method returns the following error codes:
# * `PERMISSION_DENIED` if the requesting developer project did not create the
# corresponding course work, if the user is not permitted to make the requested
# modification to the student submission, or for access errors. * `
# INVALID_ARGUMENT` if the request is malformed. * `FAILED_PRECONDITION` if the
# requested course work has already been deleted. * `NOT_FOUND` if the requested
# course, course work, or student submission does not exist.
# @param [String] course_id
# Identifier of the course. This identifier can be either the Classroom-assigned
# identifier or an alias.
# @param [String] id
# Identifier of the course work.
# @param [Google::Apis::ClassroomV1::CourseWork] course_work_object
# @param [String] update_mask
# Mask that identifies which fields on the course work to update. This field is
# required to do an update. The update fails if invalid fields are specified. If
# a field supports empty values, it can be cleared by specifying it in the
# update mask and not in the CourseWork object. If a field that does not support
# empty values is included in the update mask and not set in the CourseWork
# object, an `INVALID_ARGUMENT` error will be returned. The following fields may
# be specified by teachers: * `title` * `description` * `state` * `due_date` * `
# due_time` * `max_points` * `submission_modification_mode`
# @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::ClassroomV1::CourseWork] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClassroomV1::CourseWork]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_course_course_work(course_id, id, course_work_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1/courses/{courseId}/courseWork/{id}', options)
command.request_representation = Google::Apis::ClassroomV1::CourseWork::Representation
command.request_object = course_work_object
command.response_representation = Google::Apis::ClassroomV1::CourseWork::Representation
command.response_class = Google::Apis::ClassroomV1::CourseWork
command.params['courseId'] = course_id unless course_id.nil?
command.params['id'] = id unless 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
# Deletes a course work. This request must be made by the Developer Console
# project of the [OAuth client ID](https://support.google.com/cloud/answer/
# 6158849) used to create the corresponding course work item. This method
# returns the following error codes: * `PERMISSION_DENIED` if the requesting
# developer project did not create the corresponding course work, if the
# requesting user is not permitted to delete the requested course or for access
# errors. * `FAILED_PRECONDITION` if the requested course work has already been
# deleted. * `NOT_FOUND` if no course exists with the requested ID.
# @param [String] course_id
# Identifier of the course. This identifier can be either the Classroom-assigned
# identifier or an alias.
# @param [String] id
# Identifier of the course work to delete. This identifier is a Classroom-
# assigned identifier.
# @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::ClassroomV1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClassroomV1::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_course_course_work(course_id, id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1/courses/{courseId}/courseWork/{id}', options)
command.response_representation = Google::Apis::ClassroomV1::Empty::Representation
command.response_class = Google::Apis::ClassroomV1::Empty
command.params['courseId'] = course_id unless course_id.nil?
command.params['id'] = id unless id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns course work. This method returns the following error codes: * `
# PERMISSION_DENIED` if the requesting user is not permitted to access the
# requested course or course work, or for access errors. * `INVALID_ARGUMENT` if
@ -1091,7 +1191,7 @@ module Google
# Reclaims a student submission on behalf of the student that owns it.
# Reclaiming a student submission transfers ownership of attached Drive files to
# the student and update the submission state. Only the student that ownes the
# the student and update the submission state. Only the student that owns the
# requested student submission may call this method, and only for a student
# submission that has been turned in. This request must be made by the Developer
# Console project of the [OAuth client ID](https://support.google.com/cloud/
@ -1194,15 +1294,15 @@ module Google
end
# Modifies attachments of student submission. Attachments may only be added to
# student submissions whose type is `ASSIGNMENT`. This request must be made by
# the Developer Console project of the [OAuth client ID](https://support.google.
# com/cloud/answer/6158849) used to create the corresponding course work item.
# This method returns the following error codes: * `PERMISSION_DENIED` if the
# requesting user is not permitted to access the requested course or course work,
# if the user is not permitted to modify attachments on the requested student
# submission, or for access errors. * `INVALID_ARGUMENT` if the request is
# malformed. * `NOT_FOUND` if the requested course, course work, or student
# submission does not exist.
# student submissions belonging to course work objects with a `workType` of `
# ASSIGNMENT`. This request must be made by the Developer Console project of the
# [OAuth client ID](https://support.google.com/cloud/answer/6158849) used to
# create the corresponding course work item. This method returns the following
# error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to
# access the requested course or course work, if the user is not permitted to
# modify attachments on the requested student submission, or for access errors. *
# `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the
# requested course, course work, or student submission does not exist.
# @param [String] course_id
# Identifier of the course. This identifier can be either the Classroom-assigned
# identifier or an alias.
@ -1244,7 +1344,7 @@ module Google
# Returns a user profile. This method returns the following error codes: * `
# PERMISSION_DENIED` if the requesting user is not permitted to access this user
# profile or if no profile exists with the requested ID or for access errors.
# profile, if no profile exists with the requested ID, or for access errors.
# @param [String] user_id
# Identifier of the profile to return. The identifier can be one of the
# following: * the numeric identifier for the user * the email address of the
@ -1554,13 +1654,15 @@ module Google
end
# Returns a specific guardian. This method returns the following error codes: * `
# PERMISSION_DENIED` if the requesting user is not permitted to view guardian
# information for the student identified by the `student_id`, if guardians are
# not enabled for the domain in question, or for other access errors. * `
# INVALID_ARGUMENT` if a `student_id` is specified, but its format cannot be
# recognized (it is not an email address, nor a `student_id` from the API, nor
# the literal string `me`). * `NOT_FOUND` if Classroom cannot find any record of
# the given student or `guardian_id`, or if the guardian has been disabled.
# PERMISSION_DENIED` if no user that matches the provided `student_id` is
# visible to the requesting user, if the requesting user is not permitted to
# view guardian information for the student identified by the `student_id`, if
# guardians are not enabled for the domain in question, or for other access
# errors. * `INVALID_ARGUMENT` if a `student_id` is specified, but its format
# cannot be recognized (it is not an email address, nor a `student_id` from the
# API, nor the literal string `me`). * `NOT_FOUND` if the requesting user is
# permitted to view guardians for the requested `student_id`, but no `Guardian`
# record exists for that student that matches the provided `guardian_id`.
# @param [String] student_id
# The student whose guardian is being requested. One of the following: * the
# numeric identifier for the user * the email address of the user * the string
@ -1597,13 +1699,15 @@ module Google
# Deletes a guardian. The guardian will no longer receive guardian notifications
# and the guardian will no longer be accessible via the API. This method returns
# the following error codes: * `PERMISSION_DENIED` if the requesting user is not
# permitted to manage guardians for the student identified by the `student_id`,
# if guardians are not enabled for the domain in question, or for other access
# errors. * `INVALID_ARGUMENT` if a `student_id` is specified, but its format
# cannot be recognized (it is not an email address, nor a `student_id` from the
# API). * `NOT_FOUND` if Classroom cannot find any record of the given `
# student_id` or `guardian_id`, or if the guardian has already been disabled.
# the following error codes: * `PERMISSION_DENIED` if no user that matches the
# provided `student_id` is visible to the requesting user, if the requesting
# user is not permitted to manage guardians for the student identified by the `
# student_id`, if guardians are not enabled for the domain in question, or for
# other access errors. * `INVALID_ARGUMENT` if a `student_id` is specified, but
# its format cannot be recognized (it is not an email address, nor a `student_id`
# from the API). * `NOT_FOUND` if the requesting user is permitted to modify
# guardians for the requested `student_id`, but no `Guardian` record exists for
# that student with the provided `guardian_id`.
# @param [String] student_id
# The student whose guardian is to be deleted. One of the following: * the
# numeric identifier for the user * the email address of the user * the string

View File

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

View File

@ -415,6 +415,19 @@ module Google
end
end
# The request message for Operations.CancelOperation.
class CancelOperationRequest
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# StorageSource describes the location of the source in an archive file in
# Google Cloud Storage.
class StorageSource
@ -523,6 +536,8 @@ module Google
attr_accessor :options
# Time at which execution of the build was finished.
# The difference between finish_time and start_time is the duration of the
# build's execution.
# @OutputOnly
# Corresponds to the JSON property `finishTime`
# @return [String]
@ -547,7 +562,7 @@ module Google
# @return [Google::Apis::CloudbuildV1::Source]
attr_accessor :source
# Time at which the build was created.
# Time at which the request to create the build was received.
# @OutputOnly
# Corresponds to the JSON property `createTime`
# @return [String]
@ -567,8 +582,7 @@ module Google
# A list of images to be pushed upon the successful completion of all build
# steps.
# The images will be pushed using the builder
# service account's credentials.
# The images will be pushed using the builder service account's credentials.
# The digests of the pushed images will be stored in the Build resource's
# results field.
# If any of the images fail to be pushed, the build is marked FAILURE.
@ -662,26 +676,6 @@ module Google
end
end
# Container message for hashes of byte content of files, used in
# SourceProvenance messages to verify integrity of source input to the build.
class FileHashes
include Google::Apis::Core::Hashable
# Collection of file hashes.
# Corresponds to the JSON property `fileHash`
# @return [Array<Google::Apis::CloudbuildV1::HashProp>]
attr_accessor :file_hash
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@file_hash = args[:file_hash] if args.key?(:file_hash)
end
end
# The response message for Operations.ListOperations.
class ListOperationsResponse
include Google::Apis::Core::Hashable
@ -707,6 +701,26 @@ module Google
end
end
# Container message for hashes of byte content of files, used in
# SourceProvenance messages to verify integrity of source input to the build.
class FileHashes
include Google::Apis::Core::Hashable
# Collection of file hashes.
# Corresponds to the JSON property `fileHash`
# @return [Array<Google::Apis::CloudbuildV1::HashProp>]
attr_accessor :file_hash
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@file_hash = args[:file_hash] if args.key?(:file_hash)
end
end
# RepoSource describes the location of the source in a Google Cloud Source
# Repository.
class RepoSource
@ -787,11 +801,16 @@ module Google
# @return [Array<String>]
attr_accessor :args
# Optional entrypoint to be used instead of the build step image's default
# If unset, the image's default will be used.
# Corresponds to the JSON property `entrypoint`
# @return [String]
attr_accessor :entrypoint
# The name of the container image that will run this particular build step.
# If the image is already available in the host's
# Docker daemon's cache, it will be run directly. If not, the host will
# attempt to pull the image first, using the builder service account's
# credentials if necessary.
# If the image is already available in the host's Docker daemon's cache, it
# will be run directly. If not, the host will attempt to pull the image
# first, using the builder service account's credentials if necessary.
# The Docker daemon's cache will already have the latest versions of all of
# the officially supported build steps
# (https://github.com/GoogleCloudPlatform/cloud-builders). The Docker daemon
@ -821,6 +840,7 @@ module Google
@env = args[:env] if args.key?(:env)
@wait_for = args[:wait_for] if args.key?(:wait_for)
@args = args[:args] if args.key?(:args)
@entrypoint = args[:entrypoint] if args.key?(:entrypoint)
@name = args[:name] if args.key?(:name)
@dir = args[:dir] if args.key?(:dir)
end

View File

@ -70,6 +70,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class CancelOperationRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class StorageSource
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -100,13 +106,13 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class FileHashes
class ListOperationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListOperationsResponse
class FileHashes
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -224,6 +230,12 @@ module Google
end
end
class CancelOperationRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class StorageSource
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -284,14 +296,6 @@ module Google
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
class ListOperationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -301,6 +305,14 @@ module Google
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
class RepoSource
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -319,6 +331,7 @@ module Google
collection :env, as: 'env'
collection :wait_for, as: 'waitFor'
collection :args, as: 'args'
property :entrypoint, as: 'entrypoint'
property :name, as: 'name'
property :dir, as: 'dir'
end

View File

@ -437,6 +437,48 @@ module Google
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Starts asynchronous cancellation on a long-running operation. The server
# makes a best effort to cancel the operation, but success is not
# guaranteed. If the server doesn't support this method, it returns
# `google.rpc.Code.UNIMPLEMENTED`. Clients can use
# Operations.GetOperation or
# other methods to check whether the cancellation succeeded or whether the
# operation completed despite cancellation. On successful cancellation,
# the operation is not deleted; instead, it becomes an operation with
# an Operation.error value with a google.rpc.Status.code of 1,
# corresponding to `Code.CANCELLED`.
# @param [String] name
# The name of the operation resource to be cancelled.
# @param [Google::Apis::CloudbuildV1::CancelOperationRequest] cancel_operation_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::CloudbuildV1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudbuildV1::Empty]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def 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['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
protected

View File

@ -26,7 +26,7 @@ module Google
# @see http://cloud.google.com/debugger
module ClouddebuggerV2
VERSION = 'V2'
REVISION = '20160810'
REVISION = '20170117'
# 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

View File

@ -22,19 +22,37 @@ module Google
module Apis
module ClouddebuggerV2
class RegisterDebuggeeRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Debuggee
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class StatusMessage
class StackFrame
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListBreakpointsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Variable
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 GerritSourceContext
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -46,13 +64,55 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class SourceContext
class RegisterDebuggeeResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CloudRepoSourceContext
class GetBreakpointResponse
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 CloudWorkspaceId
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Breakpoint
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SetBreakpointResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListActiveBreakpointsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ExtendedSourceContext
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RegisterDebuggeeRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -70,126 +130,58 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class AliasContext
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CloudWorkspaceSourceContext
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CloudWorkspaceId
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GerritSourceContext
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GitSourceContext
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ExtendedSourceContext
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RegisterDebuggeeResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListActiveBreakpointsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Breakpoint
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SourceLocation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class StackFrame
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Variable
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UpdateActiveBreakpointRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UpdateActiveBreakpointResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SetBreakpointResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GetBreakpointResponse
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 ListBreakpointsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListDebuggeesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RegisterDebuggeeRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :debuggee, as: 'debuggee', class: Google::Apis::ClouddebuggerV2::Debuggee, decorator: Google::Apis::ClouddebuggerV2::Debuggee::Representation
class CloudRepoSourceContext
class Representation < Google::Apis::Core::JsonRepresentation; end
end
include Google::Apis::Core::JsonObjectSupport
end
class UpdateActiveBreakpointRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SourceContext
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Empty
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GitSourceContext
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class StatusMessage
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UpdateActiveBreakpointResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Debuggee
@ -197,61 +189,176 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
property :project, as: 'project'
property :uniquifier, as: 'uniquifier'
collection :ext_source_contexts, as: 'extSourceContexts', class: Google::Apis::ClouddebuggerV2::ExtendedSourceContext, decorator: Google::Apis::ClouddebuggerV2::ExtendedSourceContext::Representation
property :description, as: 'description'
property :is_inactive, as: 'isInactive'
property :agent_version, as: 'agentVersion'
property :is_disabled, as: 'isDisabled'
property :status, as: 'status', class: Google::Apis::ClouddebuggerV2::StatusMessage, decorator: Google::Apis::ClouddebuggerV2::StatusMessage::Representation
property :is_inactive, as: 'isInactive'
property :agent_version, as: 'agentVersion'
hash :labels, as: 'labels'
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'
end
end
class StatusMessage
class StackFrame
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :is_error, as: 'isError'
property :refers_to, as: 'refersTo'
property :description, as: 'description', class: Google::Apis::ClouddebuggerV2::FormatMessage, decorator: Google::Apis::ClouddebuggerV2::FormatMessage::Representation
collection :locals, as: 'locals', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
property :function, as: 'function'
property :location, as: 'location', class: Google::Apis::ClouddebuggerV2::SourceLocation, decorator: Google::Apis::ClouddebuggerV2::SourceLocation::Representation
collection :arguments, as: 'arguments', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
end
end
class ListBreakpointsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :breakpoints, as: 'breakpoints', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation
property :next_wait_token, as: 'nextWaitToken'
end
end
class Variable
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :var_table_index, as: 'varTableIndex'
property :status, as: 'status', class: Google::Apis::ClouddebuggerV2::StatusMessage, decorator: Google::Apis::ClouddebuggerV2::StatusMessage::Representation
collection :members, as: 'members', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
property :name, as: 'name'
property :value, as: 'value'
property :type, as: 'type'
end
end
class SourceLocation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :path, as: 'path'
property :line, as: 'line'
end
end
class GerritSourceContext
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :host_uri, as: 'hostUri'
property :alias_name, as: 'aliasName'
property :alias_context, as: 'aliasContext', class: Google::Apis::ClouddebuggerV2::AliasContext, decorator: Google::Apis::ClouddebuggerV2::AliasContext::Representation
property :gerrit_project, as: 'gerritProject'
property :revision_id, as: 'revisionId'
end
end
class FormatMessage
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :format, as: 'format'
collection :parameters, as: 'parameters'
property :format, as: 'format'
end
end
class SourceContext
class RegisterDebuggeeResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :cloud_repo, as: 'cloudRepo', class: Google::Apis::ClouddebuggerV2::CloudRepoSourceContext, decorator: Google::Apis::ClouddebuggerV2::CloudRepoSourceContext::Representation
property :cloud_workspace, as: 'cloudWorkspace', class: Google::Apis::ClouddebuggerV2::CloudWorkspaceSourceContext, decorator: Google::Apis::ClouddebuggerV2::CloudWorkspaceSourceContext::Representation
property :gerrit, as: 'gerrit', class: Google::Apis::ClouddebuggerV2::GerritSourceContext, decorator: Google::Apis::ClouddebuggerV2::GerritSourceContext::Representation
property :git, as: 'git', class: Google::Apis::ClouddebuggerV2::GitSourceContext, decorator: Google::Apis::ClouddebuggerV2::GitSourceContext::Representation
property :debuggee, as: 'debuggee', class: Google::Apis::ClouddebuggerV2::Debuggee, decorator: Google::Apis::ClouddebuggerV2::Debuggee::Representation
end
end
class CloudRepoSourceContext
class GetBreakpointResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :breakpoint, as: 'breakpoint', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation
end
end
class AliasContext
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
property :name, as: 'name'
end
end
class CloudWorkspaceId
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :repo_id, as: 'repoId', class: Google::Apis::ClouddebuggerV2::RepoId, decorator: Google::Apis::ClouddebuggerV2::RepoId::Representation
property :revision_id, as: 'revisionId'
property :alias_name, as: 'aliasName'
property :alias_context, as: 'aliasContext', class: Google::Apis::ClouddebuggerV2::AliasContext, decorator: Google::Apis::ClouddebuggerV2::AliasContext::Representation
property :name, as: 'name'
end
end
class Breakpoint
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
collection :stack_frames, as: 'stackFrames', class: Google::Apis::ClouddebuggerV2::StackFrame, decorator: Google::Apis::ClouddebuggerV2::StackFrame::Representation
property :location, as: 'location', class: Google::Apis::ClouddebuggerV2::SourceLocation, decorator: Google::Apis::ClouddebuggerV2::SourceLocation::Representation
property :status, as: 'status', class: Google::Apis::ClouddebuggerV2::StatusMessage, decorator: Google::Apis::ClouddebuggerV2::StatusMessage::Representation
property :user_email, as: 'userEmail'
property :condition, as: 'condition'
property :final_time, as: 'finalTime'
property :action, as: 'action'
hash :labels, as: 'labels'
property :log_message_format, as: 'logMessageFormat'
property :create_time, as: 'createTime'
property :log_level, as: 'logLevel'
collection :evaluated_expressions, as: 'evaluatedExpressions', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
property :is_final_state, as: 'isFinalState'
collection :expressions, as: 'expressions'
collection :variable_table, as: 'variableTable', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
end
end
class SetBreakpointResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :breakpoint, as: 'breakpoint', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation
end
end
class ListActiveBreakpointsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :wait_expired, as: 'waitExpired'
collection :breakpoints, as: 'breakpoints', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation
property :next_wait_token, as: 'nextWaitToken'
end
end
class ExtendedSourceContext
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :labels, as: 'labels'
property :context, as: 'context', class: Google::Apis::ClouddebuggerV2::SourceContext, decorator: Google::Apis::ClouddebuggerV2::SourceContext::Representation
end
end
class RegisterDebuggeeRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :debuggee, as: 'debuggee', class: Google::Apis::ClouddebuggerV2::Debuggee, decorator: Google::Apis::ClouddebuggerV2::Debuggee::Representation
end
end
@ -268,146 +375,40 @@ module Google
class ProjectRepoId
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :project_id, as: 'projectId'
property :repo_name, as: 'repoName'
end
end
class AliasContext
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
property :name, as: 'name'
property :project_id, as: 'projectId'
end
end
class CloudWorkspaceSourceContext
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :snapshot_id, as: 'snapshotId'
property :workspace_id, as: 'workspaceId', class: Google::Apis::ClouddebuggerV2::CloudWorkspaceId, decorator: Google::Apis::ClouddebuggerV2::CloudWorkspaceId::Representation
property :snapshot_id, as: 'snapshotId'
end
end
class CloudWorkspaceId
class ListDebuggeesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :repo_id, as: 'repoId', class: Google::Apis::ClouddebuggerV2::RepoId, decorator: Google::Apis::ClouddebuggerV2::RepoId::Representation
collection :debuggees, as: 'debuggees', class: Google::Apis::ClouddebuggerV2::Debuggee, decorator: Google::Apis::ClouddebuggerV2::Debuggee::Representation
property :name, as: 'name'
end
end
class GerritSourceContext
class CloudRepoSourceContext
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :host_uri, as: 'hostUri'
property :gerrit_project, as: 'gerritProject'
property :revision_id, as: 'revisionId'
property :alias_name, as: 'aliasName'
property :alias_context, as: 'aliasContext', class: Google::Apis::ClouddebuggerV2::AliasContext, decorator: Google::Apis::ClouddebuggerV2::AliasContext::Representation
end
end
property :repo_id, as: 'repoId', class: Google::Apis::ClouddebuggerV2::RepoId, decorator: Google::Apis::ClouddebuggerV2::RepoId::Representation
class GitSourceContext
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :url, as: 'url'
property :revision_id, as: 'revisionId'
end
end
class ExtendedSourceContext
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :context, as: 'context', class: Google::Apis::ClouddebuggerV2::SourceContext, decorator: Google::Apis::ClouddebuggerV2::SourceContext::Representation
hash :labels, as: 'labels'
end
end
class RegisterDebuggeeResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :debuggee, as: 'debuggee', class: Google::Apis::ClouddebuggerV2::Debuggee, decorator: Google::Apis::ClouddebuggerV2::Debuggee::Representation
end
end
class ListActiveBreakpointsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :breakpoints, as: 'breakpoints', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation
property :next_wait_token, as: 'nextWaitToken'
property :wait_expired, as: 'waitExpired'
end
end
class Breakpoint
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
property :action, as: 'action'
property :location, as: 'location', class: Google::Apis::ClouddebuggerV2::SourceLocation, decorator: Google::Apis::ClouddebuggerV2::SourceLocation::Representation
property :condition, as: 'condition'
collection :expressions, as: 'expressions'
property :log_message_format, as: 'logMessageFormat'
property :log_level, as: 'logLevel'
property :is_final_state, as: 'isFinalState'
property :create_time, as: 'createTime'
property :final_time, as: 'finalTime'
property :user_email, as: 'userEmail'
property :status, as: 'status', class: Google::Apis::ClouddebuggerV2::StatusMessage, decorator: Google::Apis::ClouddebuggerV2::StatusMessage::Representation
collection :stack_frames, as: 'stackFrames', class: Google::Apis::ClouddebuggerV2::StackFrame, decorator: Google::Apis::ClouddebuggerV2::StackFrame::Representation
collection :evaluated_expressions, as: 'evaluatedExpressions', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
collection :variable_table, as: 'variableTable', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
hash :labels, as: 'labels'
end
end
class SourceLocation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :path, as: 'path'
property :line, as: 'line'
end
end
class StackFrame
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :function, as: 'function'
property :location, as: 'location', class: Google::Apis::ClouddebuggerV2::SourceLocation, decorator: Google::Apis::ClouddebuggerV2::SourceLocation::Representation
collection :arguments, as: 'arguments', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
collection :locals, as: 'locals', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
end
end
class Variable
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :value, as: 'value'
property :type, as: 'type'
collection :members, as: 'members', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
property :var_table_index, as: 'varTableIndex'
property :status, as: 'status', class: Google::Apis::ClouddebuggerV2::StatusMessage, decorator: Google::Apis::ClouddebuggerV2::StatusMessage::Representation
end
end
class UpdateActiveBreakpointRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -416,24 +417,16 @@ module Google
end
end
class UpdateActiveBreakpointResponse
class SourceContext
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
property :cloud_repo, as: 'cloudRepo', class: Google::Apis::ClouddebuggerV2::CloudRepoSourceContext, decorator: Google::Apis::ClouddebuggerV2::CloudRepoSourceContext::Representation
class SetBreakpointResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :breakpoint, as: 'breakpoint', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation
property :cloud_workspace, as: 'cloudWorkspace', class: Google::Apis::ClouddebuggerV2::CloudWorkspaceSourceContext, decorator: Google::Apis::ClouddebuggerV2::CloudWorkspaceSourceContext::Representation
end
end
property :git, as: 'git', class: Google::Apis::ClouddebuggerV2::GitSourceContext, decorator: Google::Apis::ClouddebuggerV2::GitSourceContext::Representation
class GetBreakpointResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :breakpoint, as: 'breakpoint', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation
property :gerrit, as: 'gerrit', class: Google::Apis::ClouddebuggerV2::GerritSourceContext, decorator: Google::Apis::ClouddebuggerV2::GerritSourceContext::Representation
end
end
@ -444,20 +437,27 @@ module Google
end
end
class ListBreakpointsResponse
class GitSourceContext
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :breakpoints, as: 'breakpoints', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation
property :next_wait_token, as: 'nextWaitToken'
property :url, as: 'url'
property :revision_id, as: 'revisionId'
end
end
class ListDebuggeesResponse
class StatusMessage
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :debuggees, as: 'debuggees', class: Google::Apis::ClouddebuggerV2::Debuggee, decorator: Google::Apis::ClouddebuggerV2::Debuggee::Representation
property :is_error, as: 'isError'
property :description, as: 'description', class: Google::Apis::ClouddebuggerV2::FormatMessage, decorator: Google::Apis::ClouddebuggerV2::FormatMessage::Representation
property :refers_to, as: 'refersTo'
end
end
class UpdateActiveBreakpointResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
end

View File

@ -47,19 +47,20 @@ module Google
super('https://clouddebugger.googleapis.com/', '')
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.
# 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`.
# 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] 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
#
@ -72,82 +73,35 @@ 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 register_debuggee(register_debuggee_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
def register_debuggee(register_debuggee_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/controller/debuggees/register', options)
command.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['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
# 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] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ClouddebuggerV2::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, fields: nil, quota_user: 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['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Updates the breakpoint state or mutable fields. The entire Breakpoint message
# must be sent back to the controller service. Updates to active breakpoint
# fields are only allowed if the new value does not change the breakpoint
# specification. Updates to the `location`, `condition` and `expression` fields
# should not alter the breakpoint semantics. These may only make changes such as
# canonicalizing a value or snapping the location to the correct line of code.
# Updates the breakpoint state or mutable fields.
# The entire Breakpoint message must be sent back to the controller
# service.
# Updates to active breakpoint fields are only allowed if the new value
# does not change the breakpoint specification. Updates to the `location`,
# `condition` and `expression` fields should not alter the breakpoint
# semantics. These may only make changes such as canonicalizing a value
# or snapping the location to the correct line of code.
# @param [String] debuggee_id
# Identifies the debuggee being debugged.
# @param [String] id
# Breakpoint identifier, unique in the scope of the debuggee.
# @param [Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointRequest] update_active_breakpoint_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -160,7 +114,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 update_active_breakpoint(debuggee_id, id, update_active_breakpoint_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
def update_active_breakpoint(debuggee_id, id, update_active_breakpoint_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:put, 'v2/controller/debuggees/{debuggeeId}/breakpoints/{id}', options)
command.request_representation = Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointRequest::Representation
command.request_object = update_active_breakpoint_request_object
@ -168,25 +122,77 @@ module Google
command.response_class = Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
command.params['id'] = id unless id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
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
# Lists all the debuggees that the user can set breakpoints to.
# @param [Boolean] include_inactive
# When set to `true`, the result includes all debuggees. Otherwise, the
# result includes only debuggees that are active.
# @param [String] project
# Project number of a Google Cloud project whose debuggees to list.
# @param [Boolean] include_inactive
# When set to `true`, the result includes all debuggees. Otherwise, the result
# includes only debuggees that are active.
# @param [String] client_version
# The client version making the call. Following: `domain/type/version` (e.g., `
# google.com/intellij/v1`).
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# The client version making the call.
# Following: `domain/type/version` (e.g., `google.com/intellij/v1`).
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -199,52 +205,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_debugger_debuggees(project: nil, include_inactive: nil, client_version: nil, fields: nil, quota_user: nil, options: nil, &block)
def list_debugger_debuggees(include_inactive: nil, project: nil, client_version: nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v2/debugger/debuggees', options)
command.response_representation = Google::Apis::ClouddebuggerV2::ListDebuggeesResponse::Representation
command.response_class = Google::Apis::ClouddebuggerV2::ListDebuggeesResponse
command.query['project'] = project unless project.nil?
command.query['includeInactive'] = include_inactive unless include_inactive.nil?
command.query['project'] = project unless project.nil?
command.query['clientVersion'] = client_version unless client_version.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Sets the breakpoint to the debuggee.
# @param [String] debuggee_id
# ID of the debuggee where the breakpoint is to be set.
# @param [Google::Apis::ClouddebuggerV2::Breakpoint] breakpoint_object
# @param [String] client_version
# The client version making the call. Following: `domain/type/version` (e.g., `
# google.com/intellij/v1`).
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ClouddebuggerV2::SetBreakpointResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClouddebuggerV2::SetBreakpointResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def set_debugger_debuggee_breakpoint(debuggee_id, breakpoint_object = nil, client_version: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/debugger/debuggees/{debuggeeId}/breakpoints/set', options)
command.request_representation = Google::Apis::ClouddebuggerV2::Breakpoint::Representation
command.request_object = breakpoint_object
command.response_representation = Google::Apis::ClouddebuggerV2::SetBreakpointResponse::Representation
command.response_class = Google::Apis::ClouddebuggerV2::SetBreakpointResponse
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
command.query['clientVersion'] = client_version unless client_version.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
@ -254,13 +223,13 @@ module Google
# @param [String] breakpoint_id
# ID of the breakpoint to get.
# @param [String] client_version
# The client version making the call. Following: `domain/type/version` (e.g., `
# google.com/intellij/v1`).
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# The client version making the call.
# Following: `domain/type/version` (e.g., `google.com/intellij/v1`).
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -273,83 +242,46 @@ 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_debugger_debuggee_breakpoint(debuggee_id, breakpoint_id, client_version: nil, fields: nil, quota_user: nil, options: nil, &block)
def get_debugger_debuggee_breakpoint(debuggee_id, breakpoint_id, client_version: nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}', options)
command.response_representation = Google::Apis::ClouddebuggerV2::GetBreakpointResponse::Representation
command.response_class = Google::Apis::ClouddebuggerV2::GetBreakpointResponse
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
command.params['breakpointId'] = breakpoint_id unless breakpoint_id.nil?
command.query['clientVersion'] = client_version unless client_version.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Deletes the breakpoint from the debuggee.
# @param [String] debuggee_id
# ID of the debuggee whose breakpoint to delete.
# @param [String] breakpoint_id
# ID of the breakpoint to delete.
# @param [String] client_version
# The client version making the call. Following: `domain/type/version` (e.g., `
# google.com/intellij/v1`).
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ClouddebuggerV2::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClouddebuggerV2::Empty]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_debugger_debuggee_breakpoint(debuggee_id, breakpoint_id, client_version: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}', options)
command.response_representation = Google::Apis::ClouddebuggerV2::Empty::Representation
command.response_class = Google::Apis::ClouddebuggerV2::Empty
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
command.params['breakpointId'] = breakpoint_id unless breakpoint_id.nil?
command.query['clientVersion'] = client_version unless client_version.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists all breakpoints for the debuggee.
# @param [String] debuggee_id
# ID of the debuggee whose breakpoints to list.
# @param [String] client_version
# The client version making the call.
# Following: `domain/type/version` (e.g., `google.com/intellij/v1`).
# @param [Boolean] include_all_users
# When set to `true`, the response includes the list of breakpoints set by any
# user. Otherwise, it includes only breakpoints set by the caller.
# @param [Boolean] include_inactive
# When set to `true`, the response includes active and inactive breakpoints.
# Otherwise, it includes only active breakpoints.
# 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] action_value
# Only breakpoints with the specified action will pass the filter.
# @param [Boolean] strip_results
# When set to `true`, the response breakpoints are stripped of the results
# fields: `stack_frames`, `evaluated_expressions` and `variable_table`.
# @param [Boolean] include_inactive
# When set to `true`, the response includes active and inactive
# breakpoints. Otherwise, it includes only active breakpoints.
# @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 should be set
# from the last response. The error code `google.rpc.Code.ABORTED` (RPC) is
# returned on wait timeout, which should be called again with the same `
# wait_token`.
# @param [String] client_version
# The client version making the call. Following: `domain/type/version` (e.g., `
# google.com/intellij/v1`).
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# A wait token that, if specified, blocks the call until the breakpoints
# list has changed, or a server selected timeout has expired. The value
# should be set from the last response. The error code
# `google.rpc.Code.ABORTED` (RPC) is returned on wait timeout, which
# should be called again with the same `wait_token`.
# @param [String] quota_user
# Available to 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
#
@ -362,19 +294,93 @@ 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, include_all_users: nil, include_inactive: nil, action_value: nil, strip_results: nil, wait_token: nil, client_version: nil, fields: nil, quota_user: nil, options: nil, &block)
def list_debugger_debuggee_breakpoints(debuggee_id, client_version: nil, include_all_users: nil, strip_results: nil, action_value: nil, include_inactive: nil, wait_token: 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['includeAllUsers'] = include_all_users unless include_all_users.nil?
command.query['includeInactive'] = include_inactive unless include_inactive.nil?
command.query['action.value'] = action_value unless action_value.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['fields'] = fields unless fields.nil?
command.query['includeAllUsers'] = include_all_users unless include_all_users.nil?
command.query['stripResults'] = strip_results unless strip_results.nil?
command.query['action.value'] = action_value unless action_value.nil?
command.query['includeInactive'] = include_inactive unless include_inactive.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
# Sets the breakpoint to the debuggee.
# @param [String] debuggee_id
# ID of the debuggee where the breakpoint is to be set.
# @param [Google::Apis::ClouddebuggerV2::Breakpoint] breakpoint_object
# @param [String] client_version
# The client version making the call.
# Following: `domain/type/version` (e.g., `google.com/intellij/v1`).
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ClouddebuggerV2::SetBreakpointResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClouddebuggerV2::SetBreakpointResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def set_debugger_debuggee_breakpoint(debuggee_id, breakpoint_object = nil, client_version: nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/debugger/debuggees/{debuggeeId}/breakpoints/set', options)
command.request_representation = Google::Apis::ClouddebuggerV2::Breakpoint::Representation
command.request_object = breakpoint_object
command.response_representation = Google::Apis::ClouddebuggerV2::SetBreakpointResponse::Representation
command.response_class = Google::Apis::ClouddebuggerV2::SetBreakpointResponse
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
command.query['clientVersion'] = client_version unless client_version.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Deletes the breakpoint from the debuggee.
# @param [String] debuggee_id
# ID of the debuggee whose breakpoint to delete.
# @param [String] breakpoint_id
# ID of the breakpoint to delete.
# @param [String] client_version
# The client version making the call.
# Following: `domain/type/version` (e.g., `google.com/intellij/v1`).
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ClouddebuggerV2::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClouddebuggerV2::Empty]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_debugger_debuggee_breakpoint(debuggee_id, breakpoint_id, client_version: nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:delete, 'v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}', options)
command.response_representation = Google::Apis::ClouddebuggerV2::Empty::Representation
command.response_class = Google::Apis::ClouddebuggerV2::Empty
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
command.params['breakpointId'] = breakpoint_id unless breakpoint_id.nil?
command.query['clientVersion'] = client_version unless client_version.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/resource-manager
module CloudresourcemanagerV1
VERSION = 'V1'
REVISION = '20160927'
REVISION = '20170118'
# 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

View File

@ -22,7 +22,7 @@ module Google
module Apis
module CloudresourcemanagerV1
class Operation
class FolderOperationError
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -34,123 +34,136 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class SearchOrganizationsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SearchOrganizationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Organization
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrganizationOwner
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SetIamPolicyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Policy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Binding
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GetIamPolicyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TestIamPermissionsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TestIamPermissionsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Project
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ResourceId
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListProjectsResponse
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 UndeleteProjectRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ProjectCreationStatus
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class FolderOperation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class FolderOperationError
class Operation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Operation
class GetIamPolicyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SetIamPolicyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TestIamPermissionsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Organization
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Policy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ProjectCreationStatus
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TestIamPermissionsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GetAncestryRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GetAncestryResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SearchOrganizationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SearchOrganizationsRequest
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 Ancestor
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ResourceId
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Binding
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Project
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrganizationOwner
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class FolderOperationError
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
hash :metadata, as: 'metadata'
property :done, as: 'done'
property :error, as: 'error', class: Google::Apis::CloudresourcemanagerV1::Status, decorator: Google::Apis::CloudresourcemanagerV1::Status::Representation
hash :response, as: 'response'
property :error_message_id, as: 'errorMessageId'
end
end
@ -158,113 +171,8 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
property :message, as: 'message'
collection :details, as: 'details'
end
end
class SearchOrganizationsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :page_size, as: 'pageSize'
property :page_token, as: 'pageToken'
property :filter, as: 'filter'
end
end
class SearchOrganizationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :organizations, as: 'organizations', class: Google::Apis::CloudresourcemanagerV1::Organization, decorator: Google::Apis::CloudresourcemanagerV1::Organization::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class Organization
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :display_name, as: 'displayName'
property :owner, as: 'owner', class: Google::Apis::CloudresourcemanagerV1::OrganizationOwner, decorator: Google::Apis::CloudresourcemanagerV1::OrganizationOwner::Representation
property :creation_time, as: 'creationTime'
property :lifecycle_state, as: 'lifecycleState'
end
end
class OrganizationOwner
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :directory_customer_id, as: 'directoryCustomerId'
end
end
class SetIamPolicyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :policy, as: 'policy', class: Google::Apis::CloudresourcemanagerV1::Policy, decorator: Google::Apis::CloudresourcemanagerV1::Policy::Representation
end
end
class Policy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :version, as: 'version'
collection :bindings, as: 'bindings', class: Google::Apis::CloudresourcemanagerV1::Binding, decorator: Google::Apis::CloudresourcemanagerV1::Binding::Representation
property :etag, :base64 => true, as: 'etag'
end
end
class Binding
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :role, as: 'role'
collection :members, as: 'members'
end
end
class GetIamPolicyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class TestIamPermissionsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :permissions, as: 'permissions'
end
end
class TestIamPermissionsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :permissions, as: 'permissions'
end
end
class Project
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :project_number, as: 'projectNumber'
property :project_id, as: 'projectId'
property :lifecycle_state, as: 'lifecycleState'
property :name, as: 'name'
property :create_time, as: 'createTime'
hash :labels, as: 'labels'
property :parent, as: 'parent', class: Google::Apis::CloudresourcemanagerV1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1::ResourceId::Representation
end
end
class ResourceId
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :type, as: 'type'
property :id, as: 'id'
property :message, as: 'message'
end
end
@ -277,41 +185,173 @@ module Google
end
end
class Empty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class UndeleteProjectRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class ProjectCreationStatus
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
property :gettable, as: 'gettable'
property :ready, as: 'ready'
end
end
class FolderOperation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :display_name, as: 'displayName'
property :operation_type, as: 'operationType'
property :source_parent, as: 'sourceParent'
property :destination_parent, as: 'destinationParent'
property :operation_type, as: 'operationType'
end
end
class FolderOperationError
class Operation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :error_message_id, as: 'errorMessageId'
property :error, as: 'error', class: Google::Apis::CloudresourcemanagerV1::Status, decorator: Google::Apis::CloudresourcemanagerV1::Status::Representation
property :done, as: 'done'
hash :metadata, as: 'metadata'
hash :response, as: 'response'
property :name, as: 'name'
end
end
class GetIamPolicyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class SetIamPolicyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :policy, as: 'policy', class: Google::Apis::CloudresourcemanagerV1::Policy, decorator: Google::Apis::CloudresourcemanagerV1::Policy::Representation
end
end
class TestIamPermissionsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :permissions, as: 'permissions'
end
end
class Organization
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :display_name, as: 'displayName'
property :creation_time, as: 'creationTime'
property :owner, as: 'owner', class: Google::Apis::CloudresourcemanagerV1::OrganizationOwner, decorator: Google::Apis::CloudresourcemanagerV1::OrganizationOwner::Representation
property :lifecycle_state, as: 'lifecycleState'
property :name, as: 'name'
end
end
class Policy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :bindings, as: 'bindings', class: Google::Apis::CloudresourcemanagerV1::Binding, decorator: Google::Apis::CloudresourcemanagerV1::Binding::Representation
property :etag, :base64 => true, as: 'etag'
property :version, as: 'version'
end
end
class ProjectCreationStatus
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :ready, as: 'ready'
property :gettable, as: 'gettable'
property :create_time, as: 'createTime'
end
end
class TestIamPermissionsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :permissions, as: 'permissions'
end
end
class GetAncestryRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class GetAncestryResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :ancestor, as: 'ancestor', class: Google::Apis::CloudresourcemanagerV1::Ancestor, decorator: Google::Apis::CloudresourcemanagerV1::Ancestor::Representation
end
end
class SearchOrganizationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :organizations, as: 'organizations', class: Google::Apis::CloudresourcemanagerV1::Organization, decorator: Google::Apis::CloudresourcemanagerV1::Organization::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class SearchOrganizationsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :page_size, as: 'pageSize'
property :filter, as: 'filter'
property :page_token, as: 'pageToken'
end
end
class Empty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class Ancestor
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :resource_id, as: 'resourceId', class: Google::Apis::CloudresourcemanagerV1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1::ResourceId::Representation
end
end
class ResourceId
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :type, as: 'type'
property :id, as: 'id'
end
end
class Binding
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :members, as: 'members'
property :role, as: 'role'
end
end
class Project
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :parent, as: 'parent', class: Google::Apis::CloudresourcemanagerV1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1::ResourceId::Representation
hash :labels, as: 'labels'
property :lifecycle_state, as: 'lifecycleState'
property :create_time, as: 'createTime'
property :name, as: 'name'
property :project_number, as: 'projectNumber'
property :project_id, as: 'projectId'
end
end
class OrganizationOwner
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :directory_customer_id, as: 'directoryCustomerId'
end
end
end

View File

@ -47,77 +47,14 @@ module Google
super('https://cloudresourcemanager.googleapis.com/', '')
end
# Gets the latest state of a long-running operation. Clients can use this method
# to poll the operation result at intervals as recommended by the API service.
# @param [String] name
# The name of the operation resource.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::CloudresourcemanagerV1::Operation::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1::Operation
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Searches Organization resources that are visible to the user and satisfy the
# specified filter. This method returns Organizations in an unspecified order.
# New Organizations do not necessarily appear at the end of the results.
# @param [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsRequest] search_organizations_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def search_organizations(search_organizations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/organizations:search', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1::SearchOrganizationsRequest::Representation
command.request_object = search_organizations_request_object
command.response_representation = Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Fetches an Organization resource identified by the specified resource name.
# @param [String] name
# The resource name of the Organization to fetch, e.g. "organizations/1234".
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -130,103 +67,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_organization(name, fields: nil, quota_user: nil, options: nil, &block)
def get_organization(name, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::CloudresourcemanagerV1::Organization::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1::Organization
command.params['name'] = name unless name.nil?
command.query['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
# Sets the access control policy on an Organization resource. Replaces any
# existing policy. The `resource` field should be the organization's resource
# name, e.g. "organizations/123".
# Returns permissions that a caller has on the specified Organization.
# The `resource` field should be the organization's resource name,
# e.g. "organizations/123".
# @param [String] resource
# REQUIRED: The resource for which the policy is being specified. `resource` is
# usually specified as a path. For example, a Project resource is specified as `
# projects/`project``.
# @param [Google::Apis::CloudresourcemanagerV1::SetIamPolicyRequest] set_iam_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1::Policy]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def set_organization_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1::SetIamPolicyRequest::Representation
command.request_object = set_iam_policy_request_object
command.response_representation = Google::Apis::CloudresourcemanagerV1::Policy::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1::Policy
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets the access control policy for an Organization resource. May be empty if
# no such policy or resource exists. The `resource` field should be the
# organization's resource name, e.g. "organizations/123".
# @param [String] resource
# REQUIRED: The resource for which the policy is being requested. `resource` is
# usually specified as a path. For example, a Project resource is specified as `
# projects/`project``.
# @param [Google::Apis::CloudresourcemanagerV1::GetIamPolicyRequest] get_iam_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1::Policy]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_organization_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1::GetIamPolicyRequest::Representation
command.request_object = get_iam_policy_request_object
command.response_representation = Google::Apis::CloudresourcemanagerV1::Policy::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1::Policy
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns permissions that a caller has on the specified Organization. The `
# resource` field should be the organization's resource name, e.g. "
# organizations/123".
# @param [String] resource
# REQUIRED: The resource for which the policy detail is being requested. `
# resource` is usually specified as a path. For example, a Project resource is
# specified as `projects/`project``.
# REQUIRED: The resource for which the policy detail is being requested.
# `resource` is usually specified as a path. For example, a Project
# resource is specified as `projects/`project``.
# @param [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsRequest] test_iam_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -239,74 +102,271 @@ 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 test_organization_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
def test_organization_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsRequest::Representation
command.request_object = test_iam_permissions_request_object
command.response_representation = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.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.
# Searches Organization resources that are visible to the user and satisfy
# the specified filter. This method returns Organizations in an unspecified
# order. New Organizations do not necessarily appear at the end of the
# results.
# @param [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsRequest] search_organizations_request_object
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Project] parsed result object
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1::Project]
# @return [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project(project_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/projects/{projectId}', options)
command.response_representation = Google::Apis::CloudresourcemanagerV1::Project::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1::Project
command.params['projectId'] = project_id unless project_id.nil?
command.query['fields'] = fields unless fields.nil?
def search_organizations(search_organizations_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/organizations:search', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1::SearchOrganizationsRequest::Representation
command.request_object = search_organizations_request_object
command.response_representation = Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Lists Projects that are visible to the user and satisfy the specified filter.
# This method returns Projects in an unspecified order. New Projects do not
# necessarily appear at the end of the list.
# @param [String] 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` + labels.
# key 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 label.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.
# Sets the access control policy on an Organization resource. Replaces any
# existing policy. The `resource` field should be the organization's resource
# name, e.g. "organizations/123".
# @param [String] resource
# REQUIRED: The resource for which the policy is being specified.
# `resource` is usually specified as a path. For example, a Project
# resource is specified as `projects/`project``.
# @param [Google::Apis::CloudresourcemanagerV1::SetIamPolicyRequest] set_iam_policy_request_object
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1::Policy]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def set_organization_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1::SetIamPolicyRequest::Representation
command.request_object = set_iam_policy_request_object
command.response_representation = Google::Apis::CloudresourcemanagerV1::Policy::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1::Policy
command.params['resource'] = resource unless resource.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Gets the access control policy for an Organization resource. May be empty
# if no such policy or resource exists. The `resource` field should be the
# organization's resource name, e.g. "organizations/123".
# @param [String] resource
# REQUIRED: The resource for which the policy is being requested.
# `resource` is usually specified as a path. For example, a Project
# resource is specified as `projects/`project``.
# @param [Google::Apis::CloudresourcemanagerV1::GetIamPolicyRequest] get_iam_policy_request_object
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1::Policy]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_organization_iam_policy(resource, get_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1::GetIamPolicyRequest::Representation
command.request_object = get_iam_policy_request_object
command.response_representation = Google::Apis::CloudresourcemanagerV1::Policy::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1::Policy
command.params['resource'] = resource unless resource.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.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::CloudresourcemanagerV1::GetAncestryRequest] get_ancestry_request_object
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::GetAncestryResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1::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, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/projects/{projectId}:getAncestry', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1::GetAncestryRequest::Representation
command.request_object = get_ancestry_request_object
command.response_representation = Google::Apis::CloudresourcemanagerV1::GetAncestryResponse::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1::GetAncestryResponse
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
# 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.
# `resource` is usually specified as a path. For example, a Project
# resource is specified as `projects/`project``.
# @param [Google::Apis::CloudresourcemanagerV1::GetIamPolicyRequest] get_iam_policy_request_object
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1::Policy]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_iam_policy(resource, get_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/projects/{resource}:getIamPolicy', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1::GetIamPolicyRequest::Representation
command.request_object = get_iam_policy_request_object
command.response_representation = Google::Apis::CloudresourcemanagerV1::Policy::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1::Policy
command.params['resource'] = resource unless resource.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.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::CloudresourcemanagerV1::UndeleteProjectRequest] undelete_project_request_object
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1::Empty]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def undelete_project(project_id, undelete_project_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/projects/{projectId}:undelete', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1::UndeleteProjectRequest::Representation
command.request_object = undelete_project_request_object
command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1::Empty
command.params['projectId'] = project_id unless project_id.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# 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 [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&nbsp;label.size:big|The project's label `color` has the
# value `red` and its label `size` has the value `big`.
# Optional.
# @param [String] page_token
# A pagination token returned from a previous call to ListProjects
# that indicates from where listing should continue.
# Optional.
# @param [String] quota_user
# Available to 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
#
@ -319,65 +379,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 list_projects(page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
def list_projects(page_size: nil, filter: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/projects', options)
command.response_representation = Google::Apis::CloudresourcemanagerV1::ListProjectsResponse::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1::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['pageToken'] = page_token unless page_token.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Request that a new Project be created. The result is an Operation which can be
# used to track the creation process. It is automatically deleted after a few
# hours, so there is no need to call DeleteOperation. Our SLO permits Project
# creation to take up to 30 seconds at the 90th percentile. As of 2016-08-29, we
# are observing 6 seconds 50th percentile latency. 95th percentile latency is
# around 11 seconds. We recommend polling at the 5th second with an exponential
# backoff.
# @param [Google::Apis::CloudresourcemanagerV1::Project] project_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_project(project_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/projects', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1::Project::Representation
command.request_object = project_object
command.response_representation = Google::Apis::CloudresourcemanagerV1::Operation::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1::Operation
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Updates the attributes of the Project identified by the specified `project_id`
# (for example, `my-project-123`). The caller must have modify permissions for
# this Project.
# 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 [Google::Apis::CloudresourcemanagerV1::Project] project_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# The Project ID (for example, `my-project-123`).
# Required.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -390,162 +414,126 @@ 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 update_project(project_id, project_object = nil, fields: nil, quota_user: nil, options: nil, &block)
def get_project(project_id, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/projects/{projectId}', options)
command.response_representation = Google::Apis::CloudresourcemanagerV1::Project::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1::Project
command.params['projectId'] = project_id unless project_id.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Updates 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::CloudresourcemanagerV1::Project] project_object
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Project] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1::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, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:put, 'v1/projects/{projectId}', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1::Project::Representation
command.request_object = project_object
command.response_representation = Google::Apis::CloudresourcemanagerV1::Project::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1::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?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Marks the Project identified by the specified `project_id` (for example, `my-
# project-123`) for deletion. This method will only affect the Project if the
# following criteria are met: + The Project does not have a billing account
# associated with it. + The Project has a lifecycle state of ACTIVE. This method
# changes the Project's lifecycle state from ACTIVE to DELETE_REQUESTED. The
# deletion starts at an unspecified time, at which point the Project is no
# longer accessible. Until the deletion completes, you can check the lifecycle
# state checked by retrieving the Project with GetProject, and the Project
# remains visible to ListProjects. However, you cannot update the project. After
# the deletion completes, the Project is not retrievable by the GetProject and
# ListProjects methods. The caller must have modify permissions for this Project.
# @param [String] project_id
# The Project ID (for example, `foo-bar-123`). Required.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# Request that a new Project be created. The result is an Operation which
# can be used to track the creation process. It is automatically deleted
# after a few hours, so there is no need to call DeleteOperation.
# Our SLO permits Project creation to take up to 30 seconds at the 90th
# percentile. As of 2016-08-29, we are observing 6 seconds 50th percentile
# latency. 95th percentile latency is around 11 seconds. We recommend
# polling at the 5th second with an exponential backoff.
# @param [Google::Apis::CloudresourcemanagerV1::Project] project_object
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Empty] parsed result object
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1::Empty]
# @return [Google::Apis::CloudresourcemanagerV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_project(project_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1/projects/{projectId}', options)
command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1::Empty
command.params['projectId'] = project_id unless project_id.nil?
command.query['fields'] = fields unless fields.nil?
def create_project(project_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/projects', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1::Project::Representation
command.request_object = project_object
command.response_representation = Google::Apis::CloudresourcemanagerV1::Operation::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1::Operation
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.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::CloudresourcemanagerV1::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::CloudresourcemanagerV1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1::Empty]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def undelete_project(project_id, undelete_project_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/projects/{projectId}:undelete', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1::UndeleteProjectRequest::Representation
command.request_object = undelete_project_request_object
command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1::Empty
command.params['projectId'] = project_id unless project_id.nil?
command.query['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.
# 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
# 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 requested. `resource` is
# usually specified as a path. For example, a Project resource is specified as `
# projects/`project``.
# @param [Google::Apis::CloudresourcemanagerV1::GetIamPolicyRequest] get_iam_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1::Policy]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/projects/{resource}:getIamPolicy', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1::GetIamPolicyRequest::Representation
command.request_object = get_iam_policy_request_object
command.response_representation = Google::Apis::CloudresourcemanagerV1::Policy::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1::Policy
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# 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 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. `resource` is
# usually specified as a path. For example, a Project resource is specified as `
# projects/`project``.
# REQUIRED: The resource for which the policy is being specified.
# `resource` is usually specified as a path. For example, a Project
# resource is specified as `projects/`project``.
# @param [Google::Apis::CloudresourcemanagerV1::SetIamPolicyRequest] set_iam_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -558,29 +546,78 @@ 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 set_project_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
def set_project_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/projects/{resource}:setIamPolicy', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1::SetIamPolicyRequest::Representation
command.request_object = set_iam_policy_request_object
command.response_representation = Google::Apis::CloudresourcemanagerV1::Policy::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1::Policy
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Marks the Project identified by the specified
# `project_id` (for example, `my-project-123`) for deletion.
# This method will only affect the Project if the following criteria are met:
# + The Project does not have a billing account associated with it.
# + The Project has a lifecycle state of
# ACTIVE.
# This method changes the Project's lifecycle state from
# ACTIVE
# to DELETE_REQUESTED.
# The deletion starts at an unspecified time,
# at which point the Project is no longer accessible.
# Until the deletion completes, you can check the lifecycle state
# checked by retrieving the Project with GetProject,
# and the Project remains visible to ListProjects.
# However, you cannot update the project.
# After the deletion completes, the Project is not retrievable by
# the GetProject and
# ListProjects methods.
# The caller must have modify permissions for this Project.
# @param [String] project_id
# The Project ID (for example, `foo-bar-123`).
# Required.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1::Empty]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_project(project_id, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1/projects/{projectId}', options)
command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1::Empty
command.params['projectId'] = project_id unless project_id.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Returns permissions that a caller has on the specified Project.
# @param [String] resource
# REQUIRED: The resource for which the policy detail is being requested. `
# resource` is usually specified as a path. For example, a Project resource is
# specified as `projects/`project``.
# REQUIRED: The resource for which the policy detail is being requested.
# `resource` is usually specified as a path. For example, a Project
# resource is specified as `projects/`project``.
# @param [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsRequest] test_iam_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -593,15 +630,47 @@ 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 test_project_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
def test_project_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/projects/{resource}:testIamPermissions', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsRequest::Representation
command.request_object = test_iam_permissions_request_object
command.response_representation = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Gets the latest state of a long-running operation. Clients can use this
# method to poll the operation result at intervals as recommended by the API
# service.
# @param [String] name
# The name of the operation resource.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_operation(name, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::CloudresourcemanagerV1::Operation::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1::Operation
command.params['name'] = name unless name.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end

View File

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

View File

@ -22,60 +22,14 @@ module Google
module Apis
module CloudresourcemanagerV1beta1
# A Project is a high-level Google Cloud Platform entity. It is a container for
# ACLs, APIs, AppEngine Apps, VMs, and other Google Cloud Platform resources.
class Project
# A classification of the Folder Operation error.
class FolderOperationError
include Google::Apis::Core::Hashable
# The number uniquely identifying the project. Example: 415104041262 Read-only.
# Corresponds to the JSON property `projectNumber`
# The type of operation error experienced.
# Corresponds to the JSON property `errorMessageId`
# @return [String]
attr_accessor :project_number
# The unique, user-assigned ID of the Project. It must be 6 to 30 lowercase
# letters, digits, or hyphens. It must start with a letter. Trailing hyphens are
# prohibited. Example: tokyo-rain-123 Read-only after creation.
# Corresponds to the JSON property `projectId`
# @return [String]
attr_accessor :project_id
# The Project lifecycle state. Read-only.
# Corresponds to the JSON property `lifecycleState`
# @return [String]
attr_accessor :lifecycle_state
# The user-assigned display name of the Project. It must be 4 to 30 characters.
# Allowed characters are: lowercase and uppercase letters, numbers, hyphen,
# single-quote, double-quote, space, and exclamation point. Example: My Project
# Read-write.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Creation time. Read-only.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# The labels associated with this Project. Label keys must be between 1 and 63
# characters long and must conform to the following regular expression: \[a-z\](\
# [-a-z0-9\]*\[a-z0-9\])?. Label values must be between 0 and 63 characters long
# and must conform to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
# No more than 256 labels can be associated with a given resource. Clients
# should store labels in a representation such as JSON that does not depend on
# specific characters being disallowed. Example: "environment" : "dev" Read-
# write.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
# 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 AppEngine 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
attr_accessor :error_message_id
def initialize(**args)
update!(**args)
@ -83,62 +37,32 @@ module Google
# Update properties of this object
def update!(**args)
@project_number = args[:project_number] if args.key?(:project_number)
@project_id = args[:project_id] if args.key?(:project_id)
@lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
@name = args[:name] if args.key?(:name)
@create_time = args[:create_time] if args.key?(:create_time)
@labels = args[:labels] if args.key?(:labels)
@parent = args[:parent] if args.key?(:parent)
@error_message_id = args[:error_message_id] if args.key?(:error_message_id)
end
end
# A container to reference an id for any resource type. A `resource` in Google
# Cloud Platform is a generic term for something you (a developer) may want to
# interact with through one of our API's. Some examples are an AppEngine app, a
# Compute Engine instance, a Cloud SQL database, and so on.
class ResourceId
include Google::Apis::Core::Hashable
# Required field representing the resource type this id is for. At present, the
# valid types are "project" and "organization".
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
# Required field for the type-specific id. This should correspond to the id used
# in the type-specific API's.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@type = args[:type] if args.key?(:type)
@id = args[:id] if args.key?(:id)
end
end
# A page of the response received from the ListProjects method. A paginated
# response where more pages are available has `next_page_token` set. This token
# can be used in a subsequent request to retrieve the next request page.
# A page of the response received from the
# ListProjects
# method.
# A paginated response where more pages are available has
# `next_page_token` set. This token can be used in a subsequent request to
# retrieve the next request page.
class ListProjectsResponse
include Google::Apis::Core::Hashable
# The list of Projects that matched the list filter. This list can be paginated.
# The list of Projects that matched the list filter. This list can
# be paginated.
# Corresponds to the JSON property `projects`
# @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Project>]
attr_accessor :projects
# Pagination token. If the result set is too large to fit in a single response,
# this token is returned. It encodes the position of the current result cursor.
# Pagination token.
# If the result set is too large to fit in a single response, this token
# is returned. It encodes the position of the current result cursor.
# Feeding this value into a new list request with the `page_token` parameter
# gives the next page of the results. When `next_page_token` is not filled in,
# there is no next page and the list returned is the last page in the result set.
# gives the next page of the results.
# When `next_page_token` is not filled in, there is no next page and
# the list returned is the last page in the result set.
# Pagination tokens have a limited lifetime.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
@ -155,24 +79,8 @@ module Google
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
# The request sent to the UndeleteProject method.
# The request sent to the UndeleteProject
# method.
class UndeleteProjectRequest
include Google::Apis::Core::Hashable
@ -185,58 +93,42 @@ module Google
end
end
# The request sent to the GetAncestry method.
class GetAncestryRequest
# Metadata describing a long running folder operation
class FolderOperation
include Google::Apis::Core::Hashable
# The display name of the folder.
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
# The resource name of the folder's parent.
# Only applicable when the operation_type is MOVE.
# Corresponds to the JSON property `sourceParent`
# @return [String]
attr_accessor :source_parent
# The resource name of the folder or organization we are either creating
# the folder under or moving the folder to.
# Corresponds to the JSON property `destinationParent`
# @return [String]
attr_accessor :destination_parent
# The type of this operation.
# Corresponds to the JSON property `operationType`
# @return [String]
attr_accessor :operation_type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Response from the GetAncestry method.
class GetAncestryResponse
include Google::Apis::Core::Hashable
# Ancestors are ordered from bottom to top of the resource hierarchy. The first
# ancestor is the project itself, followed by the project's parent, etc.
# Corresponds to the JSON property `ancestor`
# @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Ancestor>]
attr_accessor :ancestor
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@ancestor = args[:ancestor] if args.key?(:ancestor)
end
end
# Identifying information for a single ancestor of a project.
class Ancestor
include Google::Apis::Core::Hashable
# A container to reference an id for any resource type. A `resource` in Google
# Cloud Platform is a generic term for something you (a developer) may want to
# interact with through one of our API's. Some examples are an AppEngine app, a
# Compute Engine instance, a Cloud SQL database, and so on.
# Corresponds to the JSON property `resourceId`
# @return [Google::Apis::CloudresourcemanagerV1beta1::ResourceId]
attr_accessor :resource_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@resource_id = args[:resource_id] if args.key?(:resource_id)
@display_name = args[:display_name] if args.key?(:display_name)
@source_parent = args[:source_parent] if args.key?(:source_parent)
@destination_parent = args[:destination_parent] if args.key?(:destination_parent)
@operation_type = args[:operation_type] if args.key?(:operation_type)
end
end
@ -253,106 +145,36 @@ 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
include Google::Apis::Core::Hashable
# Version of the `Policy`. The default version is 0.
# Corresponds to the JSON property `version`
# @return [Fixnum]
attr_accessor :version
# Associates a list of `members` to a `role`. Multiple `bindings` must not be
# specified for the same `role`. `bindings` with no members will result in an
# error.
# Corresponds to the JSON property `bindings`
# @return [Array<Google::Apis::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`
# @return [String]
attr_accessor :etag
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@version = args[:version] if args.key?(:version)
@bindings = args[:bindings] if args.key?(:bindings)
@etag = args[:etag] if args.key?(:etag)
end
end
# Associates `members` with a `role`.
class Binding
include Google::Apis::Core::Hashable
# Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
# , or `roles/owner`. Required
# Corresponds to the JSON property `role`
# @return [String]
attr_accessor :role
# Specifies the identities requesting access for a Cloud Platform resource. `
# members` can have the following values: * `allUsers`: A special identifier
# that represents anyone who is on the internet; with or without a Google
# account. * `allAuthenticatedUsers`: A special identifier that represents
# anyone who is authenticated with a Google account or a service account. * `
# user:`emailid``: An email address that represents a specific Google account.
# For example, `alice@gmail.com` or `joe@example.com`. * `serviceAccount:`
# emailid``: An email address that represents a service account. For example, `
# my-other-app@appspot.gserviceaccount.com`. * `group:`emailid``: An email
# address that represents a Google group. For example, `admins@example.com`. * `
# domain:`domain``: A Google Apps domain name that represents all the users of
# that domain. For example, `google.com` or `example.com`.
# Corresponds to the JSON property `members`
# @return [Array<String>]
attr_accessor :members
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@role = args[:role] if args.key?(:role)
@members = args[:members] if args.key?(:members)
end
end
# Request message for `SetIamPolicy` method.
class SetIamPolicyRequest
include Google::Apis::Core::Hashable
# Defines an Identity and Access Management (IAM) policy. It is used to specify
# access control policies for Cloud Platform resources. A `Policy` consists of a
# list of `bindings`. A `Binding` binds a list of `members` to a `role`, where
# the members can be user accounts, Google groups, Google domains, and service
# accounts. A `role` is a named list of permissions defined by IAM. **Example** `
# "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@example.com", "
# group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@
# appspot.gserviceaccount.com", ] `, ` "role": "roles/viewer", "members": ["user:
# sean@example.com"] ` ] ` For a description of IAM and its features, see the [
# IAM developer's guide](https://cloud.google.com/iam).
# Defines an Identity and Access Management (IAM) policy. It is used to
# specify access control policies for Cloud Platform resources.
# A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
# `members` to a `role`, where the members can be user accounts, Google groups,
# Google domains, and service accounts. A `role` is a named list of permissions
# defined by IAM.
# **Example**
# `
# "bindings": [
# `
# "role": "roles/owner",
# "members": [
# "user:mike@example.com",
# "group:admins@example.com",
# "domain:google.com",
# "serviceAccount:my-other-app@appspot.gserviceaccount.com",
# ]
# `,
# `
# "role": "roles/viewer",
# "members": ["user:sean@example.com"]
# `
# ]
# `
# For a description of IAM and its features, see the
# [IAM developer's guide](https://cloud.google.com/iam).
# Corresponds to the JSON property `policy`
# @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
attr_accessor :policy
@ -367,13 +189,12 @@ module Google
end
end
# Request message for `TestIamPermissions` method.
class TestIamPermissionsRequest
# Response message for `TestIamPermissions` method.
class TestIamPermissionsResponse
include Google::Apis::Core::Hashable
# The set of permissions to check for the `resource`. Permissions with wildcards
# (such as '*' or 'storage.*') are not allowed. For more information see [IAM
# Overview](https://cloud.google.com/iam/docs/overview#permissions).
# A subset of `TestPermissionsRequest.permissions` that the caller is
# allowed.
# Corresponds to the JSON property `permissions`
# @return [Array<String>]
attr_accessor :permissions
@ -388,11 +209,180 @@ module Google
end
end
# Response message for `TestIamPermissions` method.
class TestIamPermissionsResponse
# 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
# A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
# The organization's current lifecycle state. Assigned by the server.
# @OutputOnly
# Corresponds to the JSON property `lifecycleState`
# @return [String]
attr_accessor :lifecycle_state
# A friendly string to be used to refer to the Organization in the UI.
# Assigned by the server, set to the firm name of the Google For Work
# customer that owns this organization.
# @OutputOnly
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
# 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
# Output Only. The resource name of the organization. This is the
# organization's relative path in the API. Its format is
# "organizations/[organization_id]". For example, "organizations/1234".
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Timestamp when the Organization was created. Assigned by the server.
# @OutputOnly
# Corresponds to the JSON property `creationTime`
# @return [String]
attr_accessor :creation_time
# The entity that owns an Organization. The lifetime of the Organization and
# all of its descendants are bound to the `OrganizationOwner`. If the
# `OrganizationOwner` is deleted, the Organization and all its descendants will
# be deleted.
# Corresponds to the JSON property `owner`
# @return [Google::Apis::CloudresourcemanagerV1beta1::OrganizationOwner]
attr_accessor :owner
def initialize(**args)
update!(**args)
end
# 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)
@organization_id = args[:organization_id] if args.key?(:organization_id)
@name = args[:name] if args.key?(:name)
@creation_time = args[:creation_time] if args.key?(:creation_time)
@owner = args[:owner] if args.key?(:owner)
end
end
# Defines an Identity and Access Management (IAM) policy. It is used to
# specify access control policies for Cloud Platform resources.
# A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
# `members` to a `role`, where the members can be user accounts, Google groups,
# Google domains, and service accounts. A `role` is a named list of permissions
# defined by IAM.
# **Example**
# `
# "bindings": [
# `
# "role": "roles/owner",
# "members": [
# "user:mike@example.com",
# "group:admins@example.com",
# "domain:google.com",
# "serviceAccount:my-other-app@appspot.gserviceaccount.com",
# ]
# `,
# `
# "role": "roles/viewer",
# "members": ["user:sean@example.com"]
# `
# ]
# `
# For a description of IAM and its features, see the
# [IAM developer's guide](https://cloud.google.com/iam).
class Policy
include Google::Apis::Core::Hashable
# 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`
# @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
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@bindings = args[:bindings] if args.key?(:bindings)
@etag = args[:etag] if args.key?(:etag)
@version = args[:version] if args.key?(:version)
end
end
# A status object which is used as the `metadata` field for the Operation
# returned by CreateProject. It provides insight for when significant phases of
# Project creation have completed.
class ProjectCreationStatus
include Google::Apis::Core::Hashable
# True if the project creation process is complete.
# Corresponds to the JSON property `ready`
# @return [Boolean]
attr_accessor :ready
alias_method :ready?, :ready
# True if the project can be retrieved using GetProject. No other operations
# on the project are guaranteed to work until the project creation is
# complete.
# Corresponds to the JSON property `gettable`
# @return [Boolean]
attr_accessor :gettable
alias_method :gettable?, :gettable
# Creation time of the project creation workflow.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@ready = args[:ready] if args.key?(:ready)
@gettable = args[:gettable] if args.key?(:gettable)
@create_time = args[:create_time] if args.key?(:create_time)
end
end
# Request message for `TestIamPermissions` method.
class TestIamPermissionsRequest
include Google::Apis::Core::Hashable
# The set of permissions to check for the `resource`. Permissions with
# wildcards (such as '*' or 'storage.*') are not allowed. For more
# information see
# [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
# Corresponds to the JSON property `permissions`
# @return [Array<String>]
attr_accessor :permissions
@ -417,10 +407,10 @@ module Google
attr_accessor :organizations
# A pagination token to be used to retrieve the next page of results. If the
# result is too large to fit within the page size specified in the request, this
# field will be set with a token that can be used to fetch the next page of
# results. If this field is empty, it indicates that this response contains the
# last page of results.
# result is too large to fit within the page size specified in the request,
# this field will be set with a token that can be used to fetch the next page
# of results. If this field is empty, it indicates that this response
# contains the last page of results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
@ -436,70 +426,239 @@ module Google
end
end
# The root node in the resource hierarchy to which a particular entity's (e.g.,
# company) resources belong.
class Organization
# The request sent to the
# GetAncestry
# method.
class GetAncestryRequest
include Google::Apis::Core::Hashable
# Output Only. The resource name of the organization. This is the organization's
# relative path in the API. Its format is "organizations/[organization_id]". For
# example, "organizations/1234".
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# 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
# A friendly string to be used to refer to the Organization in the UI. Assigned
# by the server, set to the firm name of the Google For Work customer that owns
# this organization. @OutputOnly
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
# The entity that owns an Organization. The lifetime of the Organization and all
# of its descendants are bound to the `OrganizationOwner`. If the `
# OrganizationOwner` is deleted, the Organization and all its descendants will
# be deleted.
# Corresponds to the JSON property `owner`
# @return [Google::Apis::CloudresourcemanagerV1beta1::OrganizationOwner]
attr_accessor :owner
# Timestamp when the Organization was created. Assigned by the server. @
# OutputOnly
# Corresponds to the JSON property `creationTime`
# @return [String]
attr_accessor :creation_time
# The organization's current lifecycle state. Assigned by the server. @
# OutputOnly
# Corresponds to the JSON property `lifecycleState`
# @return [String]
attr_accessor :lifecycle_state
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@name = args[:name] if args.key?(:name)
@organization_id = args[:organization_id] if args.key?(:organization_id)
@display_name = args[:display_name] if args.key?(:display_name)
@owner = args[:owner] if args.key?(:owner)
@creation_time = args[:creation_time] if args.key?(:creation_time)
@lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
end
end
# The entity that owns an Organization. The lifetime of the Organization and all
# of its descendants are bound to the `OrganizationOwner`. If the `
# OrganizationOwner` is deleted, the Organization and all its descendants will
# Response from the GetAncestry method.
class GetAncestryResponse
include Google::Apis::Core::Hashable
# Ancestors are ordered from bottom to top of the resource hierarchy. The
# first ancestor is the project itself, followed by the project's parent,
# etc.
# Corresponds to the JSON property `ancestor`
# @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Ancestor>]
attr_accessor :ancestor
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@ancestor = args[:ancestor] if args.key?(:ancestor)
end
end
# 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
# Identifying information for a single ancestor of a project.
class Ancestor
include Google::Apis::Core::Hashable
# A container to reference an id for any resource type. A `resource` in Google
# Cloud Platform is a generic term for something you (a developer) may want to
# interact with through one of our API's. Some examples are an AppEngine app,
# a Compute Engine instance, a Cloud SQL database, and so on.
# Corresponds to the JSON property `resourceId`
# @return [Google::Apis::CloudresourcemanagerV1beta1::ResourceId]
attr_accessor :resource_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@resource_id = args[:resource_id] if args.key?(:resource_id)
end
end
# 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 AppEngine app,
# a Compute Engine instance, a Cloud SQL database, and so on.
class ResourceId
include Google::Apis::Core::Hashable
# Required field representing the resource type this id is for.
# At present, the valid types are "project" and "organization".
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
# Required field for the type-specific id. This should correspond to the id
# used in the type-specific API's.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@type = args[:type] if args.key?(:type)
@id = args[:id] if args.key?(:id)
end
end
# A Project is a high-level Google Cloud Platform entity. It is a
# container for ACLs, APIs, AppEngine Apps, VMs, and other
# Google Cloud Platform resources.
class Project
include Google::Apis::Core::Hashable
# A container to reference an id for any resource type. A `resource` in Google
# Cloud Platform is a generic term for something you (a developer) may want to
# interact with through one of our API's. Some examples are an AppEngine app,
# a Compute Engine instance, a Cloud SQL database, and so on.
# Corresponds to the JSON property `parent`
# @return [Google::Apis::CloudresourcemanagerV1beta1::ResourceId]
attr_accessor :parent
# The labels associated with this Project.
# Label keys must be between 1 and 63 characters long and must conform
# to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
# Label values must be between 0 and 63 characters long and must conform
# to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
# No more than 256 labels can be associated with a given resource.
# Clients should store labels in a representation such as JSON that does not
# depend on specific characters being disallowed.
# Example: <code>"environment" : "dev"</code>
# Read-write.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
# The Project lifecycle state.
# Read-only.
# Corresponds to the JSON property `lifecycleState`
# @return [String]
attr_accessor :lifecycle_state
# Creation time.
# Read-only.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# The user-assigned display name of the Project.
# It must be 4 to 30 characters.
# Allowed characters are: lowercase and uppercase letters, numbers,
# hyphen, single-quote, double-quote, space, and exclamation point.
# Example: <code>My Project</code>
# Read-write.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The number uniquely identifying the project.
# Example: <code>415104041262</code>
# Read-only.
# Corresponds to the JSON property `projectNumber`
# @return [String]
attr_accessor :project_number
# The unique, user-assigned ID of the Project.
# It must be 6 to 30 lowercase letters, digits, or hyphens.
# It must start with a letter.
# Trailing hyphens are prohibited.
# Example: <code>tokyo-rain-123</code>
# Read-only after creation.
# Corresponds to the JSON property `projectId`
# @return [String]
attr_accessor :project_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@parent = args[:parent] if args.key?(:parent)
@labels = args[:labels] if args.key?(:labels)
@lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
@create_time = args[:create_time] if args.key?(:create_time)
@name = args[:name] if args.key?(:name)
@project_number = args[:project_number] if args.key?(:project_number)
@project_id = args[:project_id] if args.key?(:project_id)
end
end
# Associates `members` with a `role`.
class Binding
include Google::Apis::Core::Hashable
# Specifies the identities requesting access for a Cloud Platform resource.
# `members` can have the following values:
# * `allUsers`: A special identifier that represents anyone who is
# on the internet; with or without a Google account.
# * `allAuthenticatedUsers`: A special identifier that represents anyone
# who is authenticated with a Google account or a service account.
# * `user:`emailid``: An email address that represents a specific Google
# account. For example, `alice@gmail.com` or `joe@example.com`.
# * `serviceAccount:`emailid``: An email address that represents a service
# account. For example, `my-other-app@appspot.gserviceaccount.com`.
# * `group:`emailid``: An email address that represents a Google group.
# For example, `admins@example.com`.
# * `domain:`domain``: A Google Apps domain name that represents all the
# users of that domain. For example, `google.com` or `example.com`.
# Corresponds to the JSON property `members`
# @return [Array<String>]
attr_accessor :members
# Role that is assigned to `members`.
# For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
# Required
# Corresponds to the JSON property `role`
# @return [String]
attr_accessor :role
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@members = args[:members] if args.key?(:members)
@role = args[:role] if args.key?(:role)
end
end
# The entity that owns an Organization. The lifetime of the Organization and
# all of its descendants are bound to the `OrganizationOwner`. If the
# `OrganizationOwner` is deleted, the Organization and all its descendants will
# be deleted.
class OrganizationOwner
include Google::Apis::Core::Hashable
@ -518,100 +677,6 @@ module Google
@directory_customer_id = args[:directory_customer_id] if args.key?(:directory_customer_id)
end
end
# A status object which is used as the `metadata` field for the Operation
# returned by CreateProject. It provides insight for when significant phases of
# Project creation have completed.
class ProjectCreationStatus
include Google::Apis::Core::Hashable
# Creation time of the project creation workflow.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# True if the project can be retrieved using GetProject. No other operations on
# the project are guaranteed to work until the project creation is complete.
# Corresponds to the JSON property `gettable`
# @return [Boolean]
attr_accessor :gettable
alias_method :gettable?, :gettable
# True if the project creation process is complete.
# Corresponds to the JSON property `ready`
# @return [Boolean]
attr_accessor :ready
alias_method :ready?, :ready
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@create_time = args[:create_time] if args.key?(:create_time)
@gettable = args[:gettable] if args.key?(:gettable)
@ready = args[:ready] if args.key?(:ready)
end
end
# Metadata describing a long running folder operation
class FolderOperation
include Google::Apis::Core::Hashable
# The display name of the folder.
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
# The type of this operation.
# Corresponds to the JSON property `operationType`
# @return [String]
attr_accessor :operation_type
# The resource name of the folder's parent. Only applicable when the
# operation_type is MOVE.
# Corresponds to the JSON property `sourceParent`
# @return [String]
attr_accessor :source_parent
# The resource name of the folder or organization we are either creating the
# folder under or moving the folder to.
# Corresponds to the JSON property `destinationParent`
# @return [String]
attr_accessor :destination_parent
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@display_name = args[:display_name] if args.key?(:display_name)
@operation_type = args[:operation_type] if args.key?(:operation_type)
@source_parent = args[:source_parent] if args.key?(:source_parent)
@destination_parent = args[:destination_parent] if args.key?(:destination_parent)
end
end
# A classification of the Folder Operation error.
class FolderOperationError
include Google::Apis::Core::Hashable
# The type of operation error experienced.
# Corresponds to the JSON property `errorMessageId`
# @return [String]
attr_accessor :error_message_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@error_message_id = args[:error_message_id] if args.key?(:error_message_id)
end
end
end
end
end

View File

@ -22,13 +22,7 @@ module Google
module Apis
module CloudresourcemanagerV1beta1
class Project
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ResourceId
class FolderOperationError
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -40,13 +34,61 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Empty
class UndeleteProjectRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UndeleteProjectRequest
class FolderOperation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GetIamPolicyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SetIamPolicyRequest
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 Organization
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 ProjectCreationStatus
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 ListOrganizationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -64,19 +106,25 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Empty
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Ancestor
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GetIamPolicyRequest
class ResourceId
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Policy
class Project
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -88,79 +136,16 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class SetIamPolicyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TestIamPermissionsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TestIamPermissionsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListOrganizationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Organization
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrganizationOwner
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ProjectCreationStatus
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class FolderOperation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class FolderOperationError
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Project
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :project_number, as: 'projectNumber'
property :project_id, as: 'projectId'
property :lifecycle_state, as: 'lifecycleState'
property :name, as: 'name'
property :create_time, as: 'createTime'
hash :labels, as: 'labels'
property :parent, as: 'parent', class: Google::Apis::CloudresourcemanagerV1beta1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1beta1::ResourceId::Representation
end
end
class ResourceId
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :type, as: 'type'
property :id, as: 'id'
property :error_message_id, as: 'errorMessageId'
end
end
@ -173,15 +158,88 @@ module Google
end
end
class Empty
class UndeleteProjectRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class UndeleteProjectRequest
class FolderOperation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :display_name, as: 'displayName'
property :source_parent, as: 'sourceParent'
property :destination_parent, as: 'destinationParent'
property :operation_type, as: 'operationType'
end
end
class GetIamPolicyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class SetIamPolicyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :policy, as: 'policy', class: Google::Apis::CloudresourcemanagerV1beta1::Policy, decorator: Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
end
end
class TestIamPermissionsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :permissions, as: 'permissions'
end
end
class Organization
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :lifecycle_state, as: 'lifecycleState'
property :display_name, as: 'displayName'
property :organization_id, as: 'organizationId'
property :name, as: 'name'
property :creation_time, as: 'creationTime'
property :owner, as: 'owner', class: Google::Apis::CloudresourcemanagerV1beta1::OrganizationOwner, decorator: Google::Apis::CloudresourcemanagerV1beta1::OrganizationOwner::Representation
end
end
class Policy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :bindings, as: 'bindings', class: Google::Apis::CloudresourcemanagerV1beta1::Binding, decorator: Google::Apis::CloudresourcemanagerV1beta1::Binding::Representation
property :etag, :base64 => true, as: 'etag'
property :version, as: 'version'
end
end
class ProjectCreationStatus
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :ready, as: 'ready'
property :gettable, as: 'gettable'
property :create_time, as: 'createTime'
end
end
class TestIamPermissionsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :permissions, as: 'permissions'
end
end
class ListOrganizationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :organizations, as: 'organizations', class: Google::Apis::CloudresourcemanagerV1beta1::Organization, decorator: Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
property :next_page_token, as: 'nextPageToken'
end
end
@ -199,6 +257,12 @@ module Google
end
end
class Empty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class Ancestor
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -207,71 +271,33 @@ module Google
end
end
class GetIamPolicyRequest
class ResourceId
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :type, as: 'type'
property :id, as: 'id'
end
end
class Policy
class Project
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :version, as: 'version'
collection :bindings, as: 'bindings', class: Google::Apis::CloudresourcemanagerV1beta1::Binding, decorator: Google::Apis::CloudresourcemanagerV1beta1::Binding::Representation
property :parent, as: 'parent', class: Google::Apis::CloudresourcemanagerV1beta1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1beta1::ResourceId::Representation
property :etag, :base64 => true, as: 'etag'
hash :labels, as: 'labels'
property :lifecycle_state, as: 'lifecycleState'
property :create_time, as: 'createTime'
property :name, as: 'name'
property :project_number, as: 'projectNumber'
property :project_id, as: 'projectId'
end
end
class Binding
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :role, as: 'role'
collection :members, as: 'members'
end
end
class SetIamPolicyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :policy, as: 'policy', class: Google::Apis::CloudresourcemanagerV1beta1::Policy, decorator: Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
end
end
class TestIamPermissionsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :permissions, as: 'permissions'
end
end
class TestIamPermissionsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :permissions, as: 'permissions'
end
end
class ListOrganizationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :organizations, as: 'organizations', class: Google::Apis::CloudresourcemanagerV1beta1::Organization, decorator: Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class Organization
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :organization_id, as: 'organizationId'
property :display_name, as: 'displayName'
property :owner, as: 'owner', class: Google::Apis::CloudresourcemanagerV1beta1::OrganizationOwner, decorator: Google::Apis::CloudresourcemanagerV1beta1::OrganizationOwner::Representation
property :creation_time, as: 'creationTime'
property :lifecycle_state, as: 'lifecycleState'
property :role, as: 'role'
end
end
@ -281,32 +307,6 @@ module Google
property :directory_customer_id, as: 'directoryCustomerId'
end
end
class ProjectCreationStatus
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
property :gettable, as: 'gettable'
property :ready, as: 'ready'
end
end
class FolderOperation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :display_name, as: 'displayName'
property :operation_type, as: 'operationType'
property :source_parent, as: 'sourceParent'
property :destination_parent, as: 'destinationParent'
end
end
class FolderOperationError
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :error_message_id, as: 'errorMessageId'
end
end
end
end
end

View File

@ -47,244 +47,18 @@ module Google
super('https://cloudresourcemanager.googleapis.com/', '')
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
# 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` + labels.
# key 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 label.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
# Retrieves the Project identified by the specified `project_id` (for example, `
# my-project-123`). The caller must have read permissions for this Project.
# 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 [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
# 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
# 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
# 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
# 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.
# 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 [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -297,30 +71,30 @@ 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_ancestry(project_id, get_ancestry_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
def get_project_ancestry(project_id, get_ancestry_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/projects/{projectId}:getAncestry', options)
command.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?
command.query['fields'] = fields unless fields.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.
# 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. `resource` is
# usually specified as a path. For example, a Project resource is specified as `
# projects/`project``.
# REQUIRED: The resource for which the policy is being requested.
# `resource` is usually specified as a path. For example, a Project
# resource is specified as `projects/`project``.
# @param [Google::Apis::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 [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -333,50 +107,259 @@ 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_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
def get_project_iam_policy(resource, get_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/projects/{resource}:getIamPolicy', options)
command.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?
command.query['fields'] = fields unless fields.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 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. `resource` is
# usually specified as a path. For example, a Project resource is specified as `
# projects/`project``.
# @param [Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# 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] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1beta1::Empty]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def undelete_project(project_id, undelete_project_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/projects/{projectId}:undelete', options)
command.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['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Lists Projects that are visible to the user and satisfy the
# specified filter. This method returns Projects in an unspecified order.
# New Projects do not necessarily appear at the end of the list.
# @param [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&nbsp;label.size:big|The project's label `color` has the
# value `red` and its label `size` has the value `big`.
# Optional.
# @param [String] page_token
# A pagination token returned from a previous call to ListProjects
# that indicates from where listing should continue.
# Optional.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_projects(page_size: nil, filter: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/projects', options)
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse
command.query['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['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.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] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Project] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1beta1::Project]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project(project_id, quota_user: nil, fields: 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['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.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] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Project] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1beta1::Project]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def update_project(project_id, project_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:put, 'v1beta1/projects/{projectId}', options)
command.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['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Creates a Project resource.
# Initially, the Project resource is owned by its creator exclusively.
# The creator can later grant permission to others to read or update the
# Project.
# Several APIs are activated automatically for the Project, including
# Google Cloud Storage.
# @param [Google::Apis::CloudresourcemanagerV1beta1::Project] project_object
# @param [Boolean] use_legacy_stack
# A safety hatch to opt out of the new reliable project creation process.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Project] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1beta1::Project]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_project(project_object = nil, use_legacy_stack: nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/projects', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
command.request_object = project_object
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Project
command.query['useLegacyStack'] = use_legacy_stack unless use_legacy_stack.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
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
# 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.
# `resource` is usually specified as a path. For example, a Project
# resource is specified as `projects/`project``.
# @param [Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -389,29 +372,78 @@ 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 set_project_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
def set_project_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/projects/{resource}:setIamPolicy', options)
command.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?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Marks the Project identified by the specified
# `project_id` (for example, `my-project-123`) for deletion.
# This method will only affect the Project if the following criteria are met:
# + The Project does not have a billing account associated with it.
# + The Project has a lifecycle state of
# ACTIVE.
# This method changes the Project's lifecycle state from
# ACTIVE
# to DELETE_REQUESTED.
# The deletion starts at an unspecified time, at which point the project is
# no longer accessible.
# Until the deletion completes, you can check the lifecycle state
# checked by retrieving the Project with GetProject,
# and the Project remains visible to ListProjects.
# However, you cannot update the project.
# After the deletion completes, the Project is not retrievable by
# the GetProject and
# ListProjects methods.
# The caller must have modify permissions for this Project.
# @param [String] project_id
# The Project ID (for example, `foo-bar-123`).
# Required.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1beta1::Empty]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_project(project_id, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1beta1/projects/{projectId}', options)
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Empty::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Empty
command.params['projectId'] = project_id unless project_id.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Returns permissions that a caller has on the specified Project.
# @param [String] resource
# REQUIRED: The resource for which the policy detail is being requested. `
# resource` is usually specified as a path. For example, a Project resource is
# specified as `projects/`project``.
# REQUIRED: The resource for which the policy detail is being requested.
# `resource` is usually specified as a path. For example, a Project
# resource is specified as `projects/`project``.
# @param [Google::Apis::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 [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -424,40 +456,81 @@ 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 test_project_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
def test_project_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/projects/{resource}:testIamPermissions', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest::Representation
command.request_object = test_iam_permissions_request_object
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse
command.params['resource'] = resource unless resource.nil?
command.query['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
# 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 [Fixnum] page_size
# The maximum number of Organizations to return in the response. 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 [String] filter
# An optional query string used to filter the Organizations to return in the
# response. Filter rules are case-insensitive. Organizations may be filtered by `
# owner.directoryCustomerId` or by `domain`, where the domain is a Google for
# Work domain, for example: |Filter|Description| |------|-----------| |owner.
# directorycustomerid:123456789|Organizations with `owner.directory_customer_id`
# equal to `123456789`.| |domain:google.com|Organizations corresponding to the
# domain `google.com`.| This field is optional.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# Gets the access control policy for an Organization resource. May be empty
# if no such policy or resource exists. The `resource` field should be the
# organization's resource name, e.g. "organizations/123".
# @param [String] resource
# REQUIRED: The resource for which the policy is being requested.
# `resource` is usually specified as a path. For example, a Project
# resource is specified as `projects/`project``.
# @param [Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_organization_iam_policy(resource, get_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest::Representation
command.request_object = get_iam_policy_request_object
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy
command.params['resource'] = resource unless resource.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# 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 [Fixnum] page_size
# The maximum number of Organizations to return in the response.
# This field is optional.
# @param [String] filter
# An optional query string used to filter the Organizations to return in
# the response. Filter rules are case-insensitive.
# Organizations may be filtered by `owner.directoryCustomerId` or by
# `domain`, where the domain is a Google for Work domain, for example:
# |Filter|Description|
# |------|-----------|
# |owner.directorycustomerid:123456789|Organizations with `owner.
# directory_customer_id` equal to `123456789`.|
# |domain:google.com|Organizations corresponding to the domain `google.com`.|
# This field is optional.
# @param [String] page_token
# A pagination token returned from a previous call to `ListOrganizations`
# that indicates from where listing should continue.
# This field is optional.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -470,15 +543,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_organizations(page_size: nil, page_token: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
def list_organizations(page_size: nil, filter: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/organizations', options)
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['filter'] = filter unless filter.nil?
command.query['fields'] = fields unless fields.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
@ -486,13 +559,13 @@ module Google
# @param [String] name
# The resource name of the Organization to fetch, e.g. "organizations/1234".
# @param [String] organization_id
# The id of the Organization resource to fetch. This field is deprecated and
# will be removed in v1. Use name instead.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# The id of the Organization resource to fetch.
# This field is deprecated and will be removed in v1. Use name instead.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -505,28 +578,28 @@ 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_organization(name, organization_id: nil, fields: nil, quota_user: nil, options: nil, &block)
def get_organization(name, organization_id: nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+name}', options)
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Organization
command.params['name'] = name unless name.nil?
command.query['organizationId'] = organization_id unless organization_id.nil?
command.query['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
# Updates an Organization resource identified by the specified resource name.
# @param [String] name
# Output Only. The resource name of the organization. This is the organization's
# relative path in the API. Its format is "organizations/[organization_id]". For
# example, "organizations/1234".
# Output Only. The resource name of the organization. This is the
# organization's relative path in the API. Its format is
# "organizations/[organization_id]". For example, "organizations/1234".
# @param [Google::Apis::CloudresourcemanagerV1beta1::Organization] organization_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -539,15 +612,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 update_organization(name, organization_object = nil, fields: nil, quota_user: nil, options: nil, &block)
def update_organization(name, organization_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:put, 'v1beta1/{+name}', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
command.request_object = organization_object
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Organization
command.params['name'] = name unless name.nil?
command.query['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
@ -555,15 +628,15 @@ module Google
# existing policy. The `resource` field should be the organization's resource
# name, e.g. "organizations/123".
# @param [String] resource
# REQUIRED: The resource for which the policy is being specified. `resource` is
# usually specified as a path. For example, a Project resource is specified as `
# projects/`project``.
# REQUIRED: The resource for which the policy is being specified.
# `resource` is usually specified as a path. For example, a Project
# resource is specified as `projects/`project``.
# @param [Google::Apis::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 [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -576,68 +649,31 @@ 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 set_organization_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
def set_organization_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest::Representation
command.request_object = set_iam_policy_request_object
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy
command.params['resource'] = resource unless resource.nil?
command.query['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
# Gets the access control policy for an Organization resource. May be empty if
# no such policy or resource exists. The `resource` field should be the
# organization's resource name, e.g. "organizations/123".
# Returns permissions that a caller has on the specified Organization.
# The `resource` field should be the organization's resource name,
# e.g. "organizations/123".
# @param [String] resource
# REQUIRED: The resource for which the policy is being requested. `resource` is
# usually specified as a path. For example, a Project resource is specified as `
# projects/`project``.
# @param [Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_organization_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options)
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest::Representation
command.request_object = get_iam_policy_request_object
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns permissions that a caller has on the specified Organization. The `
# resource` field should be the organization's resource name, e.g. "
# organizations/123".
# @param [String] resource
# REQUIRED: The resource for which the policy detail is being requested. `
# resource` is usually specified as a path. For example, a Project resource is
# specified as `projects/`project``.
# REQUIRED: The resource for which the policy detail is being requested.
# `resource` is usually specified as a path. For example, a Project
# resource is specified as `projects/`project``.
# @param [Google::Apis::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 [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@ -650,15 +686,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 test_organization_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
def test_organization_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
command.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?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end

View File

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

View File

@ -69,7 +69,8 @@ module Google
class Address
include Google::Apis::Core::Hashable
# The static external IP address represented by this resource.
# The static external IP address represented by this resource. Only IPv4 is
# supported.
# Corresponds to the JSON property `address`
# @return [String]
attr_accessor :address
@ -532,20 +533,25 @@ module Google
end
end
# Enables "data access" audit logging for a service and specifies a list of
# members that are log-exempted.
# Provides the configuration for non-admin_activity logging for a service.
# Controls exemptions and specific log sub-types.
class AuditConfig
include Google::Apis::Core::Hashable
# The configuration for each type of logging
# Corresponds to the JSON property `auditLogConfigs`
# @return [Array<Google::Apis::ComputeBeta::AuditLogConfig>]
attr_accessor :audit_log_configs
# Specifies the identities that are exempted from "data access" audit logging
# for the `service` specified above. Follows the same format of Binding.members.
# Corresponds to the JSON property `exemptedMembers`
# @return [Array<String>]
attr_accessor :exempted_members
# Specifies a service that will be enabled for "data access" audit logging. For
# example, `resourcemanager`, `storage`, `compute`. `allServices` is a special
# value that covers all services.
# Specifies a service that will be enabled for audit logging. For example, `
# resourcemanager`, `storage`, `compute`. `allServices` is a special value that
# covers all services.
# Corresponds to the JSON property `service`
# @return [String]
attr_accessor :service
@ -556,11 +562,38 @@ module Google
# Update properties of this object
def update!(**args)
@audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
@exempted_members = args[:exempted_members] if args.key?(:exempted_members)
@service = args[:service] if args.key?(:service)
end
end
# Provides the configuration for a sub-type of logging.
class AuditLogConfig
include Google::Apis::Core::Hashable
# Specifies the identities that are exempted from this type of logging 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
# Represents an Autoscaler resource. Autoscalers allow you to automatically
# scale virtual machine instances in managed instance groups according to an
# autoscaling policy that you define. For more information, read Autoscaling
@ -1255,6 +1288,11 @@ module Google
# @return [Array<Google::Apis::ComputeBeta::Backend>]
attr_accessor :backends
# Message containing Cloud CDN configuration for a backend service.
# Corresponds to the JSON property `cdnPolicy`
# @return [Google::Apis::ComputeBeta::BackendServiceCdnPolicy]
attr_accessor :cdn_policy
# Message containing connection draining configuration.
# Corresponds to the JSON property `connectionDraining`
# @return [Google::Apis::ComputeBeta::ConnectionDraining]
@ -1295,6 +1333,11 @@ module Google
# @return [Array<String>]
attr_accessor :health_checks
# Identity-Aware Proxy (Cloud Gatekeeper)
# Corresponds to the JSON property `iap`
# @return [Google::Apis::ComputeBeta::BackendServiceIap]
attr_accessor :iap
# [Output Only] The unique identifier for the resource. This identifier is
# defined by the server.
# Corresponds to the JSON property `id`
@ -1380,12 +1423,14 @@ module Google
def update!(**args)
@affinity_cookie_ttl_sec = args[:affinity_cookie_ttl_sec] if args.key?(:affinity_cookie_ttl_sec)
@backends = args[:backends] if args.key?(:backends)
@cdn_policy = args[:cdn_policy] if args.key?(:cdn_policy)
@connection_draining = args[:connection_draining] if args.key?(:connection_draining)
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@description = args[:description] if args.key?(:description)
@enable_cdn = args[:enable_cdn] if args.key?(:enable_cdn)
@fingerprint = args[:fingerprint] if args.key?(:fingerprint)
@health_checks = args[:health_checks] if args.key?(:health_checks)
@iap = args[:iap] if args.key?(:iap)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@load_balancing_scheme = args[:load_balancing_scheme] if args.key?(:load_balancing_scheme)
@ -1443,6 +1488,26 @@ module Google
end
end
# Message containing Cloud CDN configuration for a backend service.
class BackendServiceCdnPolicy
include Google::Apis::Core::Hashable
# Message containing what to include in the cache key for a request for Cloud
# CDN.
# Corresponds to the JSON property `cacheKeyPolicy`
# @return [Google::Apis::ComputeBeta::CacheKeyPolicy]
attr_accessor :cache_key_policy
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@cache_key_policy = args[:cache_key_policy] if args.key?(:cache_key_policy)
end
end
#
class BackendServiceGroupHealth
include Google::Apis::Core::Hashable
@ -1469,6 +1534,44 @@ module Google
end
end
# Identity-Aware Proxy (Cloud Gatekeeper)
class BackendServiceIap
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `enabled`
# @return [Boolean]
attr_accessor :enabled
alias_method :enabled?, :enabled
#
# Corresponds to the JSON property `oauth2ClientId`
# @return [String]
attr_accessor :oauth2_client_id
#
# Corresponds to the JSON property `oauth2ClientSecret`
# @return [String]
attr_accessor :oauth2_client_secret
#
# Corresponds to the JSON property `oauth2ClientSecretSha256`
# @return [String]
attr_accessor :oauth2_client_secret_sha256
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@enabled = args[:enabled] if args.key?(:enabled)
@oauth2_client_id = args[:oauth2_client_id] if args.key?(:oauth2_client_id)
@oauth2_client_secret = args[:oauth2_client_secret] if args.key?(:oauth2_client_secret)
@oauth2_client_secret_sha256 = args[:oauth2_client_secret_sha256] if args.key?(:oauth2_client_secret_sha256)
end
end
# Contains a list of BackendService resources.
class BackendServiceList
include Google::Apis::Core::Hashable
@ -1669,6 +1772,62 @@ module Google
end
end
# Message containing what to include in the cache key for a request for Cloud
# CDN.
class CacheKeyPolicy
include Google::Apis::Core::Hashable
# If true, requests to different hosts will be cached separately.
# Corresponds to the JSON property `includeHost`
# @return [Boolean]
attr_accessor :include_host
alias_method :include_host?, :include_host
# If true, http and https requests will be cached separately.
# Corresponds to the JSON property `includeProtocol`
# @return [Boolean]
attr_accessor :include_protocol
alias_method :include_protocol?, :include_protocol
# If true, include query string parameters in the cache key according to
# query_string_whitelist and query_string_blacklist. If neither is set, the
# entire query string will be included. If false, the query string will be
# excluded from the cache key entirely.
# Corresponds to the JSON property `includeQueryString`
# @return [Boolean]
attr_accessor :include_query_string
alias_method :include_query_string?, :include_query_string
# Names of query string parameters to exclude in cache keys. All other
# parameters will be included. Either specify query_string_whitelist or
# query_string_blacklist, not both. '&' and '=' will be percent encoded and not
# treated as delimiters.
# Corresponds to the JSON property `queryStringBlacklist`
# @return [Array<String>]
attr_accessor :query_string_blacklist
# Names of query string parameters to include in cache keys. All other
# parameters will be excluded. Either specify query_string_whitelist or
# query_string_blacklist, not both. '&' and '=' will be percent encoded and not
# treated as delimiters.
# Corresponds to the JSON property `queryStringWhitelist`
# @return [Array<String>]
attr_accessor :query_string_whitelist
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@include_host = args[:include_host] if args.key?(:include_host)
@include_protocol = args[:include_protocol] if args.key?(:include_protocol)
@include_query_string = args[:include_query_string] if args.key?(:include_query_string)
@query_string_blacklist = args[:query_string_blacklist] if args.key?(:query_string_blacklist)
@query_string_whitelist = args[:query_string_whitelist] if args.key?(:query_string_whitelist)
end
end
# A condition to be met.
class Condition
include Google::Apis::Core::Hashable
@ -2640,7 +2799,7 @@ module Google
# properties are set, the firewall will apply to traffic that has source IP
# address within sourceRanges OR the source IP that belongs to a tag listed in
# the sourceTags property. The connection does not need to match both properties
# for the firewall to apply.
# for the firewall to apply. Only IPv4 is supported.
# Corresponds to the JSON property `sourceRanges`
# @return [Array<String>]
attr_accessor :source_ranges
@ -2780,7 +2939,7 @@ module Google
# address belonging to the network/subnetwork configured for the forwarding rule.
# A reserved address cannot be used. If the field is empty, the IP address will
# be automatically allocated from the internal IP range of the subnetwork or
# network configured for this forwarding rule.
# network configured for this forwarding rule. Only IPv4 is supported.
# Corresponds to the JSON property `IPAddress`
# @return [String]
attr_accessor :ip_address
@ -3151,7 +3310,9 @@ module Google
include Google::Apis::Core::Hashable
# The type of supported feature. Currenty only VIRTIO_SCSI_MULTIQUEUE is
# supported.
# supported. For newer Windows images, the server might also populate this
# property with the value WINDOWS to indicate that this is a Windows image. This
# value is purely informational and does not enable or disable any features.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
@ -3166,53 +3327,6 @@ module Google
end
end
#
class Http2HealthCheck
include Google::Apis::Core::Hashable
# The value of the host header in the HTTP/2 health check request. If left empty
# (default value), the IP on behalf of which this health check is performed will
# be used.
# Corresponds to the JSON property `host`
# @return [String]
attr_accessor :host
# The TCP port number for the health check request. The default value is 443.
# Corresponds to the JSON property `port`
# @return [Fixnum]
attr_accessor :port
# Port name as defined in InstanceGroup#NamedPort#name. If both port and
# port_name are defined, port takes precedence.
# Corresponds to the JSON property `portName`
# @return [String]
attr_accessor :port_name
# Specifies the type of proxy header to append before sending data to the
# backend, either NONE or PROXY_V1. The default is NONE.
# Corresponds to the JSON property `proxyHeader`
# @return [String]
attr_accessor :proxy_header
# The request path of the HTTP/2 health check request. The default value is /.
# Corresponds to the JSON property `requestPath`
# @return [String]
attr_accessor :request_path
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@host = args[:host] if args.key?(:host)
@port = args[:port] if args.key?(:port)
@port_name = args[:port_name] if args.key?(:port_name)
@proxy_header = args[:proxy_header] if args.key?(:proxy_header)
@request_path = args[:request_path] if args.key?(:request_path)
end
end
#
class HttpHealthCheck
include Google::Apis::Core::Hashable
@ -3335,11 +3449,6 @@ module Google
# @return [Fixnum]
attr_accessor :healthy_threshold
#
# Corresponds to the JSON property `http2HealthCheck`
# @return [Google::Apis::ComputeBeta::Http2HealthCheck]
attr_accessor :http2_health_check
#
# Corresponds to the JSON property `httpHealthCheck`
# @return [Google::Apis::ComputeBeta::HttpHealthCheck]
@ -3393,13 +3502,18 @@ module Google
# @return [Fixnum]
attr_accessor :timeout_sec
# Specifies the type of the healthCheck, either TCP, UDP, SSL, HTTP, HTTPS or
# HTTP2. If not specified, the default is TCP. Exactly one of the protocol-
# specific health check field must be specified, which must match type field.
# Specifies the type of the healthCheck, either TCP, SSL, HTTP or HTTPS. If not
# specified, the default is TCP. Exactly one of the protocol-specific health
# check field must be specified, which must match type field.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
#
# Corresponds to the JSON property `udpHealthCheck`
# @return [Google::Apis::ComputeBeta::UdpHealthCheck]
attr_accessor :udp_health_check
# A so-far healthy instance will be marked unhealthy after this many consecutive
# failures. The default value is 2.
# Corresponds to the JSON property `unhealthyThreshold`
@ -3416,7 +3530,6 @@ module Google
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@description = args[:description] if args.key?(:description)
@healthy_threshold = args[:healthy_threshold] if args.key?(:healthy_threshold)
@http2_health_check = args[:http2_health_check] if args.key?(:http2_health_check)
@http_health_check = args[:http_health_check] if args.key?(:http_health_check)
@https_health_check = args[:https_health_check] if args.key?(:https_health_check)
@id = args[:id] if args.key?(:id)
@ -3427,6 +3540,7 @@ module Google
@tcp_health_check = args[:tcp_health_check] if args.key?(:tcp_health_check)
@timeout_sec = args[:timeout_sec] if args.key?(:timeout_sec)
@type = args[:type] if args.key?(:type)
@udp_health_check = args[:udp_health_check] if args.key?(:udp_health_check)
@unhealthy_threshold = args[:unhealthy_threshold] if args.key?(:unhealthy_threshold)
end
end
@ -3921,11 +4035,14 @@ module Google
attr_accessor :family
# A list of features to enable on the guest OS. Applicable for bootable images
# only. Currently, only one feature is supported, VIRTIO_SCSCI_MULTIQUEUE, which
# allows each virtual CPU to have its own queue. For Windows images, you can
# only enable VIRTIO_SCSCI_MULTIQUEUE on images with driver version 1.2.0.1621
# or higher. Linux images with kernel versions 3.17 and higher will support
# only. Currently, only one feature can be enabled, VIRTIO_SCSCI_MULTIQUEUE,
# which allows each virtual CPU to have its own queue. For Windows images, you
# can only enable VIRTIO_SCSCI_MULTIQUEUE on images with driver version 1.2.0.
# 1621 or higher. Linux images with kernel versions 3.17 and higher will support
# VIRTIO_SCSCI_MULTIQUEUE.
# For new Windows images, the server might also populate this field with the
# value WINDOWS, to indicate that this is a Windows image. This value is purely
# informational and does not enable or disable any features.
# Corresponds to the JSON property `guestOsFeatures`
# @return [Array<Google::Apis::ComputeBeta::GuestOsFeature>]
attr_accessor :guest_os_features
@ -3988,8 +4105,8 @@ module Google
# @return [String]
attr_accessor :self_link
# URL of the The source disk used to create this image. This can be a full or
# valid partial URL. You must provide either this property or the rawDisk.source
# URL of the source disk used to create this image. This can be a full or valid
# partial URL. You must provide either this property or the rawDisk.source
# property but not both to create an image. For example, the following are valid
# values:
# - https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk
@ -4655,6 +4772,14 @@ module Google
# @return [String]
attr_accessor :self_link
# Service account will be used as credentials for all operations performed by
# managed instance group on instances. The service accounts needs all
# permissions required to create and delete instances. When not specified, the
# service account `projectNumber`@cloudservices.gserviceaccount.com will be used.
# Corresponds to the JSON property `serviceAccount`
# @return [String]
attr_accessor :service_account
# The URLs for all TargetPool resources to which instances in the instanceGroup
# field are added. The target pools automatically apply to all of the instances
# in the managed instance group.
@ -4696,6 +4821,7 @@ module Google
@named_ports = args[:named_ports] if args.key?(:named_ports)
@region = args[:region] if args.key?(:region)
@self_link = args[:self_link] if args.key?(:self_link)
@service_account = args[:service_account] if args.key?(:service_account)
@target_pools = args[:target_pools] if args.key?(:target_pools)
@target_size = args[:target_size] if args.key?(:target_size)
@zone = args[:zone] if args.key?(:zone)
@ -4835,7 +4961,7 @@ module Google
class InstanceGroupManagerAutoHealingPolicy
include Google::Apis::Core::Hashable
# The URL for the HealthCheck that signals autohealing.
# The URL for the health check that signals autohealing.
# Corresponds to the JSON property `healthCheck`
# @return [String]
attr_accessor :health_check
@ -5903,6 +6029,31 @@ module Google
end
end
#
class InstancesSetServiceAccountRequest
include Google::Apis::Core::Hashable
# Email address of the service account.
# Corresponds to the JSON property `email`
# @return [String]
attr_accessor :email
# The list of scopes to be made available for this service account.
# Corresponds to the JSON property `scopes`
# @return [Array<String>]
attr_accessor :scopes
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@email = args[:email] if args.key?(:email)
@scopes = args[:scopes] if args.key?(:scopes)
end
end
#
class InstancesStartWithEncryptionKeyRequest
include Google::Apis::Core::Hashable
@ -6627,6 +6778,12 @@ module Google
# @return [Array<Google::Apis::ComputeBeta::AccessConfig>]
attr_accessor :access_configs
# [Output Only] Type of the resource. Always compute#networkInterface for
# network interfaces.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# [Output Only] The name of the network interface, generated by the server. For
# network devices, these are eth0, eth1, etc.
# Corresponds to the JSON property `name`
@ -6674,6 +6831,7 @@ module Google
# Update properties of this object
def update!(**args)
@access_configs = args[:access_configs] if args.key?(:access_configs)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
@network = args[:network] if args.key?(:network)
@network_ip = args[:network_ip] if args.key?(:network_ip)
@ -7457,6 +7615,27 @@ module Google
end
end
#
class ProjectsListXpnHostsRequest
include Google::Apis::Core::Hashable
# Optional organization ID managed by Cloud Resource Manager, for which to list
# XPN host projects. If not specified, the organization will be inferred from
# the project.
# Corresponds to the JSON property `organization`
# @return [String]
attr_accessor :organization
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@organization = args[:organization] if args.key?(:organization)
end
end
# A quotas entry.
class Quota
include Google::Apis::Core::Hashable
@ -8045,7 +8224,8 @@ module Google
# @return [String]
attr_accessor :description
# The destination range of outgoing packets that this route applies to.
# The destination range of outgoing packets that this route applies to. Only
# IPv4 is supported.
# Corresponds to the JSON property `destRange`
# @return [String]
attr_accessor :dest_range
@ -8091,6 +8271,7 @@ module Google
attr_accessor :next_hop_instance
# The network IP address of an instance that should handle matching packets.
# Only IPv4 is supported.
# Corresponds to the JSON property `nextHopIp`
# @return [String]
attr_accessor :next_hop_ip
@ -8439,7 +8620,8 @@ module Google
# @return [String]
attr_accessor :interface_name
# IP address of the interface inside Google Cloud Platform.
# IP address of the interface inside Google Cloud Platform. Only IPv4 is
# supported.
# Corresponds to the JSON property `ipAddress`
# @return [String]
attr_accessor :ip_address
@ -8456,7 +8638,7 @@ module Google
# @return [Fixnum]
attr_accessor :peer_asn
# IP address of the BGP interface outside Google cloud.
# IP address of the BGP interface outside Google cloud. Only IPv4 is supported.
# Corresponds to the JSON property `peerIpAddress`
# @return [String]
attr_accessor :peer_ip_address
@ -9256,7 +9438,7 @@ module Google
# @return [String]
attr_accessor :name
# A write-only private key in PEM format. Only insert RPCs will include this
# A write-only private key in PEM format. Only insert requests will include this
# field.
# Corresponds to the JSON property `privateKey`
# @return [String]
@ -9360,7 +9542,8 @@ module Google
# The range of internal addresses that are owned by this subnetwork. Provide
# this property when you create the subnetwork. For example, 10.0.0.0/8 or 192.
# 168.0.0/16. Ranges must be unique and non-overlapping within a network.
# 168.0.0/16. Ranges must be unique and non-overlapping within a network. Only
# IPv4 is supported.
# Corresponds to the JSON property `ipCidrRange`
# @return [String]
attr_accessor :ip_cidr_range
@ -11215,6 +11398,46 @@ module Google
end
end
#
class UdpHealthCheck
include Google::Apis::Core::Hashable
# The UDP port number for the health check request.
# Corresponds to the JSON property `port`
# @return [Fixnum]
attr_accessor :port
# Port name as defined in InstanceGroup#NamedPort#name. If both port and
# port_name are defined, port takes precedence.
# Corresponds to the JSON property `portName`
# @return [String]
attr_accessor :port_name
# Raw data of request to send in payload of UDP packet. It is an error if this
# is empty. The request data can only be ASCII.
# Corresponds to the JSON property `request`
# @return [String]
attr_accessor :request
# The bytes to match against the beginning of the response data. It is an error
# if this is empty. The response data can only be ASCII.
# Corresponds to the JSON property `response`
# @return [String]
attr_accessor :response
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@port = args[:port] if args.key?(:port)
@port_name = args[:port_name] if args.key?(:port_name)
@request = args[:request] if args.key?(:request)
@response = args[:response] if args.key?(:response)
end
end
# A UrlMap resource. This resource defines the mapping from URL to the
# BackendService resource, based on the "longest-match" of the URL's host and
# path.
@ -11564,7 +11787,7 @@ module Google
# Local traffic selector to use when establishing the VPN tunnel with peer VPN
# gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/
# 16. The ranges should be disjoint.
# 16. The ranges should be disjoint. Only IPv4 is supported.
# Corresponds to the JSON property `localTrafficSelector`
# @return [Array<String>]
attr_accessor :local_traffic_selector
@ -11579,7 +11802,7 @@ module Google
# @return [String]
attr_accessor :name
# IP address of the peer VPN gateway.
# IP address of the peer VPN gateway. Only IPv4 is supported.
# Corresponds to the JSON property `peerIp`
# @return [String]
attr_accessor :peer_ip
@ -11591,7 +11814,7 @@ module Google
# Remote traffic selectors to use when establishing the VPN tunnel with peer VPN
# gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/
# 16. The ranges should be disjoint.
# 16. The ranges should be disjoint. Only IPv4 is supported.
# Corresponds to the JSON property `remoteTrafficSelector`
# @return [Array<String>]
attr_accessor :remote_traffic_selector
@ -11841,6 +12064,55 @@ module Google
end
end
#
class XpnHostList
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 XPN host project URLs.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::ComputeBeta::Project>]
attr_accessor :items
# [Output Only] Type of resource. Always compute#xpnHostList for lists of XPN
# hosts.
# 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
# A Zone resource.
class Zone
include Google::Apis::Core::Hashable

View File

@ -82,6 +82,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class AuditLogConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Autoscaler
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -178,12 +184,24 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class BackendServiceCdnPolicy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BackendServiceGroupHealth
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BackendServiceIap
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BackendServiceList
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -220,6 +238,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class CacheKeyPolicy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Condition
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -400,12 +424,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Http2HealthCheck
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class HttpHealthCheck
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -736,6 +754,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class InstancesSetServiceAccountRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InstancesStartWithEncryptionKeyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -940,6 +964,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ProjectsListXpnHostsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Quota
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1474,6 +1504,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class UdpHealthCheck
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UrlMap
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1558,6 +1594,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class XpnHostList
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Zone
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1690,11 +1732,21 @@ module Google
class AuditConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::ComputeBeta::AuditLogConfig, decorator: Google::Apis::ComputeBeta::AuditLogConfig::Representation
collection :exempted_members, as: 'exemptedMembers'
property :service, as: 'service'
end
end
class AuditLogConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :exempted_members, as: 'exemptedMembers'
property :log_type, as: 'logType'
end
end
class Autoscaler
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1860,6 +1912,8 @@ module Google
property :affinity_cookie_ttl_sec, as: 'affinityCookieTtlSec'
collection :backends, as: 'backends', class: Google::Apis::ComputeBeta::Backend, decorator: Google::Apis::ComputeBeta::Backend::Representation
property :cdn_policy, as: 'cdnPolicy', class: Google::Apis::ComputeBeta::BackendServiceCdnPolicy, decorator: Google::Apis::ComputeBeta::BackendServiceCdnPolicy::Representation
property :connection_draining, as: 'connectionDraining', class: Google::Apis::ComputeBeta::ConnectionDraining, decorator: Google::Apis::ComputeBeta::ConnectionDraining::Representation
property :creation_timestamp, as: 'creationTimestamp'
@ -1867,6 +1921,8 @@ module Google
property :enable_cdn, as: 'enableCDN'
property :fingerprint, :base64 => true, as: 'fingerprint'
collection :health_checks, as: 'healthChecks'
property :iap, as: 'iap', class: Google::Apis::ComputeBeta::BackendServiceIap, decorator: Google::Apis::ComputeBeta::BackendServiceIap::Representation
property :id, as: 'id'
property :kind, as: 'kind'
property :load_balancing_scheme, as: 'loadBalancingScheme'
@ -1893,6 +1949,14 @@ module Google
end
end
class BackendServiceCdnPolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :cache_key_policy, as: 'cacheKeyPolicy', class: Google::Apis::ComputeBeta::CacheKeyPolicy, decorator: Google::Apis::ComputeBeta::CacheKeyPolicy::Representation
end
end
class BackendServiceGroupHealth
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1902,6 +1966,16 @@ module Google
end
end
class BackendServiceIap
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :enabled, as: 'enabled'
property :oauth2_client_id, as: 'oauth2ClientId'
property :oauth2_client_secret, as: 'oauth2ClientSecret'
property :oauth2_client_secret_sha256, as: 'oauth2ClientSecretSha256'
end
end
class BackendServiceList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1958,6 +2032,17 @@ module Google
end
end
class CacheKeyPolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :include_host, as: 'includeHost'
property :include_protocol, as: 'includeProtocol'
property :include_query_string, as: 'includeQueryString'
collection :query_string_blacklist, as: 'queryStringBlacklist'
collection :query_string_whitelist, as: 'queryStringWhitelist'
end
end
class Condition
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -2303,17 +2388,6 @@ module Google
end
end
class Http2HealthCheck
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :host, as: 'host'
property :port, as: 'port'
property :port_name, as: 'portName'
property :proxy_header, as: 'proxyHeader'
property :request_path, as: 'requestPath'
end
end
class HttpHealthCheck
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -2343,8 +2417,6 @@ module Google
property :creation_timestamp, as: 'creationTimestamp'
property :description, as: 'description'
property :healthy_threshold, as: 'healthyThreshold'
property :http2_health_check, as: 'http2HealthCheck', class: Google::Apis::ComputeBeta::Http2HealthCheck, decorator: Google::Apis::ComputeBeta::Http2HealthCheck::Representation
property :http_health_check, as: 'httpHealthCheck', class: Google::Apis::ComputeBeta::HttpHealthCheck, decorator: Google::Apis::ComputeBeta::HttpHealthCheck::Representation
property :https_health_check, as: 'httpsHealthCheck', class: Google::Apis::ComputeBeta::HttpsHealthCheck, decorator: Google::Apis::ComputeBeta::HttpsHealthCheck::Representation
@ -2359,6 +2431,8 @@ module Google
property :timeout_sec, as: 'timeoutSec'
property :type, as: 'type'
property :udp_health_check, as: 'udpHealthCheck', class: Google::Apis::ComputeBeta::UdpHealthCheck, decorator: Google::Apis::ComputeBeta::UdpHealthCheck::Representation
property :unhealthy_threshold, as: 'unhealthyThreshold'
end
end
@ -2625,6 +2699,7 @@ module Google
property :region, as: 'region'
property :self_link, as: 'selfLink'
property :service_account, as: 'serviceAccount'
collection :target_pools, as: 'targetPools'
property :target_size, as: 'targetSize'
property :zone, as: 'zone'
@ -2965,6 +3040,14 @@ module Google
end
end
class InstancesSetServiceAccountRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :email, as: 'email'
collection :scopes, as: 'scopes'
end
end
class InstancesStartWithEncryptionKeyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -3155,6 +3238,7 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
collection :access_configs, as: 'accessConfigs', class: Google::Apis::ComputeBeta::AccessConfig, decorator: Google::Apis::ComputeBeta::AccessConfig::Representation
property :kind, as: 'kind'
property :name, as: 'name'
property :network, as: 'network'
property :network_ip, as: 'networkIP'
@ -3347,6 +3431,13 @@ module Google
end
end
class ProjectsListXpnHostsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :organization, as: 'organization'
end
end
class Quota
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -4303,6 +4394,16 @@ module Google
end
end
class UdpHealthCheck
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :port, as: 'port'
property :port_name, as: 'portName'
property :request, as: 'request'
property :response, as: 'response'
end
end
class UrlMap
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -4462,6 +4563,18 @@ module Google
end
end
class XpnHostList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
collection :items, as: 'items', class: Google::Apis::ComputeBeta::Project, decorator: Google::Apis::ComputeBeta::Project::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :self_link, as: 'selfLink'
end
end
class Zone
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -5368,6 +5368,54 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates a managed instance group using the information that you specify in the
# request. This operation is marked as DONE when the group is updated even if
# the instances in the group have not yet been updated. You must separately
# verify the status of the individual instances with the listmanagedinstances
# method. This method supports patch semantics.
# @param [String] project
# Project ID for this request.
# @param [String] zone
# The name of the zone where you want to create the managed instance group.
# @param [String] instance_group_manager
# The name of the instance group manager.
# @param [Google::Apis::ComputeBeta::InstanceGroupManager] instance_group_manager_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_instance_group_manager(project, zone, instance_group_manager, instance_group_manager_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}', options)
command.request_representation = Google::Apis::ComputeBeta::InstanceGroupManager::Representation
command.request_object = instance_group_manager_object
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
command.response_class = Google::Apis::ComputeBeta::Operation
command.params['project'] = project unless project.nil?
command.params['zone'] = zone unless zone.nil?
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Schedules a group action to recreate the specified instances in the managed
# instance group. The instances are deleted and recreated using the current
# instance template for the managed instance group. This operation is marked as
@ -5703,6 +5751,54 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates a managed instance group using the information that you specify in the
# request. This operation is marked as DONE when the group is updated even if
# the instances in the group have not yet been updated. You must separately
# verify the status of the individual instances with the listmanagedinstances
# method.
# @param [String] project
# Project ID for this request.
# @param [String] zone
# The name of the zone where you want to create the managed instance group.
# @param [String] instance_group_manager
# The name of the instance group manager.
# @param [Google::Apis::ComputeBeta::InstanceGroupManager] instance_group_manager_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def update_instance_group_manager(project, zone, instance_group_manager, instance_group_manager_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}', options)
command.request_representation = Google::Apis::ComputeBeta::InstanceGroupManager::Representation
command.request_object = instance_group_manager_object
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
command.response_class = Google::Apis::ComputeBeta::Operation
command.params['project'] = project unless project.nil?
command.params['zone'] = zone unless zone.nil?
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Adds a list of instances to the specified instance group. All of the instances
# in the instance group must be in the same network/subnetwork. Read Adding
# instances for more information.
@ -7274,6 +7370,50 @@ module Google
execute_or_queue_command(command, &block)
end
# Sets the service account on the instance.
# @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 instance resource to start.
# @param [Google::Apis::ComputeBeta::InstancesSetServiceAccountRequest] instances_set_service_account_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::ComputeBeta::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def set_instance_service_account(project, zone, instance, instances_set_service_account_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/setServiceAccount', options)
command.request_representation = Google::Apis::ComputeBeta::InstancesSetServiceAccountRequest::Representation
command.request_object = instances_set_service_account_request_object
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
command.response_class = Google::Apis::ComputeBeta::Operation
command.params['project'] = project unless project.nil?
command.params['zone'] = zone unless zone.nil?
command.params['instance'] = instance unless instance.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
# Sets tags for the specified instance to the data included in the request.
# @param [String] project
# Project ID for this request.
@ -8040,6 +8180,80 @@ module Google
execute_or_queue_command(command, &block)
end
# Get the XPN host project that this project links to. May be empty if no link
# exists.
# @param [String] project
# Project ID for this request.
# @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::Project] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::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_xpn_host(project, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/getXpnHost', options)
command.response_representation = Google::Apis::ComputeBeta::Project::Representation
command.response_class = Google::Apis::ComputeBeta::Project
command.params['project'] = project unless project.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
# List all XPN host projects visible to the user in an organization.
# @param [String] project
# Project ID for this request.
# @param [Google::Apis::ComputeBeta::ProjectsListXpnHostsRequest] projects_list_xpn_hosts_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::ComputeBeta::XpnHostList] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::XpnHostList]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_xpn_hosts(project, projects_list_xpn_hosts_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/listXpnHosts', options)
command.request_representation = Google::Apis::ComputeBeta::ProjectsListXpnHostsRequest::Representation
command.request_object = projects_list_xpn_hosts_request_object
command.response_representation = Google::Apis::ComputeBeta::XpnHostList::Representation
command.response_class = Google::Apis::ComputeBeta::XpnHostList
command.params['project'] = project unless project.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
# Moves a persistent disk from one zone to another.
# @param [String] project
# Project ID for this request.

View File

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

View File

@ -69,7 +69,8 @@ module Google
class Address
include Google::Apis::Core::Hashable
# The static external IP address represented by this resource.
# The static external IP address represented by this resource. Only IPv4 is
# supported.
# Corresponds to the JSON property `address`
# @return [String]
attr_accessor :address
@ -1122,6 +1123,11 @@ module Google
# @return [String]
attr_accessor :kind
#
# Corresponds to the JSON property `loadBalancingScheme`
# @return [String]
attr_accessor :load_balancing_scheme
# Name of the resource. Provided by the client when the resource is created. The
# name must be 1-63 characters long, and comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a-
@ -1198,6 +1204,7 @@ module Google
@health_checks = args[:health_checks] if args.key?(:health_checks)
@id = args[:id] if args.key?(:id)
@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)
@port = args[:port] if args.key?(:port)
@port_name = args[:port_name] if args.key?(:port_name)
@ -1209,6 +1216,49 @@ module Google
end
end
# Contains a list of BackendServicesScopedList.
class BackendServiceAggregatedList
include Google::Apis::Core::Hashable
# [Output Only] Unique identifier for the resource; defined by the server.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# A map of scoped BackendService lists.
# Corresponds to the JSON property `items`
# @return [Hash<String,Google::Apis::ComputeV1::BackendServicesScopedList>]
attr_accessor :items
# Type of resource.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# [Output Only] A token used to continue a truncated list request.
# 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 BackendServiceGroupHealth
include Google::Apis::Core::Hashable
@ -1279,10 +1329,107 @@ module Google
end
end
#
class BackendServicesScopedList
include Google::Apis::Core::Hashable
# List of BackendServices contained in this scope.
# Corresponds to the JSON property `backendServices`
# @return [Array<Google::Apis::ComputeV1::BackendService>]
attr_accessor :backend_services
# Informational warning which replaces the list of backend services when the
# list is empty.
# Corresponds to the JSON property `warning`
# @return [Google::Apis::ComputeV1::BackendServicesScopedList::Warning]
attr_accessor :warning
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@backend_services = args[:backend_services] if args.key?(:backend_services)
@warning = args[:warning] if args.key?(:warning)
end
# Informational warning which replaces the list of backend services when the
# list is empty.
class Warning
include Google::Apis::Core::Hashable
# [Output Only] A warning code, if applicable. For example, Compute Engine
# returns NO_RESULTS_ON_PAGE if there are no results in the response.
# Corresponds to the JSON property `code`
# @return [String]
attr_accessor :code
# [Output Only] Metadata about this warning in key: value format. For example:
# "data": [ ` "key": "scope", "value": "zones/us-east1-d" `
# Corresponds to the JSON property `data`
# @return [Array<Google::Apis::ComputeV1::BackendServicesScopedList::Warning::Datum>]
attr_accessor :data
# [Output Only] A human-readable description of the warning code.
# Corresponds to the JSON property `message`
# @return [String]
attr_accessor :message
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@code = args[:code] if args.key?(:code)
@data = args[:data] if args.key?(:data)
@message = args[:message] if args.key?(:message)
end
#
class Datum
include Google::Apis::Core::Hashable
# [Output Only] A key that provides more detail on the warning being returned.
# For example, for warnings where there are no results in a list request for a
# particular zone, this key might be scope and the key value might be the zone
# name. Other examples might be a key indicating a deprecated resource and a
# suggested replacement, or a warning about invalid network settings (for
# example, if an instance attempts to perform IP forwarding but is not enabled
# for IP forwarding).
# Corresponds to the JSON property `key`
# @return [String]
attr_accessor :key
# [Output Only] A warning data value corresponding to the key.
# Corresponds to the JSON property `value`
# @return [String]
attr_accessor :value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@key = args[:key] if args.key?(:key)
@value = args[:value] if args.key?(:value)
end
end
end
end
#
class CacheInvalidationRule
include Google::Apis::Core::Hashable
# If set, this invalidation rule will only apply to requests with a Host header
# matching host.
# Corresponds to the JSON property `host`
# @return [String]
attr_accessor :host
#
# Corresponds to the JSON property `path`
# @return [String]
@ -1294,6 +1441,7 @@ module Google
# Update properties of this object
def update!(**args)
@host = args[:host] if args.key?(:host)
@path = args[:path] if args.key?(:path)
end
end
@ -2181,7 +2329,7 @@ module Google
# properties are set, the firewall will apply to traffic that has source IP
# address within sourceRanges OR the source IP that belongs to a tag listed in
# the sourceTags property. The connection does not need to match both properties
# for the firewall to apply.
# for the firewall to apply. Only IPv4 is supported.
# Corresponds to the JSON property `sourceRanges`
# @return [Array<String>]
attr_accessor :source_ranges
@ -2321,7 +2469,7 @@ module Google
# address belonging to the network/subnetwork configured for the forwarding rule.
# A reserved address cannot be used. If the field is empty, the IP address will
# be automatically allocated from the internal IP range of the subnetwork or
# network configured for this forwarding rule.
# network configured for this forwarding rule. Only IPv4 is supported.
# Corresponds to the JSON property `IPAddress`
# @return [String]
attr_accessor :ip_address
@ -2333,6 +2481,13 @@ module Google
# @return [String]
attr_accessor :ip_protocol
# This field is not used for external load balancing.
# For internal load balancing, this field identifies the BackendService resource
# to receive the matched traffic.
# Corresponds to the JSON property `backendService`
# @return [String]
attr_accessor :backend_service
# [Output Only] Creation timestamp in RFC3339 text format.
# Corresponds to the JSON property `creationTimestamp`
# @return [String]
@ -2356,6 +2511,15 @@ module Google
# @return [String]
attr_accessor :kind
# This signifies what the ForwardingRule will be used for and can only take the
# following values: INTERNAL EXTERNAL The value of INTERNAL means that this will
# be used for Internal Network Load Balancing (TCP, UDP). The value of EXTERNAL
# means that this will be used for External Load Balancing (HTTP(S) LB, External
# TCP/UDP LB, SSL Proxy)
# Corresponds to the JSON property `loadBalancingScheme`
# @return [String]
attr_accessor :load_balancing_scheme
# Name of the resource; provided by the client when the resource is created. The
# name must be 1-63 characters long, and comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a-
@ -2366,6 +2530,14 @@ module Google
# @return [String]
attr_accessor :name
# This field is not used for external load balancing.
# For internal load balancing, this field identifies the network that the load
# balanced IP should belong to for this Forwarding Rule. If this field is not
# specified, the default network will be used.
# Corresponds to the JSON property `network`
# @return [String]
attr_accessor :network
# 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.
@ -2374,6 +2546,16 @@ module Google
# @return [String]
attr_accessor :port_range
# This field is not used for external 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.
# You may specify a maximum of up to 5 ports.
# Corresponds to the JSON property `ports`
# @return [Array<String>]
attr_accessor :ports
# [Output Only] URL of the region where the regional forwarding rule resides.
# This field is not applicable to global forwarding rules.
# Corresponds to the JSON property `region`
@ -2385,6 +2567,16 @@ module Google
# @return [String]
attr_accessor :self_link
# 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.
# If the network specified is in auto subnet mode, this field is optional.
# However, if the network is in custom subnet mode, a subnetwork must be
# specified.
# Corresponds to the JSON property `subnetwork`
# @return [String]
attr_accessor :subnetwork
# The URL of the target resource to receive the matched traffic. For regional
# forwarding rules, this target must live in the same region as the forwarding
# rule. For global forwarding rules, this target must be a global
@ -2404,14 +2596,19 @@ module Google
def update!(**args)
@ip_address = args[:ip_address] if args.key?(:ip_address)
@ip_protocol = args[:ip_protocol] if args.key?(:ip_protocol)
@backend_service = args[:backend_service] if args.key?(:backend_service)
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@description = args[:description] if args.key?(:description)
@id = args[:id] if args.key?(:id)
@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)
@network = args[:network] if args.key?(:network)
@port_range = args[:port_range] if args.key?(:port_range)
@ports = args[:ports] if args.key?(:ports)
@region = args[:region] if args.key?(:region)
@self_link = args[:self_link] if args.key?(:self_link)
@subnetwork = args[:subnetwork] if args.key?(:subnetwork)
@target = args[:target] if args.key?(:target)
end
end
@ -2603,38 +2800,17 @@ module Google
end
end
#
class Http2HealthCheck
# Guest OS features.
class GuestOsFeature
include Google::Apis::Core::Hashable
# The value of the host header in the HTTP/2 health check request. If left empty
# (default value), the IP on behalf of which this health check is performed will
# be used.
# Corresponds to the JSON property `host`
# The type of supported feature. Currenty only VIRTIO_SCSI_MULTIQUEUE is
# supported. For newer Windows images, the server might also populate this
# property with the value WINDOWS to indicate that this is a Windows image. This
# value is purely informational and does not enable or disable any features.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :host
# The TCP port number for the health check request. The default value is 443.
# Corresponds to the JSON property `port`
# @return [Fixnum]
attr_accessor :port
# Port name as defined in InstanceGroup#NamedPort#name. If both port and
# port_name are defined, port takes precedence.
# Corresponds to the JSON property `portName`
# @return [String]
attr_accessor :port_name
# Specifies the type of proxy header to append before sending data to the
# backend, either NONE or PROXY_V1. The default is NONE.
# Corresponds to the JSON property `proxyHeader`
# @return [String]
attr_accessor :proxy_header
# The request path of the HTTP/2 health check request. The default value is /.
# Corresponds to the JSON property `requestPath`
# @return [String]
attr_accessor :request_path
attr_accessor :type
def initialize(**args)
update!(**args)
@ -2642,11 +2818,7 @@ module Google
# Update properties of this object
def update!(**args)
@host = args[:host] if args.key?(:host)
@port = args[:port] if args.key?(:port)
@port_name = args[:port_name] if args.key?(:port_name)
@proxy_header = args[:proxy_header] if args.key?(:proxy_header)
@request_path = args[:request_path] if args.key?(:request_path)
@type = args[:type] if args.key?(:type)
end
end
@ -2772,11 +2944,6 @@ module Google
# @return [Fixnum]
attr_accessor :healthy_threshold
#
# Corresponds to the JSON property `http2HealthCheck`
# @return [Google::Apis::ComputeV1::Http2HealthCheck]
attr_accessor :http2_health_check
#
# Corresponds to the JSON property `httpHealthCheck`
# @return [Google::Apis::ComputeV1::HttpHealthCheck]
@ -2830,9 +2997,9 @@ module Google
# @return [Fixnum]
attr_accessor :timeout_sec
# Specifies the type of the healthCheck, either TCP, UDP, SSL, HTTP, HTTPS or
# HTTP2. If not specified, the default is TCP. Exactly one of the protocol-
# specific health check field must be specified, which must match type field.
# Specifies the type of the healthCheck, either TCP, SSL, HTTP or HTTPS. If not
# specified, the default is TCP. Exactly one of the protocol-specific health
# check field must be specified, which must match type field.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
@ -2853,7 +3020,6 @@ module Google
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@description = args[:description] if args.key?(:description)
@healthy_threshold = args[:healthy_threshold] if args.key?(:healthy_threshold)
@http2_health_check = args[:http2_health_check] if args.key?(:http2_health_check)
@http_health_check = args[:http_health_check] if args.key?(:http_health_check)
@https_health_check = args[:https_health_check] if args.key?(:https_health_check)
@id = args[:id] if args.key?(:id)
@ -3357,6 +3523,19 @@ module Google
# @return [String]
attr_accessor :family
# A list of features to enable on the guest OS. Applicable for bootable images
# only. Currently, only one feature can be enabled, VIRTIO_SCSCI_MULTIQUEUE,
# which allows each virtual CPU to have its own queue. For Windows images, you
# can only enable VIRTIO_SCSCI_MULTIQUEUE on images with driver version 1.2.0.
# 1621 or higher. Linux images with kernel versions 3.17 and higher will support
# VIRTIO_SCSCI_MULTIQUEUE.
# For new Windows images, the server might also populate this field with the
# value WINDOWS, to indicate that this is a Windows image. This value is purely
# informational and does not enable or disable any features.
# Corresponds to the JSON property `guestOsFeatures`
# @return [Array<Google::Apis::ComputeV1::GuestOsFeature>]
attr_accessor :guest_os_features
# [Output Only] The unique identifier for the resource. This identifier is
# defined by the server.
# Corresponds to the JSON property `id`
@ -3398,8 +3577,8 @@ module Google
# @return [String]
attr_accessor :self_link
# URL of the The source disk used to create this image. This can be a full or
# valid partial URL. You must provide either this property or the rawDisk.source
# URL of the source disk used to create this image. This can be a full or valid
# partial URL. You must provide either this property or the rawDisk.source
# property but not both to create an image. For example, the following are valid
# values:
# - https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk
@ -3447,6 +3626,7 @@ module Google
@description = args[:description] if args.key?(:description)
@disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
@family = args[:family] if args.key?(:family)
@guest_os_features = args[:guest_os_features] if args.key?(:guest_os_features)
@id = args[:id] if args.key?(:id)
@image_encryption_key = args[:image_encryption_key] if args.key?(:image_encryption_key)
@kind = args[:kind] if args.key?(:kind)
@ -5144,6 +5324,31 @@ module Google
end
end
#
class InstancesSetServiceAccountRequest
include Google::Apis::Core::Hashable
# Email address of the service account.
# Corresponds to the JSON property `email`
# @return [String]
attr_accessor :email
# The list of scopes to be made available for this service account.
# Corresponds to the JSON property `scopes`
# @return [Array<String>]
attr_accessor :scopes
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@email = args[:email] if args.key?(:email)
@scopes = args[:scopes] if args.key?(:scopes)
end
end
#
class InstancesStartWithEncryptionKeyRequest
include Google::Apis::Core::Hashable
@ -5856,6 +6061,12 @@ module Google
# @return [Array<Google::Apis::ComputeV1::AccessConfig>]
attr_accessor :access_configs
# [Output Only] Type of the resource. Always compute#networkInterface for
# network interfaces.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# [Output Only] The name of the network interface, generated by the server. For
# network devices, these are eth0, eth1, etc.
# Corresponds to the JSON property `name`
@ -5903,6 +6114,7 @@ module Google
# Update properties of this object
def update!(**args)
@access_configs = args[:access_configs] if args.key?(:access_configs)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
@network = args[:network] if args.key?(:network)
@network_ip = args[:network_ip] if args.key?(:network_ip)
@ -6703,6 +6915,374 @@ module Google
end
end
# Contains a list of autoscalers.
class RegionAutoscalerList
include Google::Apis::Core::Hashable
# [Output Only] The unique identifier for the resource. This identifier is
# defined by the server.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# A list of autoscalers.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::ComputeV1::Autoscaler>]
attr_accessor :items
# Type of resource.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# [Output Only] A token used to continue a truncated list request.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# [Output Only] Server-defined URL for this resource.
# Corresponds to the JSON property `selfLink`
# @return [String]
attr_accessor :self_link
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@id = args[:id] if args.key?(:id)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@self_link = args[:self_link] if args.key?(:self_link)
end
end
# Contains a list of InstanceGroup resources.
class RegionInstanceGroupList
include Google::Apis::Core::Hashable
# [Output Only] The unique identifier for the resource. This identifier is
# defined by the server.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# A list of InstanceGroup resources.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::ComputeV1::InstanceGroup>]
attr_accessor :items
# The resource type.
# 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] The URL for this resource type. The server generates this URL.
# Corresponds to the JSON property `selfLink`
# @return [String]
attr_accessor :self_link
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@id = args[:id] if args.key?(:id)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@self_link = args[:self_link] if args.key?(:self_link)
end
end
# Contains a list of managed instance groups.
class RegionInstanceGroupManagerList
include Google::Apis::Core::Hashable
# [Output Only] The unique identifier for the resource. This identifier is
# defined by the server.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# A list of managed instance groups.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::ComputeV1::InstanceGroupManager>]
attr_accessor :items
# [Output Only] The resource type, which is always compute#
# instanceGroupManagerList for a list of managed instance groups that exist in
# th regional scope.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# [Output only] A token used to continue a truncated list request.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# [Output only] The URL for this resource type. The server generates this URL.
# 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 RegionInstanceGroupManagersAbandonInstancesRequest
include Google::Apis::Core::Hashable
# The names of one or more instances to abandon.
# Corresponds to the JSON property `instances`
# @return [Array<String>]
attr_accessor :instances
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@instances = args[:instances] if args.key?(:instances)
end
end
#
class RegionInstanceGroupManagersDeleteInstancesRequest
include Google::Apis::Core::Hashable
# The names of one or more instances to delete.
# Corresponds to the JSON property `instances`
# @return [Array<String>]
attr_accessor :instances
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@instances = args[:instances] if args.key?(:instances)
end
end
#
class RegionInstanceGroupManagersListInstancesResponse
include Google::Apis::Core::Hashable
# List of managed instances.
# Corresponds to the JSON property `managedInstances`
# @return [Array<Google::Apis::ComputeV1::ManagedInstance>]
attr_accessor :managed_instances
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@managed_instances = args[:managed_instances] if args.key?(:managed_instances)
end
end
#
class RegionInstanceGroupManagersRecreateRequest
include Google::Apis::Core::Hashable
# The URL for one or more instances to recreate.
# Corresponds to the JSON property `instances`
# @return [Array<String>]
attr_accessor :instances
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@instances = args[:instances] if args.key?(:instances)
end
end
#
class RegionInstanceGroupManagersSetTargetPoolsRequest
include Google::Apis::Core::Hashable
# Fingerprint of the target pools information, which is a hash of the contents.
# This field is used for optimistic locking when you update the target pool
# entries. This field is optional.
# Corresponds to the JSON property `fingerprint`
# @return [String]
attr_accessor :fingerprint
# The URL of all TargetPool resources to which instances in the instanceGroup
# field are added. The target pools automatically apply to all of the instances
# in the managed instance group.
# Corresponds to the JSON property `targetPools`
# @return [Array<String>]
attr_accessor :target_pools
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@fingerprint = args[:fingerprint] if args.key?(:fingerprint)
@target_pools = args[:target_pools] if args.key?(:target_pools)
end
end
#
class RegionInstanceGroupManagersSetTemplateRequest
include Google::Apis::Core::Hashable
# URL of the InstanceTemplate resource from which all new instances will be
# created.
# Corresponds to the JSON property `instanceTemplate`
# @return [String]
attr_accessor :instance_template
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@instance_template = args[:instance_template] if args.key?(:instance_template)
end
end
#
class RegionInstanceGroupsListInstances
include Google::Apis::Core::Hashable
# [Output Only] Unique identifier for the resource. Defined by the server.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# A list of instances and any named ports that are assigned to those instances.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::ComputeV1::InstanceWithNamedPorts>]
attr_accessor :items
# The resource type.
# 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 the 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 RegionInstanceGroupsListInstancesRequest
include Google::Apis::Core::Hashable
# Instances in which state should be returned. Valid options are: 'ALL', '
# RUNNING'. By default, it lists all instances.
# Corresponds to the JSON property `instanceState`
# @return [String]
attr_accessor :instance_state
# Name of port user is interested in. It is optional. If it is set, only
# information about this ports will be returned. If it is not set, all the named
# ports will be returned. Always lists all instances.
# Corresponds to the JSON property `portName`
# @return [String]
attr_accessor :port_name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@instance_state = args[:instance_state] if args.key?(:instance_state)
@port_name = args[:port_name] if args.key?(:port_name)
end
end
#
class RegionInstanceGroupsSetNamedPortsRequest
include Google::Apis::Core::Hashable
# The fingerprint of the named ports information for this instance group. Use
# this optional property to prevent conflicts when multiple users change the
# named ports settings concurrently. Obtain the fingerprint with the
# instanceGroups.get method. Then, include the fingerprint in your request to
# ensure that you do not overwrite changes that were applied from another
# concurrent request.
# Corresponds to the JSON property `fingerprint`
# @return [String]
attr_accessor :fingerprint
# The list of named ports to set for this instance group.
# Corresponds to the JSON property `namedPorts`
# @return [Array<Google::Apis::ComputeV1::NamedPort>]
attr_accessor :named_ports
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@fingerprint = args[:fingerprint] if args.key?(:fingerprint)
@named_ports = args[:named_ports] if args.key?(:named_ports)
end
end
# Contains a list of region resources.
class RegionList
include Google::Apis::Core::Hashable
@ -6798,7 +7378,8 @@ module Google
# @return [String]
attr_accessor :description
# The destination range of outgoing packets that this route applies to.
# The destination range of outgoing packets that this route applies to. Only
# IPv4 is supported.
# Corresponds to the JSON property `destRange`
# @return [String]
attr_accessor :dest_range
@ -6844,6 +7425,7 @@ module Google
attr_accessor :next_hop_instance
# The network IP address of an instance that should handle matching packets.
# Only IPv4 is supported.
# Corresponds to the JSON property `nextHopIp`
# @return [String]
attr_accessor :next_hop_ip
@ -7192,7 +7774,8 @@ module Google
# @return [String]
attr_accessor :interface_name
# IP address of the interface inside Google Cloud Platform.
# IP address of the interface inside Google Cloud Platform. Only IPv4 is
# supported.
# Corresponds to the JSON property `ipAddress`
# @return [String]
attr_accessor :ip_address
@ -7209,7 +7792,7 @@ module Google
# @return [Fixnum]
attr_accessor :peer_asn
# IP address of the BGP interface outside Google cloud.
# IP address of the BGP interface outside Google cloud. Only IPv4 is supported.
# Corresponds to the JSON property `peerIpAddress`
# @return [String]
attr_accessor :peer_ip_address
@ -7657,11 +8240,25 @@ module Google
# @return [String]
attr_accessor :kind
# [Output Only] The position of the next byte of content from the serial console
# output. Use this value in the next request as the start parameter.
# Corresponds to the JSON property `next`
# @return [String]
attr_accessor :next
# [Output Only] Server-defined URL for this resource.
# Corresponds to the JSON property `selfLink`
# @return [String]
attr_accessor :self_link
# [Output Only] The starting byte position of the output that was returned. This
# should match the start parameter sent with the request. If the serial console
# output exceeds the size of the buffer, older output will be overwritten by
# newer content and the start values will be mismatched.
# Corresponds to the JSON property `start`
# @return [String]
attr_accessor :start
def initialize(**args)
update!(**args)
end
@ -7670,7 +8267,9 @@ module Google
def update!(**args)
@contents = args[:contents] if args.key?(:contents)
@kind = args[:kind] if args.key?(:kind)
@next = args[:next] if args.key?(:next)
@self_link = args[:self_link] if args.key?(:self_link)
@start = args[:start] if args.key?(:start)
end
end
@ -7914,7 +8513,7 @@ module Google
# @return [String]
attr_accessor :name
# A write-only private key in PEM format. Only insert RPCs will include this
# A write-only private key in PEM format. Only insert requests will include this
# field.
# Corresponds to the JSON property `privateKey`
# @return [String]
@ -8018,7 +8617,8 @@ module Google
# The range of internal addresses that are owned by this subnetwork. Provide
# this property when you create the subnetwork. For example, 10.0.0.0/8 or 192.
# 168.0.0/16. Ranges must be unique and non-overlapping within a network.
# 168.0.0/16. Ranges must be unique and non-overlapping within a network. Only
# IPv4 is supported.
# Corresponds to the JSON property `ipCidrRange`
# @return [String]
attr_accessor :ip_cidr_range
@ -10183,7 +10783,7 @@ module Google
# Local traffic selector to use when establishing the VPN tunnel with peer VPN
# gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/
# 16. The ranges should be disjoint.
# 16. The ranges should be disjoint. Only IPv4 is supported.
# Corresponds to the JSON property `localTrafficSelector`
# @return [Array<String>]
attr_accessor :local_traffic_selector
@ -10198,7 +10798,7 @@ module Google
# @return [String]
attr_accessor :name
# IP address of the peer VPN gateway.
# IP address of the peer VPN gateway. Only IPv4 is supported.
# Corresponds to the JSON property `peerIp`
# @return [String]
attr_accessor :peer_ip
@ -10210,7 +10810,7 @@ module Google
# Remote traffic selectors to use when establishing the VPN tunnel with peer VPN
# gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/
# 16. The ranges should be disjoint.
# 16. The ranges should be disjoint. Only IPv4 is supported.
# Corresponds to the JSON property `remoteTrafficSelector`
# @return [Array<String>]
attr_accessor :remote_traffic_selector

View File

@ -148,6 +148,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class BackendServiceAggregatedList
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BackendServiceGroupHealth
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -160,6 +166,24 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class BackendServicesScopedList
class Representation < Google::Apis::Core::JsonRepresentation; end
class Warning
class Representation < Google::Apis::Core::JsonRepresentation; end
class Datum
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class CacheInvalidationRule
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -328,7 +352,7 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Http2HealthCheck
class GuestOsFeature
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -640,6 +664,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class InstancesSetServiceAccountRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InstancesStartWithEncryptionKeyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -844,6 +874,78 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class RegionAutoscalerList
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RegionInstanceGroupList
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RegionInstanceGroupManagerList
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RegionInstanceGroupManagersAbandonInstancesRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RegionInstanceGroupManagersDeleteInstancesRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RegionInstanceGroupManagersListInstancesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RegionInstanceGroupManagersRecreateRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RegionInstanceGroupManagersSetTargetPoolsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RegionInstanceGroupManagersSetTemplateRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RegionInstanceGroupsListInstances
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RegionInstanceGroupsListInstancesRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RegionInstanceGroupsSetNamedPortsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RegionList
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1613,6 +1715,7 @@ module Google
collection :health_checks, as: 'healthChecks'
property :id, as: 'id'
property :kind, as: 'kind'
property :load_balancing_scheme, as: 'loadBalancingScheme'
property :name, as: 'name'
property :port, as: 'port'
property :port_name, as: 'portName'
@ -1624,6 +1727,18 @@ module Google
end
end
class BackendServiceAggregatedList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
hash :items, as: 'items', class: Google::Apis::ComputeV1::BackendServicesScopedList, decorator: Google::Apis::ComputeV1::BackendServicesScopedList::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :self_link, as: 'selfLink'
end
end
class BackendServiceGroupHealth
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1645,9 +1760,38 @@ module Google
end
end
class BackendServicesScopedList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :backend_services, as: 'backendServices', class: Google::Apis::ComputeV1::BackendService, decorator: Google::Apis::ComputeV1::BackendService::Representation
property :warning, as: 'warning', class: Google::Apis::ComputeV1::BackendServicesScopedList::Warning, decorator: Google::Apis::ComputeV1::BackendServicesScopedList::Warning::Representation
end
class Warning
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :data, as: 'data', class: Google::Apis::ComputeV1::BackendServicesScopedList::Warning::Datum, decorator: Google::Apis::ComputeV1::BackendServicesScopedList::Warning::Datum::Representation
property :message, as: 'message'
end
class Datum
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :key, as: 'key'
property :value, as: 'value'
end
end
end
end
class CacheInvalidationRule
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :host, as: 'host'
property :path, as: 'path'
end
end
@ -1897,14 +2041,19 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :ip_address, as: 'IPAddress'
property :ip_protocol, as: 'IPProtocol'
property :backend_service, as: 'backendService'
property :creation_timestamp, as: 'creationTimestamp'
property :description, as: 'description'
property :id, as: 'id'
property :kind, as: 'kind'
property :load_balancing_scheme, as: 'loadBalancingScheme'
property :name, as: 'name'
property :network, as: 'network'
property :port_range, as: 'portRange'
collection :ports, as: 'ports'
property :region, as: 'region'
property :self_link, as: 'selfLink'
property :subnetwork, as: 'subnetwork'
property :target, as: 'target'
end
end
@ -1961,14 +2110,10 @@ module Google
end
end
class Http2HealthCheck
class GuestOsFeature
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :host, as: 'host'
property :port, as: 'port'
property :port_name, as: 'portName'
property :proxy_header, as: 'proxyHeader'
property :request_path, as: 'requestPath'
property :type, as: 'type'
end
end
@ -2001,8 +2146,6 @@ module Google
property :creation_timestamp, as: 'creationTimestamp'
property :description, as: 'description'
property :healthy_threshold, as: 'healthyThreshold'
property :http2_health_check, as: 'http2HealthCheck', class: Google::Apis::ComputeV1::Http2HealthCheck, decorator: Google::Apis::ComputeV1::Http2HealthCheck::Representation
property :http_health_check, as: 'httpHealthCheck', class: Google::Apis::ComputeV1::HttpHealthCheck, decorator: Google::Apis::ComputeV1::HttpHealthCheck::Representation
property :https_health_check, as: 'httpsHealthCheck', class: Google::Apis::ComputeV1::HttpsHealthCheck, decorator: Google::Apis::ComputeV1::HttpsHealthCheck::Representation
@ -2131,6 +2274,8 @@ module Google
property :description, as: 'description'
property :disk_size_gb, as: 'diskSizeGb'
property :family, as: 'family'
collection :guest_os_features, as: 'guestOsFeatures', class: Google::Apis::ComputeV1::GuestOsFeature, decorator: Google::Apis::ComputeV1::GuestOsFeature::Representation
property :id, as: 'id'
property :image_encryption_key, as: 'imageEncryptionKey', class: Google::Apis::ComputeV1::CustomerEncryptionKey, decorator: Google::Apis::ComputeV1::CustomerEncryptionKey::Representation
@ -2581,6 +2726,14 @@ module Google
end
end
class InstancesSetServiceAccountRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :email, as: 'email'
collection :scopes, as: 'scopes'
end
end
class InstancesStartWithEncryptionKeyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -2765,6 +2918,7 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
collection :access_configs, as: 'accessConfigs', class: Google::Apis::ComputeV1::AccessConfig, decorator: Google::Apis::ComputeV1::AccessConfig::Representation
property :kind, as: 'kind'
property :name, as: 'name'
property :network, as: 'network'
property :network_ip, as: 'networkIP'
@ -2968,6 +3122,115 @@ module Google
end
end
class RegionAutoscalerList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
collection :items, as: 'items', class: Google::Apis::ComputeV1::Autoscaler, decorator: Google::Apis::ComputeV1::Autoscaler::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :self_link, as: 'selfLink'
end
end
class RegionInstanceGroupList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
collection :items, as: 'items', class: Google::Apis::ComputeV1::InstanceGroup, decorator: Google::Apis::ComputeV1::InstanceGroup::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :self_link, as: 'selfLink'
end
end
class RegionInstanceGroupManagerList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
collection :items, as: 'items', class: Google::Apis::ComputeV1::InstanceGroupManager, decorator: Google::Apis::ComputeV1::InstanceGroupManager::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :self_link, as: 'selfLink'
end
end
class RegionInstanceGroupManagersAbandonInstancesRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :instances, as: 'instances'
end
end
class RegionInstanceGroupManagersDeleteInstancesRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :instances, as: 'instances'
end
end
class RegionInstanceGroupManagersListInstancesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :managed_instances, as: 'managedInstances', class: Google::Apis::ComputeV1::ManagedInstance, decorator: Google::Apis::ComputeV1::ManagedInstance::Representation
end
end
class RegionInstanceGroupManagersRecreateRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :instances, as: 'instances'
end
end
class RegionInstanceGroupManagersSetTargetPoolsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :fingerprint, :base64 => true, as: 'fingerprint'
collection :target_pools, as: 'targetPools'
end
end
class RegionInstanceGroupManagersSetTemplateRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :instance_template, as: 'instanceTemplate'
end
end
class RegionInstanceGroupsListInstances
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
collection :items, as: 'items', class: Google::Apis::ComputeV1::InstanceWithNamedPorts, decorator: Google::Apis::ComputeV1::InstanceWithNamedPorts::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :self_link, as: 'selfLink'
end
end
class RegionInstanceGroupsListInstancesRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :instance_state, as: 'instanceState'
property :port_name, as: 'portName'
end
end
class RegionInstanceGroupsSetNamedPortsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :fingerprint, :base64 => true, as: 'fingerprint'
collection :named_ports, as: 'namedPorts', class: Google::Apis::ComputeV1::NamedPort, decorator: Google::Apis::ComputeV1::NamedPort::Representation
end
end
class RegionList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -3210,7 +3473,9 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :contents, as: 'contents'
property :kind, as: 'kind'
property :next, as: 'next'
property :self_link, as: 'selfLink'
property :start, as: 'start'
end
end

File diff suppressed because it is too large Load Diff

View File

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

View File

@ -32,10 +32,11 @@ module Google
attr_accessor :adult_content
alias_method :adult_content?, :adult_content
# List of linked AdWords accounts, active or pending approval. To create a new
# link request, add a new link with status active to the list. It will remain is
# state pending until approved or rejected in the AdWords interface. To delete
# an active link or to cancel a link request, remove it from the list.
# List of linked AdWords accounts that are active or pending approval. To create
# a new link request, add a new link with status active to the list. It will
# remain in a pending state until approved or rejected either in the AdWords
# interface or through the AdWords API. To delete an active link, or to cancel
# a link request, remove it from the list.
# Corresponds to the JSON property `adwordsLinks`
# @return [Array<Google::Apis::ContentV2::AccountAdwordsLink>]
attr_accessor :adwords_links
@ -3031,8 +3032,7 @@ module Google
# If set, this indicates the user explicitly chose to opt in or out of providing
# marketing rights to the merchant. If unset, this indicates the user has
# already made this choice in a previous purchase, and was thus not shown the
# marketing right opt in/out checkbox during the Purchases on Google checkout
# flow.
# marketing right opt in/out checkbox during the checkout flow.
# Corresponds to the JSON property `explicitMarketingPreference`
# @return [Boolean]
attr_accessor :explicit_marketing_preference
@ -6607,8 +6607,7 @@ module Google
# If set, this indicates the user explicitly chose to opt in or out of providing
# marketing rights to the merchant. If unset, this indicates the user has
# already made this choice in a previous purchase, and was thus not shown the
# marketing right opt in/out checkbox during the Purchases on Google checkout
# flow. Optional.
# marketing right opt in/out checkbox during the checkout flow. Optional.
# Corresponds to the JSON property `explicitMarketingPreference`
# @return [Boolean]
attr_accessor :explicit_marketing_preference

View File

@ -124,7 +124,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Deletes a Merchant Center sub-account.
# Deletes a Merchant Center sub-account. This method can only be called for
# multi-client accounts.
# @param [String] merchant_id
# The ID of the managing account.
# @param [String] account_id
@ -163,7 +164,9 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves a Merchant Center account.
# Retrieves a Merchant Center account. This method can only be called for
# accounts to which the managing account has access: either the managing account
# itself or sub-accounts if the managing account is a multi-client account.
# @param [String] merchant_id
# The ID of the managing account.
# @param [String] account_id
@ -201,7 +204,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Creates a Merchant Center sub-account.
# Creates a Merchant Center sub-account. This method can only be called for
# multi-client accounts.
# @param [String] merchant_id
# The ID of the managing account.
# @param [Google::Apis::ContentV2::Account] account_object
@ -242,7 +246,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Lists the sub-accounts in your Merchant Center account.
# Lists the sub-accounts in your Merchant Center account. This method can only
# be called for multi-client accounts.
# @param [String] merchant_id
# The ID of the managing account.
# @param [Fixnum] max_results
@ -283,7 +288,10 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates a Merchant Center account. This method supports patch semantics.
# Updates a Merchant Center account. This method can only be called for accounts
# to which the managing account has access: either the managing account itself
# or sub-accounts if the managing account is a multi-client account. This method
# supports patch semantics.
# @param [String] merchant_id
# The ID of the managing account.
# @param [String] account_id
@ -327,7 +335,9 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates a Merchant Center account.
# Updates a Merchant Center account. This method can only be called for accounts
# to which the managing account has access: either the managing account itself
# or sub-accounts if the managing account is a multi-client account.
# @param [String] merchant_id
# The ID of the managing account.
# @param [String] account_id
@ -410,7 +420,10 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves the shipping settings of the account.
# Retrieves the shipping settings of the account. This method can only be called
# for accounts to which the managing account has access: either the managing
# account itself or sub-accounts if the managing account is a multi-client
# account.
# @param [String] merchant_id
# The ID of the managing account.
# @param [String] account_id
@ -449,7 +462,7 @@ module Google
end
# Lists the shipping settings of the sub-accounts in your Merchant Center
# account.
# account. This method can only be called for multi-client accounts.
# @param [String] merchant_id
# The ID of the managing account.
# @param [Fixnum] max_results
@ -491,8 +504,10 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates the shipping settings of the account. This method supports patch
# semantics.
# Updates the shipping settings of the account. This method can only be called
# for accounts to which the managing account has access: either the managing
# account itself or sub-accounts if the managing account is a multi-client
# account. This method supports patch semantics.
# @param [String] merchant_id
# The ID of the managing account.
# @param [String] account_id
@ -536,7 +551,10 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates the shipping settings of the account.
# Updates the shipping settings of the account. This method can only be called
# for accounts to which the managing account has access: either the managing
# account itself or sub-accounts if the managing account is a multi-client
# account.
# @param [String] merchant_id
# The ID of the managing account.
# @param [String] account_id
@ -615,7 +633,10 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves the status of a Merchant Center account.
# Retrieves the status of a Merchant Center account. This method can only be
# called for accounts to which the managing account has access: either the
# managing account itself or sub-accounts if the managing account is a multi-
# client account.
# @param [String] merchant_id
# The ID of the managing account.
# @param [String] account_id
@ -653,7 +674,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Lists the statuses of the sub-accounts in your Merchant Center account.
# Lists the statuses of the sub-accounts in your Merchant Center account. This
# method can only be called for multi-client accounts.
# @param [String] merchant_id
# The ID of the managing account.
# @param [Fixnum] max_results
@ -733,7 +755,9 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves the tax settings of the account.
# Retrieves the tax settings of the account. This method can only be called for
# accounts to which the managing account has access: either the managing account
# itself or sub-accounts if the managing account is a multi-client account.
# @param [String] merchant_id
# The ID of the managing account.
# @param [String] account_id
@ -772,6 +796,7 @@ module Google
end
# Lists the tax settings of the sub-accounts in your Merchant Center account.
# This method can only be called for multi-client accounts.
# @param [String] merchant_id
# The ID of the managing account.
# @param [Fixnum] max_results
@ -812,7 +837,10 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates the tax settings of the account. This method supports patch semantics.
# Updates the tax settings of the account. This method can only be called for
# accounts to which the managing account has access: either the managing account
# itself or sub-accounts if the managing account is a multi-client account. This
# method supports patch semantics.
# @param [String] merchant_id
# The ID of the managing account.
# @param [String] account_id
@ -856,7 +884,9 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates the tax settings of the account.
# Updates the tax settings of the account. This method can only be called for
# accounts to which the managing account has access: either the managing account
# itself or sub-accounts if the managing account is a multi-client account.
# @param [String] merchant_id
# The ID of the managing account.
# @param [String] account_id
@ -938,7 +968,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Deletes a datafeed from your Merchant Center account.
# Deletes a datafeed from your Merchant Center account. This method can only be
# called for non-multi-client accounts.
# @param [String] merchant_id
# @param [String] datafeed_id
# @param [Boolean] dry_run
@ -975,7 +1006,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves a datafeed from your Merchant Center account.
# Retrieves a datafeed from your Merchant Center account. This method can only
# be called for non-multi-client accounts.
# @param [String] merchant_id
# @param [String] datafeed_id
# @param [String] fields
@ -1011,7 +1043,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Registers a datafeed with your Merchant Center account.
# Registers a datafeed with your Merchant Center account. This method can only
# be called for non-multi-client accounts.
# @param [String] merchant_id
# @param [Google::Apis::ContentV2::Datafeed] datafeed_object
# @param [Boolean] dry_run
@ -1051,7 +1084,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Lists the datafeeds in your Merchant Center account.
# Lists the datafeeds in your Merchant Center account. This method can only be
# called for non-multi-client accounts.
# @param [String] merchant_id
# The ID of the managing account.
# @param [Fixnum] max_results
@ -1092,8 +1126,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates a datafeed of your Merchant Center account. This method supports patch
# semantics.
# Updates a datafeed of your Merchant Center account. This method can only be
# called for non-multi-client accounts. This method supports patch semantics.
# @param [String] merchant_id
# @param [String] datafeed_id
# @param [Google::Apis::ContentV2::Datafeed] datafeed_object
@ -1135,7 +1169,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates a datafeed of your Merchant Center account.
# Updates a datafeed of your Merchant Center account. This method can only be
# called for non-multi-client accounts.
# @param [String] merchant_id
# @param [String] datafeed_id
# @param [Google::Apis::ContentV2::Datafeed] datafeed_object
@ -1212,7 +1247,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves the status of a datafeed from your Merchant Center account.
# Retrieves the status of a datafeed from your Merchant Center account. This
# method can only be called for non-multi-client accounts.
# @param [String] merchant_id
# @param [String] datafeed_id
# @param [String] fields
@ -1248,7 +1284,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Lists the statuses of the datafeeds in your Merchant Center account.
# Lists the statuses of the datafeeds in your Merchant Center account. This
# method can only be called for non-multi-client accounts.
# @param [String] merchant_id
# The ID of the managing account.
# @param [Fixnum] max_results
@ -1291,6 +1328,7 @@ module Google
# Updates price and availability for multiple products or stores in a single
# request. This operation does not update the expiration date of the products.
# This method can only be called for non-multi-client accounts.
# @param [Google::Apis::ContentV2::BatchInventoryRequest] batch_inventory_request_object
# @param [Boolean] dry_run
# Flag to run the request in dry-run mode.
@ -1329,7 +1367,8 @@ module Google
end
# Updates price and availability of a product in your Merchant Center account.
# This operation does not update the expiration date of the product.
# This operation does not update the expiration date of the product. This method
# can only be called for non-multi-client accounts.
# @param [String] merchant_id
# The ID of the managing account.
# @param [String] store_code
@ -1377,7 +1416,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Marks an order as acknowledged.
# Marks an order as acknowledged. This method can only be called for non-multi-
# client accounts.
# @param [String] merchant_id
# The ID of the managing account.
# @param [String] order_id
@ -1419,7 +1459,7 @@ module Google
end
# Sandbox only. Moves a test order from state "inProgress" to state "
# pendingShipment".
# pendingShipment". This method can only be called for non-multi-client accounts.
# @param [String] merchant_id
# The ID of the managing account.
# @param [String] order_id
@ -1457,7 +1497,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Cancels all line items in an order.
# Cancels all line items in an order. This method can only be called for non-
# multi-client accounts.
# @param [String] merchant_id
# The ID of the managing account.
# @param [String] order_id
@ -1498,7 +1539,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Cancels a line item.
# Cancels a line item. This method can only be called for non-multi-client
# accounts.
# @param [String] merchant_id
# The ID of the managing account.
# @param [String] order_id
@ -1539,7 +1581,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Sandbox only. Creates a test order.
# Sandbox only. Creates a test order. This method can only be called for non-
# multi-client accounts.
# @param [String] merchant_id
# The ID of the managing account.
# @param [Google::Apis::ContentV2::OrdersCreateTestOrderRequest] orders_create_test_order_request_object
@ -1577,7 +1620,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves or modifies multiple orders in a single request.
# Retrieves or modifies multiple orders in a single request. This method can
# only be called for non-multi-client accounts.
# @param [Google::Apis::ContentV2::OrdersCustomBatchRequest] orders_custom_batch_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -1612,7 +1656,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves an order from your Merchant Center account.
# Retrieves an order from your Merchant Center account. This method can only be
# called for non-multi-client accounts.
# @param [String] merchant_id
# The ID of the managing account.
# @param [String] order_id
@ -1650,7 +1695,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves an order using merchant order id.
# Retrieves an order using merchant order id. This method can only be called for
# non-multi-client accounts.
# @param [String] merchant_id
# The ID of the managing account.
# @param [String] merchant_order_id
@ -1689,7 +1735,8 @@ module Google
end
# Sandbox only. Retrieves an order template that can be used to quickly create a
# new order in sandbox.
# new order in sandbox. This method can only be called for non-multi-client
# accounts.
# @param [String] merchant_id
# The ID of the managing account.
# @param [String] template_name
@ -1727,7 +1774,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Lists the orders in your Merchant Center account.
# Lists the orders in your Merchant Center account. This method can only be
# called for non-multi-client accounts.
# @param [String] merchant_id
# The ID of the managing account.
# @param [Boolean] acknowledged
@ -1800,7 +1848,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Refund a portion of the order, up to the full amount paid.
# Refund a portion of the order, up to the full amount paid. This method can
# only be called for non-multi-client accounts.
# @param [String] merchant_id
# The ID of the managing account.
# @param [String] order_id
@ -1841,7 +1890,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Returns a line item.
# Returns a line item. This method can only be called for non-multi-client
# accounts.
# @param [String] merchant_id
# The ID of the managing account.
# @param [String] order_id
@ -1882,7 +1932,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Marks line item(s) as shipped.
# Marks line item(s) as shipped. This method can only be called for non-multi-
# client accounts.
# @param [String] merchant_id
# The ID of the managing account.
# @param [String] order_id
@ -1923,7 +1974,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates the merchant order ID for a given order.
# Updates the merchant order ID for a given order. This method can only be
# called for non-multi-client accounts.
# @param [String] merchant_id
# The ID of the managing account.
# @param [String] order_id
@ -1964,7 +2016,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates a shipment's status, carrier, and/or tracking ID.
# Updates a shipment's status, carrier, and/or tracking ID. This method can only
# be called for non-multi-client accounts.
# @param [String] merchant_id
# The ID of the managing account.
# @param [String] order_id
@ -2005,7 +2058,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves, inserts, and deletes multiple products in a single request.
# Retrieves, inserts, and deletes multiple products in a single request. This
# method can only be called for non-multi-client accounts.
# @param [Google::Apis::ContentV2::BatchProductsRequest] batch_products_request_object
# @param [Boolean] dry_run
# Flag to run the request in dry-run mode.
@ -2043,7 +2097,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Deletes a product from your Merchant Center account.
# Deletes a product from your Merchant Center account. This method can only be
# called for non-multi-client accounts.
# @param [String] merchant_id
# The ID of the managing account.
# @param [String] product_id
@ -2082,7 +2137,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves a product from your Merchant Center account.
# Retrieves a product from your Merchant Center account. This method can only be
# called for non-multi-client accounts.
# @param [String] merchant_id
# The ID of the managing account.
# @param [String] product_id
@ -2120,7 +2176,10 @@ module Google
execute_or_queue_command(command, &block)
end
# Uploads a product to your Merchant Center account.
# Uploads a product to your Merchant Center account. If an item with the same
# channel, contentLanguage, offerId, and targetCountry already exists, this
# method updates that entry. This method can only be called for non-multi-client
# accounts.
# @param [String] merchant_id
# The ID of the managing account.
# @param [Google::Apis::ContentV2::Product] product_object
@ -2161,7 +2220,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Lists the products in your Merchant Center account.
# Lists the products in your Merchant Center account. This method can only be
# called for non-multi-client accounts.
# @param [String] merchant_id
# The ID of the managing account.
# @param [Boolean] include_invalid_inserted_items
@ -2206,7 +2266,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Gets the statuses of multiple products in a single request.
# Gets the statuses of multiple products in a single request. This method can
# only be called for non-multi-client accounts.
# @param [Google::Apis::ContentV2::BatchProductStatusesRequest] batch_product_statuses_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -2241,7 +2302,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Gets the status of a product from your Merchant Center account.
# Gets the status of a product from your Merchant Center account. This method
# can only be called for non-multi-client accounts.
# @param [String] merchant_id
# The ID of the managing account.
# @param [String] product_id
@ -2279,7 +2341,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Lists the statuses of the products in your Merchant Center account.
# Lists the statuses of the products in your Merchant Center account. This
# method can only be called for non-multi-client accounts.
# @param [String] merchant_id
# The ID of the managing account.
# @param [Boolean] include_invalid_inserted_items
@ -2364,7 +2427,10 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves the shipping settings of the account.
# Retrieves the shipping settings of the account. This method can only be called
# for accounts to which the managing account has access: either the managing
# account itself or sub-accounts if the managing account is a multi-client
# account.
# @param [String] merchant_id
# The ID of the managing account.
# @param [String] account_id
@ -2438,7 +2504,7 @@ module Google
end
# Lists the shipping settings of the sub-accounts in your Merchant Center
# account.
# account. This method can only be called for multi-client accounts.
# @param [String] merchant_id
# The ID of the managing account.
# @param [Fixnum] max_results
@ -2480,8 +2546,10 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates the shipping settings of the account. This method supports patch
# semantics.
# Updates the shipping settings of the account. This method can only be called
# for accounts to which the managing account has access: either the managing
# account itself or sub-accounts if the managing account is a multi-client
# account. This method supports patch semantics.
# @param [String] merchant_id
# The ID of the managing account.
# @param [String] account_id
@ -2525,7 +2593,10 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates the shipping settings of the account.
# Updates the shipping settings of the account. This method can only be called
# for accounts to which the managing account has access: either the managing
# account itself or sub-accounts if the managing account is a multi-client
# account.
# @param [String] merchant_id
# The ID of the managing account.
# @param [String] account_id

View File

@ -20,13 +20,12 @@ module Google
module Apis
# Google Dataflow API
#
# Develops and executes data processing patterns like ETL, batch computation,
# and continuous computation.
# Manages Google Cloud Dataflow projects on Google Cloud Platform.
#
# @see https://cloud.google.com/dataflow
module DataflowV1b3
VERSION = 'V1b3'
REVISION = '20160928'
REVISION = '20161004'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -110,30 +110,31 @@ module Google
end
end
# Defines a job to be run by the Dataflow service.
# Defines a job to be run by the Cloud Dataflow service.
class Job
include Google::Apis::Core::Hashable
# The unique ID of this job. This field is set by the Dataflow service when the
# Job is created, and is immutable for the life of the Job.
# The unique ID of this job. This field is set by the Cloud Dataflow service
# when the Job is created, and is immutable for the life of the job.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# The project which owns the job.
# The ID of the Cloud Platform project that the job belongs to.
# Corresponds to the JSON property `projectId`
# @return [String]
attr_accessor :project_id
# The user-specified Dataflow job name. Only one Job with a given name may exist
# in a project at any given time. If a caller attempts to create a Job with the
# same name as an already-existing Job, the attempt will return the existing Job.
# The name must match the regular expression [a-z]([-a-z0-9]`0,38`[a-z0-9])?
# The user-specified Cloud Dataflow job name. Only one Job with a given name may
# exist in a project at any given time. If a caller attempts to create a Job
# with the same name as an already-existing Job, the attempt returns the
# existing Job. The name must match the regular expression `[a-z]([-a-z0-9]`0,38`
# [a-z0-9])?`
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The type of dataflow job.
# The type of Cloud Dataflow job.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
@ -148,11 +149,11 @@ module Google
# @return [Array<Google::Apis::DataflowV1b3::Step>]
attr_accessor :steps
# The current state of the job. Jobs are created in the JOB_STATE_STOPPED state
# unless otherwise specified. A job in the JOB_STATE_RUNNING state may
# asynchronously enter a terminal state. Once a job has reached a terminal state,
# no further state updates may be made. This field may be mutated by the
# Dataflow service; callers cannot mutate it.
# The current state of the job. Jobs are created in the `JOB_STATE_STOPPED`
# state unless otherwise specified. A job in the `JOB_STATE_RUNNING` state may
# asynchronously enter a terminal state. After a job has reached a terminal
# state, no further state updates may be made. This field may be mutated by the
# Cloud Dataflow service; callers cannot mutate it.
# Corresponds to the JSON property `currentState`
# @return [String]
attr_accessor :current_state
@ -162,54 +163,53 @@ module Google
# @return [String]
attr_accessor :current_state_time
# The job's requested state. UpdateJob may be used to switch between the
# JOB_STATE_STOPPED and JOB_STATE_RUNNING states, by setting requested_state.
# UpdateJob may also be used to directly set a job's requested state to
# JOB_STATE_CANCELLED or JOB_STATE_DONE, irrevocably terminating the job if it
# has not already reached a terminal state.
# The job's requested state. `UpdateJob` may be used to switch between the `
# JOB_STATE_STOPPED` and `JOB_STATE_RUNNING` states, by setting requested_state.
# `UpdateJob` may also be used to directly set a job's requested state to `
# JOB_STATE_CANCELLED` or `JOB_STATE_DONE`, irrevocably terminating the job if
# it has not already reached a terminal state.
# Corresponds to the JSON property `requestedState`
# @return [String]
attr_accessor :requested_state
# Additional information about how a Dataflow job will be executed which isnt
# contained in the submitted job.
# Additional information about how a Cloud Dataflow job will be executed that
# isn't contained in the submitted job.
# Corresponds to the JSON property `executionInfo`
# @return [Google::Apis::DataflowV1b3::JobExecutionInfo]
attr_accessor :execution_info
# Timestamp when job was initially created. Immutable, set by the Dataflow
# service.
# The timestamp when the job was initially created. Immutable and set by the
# Cloud Dataflow service.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# If this job is an update of an existing job, this field will be the ID of the
# job it replaced. When sending a CreateJobRequest, you can update a job by
# specifying it here. The job named here will be stopped, and its intermediate
# state transferred to this job.
# If this job is an update of an existing job, this field is the job ID of the
# job it replaced. When sending a `CreateJobRequest`, you can update a job by
# specifying it here. The job named here is stopped, and its intermediate state
# is transferred to this job.
# Corresponds to the JSON property `replaceJobId`
# @return [String]
attr_accessor :replace_job_id
# Map of transform name prefixes of the job to be replaced to the corresponding
# name prefixes of the new job.
# The map of transform name prefixes of the job to be replaced to the
# corresponding name prefixes of the new job.
# Corresponds to the JSON property `transformNameMapping`
# @return [Hash<String,String>]
attr_accessor :transform_name_mapping
# Client's unique identifier of the job, re-used by SDK across retried attempts.
# If this field is set, the service will ensure its uniqueness. That is, the
# request to create a job will fail if the service has knowledge of a previously
# submitted job with the same client's id and job name. The caller may, for
# example, use this field to ensure idempotence of job creation across retried
# attempts to create a job. By default, the field is empty and, in that case,
# the service ignores it.
# The client's unique identifier of the job, re-used across retried attempts. If
# this field is set, the service will ensure its uniqueness. The request to
# create a job will fail if the service has knowledge of a previously submitted
# job with the same client's ID and job name. The caller may use this field to
# ensure idempotence of job creation across retried attempts to create a job. By
# default, the field is empty and, in that case, the service ignores it.
# Corresponds to the JSON property `clientRequestId`
# @return [String]
attr_accessor :client_request_id
# If another job is an update of this job (and thus, this job is in
# JOB_STATE_UPDATED), this field will contain the ID of that job.
# If another job is an update of this job (and thus, this job is in `
# JOB_STATE_UPDATED`), this field contains the ID of that job.
# Corresponds to the JSON property `replacedByJobId`
# @return [String]
attr_accessor :replaced_by_job_id
@ -232,7 +232,7 @@ module Google
# @return [Hash<String,String>]
attr_accessor :labels
# The location which contains this job.
# The location that contains this job.
# Corresponds to the JSON property `location`
# @return [String]
attr_accessor :location
@ -291,8 +291,8 @@ module Google
# @return [Array<String>]
attr_accessor :experiments
# Worker pools. At least one "harness" worker pool must be specified in order
# for the job to have workers.
# The worker pools. At least one "harness" worker pool must be specified in
# order for the job to have workers.
# Corresponds to the JSON property `workerPools`
# @return [Array<Google::Apis::DataflowV1b3::WorkerPool>]
attr_accessor :worker_pools
@ -315,9 +315,9 @@ module Google
# @return [String]
attr_accessor :dataset
# The Dataflow SDK pipeline options specified by the user. These options are
# passed through the service and are used to recreate the SDK pipeline options
# on the worker in a language agnostic and platform independent way.
# The Cloud Dataflow SDK pipeline options specified by the user. These options
# are passed through the service and are used to recreate the SDK pipeline
# options on the worker in a language agnostic and platform independent way.
# Corresponds to the JSON property `sdkPipelineOptions`
# @return [Hash<String,Object>]
attr_accessor :sdk_pipeline_options
@ -351,14 +351,14 @@ module Google
end
end
# Describes one particular pool of Dataflow workers to be instantiated by the
# Dataflow service in order to perform the computations required by a job. Note
# that a workflow job may use multiple pools, in order to match the various
# computational requirements of the various stages of the job.
# Describes one particular pool of Cloud Dataflow workers to be instantiated by
# the Cloud Dataflow service in order to perform the computations required by a
# job. Note that a workflow job may use multiple pools, in order to match the
# various computational requirements of the various stages of the job.
class WorkerPool
include Google::Apis::Core::Hashable
# The kind of the worker pool; currently only 'harness' and 'shuffle' are
# The kind of the worker pool; currently only `harness` and `shuffle` are
# supported.
# Corresponds to the JSON property `kind`
# @return [String]
@ -390,15 +390,16 @@ module Google
attr_accessor :machine_type
# Sets the policy for determining when to turndown worker pool. Allowed values
# are: TEARDOWN_ALWAYS, TEARDOWN_ON_SUCCESS, and TEARDOWN_NEVER. TEARDOWN_ALWAYS
# means workers are always torn down regardless of whether the job succeeds.
# TEARDOWN_ON_SUCCESS means workers are torn down if the job succeeds.
# TEARDOWN_NEVER means the workers are never torn down. If the workers are not
# torn down by the service, they will continue to run and use Google Compute
# Engine VM resources in the user's project until they are explicitly terminated
# by the user. Because of this, Google recommends using the TEARDOWN_ALWAYS
# policy except for small, manually supervised test jobs. If unknown or
# unspecified, the service will attempt to choose a reasonable default.
# are: `TEARDOWN_ALWAYS`, `TEARDOWN_ON_SUCCESS`, and `TEARDOWN_NEVER`. `
# TEARDOWN_ALWAYS` means workers are always torn down regardless of whether the
# job succeeds. `TEARDOWN_ON_SUCCESS` means workers are torn down if the job
# succeeds. `TEARDOWN_NEVER` means the workers are never torn down. If the
# workers are not torn down by the service, they will continue to run and use
# Google Compute Engine VM resources in the user's project until they are
# explicitly terminated by the user. Because of this, Google recommends using
# the `TEARDOWN_ALWAYS` policy except for small, manually supervised test jobs.
# If unknown or unspecified, the service will attempt to choose a reasonable
# default.
# Corresponds to the JSON property `teardownPolicy`
# @return [String]
attr_accessor :teardown_policy
@ -469,8 +470,8 @@ module Google
# @return [String]
attr_accessor :subnetwork
# Docker container image that executes Dataflow worker harness, residing in
# Google Container Registry. Required.
# Required. Docker container image that executes the Cloud Dataflow worker
# harness, residing in Google Container Registry.
# Corresponds to the JSON property `workerHarnessContainerImage`
# @return [String]
attr_accessor :worker_harness_container_image
@ -517,12 +518,12 @@ module Google
end
end
# Packages that need to be installed in order for a worker to run the steps of
# the Dataflow job which will be assigned to its worker pool. This is the
# mechanism by which the SDK causes code to be loaded onto the workers. For
# example, the Dataflow Java SDK might use this to install jars containing the
# user's code and all of the various dependencies (libraries, data files, etc)
# required in order for that code to run.
# The packages that must be installed in order for a worker to run the steps of
# the Cloud Dataflow job that will be assigned to its worker pool. This is the
# mechanism by which the Cloud Dataflow SDK causes code to be loaded onto the
# workers. For example, the Cloud Dataflow Java SDK might use this to install
# jars containing the user's code and all of the various dependencies (libraries,
# data files, etc.) required in order for that code to run.
class Package
include Google::Apis::Core::Hashable
@ -564,8 +565,8 @@ module Google
# @return [String]
attr_accessor :task_group
# OAuth2 scopes to be requested by the taskrunner in order to access the
# dataflow API.
# The OAuth2 scopes to be requested by the taskrunner in order to access the
# Cloud Dataflow API.
# Corresponds to the JSON property `oauthScopes`
# @return [Array<String>]
attr_accessor :oauth_scopes
@ -580,7 +581,7 @@ module Google
# @return [String]
attr_accessor :base_url
# API version of endpoint, e.g. "v1b3"
# The API version of endpoint, e.g. "v1b3"
# Corresponds to the JSON property `dataflowApiVersion`
# @return [String]
attr_accessor :dataflow_api_version
@ -590,24 +591,24 @@ module Google
# @return [Google::Apis::DataflowV1b3::WorkerSettings]
attr_accessor :parallel_worker_settings
# Location on the worker for task-specific subdirectories.
# The location on the worker for task-specific subdirectories.
# Corresponds to the JSON property `baseTaskDir`
# @return [String]
attr_accessor :base_task_dir
# Do we continue taskrunner if an exception is hit?
# Whether to continue taskrunner if an exception is hit.
# Corresponds to the JSON property `continueOnException`
# @return [Boolean]
attr_accessor :continue_on_exception
alias_method :continue_on_exception?, :continue_on_exception
# Send taskrunner log into to Google Compute Engine VM serial console?
# Whether to send taskrunner log info to Google Compute Engine VM serial console.
# Corresponds to the JSON property `logToSerialconsole`
# @return [Boolean]
attr_accessor :log_to_serialconsole
alias_method :log_to_serialconsole?, :log_to_serialconsole
# Also send taskrunner log info to stderr?
# Whether to also send taskrunner log info to stderr.
# Corresponds to the JSON property `alsologtostderr`
# @return [Boolean]
attr_accessor :alsologtostderr
@ -620,7 +621,7 @@ module Google
# @return [String]
attr_accessor :log_upload_location
# Directory on the VM to store logs.
# The directory on the VM to store logs.
# Corresponds to the JSON property `logDir`
# @return [String]
attr_accessor :log_dir
@ -632,32 +633,32 @@ module Google
# @return [String]
attr_accessor :temp_storage_prefix
# Command to launch the worker harness.
# The command to launch the worker harness.
# Corresponds to the JSON property `harnessCommand`
# @return [String]
attr_accessor :harness_command
# Store the workflow in this file.
# The file to store the workflow in.
# Corresponds to the JSON property `workflowFileName`
# @return [String]
attr_accessor :workflow_file_name
# Store preprocessing commands in this file.
# The file to store preprocessing commands in.
# Corresponds to the JSON property `commandlinesFileName`
# @return [String]
attr_accessor :commandlines_file_name
# ID string of VM.
# The ID string of the VM.
# Corresponds to the JSON property `vmId`
# @return [String]
attr_accessor :vm_id
# Suggested backend language.
# The suggested backend language.
# Corresponds to the JSON property `languageHint`
# @return [String]
attr_accessor :language_hint
# Streaming worker main class name.
# The streaming worker main class name.
# Corresponds to the JSON property `streamingWorkerMainClass`
# @return [String]
attr_accessor :streaming_worker_main_class
@ -703,14 +704,14 @@ module Google
# @return [String]
attr_accessor :base_url
# Send work progress updates to service.
# Whether to send work progress updates to the service.
# Corresponds to the JSON property `reportingEnabled`
# @return [Boolean]
attr_accessor :reporting_enabled
alias_method :reporting_enabled?, :reporting_enabled
# The Dataflow service path relative to the root URL, for example, "dataflow/
# v1b3/projects".
# The Cloud Dataflow service path relative to the root URL, for example, "
# dataflow/v1b3/projects".
# Corresponds to the JSON property `servicePath`
# @return [String]
attr_accessor :service_path
@ -721,7 +722,7 @@ module Google
# @return [String]
attr_accessor :shuffle_service_path
# ID of the worker running this pipeline.
# The ID of the worker running this pipeline.
# Corresponds to the JSON property `workerId`
# @return [String]
attr_accessor :worker_id
@ -764,13 +765,12 @@ module Google
# default. For example, the standard persistent disk type is a resource name
# typically ending in "pd-standard". If SSD persistent disks are available, the
# resource name typically ends with "pd-ssd". The actual valid values are
# defined the Google Compute Engine API, not by the Dataflow API; consult the
# Google Compute Engine documentation for more information about determining the
# set of available disk types for a particular project and zone. Google Compute
# Engine Disk types are local to a particular project in a particular zone, and
# so the resource name will typically look something like this: compute.
# googleapis.com/projects/
# /zones//diskTypes/pd-standard
# defined the Google Compute Engine API, not by the Cloud Dataflow API; consult
# the Google Compute Engine documentation for more information about determining
# the set of available disk types for a particular project and zone. Google
# Compute Engine Disk types are local to a particular project in a particular
# zone, and so the resource name will typically look something like this:
# compute.googleapis.com/projects/project-id/zones/zone/diskTypes/pd-standard
# Corresponds to the JSON property `diskType`
# @return [String]
attr_accessor :disk_type
@ -817,27 +817,27 @@ module Google
end
end
# Defines a particular step within a Dataflow job. A job consists of multiple
# steps, each of which performs some specific operation as part of the overall
# job. Data is typically passed from one step to another as part of the job.
# Here's an example of a sequence of steps which together implement a Map-Reduce
# job: * Read a collection of data from some source, parsing the collection's
# elements. * Validate the elements. * Apply a user-defined function to map each
# element to some value and extract an element-specific key value. * Group
# elements with the same key into a single element with that key, transforming a
# multiply-keyed collection into a uniquely-keyed collection. * Write the
# elements out to some data sink. (Note that the Dataflow service may be used to
# run many different types of jobs, not just Map-Reduce).
# Defines a particular step within a Cloud Dataflow job. A job consists of
# multiple steps, each of which performs some specific operation as part of the
# overall job. Data is typically passed from one step to another as part of the
# job. Here's an example of a sequence of steps which together implement a Map-
# Reduce job: * Read a collection of data from some source, parsing the
# collection's elements. * Validate the elements. * Apply a user-defined
# function to map each element to some value and extract an element-specific key
# value. * Group elements with the same key into a single element with that key,
# transforming a multiply-keyed collection into a uniquely-keyed collection. *
# Write the elements out to some data sink. Note that the Cloud Dataflow service
# may be used to run many different types of jobs, not just Map-Reduce.
class Step
include Google::Apis::Core::Hashable
# The kind of step in the dataflow Job.
# The kind of step in the Cloud Dataflow job.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Name identifying the step. This must be unique for each step with respect to
# all other steps in the dataflow Job.
# The name that identifies the step. This must be unique for each step with
# respect to all other steps in the Cloud Dataflow job.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
@ -860,8 +860,8 @@ module Google
end
end
# Additional information about how a Dataflow job will be executed which isnt
# contained in the submitted job.
# Additional information about how a Cloud Dataflow job will be executed that
# isn't contained in the submitted job.
class JobExecutionInfo
include Google::Apis::Core::Hashable
@ -901,8 +901,8 @@ module Google
end
end
# Response to a request to list Dataflow jobs. This may be a partial response,
# depending on the page size in the ListJobsRequest.
# Response to a request to list Cloud Dataflow jobs. This may be a partial
# response, depending on the page size in the ListJobsRequest.
class ListJobsResponse
include Google::Apis::Core::Hashable
@ -933,8 +933,7 @@ module Google
end
end
# FailedLocation indicates which location failed to respond to a request for
# data.
# Indicates which location failed to respond to a request for data.
class FailedLocation
include Google::Apis::Core::Hashable
@ -1166,28 +1165,90 @@ module Google
end
end
# Request to create a Dataflow job.
# A request to create a Cloud Dataflow job from a template.
class CreateJobFromTemplateRequest
include Google::Apis::Core::Hashable
# A path to the serialized JSON representation of the job.
# Required. The job name to use for the created job.
# Corresponds to the JSON property `jobName`
# @return [String]
attr_accessor :job_name
# Required. A Cloud Storage path to the template from which to create the job.
# Must be a valid Cloud Storage URL, beginning with `gs://`.
# Corresponds to the JSON property `gcsPath`
# @return [String]
attr_accessor :gcs_path
# Dynamic parameterization of the job's runtime environment.
# The runtime parameters to pass to the job.
# Corresponds to the JSON property `parameters`
# @return [Hash<String,String>]
attr_accessor :parameters
# The environment values to set at runtime.
# Corresponds to the JSON property `environment`
# @return [Google::Apis::DataflowV1b3::RuntimeEnvironment]
attr_accessor :environment
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@job_name = args[:job_name] if args.key?(:job_name)
@gcs_path = args[:gcs_path] if args.key?(:gcs_path)
@parameters = args[:parameters] if args.key?(:parameters)
@environment = args[:environment] if args.key?(:environment)
end
end
# The environment values to set at runtime.
class RuntimeEnvironment
include Google::Apis::Core::Hashable
# The maximum number of Google Compute Engine instances to be made available to
# your pipeline during execution, from 1 to 1000.
# Corresponds to the JSON property `maxWorkers`
# @return [Fixnum]
attr_accessor :max_workers
# The Compute Engine [availability zone](https://cloud.google.com/compute/docs/
# regions-zones/regions-zones) for launching worker instances to run your
# pipeline.
# Corresponds to the JSON property `zone`
# @return [String]
attr_accessor :zone
# The email address of the service account to run the job as.
# Corresponds to the JSON property `serviceAccountEmail`
# @return [String]
attr_accessor :service_account_email
# The Cloud Storage path to use for temporary files. Must be a valid Cloud
# Storage URL, beginning with `gs://`.
# Corresponds to the JSON property `tempLocation`
# @return [String]
attr_accessor :temp_location
# Whether to bypass the safety checks for the job's temporary directory. Use
# with caution.
# Corresponds to the JSON property `bypassTempDirValidation`
# @return [Boolean]
attr_accessor :bypass_temp_dir_validation
alias_method :bypass_temp_dir_validation?, :bypass_temp_dir_validation
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@max_workers = args[:max_workers] if args.key?(:max_workers)
@zone = args[:zone] if args.key?(:zone)
@service_account_email = args[:service_account_email] if args.key?(:service_account_email)
@temp_location = args[:temp_location] if args.key?(:temp_location)
@bypass_temp_dir_validation = args[:bypass_temp_dir_validation] if args.key?(:bypass_temp_dir_validation)
end
end
@ -1474,6 +1535,11 @@ module Google
# @return [Google::Apis::DataflowV1b3::StringList]
attr_accessor :string_list
# A metric value representing a distribution.
# Corresponds to the JSON property `distribution`
# @return [Google::Apis::DataflowV1b3::DistributionUpdate]
attr_accessor :distribution
# Value for internally-defined counters used by the Dataflow service.
# Corresponds to the JSON property `internal`
# @return [Object]
@ -1497,6 +1563,7 @@ module Google
@integer_list = args[:integer_list] if args.key?(:integer_list)
@floating_point_list = args[:floating_point_list] if args.key?(:floating_point_list)
@string_list = args[:string_list] if args.key?(:string_list)
@distribution = args[:distribution] if args.key?(:distribution)
@internal = args[:internal] if args.key?(:internal)
end
end
@ -1790,6 +1857,53 @@ module Google
end
end
# A metric value representing a distribution.
class DistributionUpdate
include Google::Apis::Core::Hashable
# A representation of an int64, n, that is immune to precision loss when encoded
# in JSON.
# Corresponds to the JSON property `min`
# @return [Google::Apis::DataflowV1b3::SplitInt64]
attr_accessor :min
# A representation of an int64, n, that is immune to precision loss when encoded
# in JSON.
# Corresponds to the JSON property `max`
# @return [Google::Apis::DataflowV1b3::SplitInt64]
attr_accessor :max
# A representation of an int64, n, that is immune to precision loss when encoded
# in JSON.
# Corresponds to the JSON property `count`
# @return [Google::Apis::DataflowV1b3::SplitInt64]
attr_accessor :count
# A representation of an int64, n, that is immune to precision loss when encoded
# in JSON.
# Corresponds to the JSON property `sum`
# @return [Google::Apis::DataflowV1b3::SplitInt64]
attr_accessor :sum
# Use a double since the sum of squares is likely to overflow int64.
# Corresponds to the JSON property `sumOfSquares`
# @return [Float]
attr_accessor :sum_of_squares
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@min = args[:min] if args.key?(:min)
@max = args[:max] if args.key?(:max)
@count = args[:count] if args.key?(:count)
@sum = args[:sum] if args.key?(:sum)
@sum_of_squares = args[:sum_of_squares] if args.key?(:sum_of_squares)
end
end
# A progress measurement of a WorkItem by a worker.
class ApproximateReportedProgress
include Google::Apis::Core::Hashable
@ -3426,6 +3540,12 @@ module Google
# @return [String]
attr_accessor :tracking_subscription
# If true, then the client has requested to get pubsub attributes.
# Corresponds to the JSON property `withAttributes`
# @return [Boolean]
attr_accessor :with_attributes
alias_method :with_attributes?, :with_attributes
def initialize(**args)
update!(**args)
end
@ -3438,6 +3558,7 @@ module Google
@id_label = args[:id_label] if args.key?(:id_label)
@drop_late_data = args[:drop_late_data] if args.key?(:drop_late_data)
@tracking_subscription = args[:tracking_subscription] if args.key?(:tracking_subscription)
@with_attributes = args[:with_attributes] if args.key?(:with_attributes)
end
end
@ -3887,6 +4008,14 @@ module Google
# @return [Google::Apis::DataflowV1b3::WorkerMessageCode]
attr_accessor :worker_message_code
# Worker metrics exported from workers. This contains resource utilization
# metrics accumulated from a variety of sources. For more information, see go/df-
# resource-signals. Note that this proto closely follows the structure of its
# DFE siblings in its contents.
# Corresponds to the JSON property `workerMetrics`
# @return [Google::Apis::DataflowV1b3::ResourceUtilizationReport]
attr_accessor :worker_metrics
def initialize(**args)
update!(**args)
end
@ -3897,6 +4026,7 @@ module Google
@time = args[:time] if args.key?(:time)
@worker_health_report = args[:worker_health_report] if args.key?(:worker_health_report)
@worker_message_code = args[:worker_message_code] if args.key?(:worker_message_code)
@worker_metrics = args[:worker_metrics] if args.key?(:worker_metrics)
end
end
@ -3988,6 +4118,29 @@ module Google
end
end
# Worker metrics exported from workers. This contains resource utilization
# metrics accumulated from a variety of sources. For more information, see go/df-
# resource-signals. Note that this proto closely follows the structure of its
# DFE siblings in its contents.
class ResourceUtilizationReport
include Google::Apis::Core::Hashable
# Each Struct must parallel DFE worker metrics protos (eg., cpu_time metric will
# have nested values “timestamp_ms, total_ms, rate”).
# Corresponds to the JSON property `metrics`
# @return [Array<Hash<String,Object>>]
attr_accessor :metrics
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@metrics = args[:metrics] if args.key?(:metrics)
end
end
# The response to the worker messages.
class SendWorkerMessagesResponse
include Google::Apis::Core::Hashable
@ -4017,6 +4170,11 @@ module Google
# @return [Google::Apis::DataflowV1b3::WorkerHealthReportResponse]
attr_accessor :worker_health_report_response
# Service-side response to WorkerMessage reporting resource utilization.
# Corresponds to the JSON property `workerMetricsResponse`
# @return [Google::Apis::DataflowV1b3::ResourceUtilizationReportResponse]
attr_accessor :worker_metrics_response
def initialize(**args)
update!(**args)
end
@ -4024,6 +4182,7 @@ module Google
# Update properties of this object
def update!(**args)
@worker_health_report_response = args[:worker_health_report_response] if args.key?(:worker_health_report_response)
@worker_metrics_response = args[:worker_metrics_response] if args.key?(:worker_metrics_response)
end
end
@ -4048,6 +4207,19 @@ module Google
@report_interval = args[:report_interval] if args.key?(:report_interval)
end
end
# Service-side response to WorkerMessage reporting resource utilization.
class ResourceUtilizationReportResponse
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
end
end
end

View File

@ -160,6 +160,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class RuntimeEnvironment
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ReportWorkItemStatusRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -244,6 +250,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class DistributionUpdate
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ApproximateReportedProgress
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -610,6 +622,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ResourceUtilizationReport
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SendWorkerMessagesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -628,6 +646,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ResourceUtilizationReportResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GetDebugConfigRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -894,8 +918,22 @@ module Google
class CreateJobFromTemplateRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :job_name, as: 'jobName'
property :gcs_path, as: 'gcsPath'
hash :parameters, as: 'parameters'
property :environment, as: 'environment', class: Google::Apis::DataflowV1b3::RuntimeEnvironment, decorator: Google::Apis::DataflowV1b3::RuntimeEnvironment::Representation
end
end
class RuntimeEnvironment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :max_workers, as: 'maxWorkers'
property :zone, as: 'zone'
property :service_account_email, as: 'serviceAccountEmail'
property :temp_location, as: 'tempLocation'
property :bypass_temp_dir_validation, as: 'bypassTempDirValidation'
end
end
@ -970,6 +1008,8 @@ module Google
property :string_list, as: 'stringList', class: Google::Apis::DataflowV1b3::StringList, decorator: Google::Apis::DataflowV1b3::StringList::Representation
property :distribution, as: 'distribution', class: Google::Apis::DataflowV1b3::DistributionUpdate, decorator: Google::Apis::DataflowV1b3::DistributionUpdate::Representation
property :internal, as: 'internal'
end
end
@ -1065,6 +1105,21 @@ module Google
end
end
class DistributionUpdate
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :min, as: 'min', class: Google::Apis::DataflowV1b3::SplitInt64, decorator: Google::Apis::DataflowV1b3::SplitInt64::Representation
property :max, as: 'max', class: Google::Apis::DataflowV1b3::SplitInt64, decorator: Google::Apis::DataflowV1b3::SplitInt64::Representation
property :count, as: 'count', class: Google::Apis::DataflowV1b3::SplitInt64, decorator: Google::Apis::DataflowV1b3::SplitInt64::Representation
property :sum, as: 'sum', class: Google::Apis::DataflowV1b3::SplitInt64, decorator: Google::Apis::DataflowV1b3::SplitInt64::Representation
property :sum_of_squares, as: 'sumOfSquares'
end
end
class ApproximateReportedProgress
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1545,6 +1600,7 @@ module Google
property :id_label, as: 'idLabel'
property :drop_late_data, as: 'dropLateData'
property :tracking_subscription, as: 'trackingSubscription'
property :with_attributes, as: 'withAttributes'
end
end
@ -1688,6 +1744,8 @@ module Google
property :worker_message_code, as: 'workerMessageCode', class: Google::Apis::DataflowV1b3::WorkerMessageCode, decorator: Google::Apis::DataflowV1b3::WorkerMessageCode::Representation
property :worker_metrics, as: 'workerMetrics', class: Google::Apis::DataflowV1b3::ResourceUtilizationReport, decorator: Google::Apis::DataflowV1b3::ResourceUtilizationReport::Representation
end
end
@ -1709,6 +1767,13 @@ module Google
end
end
class ResourceUtilizationReport
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :metrics, as: 'metrics'
end
end
class SendWorkerMessagesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1722,6 +1787,8 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :worker_health_report_response, as: 'workerHealthReportResponse', class: Google::Apis::DataflowV1b3::WorkerHealthReportResponse, decorator: Google::Apis::DataflowV1b3::WorkerHealthReportResponse::Representation
property :worker_metrics_response, as: 'workerMetricsResponse', class: Google::Apis::DataflowV1b3::ResourceUtilizationReportResponse, decorator: Google::Apis::DataflowV1b3::ResourceUtilizationReportResponse::Representation
end
end
@ -1731,6 +1798,12 @@ module Google
property :report_interval, as: 'reportInterval'
end
end
class ResourceUtilizationReportResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
end
end
end

View File

@ -22,8 +22,7 @@ module Google
module DataflowV1b3
# Google Dataflow API
#
# Develops and executes data processing patterns like ETL, batch computation,
# and continuous computation.
# Manages Google Cloud Dataflow projects on Google Cloud Platform.
#
# @example
# require 'google/apis/dataflow_v1b3'
@ -80,16 +79,16 @@ module Google
execute_or_queue_command(command, &block)
end
# Creates a dataflow job.
# Creates a Cloud Dataflow job.
# @param [String] project_id
# The project which owns the job.
# The ID of the Cloud Platform project that the job belongs to.
# @param [Google::Apis::DataflowV1b3::Job] job_object
# @param [String] view
# Level of information requested in response.
# The level of information requested in response.
# @param [String] replace_job_id
# DEPRECATED. This field is now on the Job message.
# Deprecated. This field is now in the Job message.
# @param [String] location
# The location which contains this job.
# The location that contains this job.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -122,15 +121,15 @@ module Google
execute_or_queue_command(command, &block)
end
# Gets the state of the specified dataflow job.
# Gets the state of the specified Cloud Dataflow job.
# @param [String] project_id
# The project which owns the job.
# The ID of the Cloud Platform project that the job belongs to.
# @param [String] job_id
# Identifies a single job.
# The job ID.
# @param [String] view
# Level of information requested in response.
# The level of information requested in response.
# @param [String] location
# The location which contains this job.
# The location that contains this job.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -161,14 +160,14 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates the state of an existing dataflow job.
# Updates the state of an existing Cloud Dataflow job.
# @param [String] project_id
# The project which owns the job.
# The ID of the Cloud Platform project that the job belongs to.
# @param [String] job_id
# Identifies a single job.
# The job ID.
# @param [Google::Apis::DataflowV1b3::Job] job_object
# @param [String] location
# The location which contains this job.
# The location that contains this job.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -200,13 +199,13 @@ module Google
execute_or_queue_command(command, &block)
end
# List the jobs of a project
# List the jobs of a project.
# @param [String] project_id
# The project which owns the jobs.
# @param [String] filter
# The kind of filter to use.
# @param [String] view
# Level of information requested in response. Default is SUMMARY.
# Level of information requested in response. Default is `JOB_VIEW_SUMMARY`.
# @param [Fixnum] page_size
# If there are many jobs, limit response to at most this many. The actual number
# of jobs returned will be the lesser of max_responses and an unspecified server-
@ -215,7 +214,7 @@ module Google
# Set this to the 'next_page_token' field of a previous response to request
# additional results in a long list.
# @param [String] location
# The location which contains this job.
# The location that contains this job.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -488,16 +487,16 @@ module Google
execute_or_queue_command(command, &block)
end
# Creates a dataflow job.
# Creates a Cloud Dataflow job.
# @param [String] project_id
# The project which owns the job.
# The ID of the Cloud Platform project that the job belongs to.
# @param [String] location
# The location which contains this job.
# The location that contains this job.
# @param [Google::Apis::DataflowV1b3::Job] job_object
# @param [String] view
# Level of information requested in response.
# The level of information requested in response.
# @param [String] replace_job_id
# DEPRECATED. This field is now on the Job message.
# Deprecated. This field is now in the Job message.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -530,15 +529,15 @@ module Google
execute_or_queue_command(command, &block)
end
# Gets the state of the specified dataflow job.
# Gets the state of the specified Cloud Dataflow job.
# @param [String] project_id
# The project which owns the job.
# The ID of the Cloud Platform project that the job belongs to.
# @param [String] location
# The location which contains this job.
# The location that contains this job.
# @param [String] job_id
# Identifies a single job.
# The job ID.
# @param [String] view
# Level of information requested in response.
# The level of information requested in response.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -569,13 +568,13 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates the state of an existing dataflow job.
# Updates the state of an existing Cloud Dataflow job.
# @param [String] project_id
# The project which owns the job.
# The ID of the Cloud Platform project that the job belongs to.
# @param [String] location
# The location which contains this job.
# The location that contains this job.
# @param [String] job_id
# Identifies a single job.
# The job ID.
# @param [Google::Apis::DataflowV1b3::Job] job_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -608,15 +607,15 @@ module Google
execute_or_queue_command(command, &block)
end
# List the jobs of a project
# List the jobs of a project.
# @param [String] project_id
# The project which owns the jobs.
# @param [String] location
# The location which contains this job.
# The location that contains this job.
# @param [String] filter
# The kind of filter to use.
# @param [String] view
# Level of information requested in response. Default is SUMMARY.
# Level of information requested in response. Default is `JOB_VIEW_SUMMARY`.
# @param [Fixnum] page_size
# If there are many jobs, limit response to at most this many. The actual number
# of jobs returned will be the lesser of max_responses and an unspecified server-
@ -830,9 +829,9 @@ module Google
execute_or_queue_command(command, &block)
end
# Creates a dataflow job from a template.
# Creates a Cloud Dataflow job from a template.
# @param [String] project_id
# The project which owns the job.
# Required. The ID of the Cloud Platform project that the job belongs to.
# @param [Google::Apis::DataflowV1b3::CreateJobFromTemplateRequest] create_job_from_template_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.

View File

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

View File

@ -106,6 +106,8 @@ module Google
# assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
# assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
# assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
# The code in logs/storage/validator/logs_validator_traits.cc treats this type
# as if it were annotated as ST_LOCATION.
# Corresponds to the JSON property `geoPointValue`
# @return [Google::Apis::DatastoreV1::LatLng]
attr_accessor :geo_point_value
@ -544,6 +546,7 @@ module Google
# In a single transaction, subsequent query result batches for the same query
# can have a greater snapshot version number. Each batch's snapshot version
# is valid for all preceding batches.
# The value will be zero for eventually consistent queries.
# Corresponds to the JSON property `snapshotVersion`
# @return [String]
attr_accessor :snapshot_version
@ -1230,6 +1233,8 @@ module Google
# assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
# assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
# assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
# The code in logs/storage/validator/logs_validator_traits.cc treats this type
# as if it were annotated as ST_LOCATION.
class LatLng
include Google::Apis::Core::Hashable

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/deployment-manager/
module DeploymentmanagerV2
VERSION = 'V2'
REVISION = '20161013'
REVISION = '20161221'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -22,20 +22,25 @@ module Google
module Apis
module DeploymentmanagerV2
# Enables "data access" audit logging for a service and specifies a list of
# members that are log-exempted.
# Provides the configuration for non-admin_activity logging for a service.
# Controls exemptions and specific log sub-types.
class AuditConfig
include Google::Apis::Core::Hashable
# The configuration for each type of logging
# Corresponds to the JSON property `auditLogConfigs`
# @return [Array<Google::Apis::DeploymentmanagerV2::AuditLogConfig>]
attr_accessor :audit_log_configs
# Specifies the identities that are exempted from "data access" audit logging
# for the `service` specified above. Follows the same format of Binding.members.
# Corresponds to the JSON property `exemptedMembers`
# @return [Array<String>]
attr_accessor :exempted_members
# Specifies a service that will be enabled for "data access" audit logging. For
# example, `resourcemanager`, `storage`, `compute`. `allServices` is a special
# value that covers all services.
# Specifies a service that will be enabled for audit logging. For example, `
# resourcemanager`, `storage`, `compute`. `allServices` is a special value that
# covers all services.
# Corresponds to the JSON property `service`
# @return [String]
attr_accessor :service
@ -46,11 +51,38 @@ module Google
# Update properties of this object
def update!(**args)
@audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
@exempted_members = args[:exempted_members] if args.key?(:exempted_members)
@service = args[:service] if args.key?(:service)
end
end
# Provides the configuration for a sub-type of logging.
class AuditLogConfig
include Google::Apis::Core::Hashable
# Specifies the identities that are exempted from this type of logging 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
# Associates `members` with a `role`.
class Binding
include Google::Apis::Core::Hashable

View File

@ -28,6 +28,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class AuditLogConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Binding
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -259,11 +265,21 @@ module Google
class AuditConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::DeploymentmanagerV2::AuditLogConfig, decorator: Google::Apis::DeploymentmanagerV2::AuditLogConfig::Representation
collection :exempted_members, as: 'exemptedMembers'
property :service, as: 'service'
end
end
class AuditLogConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :exempted_members, as: 'exemptedMembers'
property :log_type, as: 'logType'
end
end
class Binding
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -98,6 +98,8 @@ module Google
# The project ID for this request.
# @param [String] deployment
# The name of the deployment for this request.
# @param [String] delete_policy
# Sets the policy to use for deleting resources.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -119,12 +121,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_deployment(project, deployment, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def delete_deployment(project, deployment, delete_policy: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, '{project}/global/deployments/{deployment}', options)
command.response_representation = Google::Apis::DeploymentmanagerV2::Operation::Representation
command.response_class = Google::Apis::DeploymentmanagerV2::Operation
command.params['project'] = project unless project.nil?
command.params['deployment'] = deployment unless deployment.nil?
command.query['deletePolicy'] = delete_policy unless delete_policy.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?

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/cloud-dns
module DnsV1
VERSION = 'V1'
REVISION = '20161020'
REVISION = '20170102'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -0,0 +1,43 @@
# 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/dns_v2beta1/service.rb'
require 'google/apis/dns_v2beta1/classes.rb'
require 'google/apis/dns_v2beta1/representations.rb'
module Google
module Apis
# Google Cloud DNS API
#
# Configures and serves authoritative DNS records.
#
# @see https://developers.google.com/cloud-dns
module DnsV2beta1
VERSION = 'V2beta1'
REVISION = '20170102'
# 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 your DNS records hosted by Google Cloud DNS
AUTH_NDEV_CLOUDDNS_READONLY = 'https://www.googleapis.com/auth/ndev.clouddns.readonly'
# View and manage your DNS records hosted by Google Cloud DNS
AUTH_NDEV_CLOUDDNS_READWRITE = 'https://www.googleapis.com/auth/ndev.clouddns.readwrite'
end
end
end

View File

@ -0,0 +1,915 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module DnsV2beta1
# An atomic update to a collection of ResourceRecordSets.
class Change
include Google::Apis::Core::Hashable
# Which ResourceRecordSets to add?
# Corresponds to the JSON property `additions`
# @return [Array<Google::Apis::DnsV2beta1::ResourceRecordSet>]
attr_accessor :additions
# Which ResourceRecordSets to remove? Must match existing data exactly.
# Corresponds to the JSON property `deletions`
# @return [Array<Google::Apis::DnsV2beta1::ResourceRecordSet>]
attr_accessor :deletions
# Unique identifier for the resource; defined by the server (output only).
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# If the DNS queries for the zone will be served.
# Corresponds to the JSON property `isServing`
# @return [Boolean]
attr_accessor :is_serving
alias_method :is_serving?, :is_serving
# Identifies what kind of resource this is. Value: the fixed string "dns#change".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The time that this operation was started by the server (output only). This is
# in RFC3339 text format.
# Corresponds to the JSON property `startTime`
# @return [String]
attr_accessor :start_time
# Status of the operation (output only).
# Corresponds to the JSON property `status`
# @return [String]
attr_accessor :status
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@additions = args[:additions] if args.key?(:additions)
@deletions = args[:deletions] if args.key?(:deletions)
@id = args[:id] if args.key?(:id)
@is_serving = args[:is_serving] if args.key?(:is_serving)
@kind = args[:kind] if args.key?(:kind)
@start_time = args[:start_time] if args.key?(:start_time)
@status = args[:status] if args.key?(:status)
end
end
# The response to a request to enumerate Changes to a ResourceRecordSets
# collection.
class ChangesListResponse
include Google::Apis::Core::Hashable
# The requested changes.
# Corresponds to the JSON property `changes`
# @return [Array<Google::Apis::DnsV2beta1::Change>]
attr_accessor :changes
# Elements common to every response.
# Corresponds to the JSON property `header`
# @return [Google::Apis::DnsV2beta1::ResponseHeader]
attr_accessor :header
# Type of resource.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The presence of this field indicates that there exist more results following
# your last page of results in pagination order. To fetch them, make another
# list request using this value as your pagination token.
# In this way you can retrieve the complete contents of even very large
# collections one page at a time. However, if the contents of the collection
# change between the first and last paginated list request, the set of all
# elements returned will be an inconsistent view of the collection. There is no
# way to retrieve a "snapshot" of collections larger than the maximum page size.
# 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)
@changes = args[:changes] if args.key?(:changes)
@header = args[:header] if args.key?(:header)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# A DNSSEC key pair.
class DnsKey
include Google::Apis::Core::Hashable
# String mnemonic specifying the DNSSEC algorithm of this key. Immutable after
# creation time.
# Corresponds to the JSON property `algorithm`
# @return [String]
attr_accessor :algorithm
# The time that this resource was created in the control plane. This is in
# RFC3339 text format. Output only.
# Corresponds to the JSON property `creationTime`
# @return [String]
attr_accessor :creation_time
# A mutable string of at most 1024 characters associated with this resource for
# the user's convenience. Has no effect on the resource's function.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Cryptographic hashes of the DNSKEY resource record associated with this DnsKey.
# These digests are needed to construct a DS record that points at this DNS key.
# Output only.
# Corresponds to the JSON property `digests`
# @return [Array<Google::Apis::DnsV2beta1::DnsKeyDigest>]
attr_accessor :digests
# Unique identifier for the resource; defined by the server (output only).
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# Active keys will be used to sign subsequent changes to the ManagedZone.
# Inactive keys will still be present as DNSKEY Resource Records for the use of
# resolvers validating existing signatures.
# Corresponds to the JSON property `isActive`
# @return [Boolean]
attr_accessor :is_active
alias_method :is_active?, :is_active
# Length of the key in bits. Specified at creation time then immutable.
# Corresponds to the JSON property `keyLength`
# @return [Fixnum]
attr_accessor :key_length
# The key tag is a non-cryptographic hash of the a DNSKEY resource record
# associated with this DnsKey. The key tag can be used to identify a DNSKEY more
# quickly (but it is not a unique identifier). In particular, the key tag is
# used in a parent zone's DS record to point at the DNSKEY in this child
# ManagedZone. The key tag is a number in the range [0, 65535] and the algorithm
# to calculate it is specified in RFC4034 Appendix B. Output only.
# Corresponds to the JSON property `keyTag`
# @return [Fixnum]
attr_accessor :key_tag
# Identifies what kind of resource this is. Value: the fixed string "dns#dnsKey".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Base64 encoded public half of this key. Output only.
# Corresponds to the JSON property `publicKey`
# @return [String]
attr_accessor :public_key
# One of "KEY_SIGNING" or "ZONE_SIGNING". Keys of type KEY_SIGNING have the
# Secure Entry Point flag set and, when active, will be used to sign only
# resource record sets of type DNSKEY. Otherwise, the Secure Entry Point flag
# will be cleared and this key will be used to sign only resource record sets of
# other types. Immutable after creation time.
# 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)
@algorithm = args[:algorithm] if args.key?(:algorithm)
@creation_time = args[:creation_time] if args.key?(:creation_time)
@description = args[:description] if args.key?(:description)
@digests = args[:digests] if args.key?(:digests)
@id = args[:id] if args.key?(:id)
@is_active = args[:is_active] if args.key?(:is_active)
@key_length = args[:key_length] if args.key?(:key_length)
@key_tag = args[:key_tag] if args.key?(:key_tag)
@kind = args[:kind] if args.key?(:kind)
@public_key = args[:public_key] if args.key?(:public_key)
@type = args[:type] if args.key?(:type)
end
end
#
class DnsKeyDigest
include Google::Apis::Core::Hashable
# The base-16 encoded bytes of this digest. Suitable for use in a DS resource
# record.
# Corresponds to the JSON property `digest`
# @return [String]
attr_accessor :digest
# Specifies the algorithm used to calculate this digest.
# 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)
@digest = args[:digest] if args.key?(:digest)
@type = args[:type] if args.key?(:type)
end
end
# Parameters for DnsKey key generation. Used for generating initial keys for a
# new ManagedZone and as default when adding a new DnsKey.
class DnsKeySpec
include Google::Apis::Core::Hashable
# String mnemonic specifying the DNSSEC algorithm of this key.
# Corresponds to the JSON property `algorithm`
# @return [String]
attr_accessor :algorithm
# Length of the keys in bits.
# Corresponds to the JSON property `keyLength`
# @return [Fixnum]
attr_accessor :key_length
# One of "KEY_SIGNING" or "ZONE_SIGNING". Keys of type KEY_SIGNING have the
# Secure Entry Point flag set and, when active, will be used to sign only
# resource record sets of type DNSKEY. Otherwise, the Secure Entry Point flag
# will be cleared and this key will be used to sign only resource record sets of
# other types.
# Corresponds to the JSON property `keyType`
# @return [String]
attr_accessor :key_type
# Identifies what kind of resource this is. Value: the fixed string "dns#
# dnsKeySpec".
# 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)
@algorithm = args[:algorithm] if args.key?(:algorithm)
@key_length = args[:key_length] if args.key?(:key_length)
@key_type = args[:key_type] if args.key?(:key_type)
@kind = args[:kind] if args.key?(:kind)
end
end
# The response to a request to enumerate DnsKeys in a ManagedZone.
class DnsKeysListResponse
include Google::Apis::Core::Hashable
# The requested resources.
# Corresponds to the JSON property `dnsKeys`
# @return [Array<Google::Apis::DnsV2beta1::DnsKey>]
attr_accessor :dns_keys
# Elements common to every response.
# Corresponds to the JSON property `header`
# @return [Google::Apis::DnsV2beta1::ResponseHeader]
attr_accessor :header
# Type of resource.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The presence of this field indicates that there exist more results following
# your last page of results in pagination order. To fetch them, make another
# list request using this value as your pagination token.
# In this way you can retrieve the complete contents of even very large
# collections one page at a time. However, if the contents of the collection
# change between the first and last paginated list request, the set of all
# elements returned will be an inconsistent view of the collection. There is no
# way to retrieve a "snapshot" of collections larger than the maximum page size.
# 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)
@dns_keys = args[:dns_keys] if args.key?(:dns_keys)
@header = args[:header] if args.key?(:header)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# A zone is a subtree of the DNS namespace under one administrative
# responsibility. A ManagedZone is a resource that represents a DNS zone hosted
# by the Cloud DNS service.
class ManagedZone
include Google::Apis::Core::Hashable
# The time that this resource was created on the server. This is in RFC3339 text
# format. Output only.
# Corresponds to the JSON property `creationTime`
# @return [String]
attr_accessor :creation_time
# A mutable string of at most 1024 characters associated with this resource for
# the user's convenience. Has no effect on the managed zone's function.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# The DNS name of this managed zone, for instance "example.com.".
# Corresponds to the JSON property `dnsName`
# @return [String]
attr_accessor :dns_name
# DNSSEC configuration.
# Corresponds to the JSON property `dnssecConfig`
# @return [Google::Apis::DnsV2beta1::ManagedZoneDnsSecConfig]
attr_accessor :dnssec_config
# Unique identifier for the resource; defined by the server (output only)
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# Identifies what kind of resource this is. Value: the fixed string "dns#
# managedZone".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# User assigned name for this resource. Must be unique within the project. The
# name must be 1-63 characters long, must begin with a letter, end with a letter
# or digit, and only contain lowercase letters, digits or dashes.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Optionally specifies the NameServerSet for this ManagedZone. A NameServerSet
# is a set of DNS name servers that all host the same ManagedZones. Most users
# will leave this field unset.
# Corresponds to the JSON property `nameServerSet`
# @return [String]
attr_accessor :name_server_set
# Delegate your managed_zone to these virtual name servers; defined by the
# server (output only)
# Corresponds to the JSON property `nameServers`
# @return [Array<String>]
attr_accessor :name_servers
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@creation_time = args[:creation_time] if args.key?(:creation_time)
@description = args[:description] if args.key?(:description)
@dns_name = args[:dns_name] if args.key?(:dns_name)
@dnssec_config = args[:dnssec_config] if args.key?(:dnssec_config)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
@name_server_set = args[:name_server_set] if args.key?(:name_server_set)
@name_servers = args[:name_servers] if args.key?(:name_servers)
end
end
#
class ManagedZoneDnsSecConfig
include Google::Apis::Core::Hashable
# Specifies parameters that will be used for generating initial DnsKeys for this
# ManagedZone. Output only while state is not OFF.
# Corresponds to the JSON property `defaultKeySpecs`
# @return [Array<Google::Apis::DnsV2beta1::DnsKeySpec>]
attr_accessor :default_key_specs
# Identifies what kind of resource this is. Value: the fixed string "dns#
# managedZoneDnsSecConfig".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Specifies the mechanism used to provide authenticated denial-of-existence
# responses. Output only while state is not OFF.
# Corresponds to the JSON property `nonExistence`
# @return [String]
attr_accessor :non_existence
# Specifies whether DNSSEC is enabled, and what mode it is in.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@default_key_specs = args[:default_key_specs] if args.key?(:default_key_specs)
@kind = args[:kind] if args.key?(:kind)
@non_existence = args[:non_existence] if args.key?(:non_existence)
@state = args[:state] if args.key?(:state)
end
end
#
class ManagedZoneOperationsListResponse
include Google::Apis::Core::Hashable
# Elements common to every response.
# Corresponds to the JSON property `header`
# @return [Google::Apis::DnsV2beta1::ResponseHeader]
attr_accessor :header
# Type of resource.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The presence of this field indicates that there exist more results following
# your last page of results in pagination order. To fetch them, make another
# list request using this value as your page token.
# In this way you can retrieve the complete contents of even very large
# collections one page at a time. However, if the contents of the collection
# change between the first and last paginated list request, the set of all
# elements returned will be an inconsistent view of the collection. There is no
# way to retrieve a consistent snapshot of a collection larger than the maximum
# page size.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# The operation resources.
# Corresponds to the JSON property `operations`
# @return [Array<Google::Apis::DnsV2beta1::Operation>]
attr_accessor :operations
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@header = args[:header] if args.key?(:header)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@operations = args[:operations] if args.key?(:operations)
end
end
#
class ManagedZonesDeleteResponse
include Google::Apis::Core::Hashable
# Elements common to every response.
# Corresponds to the JSON property `header`
# @return [Google::Apis::DnsV2beta1::ResponseHeader]
attr_accessor :header
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@header = args[:header] if args.key?(:header)
end
end
#
class ManagedZonesListResponse
include Google::Apis::Core::Hashable
# Elements common to every response.
# Corresponds to the JSON property `header`
# @return [Google::Apis::DnsV2beta1::ResponseHeader]
attr_accessor :header
# Type of resource.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The managed zone resources.
# Corresponds to the JSON property `managedZones`
# @return [Array<Google::Apis::DnsV2beta1::ManagedZone>]
attr_accessor :managed_zones
# The presence of this field indicates that there exist more results following
# your last page of results in pagination order. To fetch them, make another
# list request using this value as your page token.
# In this way you can retrieve the complete contents of even very large
# collections one page at a time. However, if the contents of the collection
# change between the first and last paginated list request, the set of all
# elements returned will be an inconsistent view of the collection. There is no
# way to retrieve a consistent snapshot of a collection larger than the maximum
# page size.
# 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)
@header = args[:header] if args.key?(:header)
@kind = args[:kind] if args.key?(:kind)
@managed_zones = args[:managed_zones] if args.key?(:managed_zones)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# An operation represents a successful mutation performed on a Cloud DNS
# resource. Operations provide: - An audit log of server resource mutations. - A
# way to recover/retry API calls in the case where the response is never
# received by the caller. Use the caller specified client_operation_id.
class Operation
include Google::Apis::Core::Hashable
# Only populated if the operation targeted a DnsKey (output only).
# Corresponds to the JSON property `dnsKeyContext`
# @return [Google::Apis::DnsV2beta1::OperationDnsKeyContext]
attr_accessor :dns_key_context
# Unique identifier for the resource. This is the client_operation_id if the
# client specified it when the mutation was initiated, otherwise, it is
# generated by the server. The name must be 1-63 characters long and match the
# regular expression [-a-z0-9]? (output only)
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# Identifies what kind of resource this is. Value: the fixed string "dns#
# operation".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The time that this operation was started by the server. This is in RFC3339
# text format (output only).
# Corresponds to the JSON property `startTime`
# @return [String]
attr_accessor :start_time
# Status of the operation. Can be one of the following: "PENDING" or "DONE" (
# output only).
# Corresponds to the JSON property `status`
# @return [String]
attr_accessor :status
# Type of the operation. Operations include insert, update, and delete (output
# only).
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
# User who requested the operation, for example: user@example.com. cloud-dns-
# system for operations automatically done by the system. (output only)
# Corresponds to the JSON property `user`
# @return [String]
attr_accessor :user
# Only populated if the operation targeted a ManagedZone (output only).
# Corresponds to the JSON property `zoneContext`
# @return [Google::Apis::DnsV2beta1::OperationManagedZoneContext]
attr_accessor :zone_context
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@dns_key_context = args[:dns_key_context] if args.key?(:dns_key_context)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@start_time = args[:start_time] if args.key?(:start_time)
@status = args[:status] if args.key?(:status)
@type = args[:type] if args.key?(:type)
@user = args[:user] if args.key?(:user)
@zone_context = args[:zone_context] if args.key?(:zone_context)
end
end
#
class OperationDnsKeyContext
include Google::Apis::Core::Hashable
# A DNSSEC key pair.
# Corresponds to the JSON property `newValue`
# @return [Google::Apis::DnsV2beta1::DnsKey]
attr_accessor :new_value
# A DNSSEC key pair.
# Corresponds to the JSON property `oldValue`
# @return [Google::Apis::DnsV2beta1::DnsKey]
attr_accessor :old_value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@new_value = args[:new_value] if args.key?(:new_value)
@old_value = args[:old_value] if args.key?(:old_value)
end
end
#
class OperationManagedZoneContext
include Google::Apis::Core::Hashable
# A zone is a subtree of the DNS namespace under one administrative
# responsibility. A ManagedZone is a resource that represents a DNS zone hosted
# by the Cloud DNS service.
# Corresponds to the JSON property `newValue`
# @return [Google::Apis::DnsV2beta1::ManagedZone]
attr_accessor :new_value
# A zone is a subtree of the DNS namespace under one administrative
# responsibility. A ManagedZone is a resource that represents a DNS zone hosted
# by the Cloud DNS service.
# Corresponds to the JSON property `oldValue`
# @return [Google::Apis::DnsV2beta1::ManagedZone]
attr_accessor :old_value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@new_value = args[:new_value] if args.key?(:new_value)
@old_value = args[:old_value] if args.key?(:old_value)
end
end
# A project resource. The project is a top level container for resources
# including Cloud DNS ManagedZones. Projects can be created only in the APIs
# console.
class Project
include Google::Apis::Core::Hashable
# User assigned unique identifier for the resource (output only).
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# Identifies what kind of resource this is. Value: the fixed string "dns#project"
# .
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Unique numeric identifier for the resource; defined by the server (output only)
# .
# Corresponds to the JSON property `number`
# @return [String]
attr_accessor :number
# Limits associated with a Project.
# Corresponds to the JSON property `quota`
# @return [Google::Apis::DnsV2beta1::Quota]
attr_accessor :quota
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@number = args[:number] if args.key?(:number)
@quota = args[:quota] if args.key?(:quota)
end
end
# Limits associated with a Project.
class Quota
include Google::Apis::Core::Hashable
# Maximum allowed number of DnsKeys per ManagedZone.
# Corresponds to the JSON property `dnsKeysPerManagedZone`
# @return [Fixnum]
attr_accessor :dns_keys_per_managed_zone
# Identifies what kind of resource this is. Value: the fixed string "dns#quota".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Maximum allowed number of managed zones in the project.
# Corresponds to the JSON property `managedZones`
# @return [Fixnum]
attr_accessor :managed_zones
# Maximum allowed number of ResourceRecords per ResourceRecordSet.
# Corresponds to the JSON property `resourceRecordsPerRrset`
# @return [Fixnum]
attr_accessor :resource_records_per_rrset
# Maximum allowed number of ResourceRecordSets to add per ChangesCreateRequest.
# Corresponds to the JSON property `rrsetAdditionsPerChange`
# @return [Fixnum]
attr_accessor :rrset_additions_per_change
# Maximum allowed number of ResourceRecordSets to delete per
# ChangesCreateRequest.
# Corresponds to the JSON property `rrsetDeletionsPerChange`
# @return [Fixnum]
attr_accessor :rrset_deletions_per_change
# Maximum allowed number of ResourceRecordSets per zone in the project.
# Corresponds to the JSON property `rrsetsPerManagedZone`
# @return [Fixnum]
attr_accessor :rrsets_per_managed_zone
# Maximum allowed size for total rrdata in one ChangesCreateRequest in bytes.
# Corresponds to the JSON property `totalRrdataSizePerChange`
# @return [Fixnum]
attr_accessor :total_rrdata_size_per_change
# DNSSEC algorithm and key length types that can be used for DnsKeys.
# Corresponds to the JSON property `whitelistedKeySpecs`
# @return [Array<Google::Apis::DnsV2beta1::DnsKeySpec>]
attr_accessor :whitelisted_key_specs
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@dns_keys_per_managed_zone = args[:dns_keys_per_managed_zone] if args.key?(:dns_keys_per_managed_zone)
@kind = args[:kind] if args.key?(:kind)
@managed_zones = args[:managed_zones] if args.key?(:managed_zones)
@resource_records_per_rrset = args[:resource_records_per_rrset] if args.key?(:resource_records_per_rrset)
@rrset_additions_per_change = args[:rrset_additions_per_change] if args.key?(:rrset_additions_per_change)
@rrset_deletions_per_change = args[:rrset_deletions_per_change] if args.key?(:rrset_deletions_per_change)
@rrsets_per_managed_zone = args[:rrsets_per_managed_zone] if args.key?(:rrsets_per_managed_zone)
@total_rrdata_size_per_change = args[:total_rrdata_size_per_change] if args.key?(:total_rrdata_size_per_change)
@whitelisted_key_specs = args[:whitelisted_key_specs] if args.key?(:whitelisted_key_specs)
end
end
# A unit of data that will be returned by the DNS servers.
class ResourceRecordSet
include Google::Apis::Core::Hashable
# Identifies what kind of resource this is. Value: the fixed string "dns#
# resourceRecordSet".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# For example, www.example.com.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1).
# Corresponds to the JSON property `rrdatas`
# @return [Array<String>]
attr_accessor :rrdatas
# As defined in RFC 4034 (section 3.2).
# Corresponds to the JSON property `signatureRrdatas`
# @return [Array<String>]
attr_accessor :signature_rrdatas
# Number of seconds that this ResourceRecordSet can be cached by resolvers.
# Corresponds to the JSON property `ttl`
# @return [Fixnum]
attr_accessor :ttl
# The identifier of a supported record type, for example, A, AAAA, MX, TXT, and
# so on.
# 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)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
@rrdatas = args[:rrdatas] if args.key?(:rrdatas)
@signature_rrdatas = args[:signature_rrdatas] if args.key?(:signature_rrdatas)
@ttl = args[:ttl] if args.key?(:ttl)
@type = args[:type] if args.key?(:type)
end
end
#
class ResourceRecordSetsListResponse
include Google::Apis::Core::Hashable
# Elements common to every response.
# Corresponds to the JSON property `header`
# @return [Google::Apis::DnsV2beta1::ResponseHeader]
attr_accessor :header
# Type of resource.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The presence of this field indicates that there exist more results following
# your last page of results in pagination order. To fetch them, make another
# list request using this value as your pagination token.
# In this way you can retrieve the complete contents of even very large
# collections one page at a time. However, if the contents of the collection
# change between the first and last paginated list request, the set of all
# elements returned will be an inconsistent view of the collection. There is no
# way to retrieve a consistent snapshot of a collection larger than the maximum
# page size.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# The resource record set resources.
# Corresponds to the JSON property `rrsets`
# @return [Array<Google::Apis::DnsV2beta1::ResourceRecordSet>]
attr_accessor :rrsets
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@header = args[:header] if args.key?(:header)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@rrsets = args[:rrsets] if args.key?(:rrsets)
end
end
# Elements common to every response.
class ResponseHeader
include Google::Apis::Core::Hashable
# For mutating operation requests that completed successfully. This is the
# client_operation_id if the client specified it, otherwise it is generated by
# the server (output only).
# Corresponds to the JSON property `operationId`
# @return [String]
attr_accessor :operation_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@operation_id = args[:operation_id] if args.key?(:operation_id)
end
end
end
end
end

View File

@ -0,0 +1,368 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module DnsV2beta1
class Change
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ChangesListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DnsKey
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DnsKeyDigest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DnsKeySpec
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DnsKeysListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedZone
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedZoneDnsSecConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedZoneOperationsListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedZonesDeleteResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedZonesListResponse
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 OperationDnsKeyContext
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OperationManagedZoneContext
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Project
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Quota
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ResourceRecordSet
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ResourceRecordSetsListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ResponseHeader
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Change
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :additions, as: 'additions', class: Google::Apis::DnsV2beta1::ResourceRecordSet, decorator: Google::Apis::DnsV2beta1::ResourceRecordSet::Representation
collection :deletions, as: 'deletions', class: Google::Apis::DnsV2beta1::ResourceRecordSet, decorator: Google::Apis::DnsV2beta1::ResourceRecordSet::Representation
property :id, as: 'id'
property :is_serving, as: 'isServing'
property :kind, as: 'kind'
property :start_time, as: 'startTime'
property :status, as: 'status'
end
end
class ChangesListResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :changes, as: 'changes', class: Google::Apis::DnsV2beta1::Change, decorator: Google::Apis::DnsV2beta1::Change::Representation
property :header, as: 'header', class: Google::Apis::DnsV2beta1::ResponseHeader, decorator: Google::Apis::DnsV2beta1::ResponseHeader::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
end
end
class DnsKey
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :algorithm, as: 'algorithm'
property :creation_time, as: 'creationTime'
property :description, as: 'description'
collection :digests, as: 'digests', class: Google::Apis::DnsV2beta1::DnsKeyDigest, decorator: Google::Apis::DnsV2beta1::DnsKeyDigest::Representation
property :id, as: 'id'
property :is_active, as: 'isActive'
property :key_length, as: 'keyLength'
property :key_tag, as: 'keyTag'
property :kind, as: 'kind'
property :public_key, as: 'publicKey'
property :type, as: 'type'
end
end
class DnsKeyDigest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :digest, as: 'digest'
property :type, as: 'type'
end
end
class DnsKeySpec
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :algorithm, as: 'algorithm'
property :key_length, as: 'keyLength'
property :key_type, as: 'keyType'
property :kind, as: 'kind'
end
end
class DnsKeysListResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :dns_keys, as: 'dnsKeys', class: Google::Apis::DnsV2beta1::DnsKey, decorator: Google::Apis::DnsV2beta1::DnsKey::Representation
property :header, as: 'header', class: Google::Apis::DnsV2beta1::ResponseHeader, decorator: Google::Apis::DnsV2beta1::ResponseHeader::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
end
end
class ManagedZone
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :creation_time, as: 'creationTime'
property :description, as: 'description'
property :dns_name, as: 'dnsName'
property :dnssec_config, as: 'dnssecConfig', class: Google::Apis::DnsV2beta1::ManagedZoneDnsSecConfig, decorator: Google::Apis::DnsV2beta1::ManagedZoneDnsSecConfig::Representation
property :id, as: 'id'
property :kind, as: 'kind'
property :name, as: 'name'
property :name_server_set, as: 'nameServerSet'
collection :name_servers, as: 'nameServers'
end
end
class ManagedZoneDnsSecConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :default_key_specs, as: 'defaultKeySpecs', class: Google::Apis::DnsV2beta1::DnsKeySpec, decorator: Google::Apis::DnsV2beta1::DnsKeySpec::Representation
property :kind, as: 'kind'
property :non_existence, as: 'nonExistence'
property :state, as: 'state'
end
end
class ManagedZoneOperationsListResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :header, as: 'header', class: Google::Apis::DnsV2beta1::ResponseHeader, decorator: Google::Apis::DnsV2beta1::ResponseHeader::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
collection :operations, as: 'operations', class: Google::Apis::DnsV2beta1::Operation, decorator: Google::Apis::DnsV2beta1::Operation::Representation
end
end
class ManagedZonesDeleteResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :header, as: 'header', class: Google::Apis::DnsV2beta1::ResponseHeader, decorator: Google::Apis::DnsV2beta1::ResponseHeader::Representation
end
end
class ManagedZonesListResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :header, as: 'header', class: Google::Apis::DnsV2beta1::ResponseHeader, decorator: Google::Apis::DnsV2beta1::ResponseHeader::Representation
property :kind, as: 'kind'
collection :managed_zones, as: 'managedZones', class: Google::Apis::DnsV2beta1::ManagedZone, decorator: Google::Apis::DnsV2beta1::ManagedZone::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class Operation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :dns_key_context, as: 'dnsKeyContext', class: Google::Apis::DnsV2beta1::OperationDnsKeyContext, decorator: Google::Apis::DnsV2beta1::OperationDnsKeyContext::Representation
property :id, as: 'id'
property :kind, as: 'kind'
property :start_time, as: 'startTime'
property :status, as: 'status'
property :type, as: 'type'
property :user, as: 'user'
property :zone_context, as: 'zoneContext', class: Google::Apis::DnsV2beta1::OperationManagedZoneContext, decorator: Google::Apis::DnsV2beta1::OperationManagedZoneContext::Representation
end
end
class OperationDnsKeyContext
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :new_value, as: 'newValue', class: Google::Apis::DnsV2beta1::DnsKey, decorator: Google::Apis::DnsV2beta1::DnsKey::Representation
property :old_value, as: 'oldValue', class: Google::Apis::DnsV2beta1::DnsKey, decorator: Google::Apis::DnsV2beta1::DnsKey::Representation
end
end
class OperationManagedZoneContext
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :new_value, as: 'newValue', class: Google::Apis::DnsV2beta1::ManagedZone, decorator: Google::Apis::DnsV2beta1::ManagedZone::Representation
property :old_value, as: 'oldValue', class: Google::Apis::DnsV2beta1::ManagedZone, decorator: Google::Apis::DnsV2beta1::ManagedZone::Representation
end
end
class Project
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
property :kind, as: 'kind'
property :number, as: 'number'
property :quota, as: 'quota', class: Google::Apis::DnsV2beta1::Quota, decorator: Google::Apis::DnsV2beta1::Quota::Representation
end
end
class Quota
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :dns_keys_per_managed_zone, as: 'dnsKeysPerManagedZone'
property :kind, as: 'kind'
property :managed_zones, as: 'managedZones'
property :resource_records_per_rrset, as: 'resourceRecordsPerRrset'
property :rrset_additions_per_change, as: 'rrsetAdditionsPerChange'
property :rrset_deletions_per_change, as: 'rrsetDeletionsPerChange'
property :rrsets_per_managed_zone, as: 'rrsetsPerManagedZone'
property :total_rrdata_size_per_change, as: 'totalRrdataSizePerChange'
collection :whitelisted_key_specs, as: 'whitelistedKeySpecs', class: Google::Apis::DnsV2beta1::DnsKeySpec, decorator: Google::Apis::DnsV2beta1::DnsKeySpec::Representation
end
end
class ResourceRecordSet
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
property :name, as: 'name'
collection :rrdatas, as: 'rrdatas'
collection :signature_rrdatas, as: 'signatureRrdatas'
property :ttl, as: 'ttl'
property :type, as: 'type'
end
end
class ResourceRecordSetsListResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :header, as: 'header', class: Google::Apis::DnsV2beta1::ResponseHeader, decorator: Google::Apis::DnsV2beta1::ResponseHeader::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
collection :rrsets, as: 'rrsets', class: Google::Apis::DnsV2beta1::ResourceRecordSet, decorator: Google::Apis::DnsV2beta1::ResourceRecordSet::Representation
end
end
class ResponseHeader
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :operation_id, as: 'operationId'
end
end
end
end
end

View File

@ -0,0 +1,768 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module DnsV2beta1
# Google Cloud DNS API
#
# Configures and serves authoritative DNS records.
#
# @example
# require 'google/apis/dns_v2beta1'
#
# Dns = Google::Apis::DnsV2beta1 # Alias the module
# service = Dns::DnsService.new
#
# @see https://developers.google.com/cloud-dns
class DnsService < Google::Apis::Core::BaseService
# @return [String]
# API key. Your API key identifies your project and provides you with API access,
# quota, and reports. Required unless you provide an OAuth 2.0 token.
attr_accessor :key
# @return [String]
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
attr_accessor :quota_user
# @return [String]
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
attr_accessor :user_ip
def initialize
super('https://www.googleapis.com/', 'dns/v2beta1/projects/')
end
# Atomically update the ResourceRecordSet collection.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed zone
# name or id.
# @param [Google::Apis::DnsV2beta1::Change] change_object
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier specified by the
# client. Must be unique for operation resources in the Operations collection.
# @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::DnsV2beta1::Change] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::Change]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_change(project, managed_zone, change_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/managedZones/{managedZone}/changes', options)
command.request_representation = Google::Apis::DnsV2beta1::Change::Representation
command.request_object = change_object
command.response_representation = Google::Apis::DnsV2beta1::Change::Representation
command.response_class = Google::Apis::DnsV2beta1::Change
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Fetch the representation of an existing Change.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed zone
# name or id.
# @param [String] change_id
# The identifier of the requested change, from a previous
# ResourceRecordSetsChangeResponse.
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier specified by the
# client. Must be unique for operation resources in the Operations collection.
# @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::DnsV2beta1::Change] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::Change]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_change(project, managed_zone, change_id, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/managedZones/{managedZone}/changes/{changeId}', options)
command.response_representation = Google::Apis::DnsV2beta1::Change::Representation
command.response_class = Google::Apis::DnsV2beta1::Change
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.params['changeId'] = change_id unless change_id.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Enumerate Changes to a ResourceRecordSet collection.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed zone
# name or id.
# @param [Fixnum] max_results
# Optional. Maximum number of results to be returned. If unspecified, the server
# will decide how many results to return.
# @param [String] page_token
# Optional. A tag returned by a previous list request that was truncated. Use
# this parameter to continue a previous list request.
# @param [String] sort_by
# Sorting criterion. The only supported value is change sequence.
# @param [String] sort_order
# Sorting order direction: 'ascending' or 'descending'.
# @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::DnsV2beta1::ChangesListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::ChangesListResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_changes(project, managed_zone, max_results: nil, page_token: nil, sort_by: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/managedZones/{managedZone}/changes', options)
command.response_representation = Google::Apis::DnsV2beta1::ChangesListResponse::Representation
command.response_class = Google::Apis::DnsV2beta1::ChangesListResponse
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['sortBy'] = sort_by unless sort_by.nil?
command.query['sortOrder'] = sort_order unless sort_order.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
# Fetch the representation of an existing DnsKey.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed zone
# name or id.
# @param [String] dns_key_id
# The identifier of the requested DnsKey.
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier specified by the
# client. Must be unique for operation resources in the Operations collection.
# @param [String] digest_type
# An optional comma-separated list of digest types to compute and display for
# key signing keys. If omitted, the recommended digest type will be computed and
# displayed.
# @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::DnsV2beta1::DnsKey] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::DnsKey]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_dns_key(project, managed_zone, dns_key_id, client_operation_id: nil, digest_type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/managedZones/{managedZone}/dnsKeys/{dnsKeyId}', options)
command.response_representation = Google::Apis::DnsV2beta1::DnsKey::Representation
command.response_class = Google::Apis::DnsV2beta1::DnsKey
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.params['dnsKeyId'] = dns_key_id unless dns_key_id.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['digestType'] = digest_type unless digest_type.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
# Enumerate DnsKeys to a ResourceRecordSet collection.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed zone
# name or id.
# @param [String] digest_type
# An optional comma-separated list of digest types to compute and display for
# key signing keys. If omitted, the recommended digest type will be computed and
# displayed.
# @param [Fixnum] max_results
# Optional. Maximum number of results to be returned. If unspecified, the server
# will decide how many results to return.
# @param [String] page_token
# Optional. A tag returned by a previous list request that was truncated. Use
# this parameter to continue a previous list request.
# @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::DnsV2beta1::DnsKeysListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::DnsKeysListResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_dns_keys(project, managed_zone, digest_type: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/managedZones/{managedZone}/dnsKeys', options)
command.response_representation = Google::Apis::DnsV2beta1::DnsKeysListResponse::Representation
command.response_class = Google::Apis::DnsV2beta1::DnsKeysListResponse
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['digestType'] = digest_type unless digest_type.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Fetch the representation of an existing Operation.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone
# Identifies the managed zone addressed by this request.
# @param [String] operation
# Identifies the operation addressed by this request.
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier specified by the
# client. Must be unique for operation resources in the Operations collection.
# @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::DnsV2beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::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_managed_zone_operation(project, managed_zone, operation, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/managedZones/{managedZone}/operations/{operation}', options)
command.response_representation = Google::Apis::DnsV2beta1::Operation::Representation
command.response_class = Google::Apis::DnsV2beta1::Operation
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.params['operation'] = operation unless operation.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Enumerate Operations for the given ManagedZone.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone
# Identifies the managed zone addressed by this request.
# @param [Fixnum] max_results
# Optional. Maximum number of results to be returned. If unspecified, the server
# will decide how many results to return.
# @param [String] page_token
# Optional. A tag returned by a previous list request that was truncated. Use
# this parameter to continue a previous list request.
# @param [String] sort_by
# Sorting criterion. The only supported values are START_TIME and ID.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DnsV2beta1::ManagedZoneOperationsListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::ManagedZoneOperationsListResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_managed_zone_operations(project, managed_zone, max_results: nil, page_token: nil, sort_by: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/managedZones/{managedZone}/operations', options)
command.response_representation = Google::Apis::DnsV2beta1::ManagedZoneOperationsListResponse::Representation
command.response_class = Google::Apis::DnsV2beta1::ManagedZoneOperationsListResponse
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['sortBy'] = sort_by unless sort_by.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
# Create a new ManagedZone.
# @param [String] project
# Identifies the project addressed by this request.
# @param [Google::Apis::DnsV2beta1::ManagedZone] managed_zone_object
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier specified by the
# client. Must be unique for operation resources in the Operations collection.
# @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::DnsV2beta1::ManagedZone] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::ManagedZone]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_managed_zone(project, managed_zone_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/managedZones', options)
command.request_representation = Google::Apis::DnsV2beta1::ManagedZone::Representation
command.request_object = managed_zone_object
command.response_representation = Google::Apis::DnsV2beta1::ManagedZone::Representation
command.response_class = Google::Apis::DnsV2beta1::ManagedZone
command.params['project'] = project unless project.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Delete a previously created ManagedZone.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed zone
# name or id.
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier specified by the
# client. Must be unique for operation resources in the Operations collection.
# @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::DnsV2beta1::ManagedZonesDeleteResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::ManagedZonesDeleteResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_managed_zone(project, managed_zone, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, '{project}/managedZones/{managedZone}', options)
command.response_representation = Google::Apis::DnsV2beta1::ManagedZonesDeleteResponse::Representation
command.response_class = Google::Apis::DnsV2beta1::ManagedZonesDeleteResponse
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Fetch the representation of an existing ManagedZone.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed zone
# name or id.
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier specified by the
# client. Must be unique for operation resources in the Operations collection.
# @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::DnsV2beta1::ManagedZone] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::ManagedZone]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_managed_zone(project, managed_zone, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/managedZones/{managedZone}', options)
command.response_representation = Google::Apis::DnsV2beta1::ManagedZone::Representation
command.response_class = Google::Apis::DnsV2beta1::ManagedZone
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Enumerate ManagedZones that have been created but not yet deleted.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] dns_name
# Restricts the list to return only zones with this domain name.
# @param [Fixnum] max_results
# Optional. Maximum number of results to be returned. If unspecified, the server
# will decide how many results to return.
# @param [String] page_token
# Optional. A tag returned by a previous list request that was truncated. Use
# this parameter to continue a previous list request.
# @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::DnsV2beta1::ManagedZonesListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::ManagedZonesListResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_managed_zones(project, dns_name: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/managedZones', options)
command.response_representation = Google::Apis::DnsV2beta1::ManagedZonesListResponse::Representation
command.response_class = Google::Apis::DnsV2beta1::ManagedZonesListResponse
command.params['project'] = project unless project.nil?
command.query['dnsName'] = dns_name unless dns_name.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Update an existing ManagedZone. This method supports patch semantics.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed zone
# name or id.
# @param [Google::Apis::DnsV2beta1::ManagedZone] managed_zone_object
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier specified by the
# client. Must be unique for operation resources in the Operations collection.
# @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::DnsV2beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::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_managed_zone(project, managed_zone, managed_zone_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, '{project}/managedZones/{managedZone}', options)
command.request_representation = Google::Apis::DnsV2beta1::ManagedZone::Representation
command.request_object = managed_zone_object
command.response_representation = Google::Apis::DnsV2beta1::Operation::Representation
command.response_class = Google::Apis::DnsV2beta1::Operation
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Update an existing ManagedZone.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed zone
# name or id.
# @param [Google::Apis::DnsV2beta1::ManagedZone] managed_zone_object
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier specified by the
# client. Must be unique for operation resources in the Operations collection.
# @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::DnsV2beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def update_managed_zone(project, managed_zone, managed_zone_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, '{project}/managedZones/{managedZone}', options)
command.request_representation = Google::Apis::DnsV2beta1::ManagedZone::Representation
command.request_object = managed_zone_object
command.response_representation = Google::Apis::DnsV2beta1::Operation::Representation
command.response_class = Google::Apis::DnsV2beta1::Operation
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Fetch the representation of an existing Project.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] client_operation_id
# For mutating operation requests only. An optional identifier specified by the
# client. Must be unique for operation resources in the Operations collection.
# @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::DnsV2beta1::Project] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::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, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}', options)
command.response_representation = Google::Apis::DnsV2beta1::Project::Representation
command.response_class = Google::Apis::DnsV2beta1::Project
command.params['project'] = project unless project.nil?
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Enumerate ResourceRecordSets that have been created but not yet deleted.
# @param [String] project
# Identifies the project addressed by this request.
# @param [String] managed_zone
# Identifies the managed zone addressed by this request. Can be the managed zone
# name or id.
# @param [Fixnum] max_results
# Optional. Maximum number of results to be returned. If unspecified, the server
# will decide how many results to return.
# @param [String] name
# Restricts the list to return only records with this fully qualified domain
# name.
# @param [String] page_token
# Optional. A tag returned by a previous list request that was truncated. Use
# this parameter to continue a previous list request.
# @param [String] type
# Restricts the list to return only records of this type. If present, the "name"
# parameter must also be present.
# @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::DnsV2beta1::ResourceRecordSetsListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV2beta1::ResourceRecordSetsListResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_resource_record_sets(project, managed_zone, max_results: nil, name: nil, page_token: nil, type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/managedZones/{managedZone}/rrsets', options)
command.response_representation = Google::Apis::DnsV2beta1::ResourceRecordSetsListResponse::Representation
command.response_class = Google::Apis::DnsV2beta1::ResourceRecordSetsListResponse
command.params['project'] = project unless project.nil?
command.params['managedZone'] = managed_zone unless managed_zone.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['name'] = name unless name.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['type'] = type unless type.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
protected
def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
end
end
end
end
end

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/doubleclick-search/
module DoubleclicksearchV2
VERSION = 'V2'
REVISION = '20161031'
REVISION = '20170110'
# View and manage your advertising data in DoubleClick Search
AUTH_DOUBLECLICKSEARCH = 'https://www.googleapis.com/auth/doubleclicksearch'

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/drive/
module DriveV2
VERSION = 'V2'
REVISION = '20161027'
REVISION = '20170113'
# View and manage the files in your Google Drive
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'

View File

@ -588,7 +588,7 @@ module Google
# @return [String]
attr_accessor :etag
# The actual list of apps.
# The list of apps.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::DriveV2::App>]
attr_accessor :items
@ -682,7 +682,8 @@ module Google
# @return [String]
attr_accessor :etag
# The actual list of changes.
# The list of changes. If nextPageToken is populated, then this list may be
# incomplete and an additional page of results should be fetched.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::DriveV2::Change>]
attr_accessor :items
@ -702,7 +703,10 @@ module Google
# @return [String]
attr_accessor :next_link
# The page token for the next page of changes.
# The page token for the next page of changes. This will be absent if the end of
# the changes list has been reached. If the token is rejected for any reason, it
# should be discarded, and pagination should be restarted from the first page of
# results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
@ -815,7 +819,8 @@ module Google
# @return [String]
attr_accessor :etag
# The actual list of children.
# The list of children. If nextPageToken is populated, then this list may be
# incomplete and an additional page of results should be fetched.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::DriveV2::ChildReference>]
attr_accessor :items
@ -830,7 +835,10 @@ module Google
# @return [String]
attr_accessor :next_link
# The page token for the next page of children.
# The page token for the next page of children. This will be absent if the end
# of the children list has been reached. If the token is rejected for any reason,
# it should be discarded, and pagination should be restarted from the first
# page of results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
@ -1034,7 +1042,8 @@ module Google
class CommentList
include Google::Apis::Core::Hashable
# List of comments.
# The list of comments. If nextPageToken is populated, then this list may be
# incomplete and an additional page of results should be fetched.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::DriveV2::Comment>]
attr_accessor :items
@ -1049,7 +1058,10 @@ module Google
# @return [String]
attr_accessor :next_link
# The token to use to request the next page of results.
# The page token for the next page of comments. This will be absent if the end
# of the comments list has been reached. If the token is rejected for any reason,
# it should be discarded, and pagination should be restarted from the first
# page of results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
@ -1152,7 +1164,8 @@ module Google
class CommentReplyList
include Google::Apis::Core::Hashable
# List of reply.
# The list of replies. If nextPageToken is populated, then this list may be
# incomplete and an additional page of results should be fetched.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::DriveV2::CommentReply>]
attr_accessor :items
@ -1167,7 +1180,10 @@ module Google
# @return [String]
attr_accessor :next_link
# The token to use to request the next page of results.
# The page token for the next page of replies. This will be absent if the end of
# the replies list has been reached. If the token is rejected for any reason, it
# should be discarded, and pagination should be restarted from the first page of
# results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
@ -1304,6 +1320,12 @@ module Google
# @return [String]
attr_accessor :full_file_extension
# Whether this file has a thumbnail.
# Corresponds to the JSON property `hasThumbnail`
# @return [Boolean]
attr_accessor :has_thumbnail
alias_method :has_thumbnail?, :has_thumbnail
# The ID of the file's head revision. This field is only populated for files
# with content stored in Drive; it is not populated for Google Docs or shortcut
# files.
@ -1481,18 +1503,23 @@ module Google
# @return [Array<String>]
attr_accessor :spaces
# Thumbnail for the file. Only accepted on upload and for files that are not
# already thumbnailed by Google.
# A thumbnail for the file. This will only be used if Drive cannot generate a
# standard thumbnail.
# Corresponds to the JSON property `thumbnail`
# @return [Google::Apis::DriveV2::File::Thumbnail]
attr_accessor :thumbnail
# A short-lived link to the file's thumbnail. Typically lasts on the order of
# hours.
# hours. Only populated when the requesting app can access the file's content.
# Corresponds to the JSON property `thumbnailLink`
# @return [String]
attr_accessor :thumbnail_link
# The thumbnail version for use in thumbnail cache invalidation.
# Corresponds to the JSON property `thumbnailVersion`
# @return [String]
attr_accessor :thumbnail_version
# The title of this file.
# Corresponds to the JSON property `title`
# @return [String]
@ -1558,6 +1585,7 @@ module Google
@file_size = args[:file_size] if args.key?(:file_size)
@folder_color_rgb = args[:folder_color_rgb] if args.key?(:folder_color_rgb)
@full_file_extension = args[:full_file_extension] if args.key?(:full_file_extension)
@has_thumbnail = args[:has_thumbnail] if args.key?(:has_thumbnail)
@head_revision_id = args[:head_revision_id] if args.key?(:head_revision_id)
@icon_link = args[:icon_link] if args.key?(:icon_link)
@id = args[:id] if args.key?(:id)
@ -1591,6 +1619,7 @@ module Google
@spaces = args[:spaces] if args.key?(:spaces)
@thumbnail = args[:thumbnail] if args.key?(:thumbnail)
@thumbnail_link = args[:thumbnail_link] if args.key?(:thumbnail_link)
@thumbnail_version = args[:thumbnail_version] if args.key?(:thumbnail_version)
@title = args[:title] if args.key?(:title)
@user_permission = args[:user_permission] if args.key?(:user_permission)
@version = args[:version] if args.key?(:version)
@ -1849,8 +1878,8 @@ module Google
end
end
# Thumbnail for the file. Only accepted on upload and for files that are not
# already thumbnailed by Google.
# A thumbnail for the file. This will only be used if Drive cannot generate a
# standard thumbnail.
class Thumbnail
include Google::Apis::Core::Hashable
@ -1917,7 +1946,8 @@ module Google
# @return [String]
attr_accessor :etag
# The actual list of files.
# The list of files. If nextPageToken is populated, then this list may be
# incomplete and an additional page of results should be fetched.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::DriveV2::File>]
attr_accessor :items
@ -1932,7 +1962,10 @@ module Google
# @return [String]
attr_accessor :next_link
# The page token for the next page of files.
# The page token for the next page of files. This will be absent if the end of
# the files list has been reached. If the token is rejected for any reason, it
# should be discarded, and pagination should be restarted from the first page of
# results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
@ -1997,7 +2030,7 @@ module Google
# @return [String]
attr_accessor :etag
# The actual list of parents.
# The list of parents.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::DriveV2::ParentReference>]
attr_accessor :items
@ -2108,7 +2141,7 @@ module Google
# The ID of the user this permission refers to, and identical to the
# permissionId in the About and Files resources. When making a drive.permissions.
# insert request, exactly one of the id or value fields must be specified unless
# the permission type anyone, in which case both id and value are ignored.
# the permission type is anyone, in which case both id and value are ignored.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
@ -2153,7 +2186,7 @@ module Google
# The email address or domain name for the entity. This is used during inserts
# and is not populated in responses. When making a drive.permissions.insert
# request, exactly one of the id or value fields must be specified unless the
# permission type anyone, in which case both id and value are ignored.
# permission type is anyone, in which case both id and value are ignored.
# Corresponds to the JSON property `value`
# @return [String]
attr_accessor :value
@ -2222,7 +2255,7 @@ module Google
# @return [String]
attr_accessor :etag
# The actual list of permissions.
# The list of permissions.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::DriveV2::Permission>]
attr_accessor :items
@ -2488,7 +2521,8 @@ module Google
# @return [String]
attr_accessor :etag
# The actual list of revisions.
# The list of revisions. If nextPageToken is populated, then this list may be
# incomplete and an additional page of results should be fetched.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::DriveV2::Revision>]
attr_accessor :items

View File

@ -580,6 +580,7 @@ module Google
property :file_size, as: 'fileSize'
property :folder_color_rgb, as: 'folderColorRgb'
property :full_file_extension, as: 'fullFileExtension'
property :has_thumbnail, as: 'hasThumbnail'
property :head_revision_id, as: 'headRevisionId'
property :icon_link, as: 'iconLink'
property :id, as: 'id'
@ -628,6 +629,7 @@ module Google
property :thumbnail, as: 'thumbnail', class: Google::Apis::DriveV2::File::Thumbnail, decorator: Google::Apis::DriveV2::File::Thumbnail::Representation
property :thumbnail_link, as: 'thumbnailLink'
property :thumbnail_version, as: 'thumbnailVersion'
property :title, as: 'title'
property :user_permission, as: 'userPermission', class: Google::Apis::DriveV2::Permission, decorator: Google::Apis::DriveV2::Permission::Representation

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/drive/
module DriveV3
VERSION = 'V3'
REVISION = '20161027'
REVISION = '20170113'
# View and manage the files in your Google Drive
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'

View File

@ -179,7 +179,8 @@ module Google
class ChangeList
include Google::Apis::Core::Hashable
# The page of changes.
# The list of changes. If nextPageToken is populated, then this list may be
# incomplete and an additional page of results should be fetched.
# Corresponds to the JSON property `changes`
# @return [Array<Google::Apis::DriveV3::Change>]
attr_accessor :changes
@ -197,7 +198,9 @@ module Google
attr_accessor :new_start_page_token
# The page token for the next page of changes. This will be absent if the end of
# the current changes list has been reached.
# the changes list has been reached. If the token is rejected for any reason, it
# should be discarded, and pagination should be restarted from the first page of
# results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
@ -418,7 +421,8 @@ module Google
class CommentList
include Google::Apis::Core::Hashable
# The page of comments.
# The list of comments. If nextPageToken is populated, then this list may be
# incomplete and an additional page of results should be fetched.
# Corresponds to the JSON property `comments`
# @return [Array<Google::Apis::DriveV3::Comment>]
attr_accessor :comments
@ -430,7 +434,9 @@ module Google
attr_accessor :kind
# The page token for the next page of comments. This will be absent if the end
# of the comments list has been reached.
# of the comments list has been reached. If the token is rejected for any reason,
# it should be discarded, and pagination should be restarted from the first
# page of results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
@ -509,6 +515,12 @@ module Google
# @return [String]
attr_accessor :full_file_extension
# Whether this file has a thumbnail.
# Corresponds to the JSON property `hasThumbnail`
# @return [Boolean]
attr_accessor :has_thumbnail
alias_method :has_thumbnail?, :has_thumbnail
# The ID of the file's head revision. This is currently only available for files
# with binary content in Drive.
# Corresponds to the JSON property `headRevisionId`
@ -666,11 +678,17 @@ module Google
alias_method :starred?, :starred
# A short-lived link to the file's thumbnail, if available. Typically lasts on
# the order of hours.
# the order of hours. Only populated when the requesting app can access the file'
# s content.
# Corresponds to the JSON property `thumbnailLink`
# @return [String]
attr_accessor :thumbnail_link
# The thumbnail version for use in thumbnail cache invalidation.
# Corresponds to the JSON property `thumbnailVersion`
# @return [String]
attr_accessor :thumbnail_version
# Whether the file has been trashed, either explicitly or from a trashed parent
# folder. Only the owner may trash a file, and other users cannot see files in
# the owner's trash.
@ -741,6 +759,7 @@ module Google
@file_extension = args[:file_extension] if args.key?(:file_extension)
@folder_color_rgb = args[:folder_color_rgb] if args.key?(:folder_color_rgb)
@full_file_extension = args[:full_file_extension] if args.key?(:full_file_extension)
@has_thumbnail = args[:has_thumbnail] if args.key?(:has_thumbnail)
@head_revision_id = args[:head_revision_id] if args.key?(:head_revision_id)
@icon_link = args[:icon_link] if args.key?(:icon_link)
@id = args[:id] if args.key?(:id)
@ -768,6 +787,7 @@ module Google
@spaces = args[:spaces] if args.key?(:spaces)
@starred = args[:starred] if args.key?(:starred)
@thumbnail_link = args[:thumbnail_link] if args.key?(:thumbnail_link)
@thumbnail_version = args[:thumbnail_version] if args.key?(:thumbnail_version)
@trashed = args[:trashed] if args.key?(:trashed)
@version = args[:version] if args.key?(:version)
@video_media_metadata = args[:video_media_metadata] if args.key?(:video_media_metadata)
@ -1090,7 +1110,8 @@ module Google
class FileList
include Google::Apis::Core::Hashable
# The page of files.
# The list of files. If nextPageToken is populated, then this list may be
# incomplete and an additional page of results should be fetched.
# Corresponds to the JSON property `files`
# @return [Array<Google::Apis::DriveV3::File>]
attr_accessor :files
@ -1102,7 +1123,9 @@ module Google
attr_accessor :kind
# The page token for the next page of files. This will be absent if the end of
# the files list has been reached.
# the files list has been reached. If the token is rejected for any reason, it
# should be discarded, and pagination should be restarted from the first page of
# results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
@ -1247,7 +1270,7 @@ module Google
# @return [String]
attr_accessor :kind
# The full list of permissions.
# The list of permissions.
# Corresponds to the JSON property `permissions`
# @return [Array<Google::Apis::DriveV3::Permission>]
attr_accessor :permissions
@ -1347,12 +1370,15 @@ module Google
attr_accessor :kind
# The page token for the next page of replies. This will be absent if the end of
# the replies list has been reached.
# the replies list has been reached. If the token is rejected for any reason, it
# should be discarded, and pagination should be restarted from the first page of
# results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# The page of replies.
# The list of replies. If nextPageToken is populated, then this list may be
# incomplete and an additional page of results should be fetched.
# Corresponds to the JSON property `replies`
# @return [Array<Google::Apis::DriveV3::Reply>]
attr_accessor :replies
@ -1479,12 +1505,15 @@ module Google
attr_accessor :kind
# The page token for the next page of revisions. This will be absent if the end
# of the revisions list has been reached.
# of the revisions list has been reached. If the token is rejected for any
# reason, it should be discarded, and pagination should be restarted from the
# first page of results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# The full list of revisions.
# The list of revisions. If nextPageToken is populated, then this list may be
# incomplete and an additional page of results should be fetched.
# Corresponds to the JSON property `revisions`
# @return [Array<Google::Apis::DriveV3::Revision>]
attr_accessor :revisions

View File

@ -303,6 +303,7 @@ module Google
property :file_extension, as: 'fileExtension'
property :folder_color_rgb, as: 'folderColorRgb'
property :full_file_extension, as: 'fullFileExtension'
property :has_thumbnail, as: 'hasThumbnail'
property :head_revision_id, as: 'headRevisionId'
property :icon_link, as: 'iconLink'
property :id, as: 'id'
@ -338,6 +339,7 @@ module Google
collection :spaces, as: 'spaces'
property :starred, as: 'starred'
property :thumbnail_link, as: 'thumbnailLink'
property :thumbnail_version, as: 'thumbnailVersion'
property :trashed, as: 'trashed'
property :version, as: 'version'
property :video_media_metadata, as: 'videoMediaMetadata', class: Google::Apis::DriveV3::File::VideoMediaMetadata, decorator: Google::Apis::DriveV3::File::VideoMediaMetadata::Representation

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/fit/rest/
module FitnessV1
VERSION = 'V1'
REVISION = '20160907'
REVISION = '20161128'
# View your activity information in Google Fit
AUTH_FITNESS_ACTIVITY_READ = 'https://www.googleapis.com/auth/fitness.activity.read'
@ -33,12 +33,30 @@ module Google
# View and store your activity information in Google Fit
AUTH_FITNESS_ACTIVITY_WRITE = 'https://www.googleapis.com/auth/fitness.activity.write'
# View blood glucose data in Google Fit
AUTH_FITNESS_BLOOD_GLUCOSE_READ = 'https://www.googleapis.com/auth/fitness.blood_glucose.read'
# View and store blood glucose data in Google Fit
AUTH_FITNESS_BLOOD_GLUCOSE_WRITE = 'https://www.googleapis.com/auth/fitness.blood_glucose.write'
# View blood pressure data in Google Fit
AUTH_FITNESS_BLOOD_PRESSURE_READ = 'https://www.googleapis.com/auth/fitness.blood_pressure.read'
# View and store blood pressure data in Google Fit
AUTH_FITNESS_BLOOD_PRESSURE_WRITE = 'https://www.googleapis.com/auth/fitness.blood_pressure.write'
# View body sensor information in Google Fit
AUTH_FITNESS_BODY_READ = 'https://www.googleapis.com/auth/fitness.body.read'
# View and store body sensor data in Google Fit
AUTH_FITNESS_BODY_WRITE = 'https://www.googleapis.com/auth/fitness.body.write'
# View body temperature data in Google Fit
AUTH_FITNESS_BODY_TEMPERATURE_READ = 'https://www.googleapis.com/auth/fitness.body_temperature.read'
# View and store body temperature data in Google Fit
AUTH_FITNESS_BODY_TEMPERATURE_WRITE = 'https://www.googleapis.com/auth/fitness.body_temperature.write'
# View your stored location data in Google Fit
AUTH_FITNESS_LOCATION_READ = 'https://www.googleapis.com/auth/fitness.location.read'
@ -50,6 +68,18 @@ module Google
# View and store nutrition information in Google Fit
AUTH_FITNESS_NUTRITION_WRITE = 'https://www.googleapis.com/auth/fitness.nutrition.write'
# View oxygen saturation data in Google Fit
AUTH_FITNESS_OXYGEN_SATURATION_READ = 'https://www.googleapis.com/auth/fitness.oxygen_saturation.read'
# View and store oxygen saturation data in Google Fit
AUTH_FITNESS_OXYGEN_SATURATION_WRITE = 'https://www.googleapis.com/auth/fitness.oxygen_saturation.write'
# View reproductive health data in Google Fit
AUTH_FITNESS_REPRODUCTIVE_HEALTH_READ = 'https://www.googleapis.com/auth/fitness.reproductive_health.read'
# View and store reproductive health data in Google Fit
AUTH_FITNESS_REPRODUCTIVE_HEALTH_WRITE = 'https://www.googleapis.com/auth/fitness.reproductive_health.write'
end
end
end

View File

@ -871,7 +871,7 @@ module Google
# Holder object for the value of a single field in a data point.
# A field value has a particular format and is only ever set to one of an
# integer or a floating point value.
# integer or a floating point value. LINT.IfChange
class Value
include Google::Apis::Core::Hashable

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/games/services
module GamesConfigurationV1configuration
VERSION = 'V1configuration'
REVISION = '20161103'
REVISION = '20170111'
# View and manage your Google Play Developer account
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/games/services
module GamesManagementV1management
VERSION = 'V1management'
REVISION = '20161103'
REVISION = '20170111'
# Share your Google+ profile information and view and manage your game activity
AUTH_GAMES = 'https://www.googleapis.com/auth/games'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/games/services/
module GamesV1
VERSION = 'V1'
REVISION = '20161103'
REVISION = '20170111'
# View and manage its own configuration data in your Google Drive
AUTH_DRIVE_APPDATA = 'https://www.googleapis.com/auth/drive.appdata'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/gmail/api/
module GmailV1
VERSION = 'V1'
REVISION = '20161019'
REVISION = '20170117'
# View and manage your mail
AUTH_SCOPE = 'https://mail.google.com/'

View File

@ -74,6 +74,37 @@ module Google
end
end
#
class BatchModifyMessagesRequest
include Google::Apis::Core::Hashable
# A list of label IDs to add to messages.
# Corresponds to the JSON property `addLabelIds`
# @return [Array<String>]
attr_accessor :add_label_ids
# The IDs of the messages to modify. There is a limit of 1000 ids per request.
# Corresponds to the JSON property `ids`
# @return [Array<String>]
attr_accessor :ids
# A list of label IDs to remove from messages.
# Corresponds to the JSON property `removeLabelIds`
# @return [Array<String>]
attr_accessor :remove_label_ids
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@add_label_ids = args[:add_label_ids] if args.key?(:add_label_ids)
@ids = args[:ids] if args.key?(:ids)
@remove_label_ids = args[:remove_label_ids] if args.key?(:remove_label_ids)
end
end
# A draft email in the user's mailbox.
class Draft
include Google::Apis::Core::Hashable
@ -878,7 +909,7 @@ module Google
# @return [String]
attr_accessor :data
# Total number of bytes in the body of the message part.
# Number of bytes for the message part data (encoding notwithstanding).
# Corresponds to the JSON property `size`
# @return [Fixnum]
attr_accessor :size

View File

@ -34,6 +34,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class BatchModifyMessagesRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Draft
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -254,6 +260,15 @@ module Google
end
end
class BatchModifyMessagesRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :add_label_ids, as: 'addLabelIds'
collection :ids, as: 'ids'
collection :remove_label_ids, as: 'removeLabelIds'
end
end
class Draft
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -774,6 +774,43 @@ module Google
execute_or_queue_command(command, &block)
end
# Modifies the labels on the specified messages.
# @param [String] user_id
# The user's email address. The special value me can be used to indicate the
# authenticated user.
# @param [Google::Apis::GmailV1::BatchModifyMessagesRequest] batch_modify_messages_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [NilClass] No result returned for this method
# @yieldparam err [StandardError] error object if request failed
#
# @return [void]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def batch_modify_messages(user_id, batch_modify_messages_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{userId}/messages/batchModify', options)
command.request_representation = Google::Apis::GmailV1::BatchModifyMessagesRequest::Representation
command.request_object = batch_modify_messages_request_object
command.params['userId'] = user_id unless user_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Immediately and permanently deletes the specified message. This operation
# cannot be undone. Prefer messages.trash instead.
# @param [String] user_id
@ -997,7 +1034,8 @@ module Google
# @param [String] q
# Only return messages matching the specified query. Supports the same query
# format as the Gmail search box. For example, "from:someuser@example.com
# rfc822msgid: is:unread".
# rfc822msgid: is:unread". Parameter cannot be used when accessing the api using
# the gmail.metadata scope.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -2236,7 +2274,8 @@ module Google
# @param [String] q
# Only return threads matching the specified query. Supports the same query
# format as the Gmail search box. For example, "from:someuser@example.com
# rfc822msgid: is:unread".
# rfc822msgid: is:unread". Parameter cannot be used when accessing the api using
# the gmail.metadata scope.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user

View File

@ -25,7 +25,10 @@ module Google
# @see https://developers.google.com/identity-toolkit/v3/
module IdentitytoolkitV3
VERSION = 'V3'
REVISION = '20161024'
REVISION = '20161206'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
# View and administer all your Firebase data and settings
AUTH_FIREBASE = 'https://www.googleapis.com/auth/firebase'

View File

@ -432,6 +432,12 @@ module Google
# @return [String]
attr_accessor :next_page_token
# Specify which project (field value is actually project id) to operate. Only
# used when provided credential.
# Corresponds to the JSON property `targetProjectId`
# @return [String]
attr_accessor :target_project_id
def initialize(**args)
update!(**args)
end
@ -441,6 +447,7 @@ module Google
@delegated_project_number = args[:delegated_project_number] if args.key?(:delegated_project_number)
@max_results = args[:max_results] if args.key?(:max_results)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@target_project_id = args[:target_project_id] if args.key?(:target_project_id)
end
end

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