Merge pull request #1 from google/master

Pull from master
This commit is contained in:
Nilayan Bhattacharya 2017-11-29 15:17:14 -05:00 committed by GitHub
commit 86f6718ed1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
309 changed files with 61051 additions and 7621 deletions

View File

@ -1,3 +1,170 @@
# 0.17.3
* Backwards compatible changes:
* Added `oslogin_v1`
* Updated `androiddeviceprovisioning_v1`
* Updated `dlp_v2beta1`
* Updated `tpu_v1alpha1`
* Updated `vault_v1`
# 0.17.2
* Backwards compatible changes:
* Added `dialogflow_v2beta1`
* Added `serviceconsumermanagement_v1`
* Added `tpu_v1alpha1`
* Updated `admin_directory_v1`
* Updated `androidenterprise_v1`
* Updated `appengine_v1`
* Updated `appengine_v1beta`
* Updated `bigquerydatatransfer_v1`
* Updated `cloudbuild_v1`
* Updated `cloudiot_v1`
* Updated `cloudkms_v1`
* Updated `cloudtasks_v2beta2`
* Updated `compute_alpha`
* Updated `compute_beta`
* Updated `compute_v1`
* Updated `container_v1`
* Updated `container_v1beta1`
* Updated `customsearch_v1`
* Updated `dlp_v2beta1`
* Updated `genomics_v1alpha2`
* Updated `logging_v2`
* Updated `logging_v2beta1`
* Updated `monitoring_v3`
* Updated `proximitybeacon_v1beta1`
* Updated `script_v1`
* Updated `slides_v1`
* Updated `sourcerepo_v1`
* Updated `storagetransfer_v1`
* Updated `toolresults_v1beta3`
* Updated `youtube_partner_v1`
# 0.17.1
* Backwards compatible changes:
* Added `dfareporting_v3_0`
* Added `vision_v1p1beta1`
* Updated `adexchangebuyer2_v2beta1`
* Updated `analyticsreporting_v4`
* Updated `androidmanagement_v1`
* Updated `bigquerydatatransfer_v1`
* Updated `cloudtasks_v2beta2`
* Updated `cloudtrace_v1`
* Updated `cloudtrace_v2`
* Updated `container_v1`
* Updated `container_v1beta1`
* Updated `deploymentmanager_alpha`
* Updated `deploymentmanager_v2beta`
* Updated `dfareporting_v2_7`
* Updated `dfareporting_v2_8`
* Updated `firebasedynamiclinks_v1`
* Updated `firestore_v1beta1`
* Updated `ml_v1`
* Updated `monitoring_v3`
* Updated `oslogin_v1alpha`
* Updated `oslogin_v1beta`
* Updated `people_v1`
* Updated `script_v1`
* Updated `servicemanagement_v1`
* Updated `serviceuser_v1`
* Updated `spanner_v1`
* Updated `tagmanager_v1`
* Updated `tagmanager_v2`
* Updated `vision_v1`
* Updated `youtube_partner_v1`
# 0.17.0
* Breaking changes:
* Deleted `cloudmonitoring_v2beta2`
* Backwards compatible changes:
* Updated `adexchangebuyer2_v2beta1`
* Updated `bigquery_v2`
* Updated `cloudfunctions_v1`
* Updated `cloudfunctions_v1beta2`
* Updated `container_v1beta1`
* Updated `content_v2`
* Updated `content_v2sandbox`
* Updated `dataproc_v1`
* Updated `dataproc_v1beta2`
* Updated `videointelligence_v1beta1`
* Updated `vision_v1`
* Updated `youtube_partner_v1`
* Updated `youtube_v3`
# 0.16.0
* Breaking changes:
* Deleted `playmoviespartner_v1`
* Deleted `qpx_express_v1`
* Backwards compatible changes:
* Added `dns_v1beta2`
* Updated `adexchangebuyer2_v2beta1`
* Updated `admin_directory_v1`
* Updated `androidenterprise_v1`
* Updated `androidmanagement_v1`
* Updated `androidpublisher_v2`
* Updated `appengine_v1`
* Updated `appengine_v1alpha`
* Updated `appengine_v1beta`
* Updated `appengine_v1beta4`
* Updated `appengine_v1beta5`
* Updated `bigquery_v2`
* Updated `bigquerydatatransfer_v1`
* Updated `calendar_v3`
* Updated `classroom_v1`
* Updated `cloudbuild_v1`
* Updated `cloudfunctions_v1`
* Updated `cloudfunctions_v1beta2`
* Updated `cloudiot_v1`
* Updated `cloudiot_v1beta1`
* Updated `cloudtasks_v2beta2`
* Updated `cloudtrace_v2`
* Updated `compute_alpha`
* Updated `compute_beta`
* Updated `compute_v1`
* Updated `container_v1beta1`
* Updated `content_v2`
* Updated `content_v2sandbox`
* Updated `dataflow_v1b3`
* Updated `dataproc_v1beta2`
* Updated `datastore_v1`
* Updated `datastore_v1beta3`
* Updated `deploymentmanager_alpha`
* Updated `deploymentmanager_v2beta`
* Updated `dlp_v2beta1`
* Updated `drive_v2`
* Updated `drive_v3`
* Updated `firebasedynamiclinks_v1`
* Updated `firebaseremoteconfig_v1`
* Updated `firebaserules_v1`
* Updated `genomics_v1alpha2`
* Updated `iam_v1`
* Updated `language_v1`
* Updated `language_v1beta2`
* Updated `logging_v2`
* Updated `logging_v2beta1`
* Updated `manufacturers_v1`
* Updated `ml_v1`
* Updated `monitoring_v3`
* Updated `oslogin_v1alpha`
* Updated `oslogin_v1beta`
* Updated `partners_v2`
* Updated `proximitybeacon_v1beta1`
* Updated `runtimeconfig_v1beta1`
* Updated `script_v1`
* Updated `servicecontrol_v1`
* Updated `servicemanagement_v1`
* Updated `serviceuser_v1`
* Updated `sheets_v4`
* Updated `slides_v1`
* Updated `sourcerepo_v1`
* Updated `speech_v1`
* Updated `sqladmin_v1beta4`
* Updated `storage_v1`
* Updated `streetviewpublish_v1`
* Updated `testing_v1`
* Updated `toolresults_v1beta3`
* Updated `videointelligence_v1beta1`
* Updated `youtube_partner_v1`
# 0.15.0
* Breaking changes:
* Deleted `ml_v1beta1`

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/reference/rest/
module Adexchangebuyer2V2beta1
VERSION = 'V2beta1'
REVISION = '20171005'
REVISION = '20171108'
# Manage your Ad Exchange buyer account configuration
AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'

View File

@ -311,6 +311,18 @@ module Google
# @return [String]
attr_accessor :entity_type
# Optional arbitrary unique identifier of this client buyer from the
# standpoint of its Ad Exchange sponsor buyer.
# This field can be used to associate a client buyer with the identifier
# in the namespace of its sponsor buyer, lookup client buyers by that
# identifier and verify whether an Ad Exchange counterpart of a given client
# buyer already exists.
# If present, must be unique among all the client buyers for its
# Ad Exchange sponsor buyer.
# Corresponds to the JSON property `partnerClientId`
# @return [String]
attr_accessor :partner_client_id
# The role which is assigned to the client buyer. Each role implies a set of
# permissions granted to the client. Must be one of `CLIENT_DEAL_VIEWER`,
# `CLIENT_DEAL_NEGOTIATOR` or `CLIENT_DEAL_APPROVER`.
@ -340,6 +352,7 @@ module Google
@entity_id = args[:entity_id] if args.key?(:entity_id)
@entity_name = args[:entity_name] if args.key?(:entity_name)
@entity_type = args[:entity_type] if args.key?(:entity_type)
@partner_client_id = args[:partner_client_id] if args.key?(:partner_client_id)
@role = args[:role] if args.key?(:role)
@status = args[:status] if args.key?(:status)
@visible_to_seller = args[:visible_to_seller] if args.key?(:visible_to_seller)
@ -837,17 +850,16 @@ module Google
# @return [Google::Apis::Adexchangebuyer2V2beta1::AbsoluteDateRange]
attr_accessor :absolute_date_range
# The ID of the buyer account on which to filter; optional.
# Corresponds to the JSON property `buyerAccountId`
# @return [Fixnum]
attr_accessor :buyer_account_id
# The ID of the creative on which to filter; optional.
# The ID of the creative on which to filter; optional. This field may be set
# only for a filter set that accesses buyer-level troubleshooting data, i.e.
# one whose name matches the `bidders/*/accounts/*/filterSets/*` pattern.
# Corresponds to the JSON property `creativeId`
# @return [String]
attr_accessor :creative_id
# The ID of the deal on which to filter; optional.
# The ID of the deal on which to filter; optional. This field may be set
# only for a filter set that accesses buyer-level troubleshooting data, i.e.
# one whose name matches the `bidders/*/accounts/*/filterSets/*` pattern.
# Corresponds to the JSON property `dealId`
# @return [Fixnum]
attr_accessor :deal_id
@ -857,13 +869,6 @@ module Google
# @return [String]
attr_accessor :environment
# The ID of the filter set; unique within the account of the filter set
# owner.
# The value of this field is ignored in create operations.
# Corresponds to the JSON property `filterSetId`
# @return [Fixnum]
attr_accessor :filter_set_id
# The format on which to filter; optional.
# Corresponds to the JSON property `format`
# @return [String]
@ -875,16 +880,11 @@ module Google
# data)
# - `bidders/*/accounts/*/filterSets/*` (for accessing buyer-level
# troubleshooting data)
# This field is required in create operations.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The account ID of the buyer who owns this filter set.
# The value of this field is ignored in create operations.
# Corresponds to the JSON property `ownerAccountId`
# @return [Fixnum]
attr_accessor :owner_account_id
# The list of platforms on which to filter; may be empty. The filters
# represented by multiple platforms are ORed together (i.e. if non-empty,
# results must match any one of the platforms).
@ -933,14 +933,11 @@ module Google
# Update properties of this object
def update!(**args)
@absolute_date_range = args[:absolute_date_range] if args.key?(:absolute_date_range)
@buyer_account_id = args[:buyer_account_id] if args.key?(:buyer_account_id)
@creative_id = args[:creative_id] if args.key?(:creative_id)
@deal_id = args[:deal_id] if args.key?(:deal_id)
@environment = args[:environment] if args.key?(:environment)
@filter_set_id = args[:filter_set_id] if args.key?(:filter_set_id)
@format = args[:format] if args.key?(:format)
@name = args[:name] if args.key?(:name)
@owner_account_id = args[:owner_account_id] if args.key?(:owner_account_id)
@platforms = args[:platforms] if args.key?(:platforms)
@realtime_time_range = args[:realtime_time_range] if args.key?(:realtime_time_range)
@relative_date_range = args[:relative_date_range] if args.key?(:relative_date_range)
@ -1183,8 +1180,7 @@ module Google
# A token to retrieve the next page of results.
# Pass this value in the
# ListBidMetricsRequest.pageToken
# field in the subsequent call to the
# accounts.filterSets.bidMetrics.list
# field in the subsequent call to the bidMetrics.list
# method to retrieve the next page of results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
@ -1214,8 +1210,7 @@ module Google
# A token to retrieve the next page of results.
# Pass this value in the
# ListBidResponseErrorsRequest.pageToken
# field in the subsequent call to the
# accounts.filterSets.bidResponseErrors.list
# field in the subsequent call to the bidResponseErrors.list
# method to retrieve the next page of results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
@ -1246,8 +1241,7 @@ module Google
# A token to retrieve the next page of results.
# Pass this value in the
# ListBidResponsesWithoutBidsRequest.pageToken
# field in the subsequent call to the
# accounts.filterSets.bidResponsesWithoutBids.list
# field in the subsequent call to the bidResponsesWithoutBids.list
# method to retrieve the next page of results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
@ -1370,8 +1364,7 @@ module Google
# A token to retrieve the next page of results.
# Pass this value in the
# ListCreativeStatusBreakdownByCreativeRequest.pageToken
# field in the subsequent call to the
# accounts.filterSets.filteredBids.creatives.list
# field in the subsequent call to the filteredBids.creatives.list
# method to retrieve the next page of results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
@ -1407,8 +1400,7 @@ module Google
# A token to retrieve the next page of results.
# Pass this value in the
# ListCreativeStatusBreakdownByDetailRequest.pageToken
# field in the subsequent call to the
# accounts.filterSets.filteredBids.details.list
# field in the subsequent call to the filteredBids.details.list
# method to retrieve the next page of results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
@ -1528,8 +1520,7 @@ module Google
# A token to retrieve the next page of results.
# Pass this value in the
# ListFilteredBidRequestsRequest.pageToken
# field in the subsequent call to the
# accounts.filterSets.filteredBidRequests.list
# field in the subsequent call to the filteredBidRequests.list
# method to retrieve the next page of results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
@ -1560,8 +1551,7 @@ module Google
# A token to retrieve the next page of results.
# Pass this value in the
# ListFilteredBidsRequest.pageToken
# field in the subsequent call to the
# accounts.filterSets.filteredBids.list
# field in the subsequent call to the filteredBids.list
# method to retrieve the next page of results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
@ -1591,8 +1581,7 @@ module Google
# A token to retrieve the next page of results.
# Pass this value in the
# ListImpressionMetricsRequest.pageToken
# field in the subsequent call to the
# accounts.filterSets.impressionMetrics.list
# field in the subsequent call to the impressionMetrics.list
# method to retrieve the next page of results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
@ -1622,8 +1611,7 @@ module Google
# A token to retrieve the next page of results.
# Pass this value in the
# ListLosingBidsRequest.pageToken
# field in the subsequent call to the
# accounts.filterSets.losingBids.list
# field in the subsequent call to the losingBids.list
# method to retrieve the next page of results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
@ -1648,8 +1636,7 @@ module Google
# A token to retrieve the next page of results.
# Pass this value in the
# ListNonBillableWinningBidsRequest.pageToken
# field in the subsequent call to the
# accounts.filterSets.nonBillableWinningBids.list
# field in the subsequent call to the nonBillableWinningBids.list
# method to retrieve the next page of results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]

View File

@ -446,6 +446,7 @@ module Google
property :entity_id, :numeric_string => true, as: 'entityId'
property :entity_name, as: 'entityName'
property :entity_type, as: 'entityType'
property :partner_client_id, as: 'partnerClientId'
property :role, as: 'role'
property :status, as: 'status'
property :visible_to_seller, as: 'visibleToSeller'
@ -566,14 +567,11 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :absolute_date_range, as: 'absoluteDateRange', class: Google::Apis::Adexchangebuyer2V2beta1::AbsoluteDateRange, decorator: Google::Apis::Adexchangebuyer2V2beta1::AbsoluteDateRange::Representation
property :buyer_account_id, :numeric_string => true, as: 'buyerAccountId'
property :creative_id, as: 'creativeId'
property :deal_id, :numeric_string => true, as: 'dealId'
property :environment, as: 'environment'
property :filter_set_id, :numeric_string => true, as: 'filterSetId'
property :format, as: 'format'
property :name, as: 'name'
property :owner_account_id, :numeric_string => true, as: 'ownerAccountId'
collection :platforms, as: 'platforms'
property :realtime_time_range, as: 'realtimeTimeRange', class: Google::Apis::Adexchangebuyer2V2beta1::RealtimeTimeRange, decorator: Google::Apis::Adexchangebuyer2V2beta1::RealtimeTimeRange::Representation

File diff suppressed because it is too large Load Diff

View File

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

View File

@ -96,6 +96,73 @@ module Google
end
end
# JSON template for App Access Collections Resource object in Directory API.
class AppAccessCollections
include Google::Apis::Core::Hashable
# List of blocked api access buckets.
# Corresponds to the JSON property `blockedApiAccessBuckets`
# @return [Array<String>]
attr_accessor :blocked_api_access_buckets
# Boolean to indicate whether to enforce app access settings on Android Drive or
# not.
# Corresponds to the JSON property `enforceSettingsForAndroidDrive`
# @return [Boolean]
attr_accessor :enforce_settings_for_android_drive
alias_method :enforce_settings_for_android_drive?, :enforce_settings_for_android_drive
# Error message provided by the Admin that will be shown to the user when an app
# is blocked.
# Corresponds to the JSON property `errorMessage`
# @return [String]
attr_accessor :error_message
# ETag of the resource.
# Corresponds to the JSON property `etag`
# @return [String]
attr_accessor :etag
# Identifies the resource as an app access collection. Value: admin#directory#
# appaccesscollection
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Unique ID of app access collection. (Readonly)
# Corresponds to the JSON property `resourceId`
# @return [Fixnum]
attr_accessor :resource_id
# Resource name given by the customer while creating/updating. Should be unique
# under given customer.
# Corresponds to the JSON property `resourceName`
# @return [String]
attr_accessor :resource_name
# Boolean that indicates whether to trust domain owned apps.
# Corresponds to the JSON property `trustDomainOwnedApps`
# @return [Boolean]
attr_accessor :trust_domain_owned_apps
alias_method :trust_domain_owned_apps?, :trust_domain_owned_apps
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@blocked_api_access_buckets = args[:blocked_api_access_buckets] if args.key?(:blocked_api_access_buckets)
@enforce_settings_for_android_drive = args[:enforce_settings_for_android_drive] if args.key?(:enforce_settings_for_android_drive)
@error_message = args[:error_message] if args.key?(:error_message)
@etag = args[:etag] if args.key?(:etag)
@kind = args[:kind] if args.key?(:kind)
@resource_id = args[:resource_id] if args.key?(:resource_id)
@resource_name = args[:resource_name] if args.key?(:resource_name)
@trust_domain_owned_apps = args[:trust_domain_owned_apps] if args.key?(:trust_domain_owned_apps)
end
end
# The template that returns individual ASP (Access Code) data.
class Asp
include Google::Apis::Core::Hashable
@ -1181,6 +1248,26 @@ module Google
end
end
# JSON template for Has Member response in Directory API.
class MembersHasMember
include Google::Apis::Core::Hashable
# Identifies whether given user is a member or not.
# Corresponds to the JSON property `isMember`
# @return [Boolean]
attr_accessor :is_member
alias_method :is_member?, :is_member
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@is_member = args[:is_member] if args.key?(:is_member)
end
end
# JSON template for Mobile Device resource in Directory API.
class MobileDevice
include Google::Apis::Core::Hashable
@ -2328,6 +2415,86 @@ module Google
end
end
# JSON template for Trusted App Ids Resource object in Directory API.
class TrustedAppId
include Google::Apis::Core::Hashable
# Android package name.
# Corresponds to the JSON property `androidPackageName`
# @return [String]
attr_accessor :android_package_name
# SHA1 signature of the app certificate.
# Corresponds to the JSON property `certificateHashSHA1`
# @return [String]
attr_accessor :certificate_hash_sha1
# SHA256 signature of the app certificate.
# Corresponds to the JSON property `certificateHashSHA256`
# @return [String]
attr_accessor :certificate_hash_sha256
#
# Corresponds to the JSON property `etag`
# @return [String]
attr_accessor :etag
# Identifies the resource as a trusted AppId.
# 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)
@android_package_name = args[:android_package_name] if args.key?(:android_package_name)
@certificate_hash_sha1 = args[:certificate_hash_sha1] if args.key?(:certificate_hash_sha1)
@certificate_hash_sha256 = args[:certificate_hash_sha256] if args.key?(:certificate_hash_sha256)
@etag = args[:etag] if args.key?(:etag)
@kind = args[:kind] if args.key?(:kind)
end
end
# JSON template for Trusted Apps response object of a user in Directory API.
class TrustedApps
include Google::Apis::Core::Hashable
# ETag of the resource.
# Corresponds to the JSON property `etag`
# @return [String]
attr_accessor :etag
# Identifies the resource as trusted apps response.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
#
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# Trusted Apps list.
# Corresponds to the JSON property `trustedApps`
# @return [Array<Google::Apis::AdminDirectoryV1::TrustedAppId>]
attr_accessor :trusted_apps
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@etag = args[:etag] if args.key?(:etag)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@trusted_apps = args[:trusted_apps] if args.key?(:trusted_apps)
end
end
# JSON template for User object in Directory API.
class User
include Google::Apis::Core::Hashable
@ -3265,6 +3432,11 @@ module Google
class UserPosixAccount
include Google::Apis::Core::Hashable
# A POSIX account field identifier. (Read-only)
# Corresponds to the JSON property `accountId`
# @return [String]
attr_accessor :account_id
# The GECOS (user information) for this account.
# Corresponds to the JSON property `gecos`
# @return [String]
@ -3312,6 +3484,7 @@ module Google
# Update properties of this object
def update!(**args)
@account_id = args[:account_id] if args.key?(:account_id)
@gecos = args[:gecos] if args.key?(:gecos)
@gid = args[:gid] if args.key?(:gid)
@home_directory = args[:home_directory] if args.key?(:home_directory)

View File

@ -34,6 +34,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class AppAccessCollections
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Asp
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -160,6 +166,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class MembersHasMember
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MobileDevice
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -286,6 +298,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class TrustedAppId
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TrustedApps
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class User
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -444,6 +468,20 @@ module Google
end
end
class AppAccessCollections
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :blocked_api_access_buckets, as: 'blockedApiAccessBuckets'
property :enforce_settings_for_android_drive, as: 'enforceSettingsForAndroidDrive'
property :error_message, as: 'errorMessage'
property :etag, as: 'etag'
property :kind, as: 'kind'
property :resource_id, :numeric_string => true, as: 'resourceId'
property :resource_name, as: 'resourceName'
property :trust_domain_owned_apps, as: 'trustDomainOwnedApps'
end
end
class Asp
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -716,6 +754,13 @@ module Google
end
end
class MembersHasMember
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :is_member, as: 'isMember'
end
end
class MobileDevice
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -998,6 +1043,28 @@ module Google
end
end
class TrustedAppId
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :android_package_name, as: 'androidPackageName'
property :certificate_hash_sha1, as: 'certificateHashSHA1'
property :certificate_hash_sha256, as: 'certificateHashSHA256'
property :etag, as: 'etag'
property :kind, as: 'kind'
end
end
class TrustedApps
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :etag, as: 'etag'
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
collection :trusted_apps, as: 'trustedApps', class: Google::Apis::AdminDirectoryV1::TrustedAppId, decorator: Google::Apis::AdminDirectoryV1::TrustedAppId::Representation
end
end
class User
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1209,6 +1276,7 @@ module Google
class UserPosixAccount
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :account_id, as: 'accountId'
property :gecos, as: 'gecos'
property :gid, :numeric_string => true, as: 'gid'
property :home_directory, as: 'homeDirectory'

View File

@ -287,7 +287,7 @@ module Google
# @param [String] order_by
# Column to use for sorting results
# @param [String] org_unit_path
# Full path of the organization unit or its Id
# Full path of the organizational unit or its ID
# @param [String] page_token
# Token to specify next page in the list
# @param [String] projection
@ -337,11 +337,11 @@ module Google
execute_or_queue_command(command, &block)
end
# Move or insert multiple Chrome OS Devices to Organization Unit
# Move or insert multiple Chrome OS Devices to organizational unit
# @param [String] customer_id
# Immutable ID of the G Suite account
# @param [String] org_unit_path
# Full path of the target organization unit or its Id
# Full path of the target organizational unit or its ID
# @param [Google::Apis::AdminDirectoryV1::ChromeOsMoveDevicesToOu] chrome_os_move_devices_to_ou_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -874,7 +874,7 @@ module Google
# Delete Group
# @param [String] group_key
# Email or immutable Id of the group
# Email or immutable ID of the group
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -907,7 +907,7 @@ module Google
# Retrieve Group
# @param [String] group_key
# Email or immutable Id of the group
# Email or immutable ID of the group
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -987,8 +987,8 @@ module Google
# @param [String] page_token
# Token to specify next page in the list
# @param [String] user_key
# Email or immutable Id of the user if only those groups are to be listed, the
# given user is a member of. If Id, it should match with id of user object
# Email or immutable ID of the user if only those groups are to be listed, the
# given user is a member of. If ID, it should match with id of user object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1027,7 +1027,7 @@ module Google
# Update Group. This method supports patch semantics.
# @param [String] group_key
# Email or immutable Id of the group. If Id, it should match with id of group
# Email or immutable ID of the group. If ID, it should match with id of group
# object
# @param [Google::Apis::AdminDirectoryV1::Group] group_object
# @param [String] fields
@ -1066,7 +1066,7 @@ module Google
# Update Group
# @param [String] group_key
# Email or immutable Id of the group. If Id, it should match with id of group
# Email or immutable ID of the group. If ID, it should match with id of group
# object
# @param [Google::Apis::AdminDirectoryV1::Group] group_object
# @param [String] fields
@ -1105,7 +1105,7 @@ module Google
# Remove a alias for the group
# @param [String] group_key
# Email or immutable Id of the group
# Email or immutable ID of the group
# @param [String] group_alias
# The alias to be removed
# @param [String] fields
@ -1141,7 +1141,7 @@ module Google
# Add a alias for the group
# @param [String] group_key
# Email or immutable Id of the group
# Email or immutable ID of the group
# @param [Google::Apis::AdminDirectoryV1::Alias] alias_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -1179,7 +1179,7 @@ module Google
# List all aliases for a group
# @param [String] group_key
# Email or immutable Id of the group
# Email or immutable ID of the group
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1214,9 +1214,9 @@ module Google
# Remove membership.
# @param [String] group_key
# Email or immutable Id of the group
# Email or immutable ID of the group
# @param [String] member_key
# Email or immutable Id of the member
# Email or immutable ID of the member
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1250,9 +1250,9 @@ module Google
# Retrieve Group Member
# @param [String] group_key
# Email or immutable Id of the group
# Email or immutable ID of the group
# @param [String] member_key
# Email or immutable Id of the member
# Email or immutable ID of the member
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1286,9 +1286,47 @@ module Google
execute_or_queue_command(command, &block)
end
# Add user to the specified group.
# Checks Membership of an user within a Group
# @param [String] group_key
# Email or immutable Id of the group
# @param [String] member_key
# Email or immutable Id of the member
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available 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::AdminDirectoryV1::MembersHasMember] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AdminDirectoryV1::MembersHasMember]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def has_member_member(group_key, member_key, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'groups/{groupKey}/hasMember/{memberKey}', options)
command.response_representation = Google::Apis::AdminDirectoryV1::MembersHasMember::Representation
command.response_class = Google::Apis::AdminDirectoryV1::MembersHasMember
command.params['groupKey'] = group_key unless group_key.nil?
command.params['memberKey'] = member_key unless member_key.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
# Add user to the specified group.
# @param [String] group_key
# Email or immutable ID of the group
# @param [Google::Apis::AdminDirectoryV1::Member] member_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -1326,7 +1364,7 @@ module Google
# Retrieve all members in a group (paginated)
# @param [String] group_key
# Email or immutable Id of the group
# Email or immutable ID of the group
# @param [Fixnum] max_results
# Maximum number of results to return. Default is 200
# @param [String] page_token
@ -1371,10 +1409,10 @@ module Google
# Update membership of a user in the specified group. This method supports patch
# semantics.
# @param [String] group_key
# Email or immutable Id of the group. If Id, it should match with id of group
# Email or immutable ID of the group. If ID, it should match with id of group
# object
# @param [String] member_key
# Email or immutable Id of the user. If Id, it should match with id of member
# Email or immutable ID of the user. If ID, it should match with id of member
# object
# @param [Google::Apis::AdminDirectoryV1::Member] member_object
# @param [String] fields
@ -1414,10 +1452,10 @@ module Google
# Update membership of a user in the specified group.
# @param [String] group_key
# Email or immutable Id of the group. If Id, it should match with id of group
# Email or immutable ID of the group. If ID, it should match with id of group
# object
# @param [String] member_key
# Email or immutable Id of the user. If Id, it should match with id of member
# Email or immutable ID of the user. If ID, it should match with id of member
# object
# @param [Google::Apis::AdminDirectoryV1::Member] member_object
# @param [String] fields
@ -1829,11 +1867,11 @@ module Google
execute_or_queue_command(command, &block)
end
# Remove Organization Unit
# Remove organizational unit
# @param [String] customer_id
# Immutable ID of the G Suite account
# @param [Array<String>, String] org_unit_path
# Full path of the organization unit or its Id
# Full path of the organizational unit or its ID
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1865,11 +1903,11 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieve Organization Unit
# Retrieve organizational unit
# @param [String] customer_id
# Immutable ID of the G Suite account
# @param [Array<String>, String] org_unit_path
# Full path of the organization unit or its Id
# Full path of the organizational unit or its ID
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1903,7 +1941,7 @@ module Google
execute_or_queue_command(command, &block)
end
# Add Organization Unit
# Add organizational unit
# @param [String] customer_id
# Immutable ID of the G Suite account
# @param [Google::Apis::AdminDirectoryV1::OrgUnit] org_unit_object
@ -1941,11 +1979,11 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieve all Organization Units
# Retrieve all organizational units
# @param [String] customer_id
# Immutable ID of the G Suite account
# @param [String] org_unit_path
# the URL-encoded organization unit's path or its Id
# the URL-encoded organizational unit's path or its ID
# @param [String] type
# Whether to return all sub-organizations or just immediate children
# @param [String] fields
@ -1982,11 +2020,11 @@ module Google
execute_or_queue_command(command, &block)
end
# Update Organization Unit. This method supports patch semantics.
# Update organizational unit. This method supports patch semantics.
# @param [String] customer_id
# Immutable ID of the G Suite account
# @param [Array<String>, String] org_unit_path
# Full path of the organization unit or its Id
# Full path of the organizational unit or its ID
# @param [Google::Apis::AdminDirectoryV1::OrgUnit] org_unit_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -2023,11 +2061,11 @@ module Google
execute_or_queue_command(command, &block)
end
# Update Organization Unit
# Update organizational unit
# @param [String] customer_id
# Immutable ID of the G Suite account
# @param [Array<String>, String] org_unit_path
# Full path of the organization unit or its Id
# Full path of the organizational unit or its ID
# @param [Google::Apis::AdminDirectoryV1::OrgUnit] org_unit_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -2099,6 +2137,70 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves resolved app access settings of the logged in 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::AdminDirectoryV1::AppAccessCollections] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AdminDirectoryV1::AppAccessCollections]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_resolved_app_access_setting_settings(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'resolvedappaccesssettings', options)
command.response_representation = Google::Apis::AdminDirectoryV1::AppAccessCollections::Representation
command.response_class = Google::Apis::AdminDirectoryV1::AppAccessCollections
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 list of apps trusted by the admin of the logged in 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::AdminDirectoryV1::TrustedApps] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AdminDirectoryV1::TrustedApps]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_resolved_app_access_setting_trusted_apps(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'trustedapps', options)
command.response_representation = Google::Apis::AdminDirectoryV1::TrustedApps::Representation
command.response_class = Google::Apis::AdminDirectoryV1::TrustedApps
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Deletes a calendar resource.
# @param [String] customer
# The unique ID for the customer's G Suite account. As an account administrator,
@ -2256,7 +2358,10 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates a calendar resource. This method supports patch semantics.
# Updates a calendar resource.
# This method supports patch semantics, meaning you only need to include the
# fields you wish to update. Fields that are not present in the request will be
# preserved. This method supports patch semantics.
# @param [String] customer
# The unique ID for the customer's G Suite account. As an account administrator,
# you can also use the my_customer alias to represent your account's customer ID.
@ -2299,6 +2404,9 @@ module Google
end
# Updates a calendar resource.
# This method supports patch semantics, meaning you only need to include the
# fields you wish to update. Fields that are not present in the request will be
# preserved.
# @param [String] customer
# The unique ID for the customer's G Suite account. As an account administrator,
# you can also use the my_customer alias to represent your account's customer ID.
@ -2740,7 +2848,7 @@ module Google
# @param [String] customer_id
# Immutable ID of the G Suite account
# @param [String] schema_key
# Name or immutable Id of the schema
# Name or immutable ID of the schema
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -2776,7 +2884,7 @@ module Google
# @param [String] customer_id
# Immutable ID of the G Suite account
# @param [String] schema_key
# Name or immutable Id of the schema
# Name or immutable ID of the schema
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -2887,7 +2995,7 @@ module Google
# @param [String] customer_id
# Immutable ID of the G Suite account
# @param [String] schema_key
# Name or immutable Id of the schema.
# Name or immutable ID of the schema.
# @param [Google::Apis::AdminDirectoryV1::Schema] schema_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -2928,7 +3036,7 @@ module Google
# @param [String] customer_id
# Immutable ID of the G Suite account
# @param [String] schema_key
# Name or immutable Id of the schema.
# Name or immutable ID of the schema.
# @param [Google::Apis::AdminDirectoryV1::Schema] schema_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -3079,7 +3187,7 @@ module Google
# Delete user
# @param [String] user_key
# Email or immutable Id of the user
# Email or immutable ID of the user
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -3112,7 +3220,7 @@ module Google
# retrieve user
# @param [String] user_key
# Email or immutable Id of the user
# Email or immutable ID of the user
# @param [String] custom_field_mask
# Comma-separated list of schema names. All fields from these schemas are
# fetched. This should only be set when projection=custom.
@ -3264,7 +3372,7 @@ module Google
# change admin status of a user
# @param [String] user_key
# Email or immutable Id of the user as admin
# Email or immutable ID of the user as admin
# @param [Google::Apis::AdminDirectoryV1::UserMakeAdmin] user_make_admin_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -3300,7 +3408,7 @@ module Google
# update user. This method supports patch semantics.
# @param [String] user_key
# Email or immutable Id of the user. If Id, it should match with id of user
# Email or immutable ID of the user. If ID, it should match with id of user
# object
# @param [Google::Apis::AdminDirectoryV1::User] user_object
# @param [String] fields
@ -3375,7 +3483,7 @@ module Google
# update user
# @param [String] user_key
# Email or immutable Id of the user. If Id, it should match with id of user
# Email or immutable ID of the user. If ID, it should match with id of user
# object
# @param [Google::Apis::AdminDirectoryV1::User] user_object
# @param [String] fields
@ -3489,7 +3597,7 @@ module Google
# Remove a alias for the user
# @param [String] user_key
# Email or immutable Id of the user
# Email or immutable ID of the user
# @param [String] user_alias
# The alias to be removed
# @param [String] fields
@ -3525,7 +3633,7 @@ module Google
# Add a alias for the user
# @param [String] user_key
# Email or immutable Id of the user
# Email or immutable ID of the user
# @param [Google::Apis::AdminDirectoryV1::Alias] alias_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -3563,7 +3671,7 @@ module Google
# List all aliases for a user
# @param [String] user_key
# Email or immutable Id of the user
# Email or immutable ID of the user
# @param [String] event
# Event on which subscription is intended (if subscribing)
# @param [String] fields
@ -3601,7 +3709,7 @@ module Google
# Watch for changes in user aliases list
# @param [String] user_key
# Email or immutable Id of the user
# Email or immutable ID of the user
# @param [Google::Apis::AdminDirectoryV1::Channel] channel_object
# @param [String] event
# Event on which subscription is intended (if subscribing)
@ -3642,7 +3750,7 @@ module Google
# Remove photos for the user
# @param [String] user_key
# Email or immutable Id of the user
# Email or immutable ID of the user
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -3675,7 +3783,7 @@ module Google
# Retrieve photo of a user
# @param [String] user_key
# Email or immutable Id of the user
# Email or immutable ID of the user
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -3710,7 +3818,7 @@ module Google
# Add a photo for the user. This method supports patch semantics.
# @param [String] user_key
# Email or immutable Id of the user
# Email or immutable ID of the user
# @param [Google::Apis::AdminDirectoryV1::UserPhoto] user_photo_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -3748,7 +3856,7 @@ module Google
# Add a photo for the user
# @param [String] user_key
# Email or immutable Id of the user
# Email or immutable ID of the user
# @param [Google::Apis::AdminDirectoryV1::UserPhoto] user_photo_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -3786,7 +3894,7 @@ module Google
# Generate new backup verification codes for the user.
# @param [String] user_key
# Email or immutable Id of the user
# Email or immutable ID of the user
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -3819,7 +3927,7 @@ module Google
# Invalidate the current backup verification codes for the user.
# @param [String] user_key
# Email or immutable Id of the user
# Email or immutable ID of the user
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/analytics/devguides/reporting/core/v4/
module AnalyticsreportingV4
VERSION = 'V4'
REVISION = '20170925'
REVISION = '20171108'
# View and manage your Google Analytics data
AUTH_ANALYTICS = 'https://www.googleapis.com/auth/analytics'

View File

@ -376,6 +376,21 @@ module Google
# @return [Array<Google::Apis::AnalyticsreportingV4::ReportRequest>]
attr_accessor :report_requests
# Enables
# [resource based quotas](/analytics/devguides/reporting/core/v4/limits-quotas#
# analytics_reporting_api_v4),
# (defaults to `False`). If this field is set to `True` the
# per view (profile) quotas are governed by the computational
# cost of the request. Note that using cost based quotas will
# higher enable sampling rates. (10 Million for `SMALL`,
# 100M for `LARGE`. See the
# [limits and quotas documentation](/analytics/devguides/reporting/core/v4/
# limits-quotas#analytics_reporting_api_v4) for details.
# Corresponds to the JSON property `useResourceQuotas`
# @return [Boolean]
attr_accessor :use_resource_quotas
alias_method :use_resource_quotas?, :use_resource_quotas
def initialize(**args)
update!(**args)
end
@ -383,6 +398,7 @@ module Google
# Update properties of this object
def update!(**args)
@report_requests = args[:report_requests] if args.key?(:report_requests)
@use_resource_quotas = args[:use_resource_quotas] if args.key?(:use_resource_quotas)
end
end
@ -391,18 +407,32 @@ module Google
class GetReportsResponse
include Google::Apis::Core::Hashable
# The amount of resource quota tokens deducted to execute the query. Includes
# all responses.
# Corresponds to the JSON property `queryCost`
# @return [Fixnum]
attr_accessor :query_cost
# Responses corresponding to each of the request.
# Corresponds to the JSON property `reports`
# @return [Array<Google::Apis::AnalyticsreportingV4::Report>]
attr_accessor :reports
# The resource quota tokens remaining for the property after the request is
# completed.
# Corresponds to the JSON property `resourceQuotasRemaining`
# @return [Google::Apis::AnalyticsreportingV4::ResourceQuotasRemaining]
attr_accessor :resource_quotas_remaining
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@query_cost = args[:query_cost] if args.key?(:query_cost)
@reports = args[:reports] if args.key?(:reports)
@resource_quotas_remaining = args[:resource_quotas_remaining] if args.key?(:resource_quotas_remaining)
end
end
@ -1103,6 +1133,32 @@ module Google
end
end
# The resource quota tokens remaining for the property after the request is
# completed.
class ResourceQuotasRemaining
include Google::Apis::Core::Hashable
# Daily resource quota remaining remaining.
# Corresponds to the JSON property `dailyQuotaTokensRemaining`
# @return [Fixnum]
attr_accessor :daily_quota_tokens_remaining
# Hourly resource quota tokens remaining.
# Corresponds to the JSON property `hourlyQuotaTokensRemaining`
# @return [Fixnum]
attr_accessor :hourly_quota_tokens_remaining
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@daily_quota_tokens_remaining = args[:daily_quota_tokens_remaining] if args.key?(:daily_quota_tokens_remaining)
@hourly_quota_tokens_remaining = args[:hourly_quota_tokens_remaining] if args.key?(:hourly_quota_tokens_remaining)
end
end
# The segment definition, if the report needs to be segmented.
# A Segment is a subset of the Analytics data. For example, of the entire
# set of users, one Segment might be users from a particular country or city.

View File

@ -178,6 +178,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ResourceQuotasRemaining
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Segment
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -321,14 +327,18 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
collection :report_requests, as: 'reportRequests', class: Google::Apis::AnalyticsreportingV4::ReportRequest, decorator: Google::Apis::AnalyticsreportingV4::ReportRequest::Representation
property :use_resource_quotas, as: 'useResourceQuotas'
end
end
class GetReportsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :query_cost, as: 'queryCost'
collection :reports, as: 'reports', class: Google::Apis::AnalyticsreportingV4::Report, decorator: Google::Apis::AnalyticsreportingV4::Report::Representation
property :resource_quotas_remaining, as: 'resourceQuotasRemaining', class: Google::Apis::AnalyticsreportingV4::ResourceQuotasRemaining, decorator: Google::Apis::AnalyticsreportingV4::ResourceQuotasRemaining::Representation
end
end
@ -506,6 +516,14 @@ module Google
end
end
class ResourceQuotasRemaining
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :daily_quota_tokens_remaining, as: 'dailyQuotaTokensRemaining'
property :hourly_quota_tokens_remaining, as: 'hourlyQuotaTokensRemaining'
end
end
class Segment
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/zero-touch/
module AndroiddeviceprovisioningV1
VERSION = 'V1'
REVISION = '20170916'
REVISION = '20171118'
end
end
end

View File

@ -31,7 +31,8 @@ module Google
# @return [Fixnum]
attr_accessor :customer_id
# Identifies a unique device.
# Encapsulates hardware and product IDs to identify a manufactured device. To
# learn more, read [Identifiers](/zero-touch/guides/identifiers).
# Corresponds to the JSON property `deviceIdentifier`
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier]
attr_accessor :device_identifier
@ -167,37 +168,45 @@ module Google
end
end
# An Android device.
# An Android device registered for zero-touch enrollment.
class Device
include Google::Apis::Core::Hashable
# Claims.
# Output only. The provisioning claims for a device. Devices claimed for
# zero-touch enrollment have a claim with the type `SECTION_TYPE_ZERO_TOUCH`.
# Call
# `partners.devices.unclaim`
# or
# `partners.devices.unclaimAsync`
# to remove the device from zero-touch enrollment.
# Corresponds to the JSON property `claims`
# @return [Array<Google::Apis::AndroiddeviceprovisioningV1::DeviceClaim>]
attr_accessor :claims
# The resource name of the configuration.
# Only set for customers.
# Not available to resellers.
# Corresponds to the JSON property `configuration`
# @return [String]
attr_accessor :configuration
# Device ID.
# Output only. The ID of the device. Assigned by the server.
# Corresponds to the JSON property `deviceId`
# @return [Fixnum]
attr_accessor :device_id
# Identifies a unique device.
# Encapsulates hardware and product IDs to identify a manufactured device. To
# learn more, read [Identifiers](/zero-touch/guides/identifiers).
# Corresponds to the JSON property `deviceIdentifier`
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier]
attr_accessor :device_identifier
# A key-value pair of the device metadata.
# Metadata entries that can be attached to a `Device`. To learn more, read
# [Device metadata](/zero-touch/guides/metadata).
# Corresponds to the JSON property `deviceMetadata`
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceMetadata]
attr_accessor :device_metadata
# Resource name in `partners/[PARTNER_ID]/devices/[DEVICE_ID]`.
# Output only. The API resource name in the format
# `partners/[PARTNER_ID]/devices/[DEVICE_ID]`. Assigned by the server.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
@ -217,16 +226,19 @@ module Google
end
end
# Information about a device claimed for a partner.
# A record of a device claimed by a reseller for a customer. Devices claimed
# for zero-touch enrollment have a claim with the type
# `SECTION_TYPE_ZERO_TOUCH`. To learn more, read
# [Claim devices for customers](/zero-touch/guides/how-it-works#claim).
class DeviceClaim
include Google::Apis::Core::Hashable
# Owner ID.
# The ID of the Customer that purchased the device.
# Corresponds to the JSON property `ownerCompanyId`
# @return [Fixnum]
attr_accessor :owner_company_id
# Section type of the device claim.
# Output only. The type of claim made on the device.
# Corresponds to the JSON property `sectionType`
# @return [String]
attr_accessor :section_type
@ -242,28 +254,30 @@ module Google
end
end
# Identifies a unique device.
# Encapsulates hardware and product IDs to identify a manufactured device. To
# learn more, read [Identifiers](/zero-touch/guides/identifiers).
class DeviceIdentifier
include Google::Apis::Core::Hashable
# IMEI number.
# The devices IMEI number. Validated on input.
# Corresponds to the JSON property `imei`
# @return [String]
attr_accessor :imei
# Manufacturer name to match `android.os.Build.MANUFACTURER` (required).
# Allowed values listed in
# [manufacturer names](/zero-touch/resources/manufacturer-names).
# Required. The device manufacturers name. Matches the device's built-in
# value returned from `android.os.Build.MANUFACTURER`. Allowed values are
# listed in [manufacturer names](/zero-touch/resources/manufacturer-names).
# Corresponds to the JSON property `manufacturer`
# @return [String]
attr_accessor :manufacturer
# MEID number.
# The devices MEID number.
# Corresponds to the JSON property `meid`
# @return [String]
attr_accessor :meid
# Serial number (optional).
# The manufacturer's serial number for the device. This value might not be
# unique.
# Corresponds to the JSON property `serialNumber`
# @return [String]
attr_accessor :serial_number
@ -281,11 +295,12 @@ module Google
end
end
# A key-value pair of the device metadata.
# Metadata entries that can be attached to a `Device`. To learn more, read
# [Device metadata](/zero-touch/guides/metadata).
class DeviceMetadata
include Google::Apis::Core::Hashable
# Metadata entries
# Metadata entries recorded as key-value pairs.
# Corresponds to the JSON property `entries`
# @return [Hash<String,String>]
attr_accessor :entries
@ -380,7 +395,8 @@ module Google
class FindDevicesByDeviceIdentifierRequest
include Google::Apis::Core::Hashable
# Identifies a unique device.
# Encapsulates hardware and product IDs to identify a manufactured device. To
# learn more, read [Identifiers](/zero-touch/guides/identifiers).
# Corresponds to the JSON property `deviceIdentifier`
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier]
attr_accessor :device_identifier
@ -648,12 +664,14 @@ module Google
# @return [Fixnum]
attr_accessor :customer_id
# Identifies a unique device.
# Encapsulates hardware and product IDs to identify a manufactured device. To
# learn more, read [Identifiers](/zero-touch/guides/identifiers).
# Corresponds to the JSON property `deviceIdentifier`
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier]
attr_accessor :device_identifier
# A key-value pair of the device metadata.
# Metadata entries that can be attached to a `Device`. To learn more, read
# [Device metadata](/zero-touch/guides/metadata).
# Corresponds to the JSON property `deviceMetadata`
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceMetadata]
attr_accessor :device_metadata
@ -685,7 +703,8 @@ module Google
# @return [Fixnum]
attr_accessor :device_id
# Identifies a unique device.
# Encapsulates hardware and product IDs to identify a manufactured device. To
# learn more, read [Identifiers](/zero-touch/guides/identifiers).
# Corresponds to the JSON property `deviceIdentifier`
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier]
attr_accessor :device_identifier
@ -825,7 +844,8 @@ module Google
# @return [Fixnum]
attr_accessor :device_id
# Identifies a unique device.
# Encapsulates hardware and product IDs to identify a manufactured device. To
# learn more, read [Identifiers](/zero-touch/guides/identifiers).
# Corresponds to the JSON property `deviceIdentifier`
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier]
attr_accessor :device_identifier
@ -889,7 +909,8 @@ module Google
class UpdateDeviceMetadataRequest
include Google::Apis::Core::Hashable
# A key-value pair of the device metadata.
# Metadata entries that can be attached to a `Device`. To learn more, read
# [Device metadata](/zero-touch/guides/metadata).
# Corresponds to the JSON property `deviceMetadata`
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceMetadata]
attr_accessor :device_metadata
@ -913,12 +934,14 @@ module Google
# @return [Fixnum]
attr_accessor :device_id
# Identifies a unique device.
# Encapsulates hardware and product IDs to identify a manufactured device. To
# learn more, read [Identifiers](/zero-touch/guides/identifiers).
# Corresponds to the JSON property `deviceIdentifier`
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier]
attr_accessor :device_identifier
# A key-value pair of the device metadata.
# Metadata entries that can be attached to a `Device`. To learn more, read
# [Device metadata](/zero-touch/guides/metadata).
# Corresponds to the JSON property `deviceMetadata`
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceMetadata]
attr_accessor :device_metadata

View File

@ -85,7 +85,7 @@ module Google
# by calling API methods or using their zero-touch enrollment portal. The API
# doesn't notify the customer that they have access.
# @param [String] parent
# Required. The parent resource ID in format `partners/[PARTNER_ID]` that
# Required. The parent resource ID in the format `partners/[PARTNER_ID]` that
# identifies the reseller.
# @param [Google::Apis::AndroiddeviceprovisioningV1::CreateCustomerRequest] create_customer_request_object
# @param [String] fields

View File

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

View File

@ -409,6 +409,41 @@ module Google
end
end
# A configuration variables resource contains the managed configuration settings
# ID to be applied to a single user, as well as the variable set that is
# attributed to the user. The variable set will be used to replace placeholders
# in the managed configuration settings.
class ConfigurationVariables
include Google::Apis::Core::Hashable
# Identifies what kind of resource this is. Value: the fixed string "
# androidenterprise#configurationVariables".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The ID of the managed configurations settings.
# Corresponds to the JSON property `mcmId`
# @return [String]
attr_accessor :mcm_id
# The variable set that is attributed to the user.
# Corresponds to the JSON property `variableSet`
# @return [Array<Google::Apis::AndroidenterpriseV1::VariableSet>]
attr_accessor :variable_set
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@kind = args[:kind] if args.key?(:kind)
@mcm_id = args[:mcm_id] if args.key?(:mcm_id)
@variable_set = args[:variable_set] if args.key?(:variable_set)
end
end
# A Devices 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
@ -737,7 +772,7 @@ module Google
# purchases the product in Google Play for the first time.
# Use the API to query group licenses. A Grouplicenses resource includes the
# total number of licenses purchased (paid apps only) and the total number of
# licenses currently in use. Iyn other words, the total number of Entitlements
# licenses currently in use. In other words, the total number of Entitlements
# that exist for the product.
# Only one group license object is created per product and group license objects
# are never deleted. If a product is unapproved, its group license remains. This
@ -1027,12 +1062,20 @@ module Google
end
end
# A managed configuration resource contains the set of managed properties that
# have been configured for an Android app. The app's developer would have
# defined configurable properties in the managed configurations schema.
# A managed configuration resource contains the set of managed properties
# defined by the app developer in the app's managed configurations schema, as
# well as any configuration variables defined for the user.
class ManagedConfiguration
include Google::Apis::Core::Hashable
# A configuration variables resource contains the managed configuration settings
# ID to be applied to a single user, as well as the variable set that is
# attributed to the user. The variable set will be used to replace placeholders
# in the managed configuration settings.
# Corresponds to the JSON property `configurationVariables`
# @return [Google::Apis::AndroidenterpriseV1::ConfigurationVariables]
attr_accessor :configuration_variables
# Identifies what kind of resource this is. Value: the fixed string "
# androidenterprise#managedConfiguration".
# Corresponds to the JSON property `kind`
@ -1056,6 +1099,7 @@ module Google
# Update properties of this object
def update!(**args)
@configuration_variables = args[:configuration_variables] if args.key?(:configuration_variables)
@kind = args[:kind] if args.key?(:kind)
@managed_property = args[:managed_property] if args.key?(:managed_property)
@product_id = args[:product_id] if args.key?(:product_id)
@ -1114,6 +1158,74 @@ module Google
end
end
# A managed configurations settings resource contains the set of managed
# properties that have been configured for an Android app to be applied to a set
# of users. The app's developer would have defined configurable properties in
# the managed configurations schema.
class ManagedConfigurationsSettings
include Google::Apis::Core::Hashable
# Identifies what kind of resource this is. Value: the fixed string "
# androidenterprise#managedConfigurationsSettings".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The set of managed properties for this configuration.
# Corresponds to the JSON property `managedProperty`
# @return [Array<Google::Apis::AndroidenterpriseV1::ManagedProperty>]
attr_accessor :managed_property
# The ID of the managed configurations settings.
# Corresponds to the JSON property `mcmId`
# @return [String]
attr_accessor :mcm_id
# The name of the managed configurations settings.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@kind = args[:kind] if args.key?(:kind)
@managed_property = args[:managed_property] if args.key?(:managed_property)
@mcm_id = args[:mcm_id] if args.key?(:mcm_id)
@name = args[:name] if args.key?(:name)
end
end
# The managed configurations settings for a product.
class ManagedConfigurationsSettingsListResponse
include Google::Apis::Core::Hashable
# Identifies what kind of resource this is. Value: the fixed string "
# androidenterprise#managedConfigurationsSettingsListResponse".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# A managed configurations settings for an app that may be assigned to a group
# of users in an enterprise.
# Corresponds to the JSON property `managedConfigurationsSettings`
# @return [Array<Google::Apis::AndroidenterpriseV1::ManagedConfigurationsSettings>]
attr_accessor :managed_configurations_settings
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@kind = args[:kind] if args.key?(:kind)
@managed_configurations_settings = args[:managed_configurations_settings] if args.key?(:managed_configurations_settings)
end
end
# A managed property of a managed configuration. The property must match one of
# the properties in the app restrictions schema of the product. Exactly one of
# the value fields must be populated, and it must match the property's type in
@ -1719,12 +1831,11 @@ module Google
# @return [String]
attr_accessor :product_set_behavior
# Other products that are part of the set, in addition to those specified in the
# productId array. The only difference between this field and the productId
# array is that it's possible to specify additional information about this
# product visibility, see ProductVisibility and its fields for more information.
# Specifying the same product ID both here and in the productId array is not
# allowed and it will result in an error.
# Additional list of product IDs making up the product set. Unlike the productID
# array, in this list It's possible to specify which tracks (alpha, beta,
# production) of a product are visible to the user. See ProductVisibility and
# its fields for more information. Specifying the same product ID both here and
# in the productId array is not allowed and it will result in an error.
# Corresponds to the JSON property `productVisibility`
# @return [Array<Google::Apis::AndroidenterpriseV1::ProductVisibility>]
attr_accessor :product_visibility
@ -1773,22 +1884,22 @@ module Google
class ProductVisibility
include Google::Apis::Core::Hashable
# The product ID that should be made visible to the user. This is required.
# The product ID to make visible to the user. Required for each item in the
# productVisibility list.
# Corresponds to the JSON property `productId`
# @return [String]
attr_accessor :product_id
# This allows to only grant visibility to the specified tracks of the app. For
# example, if an app has a prod version, a beta version and an alpha version and
# the enterprise has been granted visibility to both the alpha and beta tracks,
# if tracks is `"beta", "production"` the user will be able to install the app
# and they will get the beta version of the app. If there are no app versions in
# the specified track or if the enterprise wasn't granted visibility for the
# track, adding the "alpha" and "beta" values to the list of tracks will have no
# effect for now; however they will take effect once both conditions are met.
# Note that the enterprise itself needs to be granted access to the alpha and/or
# beta tracks, regardless of whether individual users or admins have access to
# those tracks.
# Grants visibility to the specified track(s) of the product to the user. The
# track available to the user is based on the following order of preference:
# alpha, beta, production. For example, if an app has a prod version, a beta
# version and an alpha version and the enterprise has been granted visibility to
# both the alpha and beta tracks, if tracks is `"beta", "production"` the user
# will be able to install the app and they will get the beta version of the app.
# If there are no app versions in the specified track adding the "alpha" and "
# beta" values to the list of tracks will have no effect. Note that the
# enterprise requires access to alpha and/or beta tracks before users can be
# granted visibility to apps in those tracks.
# The allowed sets are: `` (considered equivalent to `"production"`) `"
# production"` `"beta", "production"` `"alpha", "beta", "production"` The order
# of elements is not relevant. Any other set of tracks will be rejected with an
@ -2390,6 +2501,41 @@ module Google
@user = args[:user] if args.key?(:user)
end
end
# A variable set is a key-value pair of EMM-provided placeholders and its
# corresponding value, which is attributed to a user. For example, $FIRSTNAME
# could be a placeholder, and its value could be Alice. Placeholders should
# start with a '$' sign and should be alphanumeric only.
class VariableSet
include Google::Apis::Core::Hashable
# Identifies what kind of resource this is. Value: the fixed string "
# androidenterprise#variableSet".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The placeholder string; defined by EMM.
# Corresponds to the JSON property `placeholder`
# @return [String]
attr_accessor :placeholder
# The value of the placeholder, specific to the user.
# Corresponds to the JSON property `userValue`
# @return [String]
attr_accessor :user_value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@kind = args[:kind] if args.key?(:kind)
@placeholder = args[:placeholder] if args.key?(:placeholder)
@user_value = args[:user_value] if args.key?(:user_value)
end
end
end
end
end

View File

@ -94,6 +94,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ConfigurationVariables
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Device
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -208,6 +214,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ManagedConfigurationsSettings
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedConfigurationsSettingsListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManagedProperty
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -400,6 +418,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class VariableSet
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Administrator
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -507,6 +531,16 @@ module Google
end
end
class ConfigurationVariables
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
property :mcm_id, as: 'mcmId'
collection :variable_set, as: 'variableSet', class: Google::Apis::AndroidenterpriseV1::VariableSet, decorator: Google::Apis::AndroidenterpriseV1::VariableSet::Representation
end
end
class Device
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -660,6 +694,8 @@ module Google
class ManagedConfiguration
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :configuration_variables, as: 'configurationVariables', class: Google::Apis::AndroidenterpriseV1::ConfigurationVariables, decorator: Google::Apis::AndroidenterpriseV1::ConfigurationVariables::Representation
property :kind, as: 'kind'
collection :managed_property, as: 'managedProperty', class: Google::Apis::AndroidenterpriseV1::ManagedProperty, decorator: Google::Apis::AndroidenterpriseV1::ManagedProperty::Representation
@ -685,6 +721,26 @@ module Google
end
end
class ManagedConfigurationsSettings
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
collection :managed_property, as: 'managedProperty', class: Google::Apis::AndroidenterpriseV1::ManagedProperty, decorator: Google::Apis::AndroidenterpriseV1::ManagedProperty::Representation
property :mcm_id, as: 'mcmId'
property :name, as: 'name'
end
end
class ManagedConfigurationsSettingsListResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
collection :managed_configurations_settings, as: 'managedConfigurationsSettings', class: Google::Apis::AndroidenterpriseV1::ManagedConfigurationsSettings, decorator: Google::Apis::AndroidenterpriseV1::ManagedConfigurationsSettings::Representation
end
end
class ManagedProperty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1016,6 +1072,15 @@ module Google
end
end
class VariableSet
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
property :placeholder, as: 'placeholder'
property :user_value, as: 'userValue'
end
end
end
end
end

View File

@ -1848,8 +1848,12 @@ module Google
execute_or_queue_command(command, &block)
end
# Adds or updates a per-user managed configuration for an app for the specified
# user. This method supports patch semantics.
# Adds or updates the managed configuration settings for an app for the
# specified user. If you support the Managed configurations iframe, you can
# apply managed configurations to a user by specifying an mcmId and its
# associated configuration variables (if any) in the request. Alternatively, all
# EMMs can apply managed configurations by passing a list of managed properties.
# This method supports patch semantics.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [String] user_id
@ -1894,8 +1898,11 @@ module Google
execute_or_queue_command(command, &block)
end
# Adds or updates a per-user managed configuration for an app for the specified
# user.
# Adds or updates the managed configuration settings for an app for the
# specified user. If you support the Managed configurations iframe, you can
# apply managed configurations to a user by specifying an mcmId and its
# associated configuration variables (if any) in the request. Alternatively, all
# EMMs can apply managed configurations by passing a list of managed properties.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [String] user_id
@ -1940,6 +1947,45 @@ module Google
execute_or_queue_command(command, &block)
end
# Lists all the managed configurations settings for the specified app. Only the
# ID and the name is set.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [String] product_id
# The ID of the product for which the managed configurations settings applies to.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available 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::ManagedConfigurationsSettingsListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidenterpriseV1::ManagedConfigurationsSettingsListResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_managedconfigurationssettings(enterprise_id, product_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'enterprises/{enterpriseId}/products/{productId}/managedConfigurationsSettings', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::ManagedConfigurationsSettingsListResponse::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::ManagedConfigurationsSettingsListResponse
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['productId'] = product_id unless product_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 details of an Android app permission for display to an enterprise
# admin.
# @param [String] permission_id
@ -3210,6 +3256,45 @@ module Google
execute_or_queue_command(command, &block)
end
# Revokes access to all devices currently provisioned to the user. The user will
# no longer be able to use the managed Play store on any of their managed
# devices.
# This call only works with EMM-managed accounts.
# @param [String] enterprise_id
# The ID of the enterprise.
# @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 revoke_user_device_access(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, 'enterprises/{enterpriseId}/users/{userId}/deviceAccess', options)
command.params['enterpriseId'] = enterprise_id unless enterprise_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
# Revokes a previously generated token (activation code) for the user.
# @param [String] enterprise_id
# The ID of the enterprise.

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/android/management
module AndroidmanagementV1
VERSION = 'V1'
REVISION = '20170918'
REVISION = '20171030'
# Manage Android devices and apps for your customers
AUTH_ANDROIDMANAGEMENT = 'https://www.googleapis.com/auth/androidmanagement'

View File

@ -388,11 +388,11 @@ module Google
alias_method :policy_compliant?, :policy_compliant
# The name of the policy that is intended to be applied to the device. If empty,
# the policy with id default is applied. This field may be modified by an update
# request. The name of the policy is in the form enterprises/`enterpriseId`/
# policies/`policyId`. It is also permissible to only specify the policyId when
# updating this field as long as the policyId contains no slashes since the rest
# of the policy name can be inferred from context.
# the policy_name for the user that owns this device is applied. This field may
# be modified by an update request. The name of the policy is in the form
# enterprises/`enterpriseId`/policies/`policyId`. It is also permissible to only
# specify the policyId when updating this field as long as the policyId contains
# no slashes since the rest of the policy name can be inferred from context.
# Corresponds to the JSON property `policyName`
# @return [String]
attr_accessor :policy_name
@ -425,9 +425,8 @@ module Google
# @return [String]
attr_accessor :state
# The resource name of the user of the device in the form enterprises/`
# enterpriseId`/users/`userId`. This is the name of the device account
# automatically created for this device.
# The resource name of the user that owns this device in the form enterprises/`
# enterpriseId`/users/`userId`.
# Corresponds to the JSON property `userName`
# @return [String]
attr_accessor :user_name
@ -575,9 +574,11 @@ module Google
# The name of the policy that will be initially applied to the enrolled device
# in the form enterprises/`enterpriseId`/policies/`policyId`. If not specified,
# the policy with id default is applied. It is permissible to only specify the
# policyId when updating this field as long as the policyId contains no slashes
# since the rest of the policy name can be inferred from context.
# the policy_name for the user that owns the device is applied. If user_name
# also isn't specified, the policy defaults to enterprises/`enterpriseId`/
# policies/default. It is permissible to only specify the policyId when updating
# this field as long as the policyId contains no slashes since the rest of the
# policy name can be inferred from context.
# Corresponds to the JSON property `policyName`
# @return [String]
attr_accessor :policy_name

View File

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

View File

@ -876,157 +876,6 @@ module Google
end
end
#
class InAppProductsBatchRequest
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `entrys`
# @return [Array<Google::Apis::AndroidpublisherV2::InAppProductsBatchRequestEntry>]
attr_accessor :entrys
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@entrys = args[:entrys] if args.key?(:entrys)
end
end
#
class InAppProductsBatchRequestEntry
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `batchId`
# @return [Fixnum]
attr_accessor :batch_id
#
# Corresponds to the JSON property `inappproductsinsertrequest`
# @return [Google::Apis::AndroidpublisherV2::InsertInAppProductsRequest]
attr_accessor :inappproductsinsertrequest
#
# Corresponds to the JSON property `inappproductsupdaterequest`
# @return [Google::Apis::AndroidpublisherV2::UpdateInAppProductsRequest]
attr_accessor :inappproductsupdaterequest
#
# Corresponds to the JSON property `methodName`
# @return [String]
attr_accessor :method_name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@batch_id = args[:batch_id] if args.key?(:batch_id)
@inappproductsinsertrequest = args[:inappproductsinsertrequest] if args.key?(:inappproductsinsertrequest)
@inappproductsupdaterequest = args[:inappproductsupdaterequest] if args.key?(:inappproductsupdaterequest)
@method_name = args[:method_name] if args.key?(:method_name)
end
end
#
class InAppProductsBatchResponse
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `entrys`
# @return [Array<Google::Apis::AndroidpublisherV2::InAppProductsBatchResponseEntry>]
attr_accessor :entrys
# Identifies what kind of resource this is. Value: the fixed string "
# androidpublisher#inappproductsBatchResponse".
# 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)
@entrys = args[:entrys] if args.key?(:entrys)
@kind = args[:kind] if args.key?(:kind)
end
end
#
class InAppProductsBatchResponseEntry
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `batchId`
# @return [Fixnum]
attr_accessor :batch_id
#
# Corresponds to the JSON property `inappproductsinsertresponse`
# @return [Google::Apis::AndroidpublisherV2::InsertInAppProductsResponse]
attr_accessor :inappproductsinsertresponse
#
# Corresponds to the JSON property `inappproductsupdateresponse`
# @return [Google::Apis::AndroidpublisherV2::UpdateInAppProductsResponse]
attr_accessor :inappproductsupdateresponse
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@batch_id = args[:batch_id] if args.key?(:batch_id)
@inappproductsinsertresponse = args[:inappproductsinsertresponse] if args.key?(:inappproductsinsertresponse)
@inappproductsupdateresponse = args[:inappproductsupdateresponse] if args.key?(:inappproductsupdateresponse)
end
end
#
class InsertInAppProductsRequest
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `inappproduct`
# @return [Google::Apis::AndroidpublisherV2::InAppProduct]
attr_accessor :inappproduct
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@inappproduct = args[:inappproduct] if args.key?(:inappproduct)
end
end
#
class InsertInAppProductsResponse
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `inappproduct`
# @return [Google::Apis::AndroidpublisherV2::InAppProduct]
attr_accessor :inappproduct
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@inappproduct = args[:inappproduct] if args.key?(:inappproduct)
end
end
#
class ListInAppProductsResponse
include Google::Apis::Core::Hashable
@ -1065,44 +914,6 @@ module Google
end
end
#
class UpdateInAppProductsRequest
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `inappproduct`
# @return [Google::Apis::AndroidpublisherV2::InAppProduct]
attr_accessor :inappproduct
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@inappproduct = args[:inappproduct] if args.key?(:inappproduct)
end
end
#
class UpdateInAppProductsResponse
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `inappproduct`
# @return [Google::Apis::AndroidpublisherV2::InAppProduct]
attr_accessor :inappproduct
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@inappproduct = args[:inappproduct] if args.key?(:inappproduct)
end
end
#
class Listing
include Google::Apis::Core::Hashable

View File

@ -178,60 +178,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class InAppProductsBatchRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InAppProductsBatchRequestEntry
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InAppProductsBatchResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InAppProductsBatchResponseEntry
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InsertInAppProductsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InsertInAppProductsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListInAppProductsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UpdateInAppProductsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UpdateInAppProductsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Listing
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -640,62 +592,6 @@ module Google
end
end
class InAppProductsBatchRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :entrys, as: 'entrys', class: Google::Apis::AndroidpublisherV2::InAppProductsBatchRequestEntry, decorator: Google::Apis::AndroidpublisherV2::InAppProductsBatchRequestEntry::Representation
end
end
class InAppProductsBatchRequestEntry
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :batch_id, as: 'batchId'
property :inappproductsinsertrequest, as: 'inappproductsinsertrequest', class: Google::Apis::AndroidpublisherV2::InsertInAppProductsRequest, decorator: Google::Apis::AndroidpublisherV2::InsertInAppProductsRequest::Representation
property :inappproductsupdaterequest, as: 'inappproductsupdaterequest', class: Google::Apis::AndroidpublisherV2::UpdateInAppProductsRequest, decorator: Google::Apis::AndroidpublisherV2::UpdateInAppProductsRequest::Representation
property :method_name, as: 'methodName'
end
end
class InAppProductsBatchResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :entrys, as: 'entrys', class: Google::Apis::AndroidpublisherV2::InAppProductsBatchResponseEntry, decorator: Google::Apis::AndroidpublisherV2::InAppProductsBatchResponseEntry::Representation
property :kind, as: 'kind'
end
end
class InAppProductsBatchResponseEntry
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :batch_id, as: 'batchId'
property :inappproductsinsertresponse, as: 'inappproductsinsertresponse', class: Google::Apis::AndroidpublisherV2::InsertInAppProductsResponse, decorator: Google::Apis::AndroidpublisherV2::InsertInAppProductsResponse::Representation
property :inappproductsupdateresponse, as: 'inappproductsupdateresponse', class: Google::Apis::AndroidpublisherV2::UpdateInAppProductsResponse, decorator: Google::Apis::AndroidpublisherV2::UpdateInAppProductsResponse::Representation
end
end
class InsertInAppProductsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :inappproduct, as: 'inappproduct', class: Google::Apis::AndroidpublisherV2::InAppProduct, decorator: Google::Apis::AndroidpublisherV2::InAppProduct::Representation
end
end
class InsertInAppProductsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :inappproduct, as: 'inappproduct', class: Google::Apis::AndroidpublisherV2::InAppProduct, decorator: Google::Apis::AndroidpublisherV2::InAppProduct::Representation
end
end
class ListInAppProductsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -709,22 +605,6 @@ module Google
end
end
class UpdateInAppProductsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :inappproduct, as: 'inappproduct', class: Google::Apis::AndroidpublisherV2::InAppProduct, decorator: Google::Apis::AndroidpublisherV2::InAppProduct::Representation
end
end
class UpdateInAppProductsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :inappproduct, as: 'inappproduct', class: Google::Apis::AndroidpublisherV2::InAppProduct, decorator: Google::Apis::AndroidpublisherV2::InAppProduct::Representation
end
end
class Listing
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -1839,41 +1839,6 @@ module Google
execute_or_queue_command(command, &block)
end
#
# @param [Google::Apis::AndroidpublisherV2::InAppProductsBatchRequest] in_app_products_batch_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::AndroidpublisherV2::InAppProductsBatchResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidpublisherV2::InAppProductsBatchResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_update_in_app_products(in_app_products_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'inappproducts/batch', options)
command.request_representation = Google::Apis::AndroidpublisherV2::InAppProductsBatchRequest::Representation
command.request_object = in_app_products_batch_request_object
command.response_representation = Google::Apis::AndroidpublisherV2::InAppProductsBatchResponse::Representation
command.response_class = Google::Apis::AndroidpublisherV2::InAppProductsBatchResponse
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 an in-app product for an app.
# @param [String] package_name
# Unique identifier for the Android app with the in-app product; for example, "

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/appengine/docs/admin-api/
module AppengineV1
VERSION = 'V1'
REVISION = '20170926'
REVISION = '20171109'
# View and manage your applications deployed on Google App Engine
AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin'

View File

@ -87,7 +87,7 @@ module Google
end
# An Application resource contains the top-level configuration of an App Engine
# application. Next tag: 20
# application.
class Application
include Google::Apis::Core::Hashable
@ -370,6 +370,11 @@ module Google
# @return [Google::Apis::AppengineV1::RequestUtilization]
attr_accessor :request_utilization
# Scheduler settings for standard environment.
# Corresponds to the JSON property `standardSchedulerSettings`
# @return [Google::Apis::AppengineV1::StandardSchedulerSettings]
attr_accessor :standard_scheduler_settings
def initialize(**args)
update!(**args)
end
@ -388,6 +393,7 @@ module Google
@min_total_instances = args[:min_total_instances] if args.key?(:min_total_instances)
@network_utilization = args[:network_utilization] if args.key?(:network_utilization)
@request_utilization = args[:request_utilization] if args.key?(:request_utilization)
@standard_scheduler_settings = args[:standard_scheduler_settings] if args.key?(:standard_scheduler_settings)
end
end
@ -1713,51 +1719,6 @@ module Google
end
end
# Metadata for the given google.longrunning.Operation.
class OperationMetadataExperimental
include Google::Apis::Core::Hashable
# Time that this operation completed.@OutputOnly
# Corresponds to the JSON property `endTime`
# @return [String]
attr_accessor :end_time
# Time that this operation was created.@OutputOnly
# Corresponds to the JSON property `insertTime`
# @return [String]
attr_accessor :insert_time
# API method that initiated this operation. Example: google.appengine.
# experimental.CustomDomains.CreateCustomDomain.@OutputOnly
# Corresponds to the JSON property `method`
# @return [String]
attr_accessor :method_prop
# Name of the resource that this operation is acting on. Example: apps/myapp/
# customDomains/example.com.@OutputOnly
# Corresponds to the JSON property `target`
# @return [String]
attr_accessor :target
# User who requested this operation.@OutputOnly
# Corresponds to the JSON property `user`
# @return [String]
attr_accessor :user
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@end_time = args[:end_time] if args.key?(:end_time)
@insert_time = args[:insert_time] if args.key?(:insert_time)
@method_prop = args[:method_prop] if args.key?(:method_prop)
@target = args[:target] if args.key?(:target)
@user = args[:user] if args.key?(:user)
end
end
# Metadata for the given google.longrunning.Operation.
class OperationMetadataV1
include Google::Apis::Core::Hashable
@ -2222,6 +2183,45 @@ module Google
end
end
# Scheduler settings for standard environment.
class StandardSchedulerSettings
include Google::Apis::Core::Hashable
# Maximum number of instances for an app version. Set to a non-positive value (0
# by convention) to disable max_instances configuration.
# Corresponds to the JSON property `maxInstances`
# @return [Fixnum]
attr_accessor :max_instances
# Minimum number of instances for an app version. Set to a non-positive value (0
# by convention) to disable min_instances configuration.
# Corresponds to the JSON property `minInstances`
# @return [Fixnum]
attr_accessor :min_instances
# Target CPU utilization ratio to maintain when scaling.
# Corresponds to the JSON property `targetCpuUtilization`
# @return [Float]
attr_accessor :target_cpu_utilization
# Target throughput utilization ratio to maintain when scaling
# Corresponds to the JSON property `targetThroughputUtilization`
# @return [Float]
attr_accessor :target_throughput_utilization
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@max_instances = args[:max_instances] if args.key?(:max_instances)
@min_instances = args[:min_instances] if args.key?(:min_instances)
@target_cpu_utilization = args[:target_cpu_utilization] if args.key?(:target_cpu_utilization)
@target_throughput_utilization = args[:target_throughput_utilization] if args.key?(:target_throughput_utilization)
end
end
# Files served directly to the user for a given URL, such as images, CSS
# stylesheets, or JavaScript source files. Static file handlers describe which
# files in the application directory are static files, and which URLs serve them.

View File

@ -280,12 +280,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class OperationMetadataExperimental
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OperationMetadataV1
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -358,6 +352,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class StandardSchedulerSettings
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class StaticFilesHandler
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -488,6 +488,8 @@ module Google
property :request_utilization, as: 'requestUtilization', class: Google::Apis::AppengineV1::RequestUtilization, decorator: Google::Apis::AppengineV1::RequestUtilization::Representation
property :standard_scheduler_settings, as: 'standardSchedulerSettings', class: Google::Apis::AppengineV1::StandardSchedulerSettings, decorator: Google::Apis::AppengineV1::StandardSchedulerSettings::Representation
end
end
@ -844,17 +846,6 @@ module Google
end
end
class OperationMetadataExperimental
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :end_time, as: 'endTime'
property :insert_time, as: 'insertTime'
property :method_prop, as: 'method'
property :target, as: 'target'
property :user, as: 'user'
end
end
class OperationMetadataV1
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -976,6 +967,16 @@ module Google
end
end
class StandardSchedulerSettings
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :max_instances, as: 'maxInstances'
property :min_instances, as: 'minInstances'
property :target_cpu_utilization, as: 'targetCpuUtilization'
property :target_throughput_utilization, as: 'targetThroughputUtilization'
end
end
class StaticFilesHandler
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -420,6 +420,9 @@ module Google
# @param [String] apps_id
# Part of `parent`. Name of the parent Application resource. Example: apps/myapp.
# @param [Google::Apis::AppengineV1::DomainMapping] domain_mapping_object
# @param [String] override_strategy
# Whether the domain creation should override any existing mappings for this
# domain. By default, overrides are rejected.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -437,13 +440,14 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_app_domain_mapping(apps_id, domain_mapping_object = nil, fields: nil, quota_user: nil, options: nil, &block)
def create_app_domain_mapping(apps_id, domain_mapping_object = nil, override_strategy: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/apps/{appsId}/domainMappings', options)
command.request_representation = Google::Apis::AppengineV1::DomainMapping::Representation
command.request_object = domain_mapping_object
command.response_representation = Google::Apis::AppengineV1::Operation::Representation
command.response_class = Google::Apis::AppengineV1::Operation
command.params['appsId'] = apps_id unless apps_id.nil?
command.query['overrideStrategy'] = override_strategy unless override_strategy.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/appengine/docs/admin-api/
module AppengineV1alpha
VERSION = 'V1alpha'
REVISION = '20170714'
REVISION = '20171026'
# View and manage your applications deployed on Google App Engine
AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin'

View File

@ -586,51 +586,6 @@ module Google
end
end
# Metadata for the given google.longrunning.Operation.
class OperationMetadataExperimental
include Google::Apis::Core::Hashable
# Time that this operation completed.@OutputOnly
# Corresponds to the JSON property `endTime`
# @return [String]
attr_accessor :end_time
# Time that this operation was created.@OutputOnly
# Corresponds to the JSON property `insertTime`
# @return [String]
attr_accessor :insert_time
# API method that initiated this operation. Example: google.appengine.
# experimental.CustomDomains.CreateCustomDomain.@OutputOnly
# Corresponds to the JSON property `method`
# @return [String]
attr_accessor :method_prop
# Name of the resource that this operation is acting on. Example: apps/myapp/
# customDomains/example.com.@OutputOnly
# Corresponds to the JSON property `target`
# @return [String]
attr_accessor :target
# User who requested this operation.@OutputOnly
# Corresponds to the JSON property `user`
# @return [String]
attr_accessor :user
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@end_time = args[:end_time] if args.key?(:end_time)
@insert_time = args[:insert_time] if args.key?(:insert_time)
@method_prop = args[:method_prop] if args.key?(:method_prop)
@target = args[:target] if args.key?(:target)
@user = args[:user] if args.key?(:user)
end
end
# Metadata for the given google.longrunning.Operation.
class OperationMetadataV1
include Google::Apis::Core::Hashable

View File

@ -112,12 +112,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class OperationMetadataExperimental
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OperationMetadataV1
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -306,17 +300,6 @@ module Google
end
end
class OperationMetadataExperimental
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :end_time, as: 'endTime'
property :insert_time, as: 'insertTime'
property :method_prop, as: 'method'
property :target, as: 'target'
property :user, as: 'user'
end
end
class OperationMetadataV1
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -282,6 +282,9 @@ module Google
# certificate ID must be manaually set in the DomainMapping resource to
# configure SSL for this domain. If false, a managed certificate will be
# provisioned and a certificate ID will be automatically populated.
# @param [String] override_strategy
# Whether the domain creation should override any existing mappings for this
# domain. By default, overrides are rejected.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -299,7 +302,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 create_app_domain_mapping(apps_id, domain_mapping_object = nil, no_managed_certificate: nil, fields: nil, quota_user: nil, options: nil, &block)
def create_app_domain_mapping(apps_id, domain_mapping_object = nil, no_managed_certificate: nil, override_strategy: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1alpha/apps/{appsId}/domainMappings', options)
command.request_representation = Google::Apis::AppengineV1alpha::DomainMapping::Representation
command.request_object = domain_mapping_object
@ -307,6 +310,7 @@ module Google
command.response_class = Google::Apis::AppengineV1alpha::Operation
command.params['appsId'] = apps_id unless apps_id.nil?
command.query['noManagedCertificate'] = no_managed_certificate unless no_managed_certificate.nil?
command.query['overrideStrategy'] = override_strategy unless override_strategy.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/appengine/docs/admin-api/
module AppengineV1beta
VERSION = 'V1beta'
REVISION = '20170901'
REVISION = '20171109'
# View and manage your applications deployed on Google App Engine
AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin'

View File

@ -87,7 +87,7 @@ module Google
end
# An Application resource contains the top-level configuration of an App Engine
# application. Next tag: 20
# application.
class Application
include Google::Apis::Core::Hashable
@ -737,7 +737,10 @@ module Google
include Google::Apis::Core::Hashable
# Endpoints service configuration id as specified by the Service Management API.
# For example "2016-09-19r1"
# For example "2016-09-19r1"By default, the Endpoints service configuration id
# is fixed and config_id must be specified. To keep the Endpoints service
# configuration id updated with each rollout, specify RolloutStrategy.MANAGED
# and omit config_id.
# Corresponds to the JSON property `configId`
# @return [String]
attr_accessor :config_id
@ -805,6 +808,13 @@ module Google
attr_accessor :split_health_checks
alias_method :split_health_checks?, :split_health_checks
# If true, use Container-Optimized OS (https://cloud.google.com/container-
# optimized-os/) base image for VMs, rather than a base Debian image.
# Corresponds to the JSON property `useContainerOptimizedOs`
# @return [Boolean]
attr_accessor :use_container_optimized_os
alias_method :use_container_optimized_os?, :use_container_optimized_os
def initialize(**args)
update!(**args)
end
@ -812,6 +822,7 @@ module Google
# Update properties of this object
def update!(**args)
@split_health_checks = args[:split_health_checks] if args.key?(:split_health_checks)
@use_container_optimized_os = args[:use_container_optimized_os] if args.key?(:use_container_optimized_os)
end
end
@ -1779,51 +1790,6 @@ module Google
end
end
# Metadata for the given google.longrunning.Operation.
class OperationMetadataExperimental
include Google::Apis::Core::Hashable
# Time that this operation completed.@OutputOnly
# Corresponds to the JSON property `endTime`
# @return [String]
attr_accessor :end_time
# Time that this operation was created.@OutputOnly
# Corresponds to the JSON property `insertTime`
# @return [String]
attr_accessor :insert_time
# API method that initiated this operation. Example: google.appengine.
# experimental.CustomDomains.CreateCustomDomain.@OutputOnly
# Corresponds to the JSON property `method`
# @return [String]
attr_accessor :method_prop
# Name of the resource that this operation is acting on. Example: apps/myapp/
# customDomains/example.com.@OutputOnly
# Corresponds to the JSON property `target`
# @return [String]
attr_accessor :target
# User who requested this operation.@OutputOnly
# Corresponds to the JSON property `user`
# @return [String]
attr_accessor :user
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@end_time = args[:end_time] if args.key?(:end_time)
@insert_time = args[:insert_time] if args.key?(:insert_time)
@method_prop = args[:method_prop] if args.key?(:method_prop)
@target = args[:target] if args.key?(:target)
@user = args[:user] if args.key?(:user)
end
end
# Metadata for the given google.longrunning.Operation.
class OperationMetadataV1
include Google::Apis::Core::Hashable

View File

@ -292,12 +292,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class OperationMetadataExperimental
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OperationMetadataV1
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -637,6 +631,7 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :split_health_checks, as: 'splitHealthChecks'
property :use_container_optimized_os, as: 'useContainerOptimizedOs'
end
end
@ -883,17 +878,6 @@ module Google
end
end
class OperationMetadataExperimental
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :end_time, as: 'endTime'
property :insert_time, as: 'insertTime'
property :method_prop, as: 'method'
property :target, as: 'target'
property :user, as: 'user'
end
end
class OperationMetadataV1
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -420,6 +420,9 @@ module Google
# @param [String] apps_id
# Part of `parent`. Name of the parent Application resource. Example: apps/myapp.
# @param [Google::Apis::AppengineV1beta::DomainMapping] domain_mapping_object
# @param [String] override_strategy
# Whether the domain creation should override any existing mappings for this
# domain. By default, overrides are rejected.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -437,13 +440,14 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_app_domain_mapping(apps_id, domain_mapping_object = nil, fields: nil, quota_user: nil, options: nil, &block)
def create_app_domain_mapping(apps_id, domain_mapping_object = nil, override_strategy: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta/apps/{appsId}/domainMappings', options)
command.request_representation = Google::Apis::AppengineV1beta::DomainMapping::Representation
command.request_object = domain_mapping_object
command.response_representation = Google::Apis::AppengineV1beta::Operation::Representation
command.response_class = Google::Apis::AppengineV1beta::Operation
command.params['appsId'] = apps_id unless apps_id.nil?
command.query['overrideStrategy'] = override_strategy unless override_strategy.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/appengine/docs/admin-api/
module AppengineV1beta4
VERSION = 'V1beta4'
REVISION = '20170714'
REVISION = '20171026'
# View and manage your applications deployed on Google App Engine
AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin'

View File

@ -437,6 +437,40 @@ module Google
end
end
# Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The
# Endpoints API Service provides tooling for serving Open API and gRPC endpoints
# via an NGINX proxy.The fields here refer to the name and configuration id of a
# "service" resource in the Service Management API (https://cloud.google.com/
# service-management/overview).
class EndpointsApiService
include Google::Apis::Core::Hashable
# Endpoints service configuration id as specified by the Service Management API.
# For example "2016-09-19r1"By default, the Endpoints service configuration id
# is fixed and config_id must be specified. To keep the Endpoints service
# configuration id updated with each rollout, specify RolloutStrategy.MANAGED
# and omit config_id.
# Corresponds to the JSON property `configId`
# @return [String]
attr_accessor :config_id
# Endpoints service name which is the name of the "service" resource in the
# Service Management API. For example "myapi.endpoints.myproject.cloud.goog"
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@config_id = args[:config_id] if args.key?(:config_id)
@name = args[:name] if args.key?(:name)
end
end
# Custom static error page to be served when an error occurs.
class ErrorHandler
include Google::Apis::Core::Hashable
@ -1213,51 +1247,6 @@ module Google
end
end
# Metadata for the given google.longrunning.Operation.
class OperationMetadataExperimental
include Google::Apis::Core::Hashable
# Time that this operation completed.@OutputOnly
# Corresponds to the JSON property `endTime`
# @return [String]
attr_accessor :end_time
# Time that this operation was created.@OutputOnly
# Corresponds to the JSON property `insertTime`
# @return [String]
attr_accessor :insert_time
# API method that initiated this operation. Example: google.appengine.
# experimental.CustomDomains.CreateCustomDomain.@OutputOnly
# Corresponds to the JSON property `method`
# @return [String]
attr_accessor :method_prop
# Name of the resource that this operation is acting on. Example: apps/myapp/
# customDomains/example.com.@OutputOnly
# Corresponds to the JSON property `target`
# @return [String]
attr_accessor :target
# User who requested this operation.@OutputOnly
# Corresponds to the JSON property `user`
# @return [String]
attr_accessor :user
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@end_time = args[:end_time] if args.key?(:end_time)
@insert_time = args[:insert_time] if args.key?(:insert_time)
@method_prop = args[:method_prop] if args.key?(:method_prop)
@target = args[:target] if args.key?(:target)
@user = args[:user] if args.key?(:user)
end
end
# Metadata for the given google.longrunning.Operation.
class OperationMetadataV1
include Google::Apis::Core::Hashable
@ -1982,6 +1971,15 @@ module Google
# @return [Google::Apis::AppengineV1beta4::Deployment]
attr_accessor :deployment
# Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The
# Endpoints API Service provides tooling for serving Open API and gRPC endpoints
# via an NGINX proxy.The fields here refer to the name and configuration id of a
# "service" resource in the Service Management API (https://cloud.google.com/
# service-management/overview).
# Corresponds to the JSON property `endpointsApiService`
# @return [Google::Apis::AppengineV1beta4::EndpointsApiService]
attr_accessor :endpoints_api_service
# App Engine execution environment to use for this version.Defaults to 1.
# Corresponds to the JSON property `env`
# @return [String]
@ -2113,6 +2111,7 @@ module Google
@default_expiration = args[:default_expiration] if args.key?(:default_expiration)
@deployer = args[:deployer] if args.key?(:deployer)
@deployment = args[:deployment] if args.key?(:deployment)
@endpoints_api_service = args[:endpoints_api_service] if args.key?(:endpoints_api_service)
@env = args[:env] if args.key?(:env)
@env_variables = args[:env_variables] if args.key?(:env_variables)
@error_handlers = args[:error_handlers] if args.key?(:error_handlers)

View File

@ -82,6 +82,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 ErrorHandler
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -196,12 +202,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class OperationMetadataExperimental
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OperationMetadataV1
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -408,6 +408,14 @@ module Google
end
end
class EndpointsApiService
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :config_id, as: 'configId'
property :name, as: 'name'
end
end
class ErrorHandler
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -602,17 +610,6 @@ module Google
end
end
class OperationMetadataExperimental
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :end_time, as: 'endTime'
property :insert_time, as: 'insertTime'
property :method_prop, as: 'method'
property :target, as: 'target'
property :user, as: 'user'
end
end
class OperationMetadataV1
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -782,6 +779,8 @@ module Google
property :deployer, as: 'deployer'
property :deployment, as: 'deployment', class: Google::Apis::AppengineV1beta4::Deployment, decorator: Google::Apis::AppengineV1beta4::Deployment::Representation
property :endpoints_api_service, as: 'endpointsApiService', class: Google::Apis::AppengineV1beta4::EndpointsApiService, decorator: Google::Apis::AppengineV1beta4::EndpointsApiService::Representation
property :env, as: 'env'
hash :env_variables, as: 'envVariables'
collection :error_handlers, as: 'errorHandlers', class: Google::Apis::AppengineV1beta4::ErrorHandler, decorator: Google::Apis::AppengineV1beta4::ErrorHandler::Representation

View File

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

View File

@ -446,7 +446,10 @@ module Google
include Google::Apis::Core::Hashable
# Endpoints service configuration id as specified by the Service Management API.
# For example "2016-09-19r1"
# For example "2016-09-19r1"By default, the Endpoints service configuration id
# is fixed and config_id must be specified. To keep the Endpoints service
# configuration id updated with each rollout, specify RolloutStrategy.MANAGED
# and omit config_id.
# Corresponds to the JSON property `configId`
# @return [String]
attr_accessor :config_id
@ -1224,51 +1227,6 @@ module Google
end
end
# Metadata for the given google.longrunning.Operation.
class OperationMetadataExperimental
include Google::Apis::Core::Hashable
# Time that this operation completed.@OutputOnly
# Corresponds to the JSON property `endTime`
# @return [String]
attr_accessor :end_time
# Time that this operation was created.@OutputOnly
# Corresponds to the JSON property `insertTime`
# @return [String]
attr_accessor :insert_time
# API method that initiated this operation. Example: google.appengine.
# experimental.CustomDomains.CreateCustomDomain.@OutputOnly
# Corresponds to the JSON property `method`
# @return [String]
attr_accessor :method_prop
# Name of the resource that this operation is acting on. Example: apps/myapp/
# customDomains/example.com.@OutputOnly
# Corresponds to the JSON property `target`
# @return [String]
attr_accessor :target
# User who requested this operation.@OutputOnly
# Corresponds to the JSON property `user`
# @return [String]
attr_accessor :user
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@end_time = args[:end_time] if args.key?(:end_time)
@insert_time = args[:insert_time] if args.key?(:insert_time)
@method_prop = args[:method_prop] if args.key?(:method_prop)
@target = args[:target] if args.key?(:target)
@user = args[:user] if args.key?(:user)
end
end
# Metadata for the given google.longrunning.Operation.
class OperationMetadataV1
include Google::Apis::Core::Hashable

View File

@ -196,12 +196,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class OperationMetadataExperimental
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OperationMetadataV1
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -601,17 +595,6 @@ module Google
end
end
class OperationMetadataExperimental
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :end_time, as: 'endTime'
property :insert_time, as: 'insertTime'
property :method_prop, as: 'method'
property :target, as: 'target'
property :user, as: 'user'
end
end
class OperationMetadataV1
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

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

View File

@ -1403,15 +1403,15 @@ module Google
# @return [String]
attr_accessor :schema_inline_format
# [Experimental] Allows the schema of the desitination table to be updated as a
# side effect of the load job if a schema is autodetected or supplied in the job
# configuration. Schema update options are supported in two cases: when
# writeDisposition is WRITE_APPEND; when writeDisposition is WRITE_TRUNCATE and
# the destination table is a partition of a table, specified by partition
# decorators. For normal tables, WRITE_TRUNCATE will always overwrite the schema.
# One or more of the following values are specified: ALLOW_FIELD_ADDITION:
# allow adding a nullable field to the schema. ALLOW_FIELD_RELAXATION: allow
# relaxing a required field in the original schema to nullable.
# Allows the schema of the destination table to be updated as a side effect of
# the load job if a schema is autodetected or supplied in the job configuration.
# Schema update options are supported in two cases: when writeDisposition is
# WRITE_APPEND; when writeDisposition is WRITE_TRUNCATE and the destination
# table is a partition of a table, specified by partition decorators. For normal
# tables, WRITE_TRUNCATE will always overwrite the schema. One or more of the
# following values are specified: ALLOW_FIELD_ADDITION: allow adding a nullable
# field to the schema. ALLOW_FIELD_RELAXATION: allow relaxing a required field
# in the original schema to nullable.
# Corresponds to the JSON property `schemaUpdateOptions`
# @return [Array<String>]
attr_accessor :schema_update_options
@ -1442,8 +1442,7 @@ module Google
# @return [Array<String>]
attr_accessor :source_uris
# [Experimental] If specified, configures time-based partitioning for the
# destination table.
# If specified, configures time-based partitioning for the destination table.
# Corresponds to the JSON property `timePartitioning`
# @return [Google::Apis::BigqueryV2::TimePartitioning]
attr_accessor :time_partitioning
@ -1585,15 +1584,14 @@ module Google
# @return [Array<Google::Apis::BigqueryV2::QueryParameter>]
attr_accessor :query_parameters
# [Experimental] Allows the schema of the destination table to be updated as a
# side effect of the query job. Schema update options are supported in two cases:
# when writeDisposition is WRITE_APPEND; when writeDisposition is
# WRITE_TRUNCATE and the destination table is a partition of a table, specified
# by partition decorators. For normal tables, WRITE_TRUNCATE will always
# overwrite the schema. One or more of the following values are specified:
# ALLOW_FIELD_ADDITION: allow adding a nullable field to the schema.
# ALLOW_FIELD_RELAXATION: allow relaxing a required field in the original schema
# to nullable.
# Allows the schema of the destination table to be updated as a side effect of
# the query job. Schema update options are supported in two cases: when
# writeDisposition is WRITE_APPEND; when writeDisposition is WRITE_TRUNCATE and
# the destination table is a partition of a table, specified by partition
# decorators. For normal tables, WRITE_TRUNCATE will always overwrite the schema.
# One or more of the following values are specified: ALLOW_FIELD_ADDITION:
# allow adding a nullable field to the schema. ALLOW_FIELD_RELAXATION: allow
# relaxing a required field in the original schema to nullable.
# Corresponds to the JSON property `schemaUpdateOptions`
# @return [Array<String>]
attr_accessor :schema_update_options
@ -1606,8 +1604,7 @@ module Google
# @return [Hash<String,Google::Apis::BigqueryV2::ExternalDataConfiguration>]
attr_accessor :table_definitions
# [Experimental] If specified, configures time-based partitioning for the
# destination table.
# If specified, configures time-based partitioning for the destination table.
# Corresponds to the JSON property `timePartitioning`
# @return [Google::Apis::BigqueryV2::TimePartitioning]
attr_accessor :time_partitioning
@ -1947,6 +1944,24 @@ module Google
attr_accessor :cache_hit
alias_method :cache_hit?, :cache_hit
# [Output-only, Experimental] The DDL operation performed, possibly dependent on
# the pre-existence of the DDL target. Possible values (new values might be
# added in the future): "CREATE": The query created the DDL target. "SKIP": No-
# op. Example cases: the query is CREATE TABLE IF NOT EXISTS while the table
# already exists, or the query is DROP TABLE IF EXISTS while the table does not
# exist. "REPLACE": The query replaced the DDL target. Example case: the query
# is CREATE OR REPLACE TABLE, and the table already exists. "DROP": The query
# deleted the DDL target.
# Corresponds to the JSON property `ddlOperationPerformed`
# @return [String]
attr_accessor :ddl_operation_performed
# [Output-only, Experimental] The DDL target table. Present only for CREATE/DROP
# TABLE/VIEW queries.
# Corresponds to the JSON property `ddlTargetTable`
# @return [Google::Apis::BigqueryV2::TableReference]
attr_accessor :ddl_target_table
# [Output-only] The number of rows affected by a DML statement. Present only for
# DML statements INSERT, UPDATE or DELETE.
# Corresponds to the JSON property `numDmlAffectedRows`
@ -2004,6 +2019,8 @@ module Google
def update!(**args)
@billing_tier = args[:billing_tier] if args.key?(:billing_tier)
@cache_hit = args[:cache_hit] if args.key?(:cache_hit)
@ddl_operation_performed = args[:ddl_operation_performed] if args.key?(:ddl_operation_performed)
@ddl_target_table = args[:ddl_target_table] if args.key?(:ddl_target_table)
@num_dml_affected_rows = args[:num_dml_affected_rows] if args.key?(:num_dml_affected_rows)
@query_plan = args[:query_plan] if args.key?(:query_plan)
@referenced_tables = args[:referenced_tables] if args.key?(:referenced_tables)
@ -2702,7 +2719,7 @@ module Google
# @return [Google::Apis::BigqueryV2::TableReference]
attr_accessor :table_reference
# [Experimental] If specified, configures time-based partitioning for this table.
# If specified, configures time-based partitioning for this table.
# Corresponds to the JSON property `timePartitioning`
# @return [Google::Apis::BigqueryV2::TimePartitioning]
attr_accessor :time_partitioning
@ -3079,7 +3096,7 @@ module Google
# @return [Google::Apis::BigqueryV2::TableReference]
attr_accessor :table_reference
# [Experimental] The time-based partitioning for this table.
# The time-based partitioning for this table.
# Corresponds to the JSON property `timePartitioning`
# @return [Google::Apis::BigqueryV2::TimePartitioning]
attr_accessor :time_partitioning

View File

@ -799,6 +799,9 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :billing_tier, as: 'billingTier'
property :cache_hit, as: 'cacheHit'
property :ddl_operation_performed, as: 'ddlOperationPerformed'
property :ddl_target_table, as: 'ddlTargetTable', class: Google::Apis::BigqueryV2::TableReference, decorator: Google::Apis::BigqueryV2::TableReference::Representation
property :num_dml_affected_rows, :numeric_string => true, as: 'numDmlAffectedRows'
collection :query_plan, as: 'queryPlan', class: Google::Apis::BigqueryV2::ExplainQueryStage, decorator: Google::Apis::BigqueryV2::ExplainQueryStage::Representation

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/bigquery/
module BigquerydatatransferV1
VERSION = 'V1'
REVISION = '20171002'
REVISION = '20171113'
# View and manage your data in Google BigQuery
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'

View File

@ -560,6 +560,78 @@ module Google
end
end
# The `Status` type defines a logical error model that is suitable for different
# programming environments, including REST APIs and RPC APIs. It is used by
# [gRPC](https://github.com/grpc). The error model is designed to be:
# - Simple to use and understand for most users
# - Flexible enough to meet unexpected needs
# # Overview
# The `Status` message contains three pieces of data: error code, error message,
# and error details. The error code should be an enum value of
# google.rpc.Code, but it may accept additional error codes if needed. The
# error message should be a developer-facing English message that helps
# developers *understand* and *resolve* the error. If a localized user-facing
# error message is needed, put the localized message in the error details or
# localize it in the client. The optional error details may contain arbitrary
# information about the error. There is a predefined set of error detail types
# in the package `google.rpc` that can be used for common error conditions.
# # Language mapping
# The `Status` message is the logical representation of the error model, but it
# is not necessarily the actual wire format. When the `Status` message is
# exposed in different client libraries and different wire protocols, it can be
# mapped differently. For example, it will likely be mapped to some exceptions
# in Java, but more likely mapped to some error codes in C.
# # Other uses
# The error model and the `Status` message can be used in a variety of
# environments, either with or without APIs, to provide a
# consistent developer experience across different environments.
# Example uses of this error model include:
# - Partial errors. If a service needs to return partial errors to the client,
# it may embed the `Status` in the normal response to indicate the partial
# errors.
# - Workflow errors. A typical workflow has multiple steps. Each step may
# have a `Status` message for error reporting.
# - Batch operations. If a client uses batch request and batch response, the
# `Status` message should be used directly inside batch response, one for
# each error sub-response.
# - Asynchronous operations. If an API call embeds asynchronous operation
# results in its response, the status of those operations should be
# represented directly using the `Status` message.
# - Logging. If some API errors are stored in logs, the message `Status` could
# be used directly after any stripping needed for security/privacy reasons.
class Status
include Google::Apis::Core::Hashable
# The status code, which should be an enum value of google.rpc.Code.
# Corresponds to the JSON property `code`
# @return [Fixnum]
attr_accessor :code
# A list of messages that carry the error details. There is a common set of
# message types for APIs to use.
# Corresponds to the JSON property `details`
# @return [Array<Hash<String,Object>>]
attr_accessor :details
# A developer-facing error message, which should be in English. Any
# user-facing error message should be localized and sent in the
# google.rpc.Status.details field, or localized by the client.
# Corresponds to the JSON property `message`
# @return [String]
attr_accessor :message
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@code = args[:code] if args.key?(:code)
@details = args[:details] if args.key?(:details)
@message = args[:message] if args.key?(:message)
end
end
# Represents a data transfer configuration. A transfer configuration
# contains all metadata needed to perform a data transfer. For example,
# `destination_dataset_id` specifies where data should be stored.
@ -714,6 +786,7 @@ module Google
end
# Represents a data transfer run.
# Next id: 23
class TransferRun
include Google::Apis::Core::Hashable
@ -722,11 +795,6 @@ module Google
# @return [String]
attr_accessor :data_source_id
# Output only. Region in which BigQuery dataset is located.
# Corresponds to the JSON property `datasetRegion`
# @return [String]
attr_accessor :dataset_region
# The BigQuery target dataset id.
# Corresponds to the JSON property `destinationDatasetId`
# @return [String]
@ -738,6 +806,49 @@ module Google
# @return [String]
attr_accessor :end_time
# The `Status` type defines a logical error model that is suitable for different
# programming environments, including REST APIs and RPC APIs. It is used by
# [gRPC](https://github.com/grpc). The error model is designed to be:
# - Simple to use and understand for most users
# - Flexible enough to meet unexpected needs
# # Overview
# The `Status` message contains three pieces of data: error code, error message,
# and error details. The error code should be an enum value of
# google.rpc.Code, but it may accept additional error codes if needed. The
# error message should be a developer-facing English message that helps
# developers *understand* and *resolve* the error. If a localized user-facing
# error message is needed, put the localized message in the error details or
# localize it in the client. The optional error details may contain arbitrary
# information about the error. There is a predefined set of error detail types
# in the package `google.rpc` that can be used for common error conditions.
# # Language mapping
# The `Status` message is the logical representation of the error model, but it
# is not necessarily the actual wire format. When the `Status` message is
# exposed in different client libraries and different wire protocols, it can be
# mapped differently. For example, it will likely be mapped to some exceptions
# in Java, but more likely mapped to some error codes in C.
# # Other uses
# The error model and the `Status` message can be used in a variety of
# environments, either with or without APIs, to provide a
# consistent developer experience across different environments.
# Example uses of this error model include:
# - Partial errors. If a service needs to return partial errors to the client,
# it may embed the `Status` in the normal response to indicate the partial
# errors.
# - Workflow errors. A typical workflow has multiple steps. Each step may
# have a `Status` message for error reporting.
# - Batch operations. If a client uses batch request and batch response, the
# `Status` message should be used directly inside batch response, one for
# each error sub-response.
# - Asynchronous operations. If an API call embeds asynchronous operation
# results in its response, the status of those operations should be
# represented directly using the `Status` message.
# - Logging. If some API errors are stored in logs, the message `Status` could
# be used directly after any stripping needed for security/privacy reasons.
# Corresponds to the JSON property `errorStatus`
# @return [Google::Apis::BigquerydatatransferV1::Status]
attr_accessor :error_status
# The resource name of the transfer run.
# Transfer run names have the form
# `projects/`project_id`/locations/`location`/transferConfigs/`config_id`/runs/`
@ -778,7 +889,7 @@ module Google
# @return [String]
attr_accessor :start_time
# Output only. Data transfer run state. Ignored for input requests.
# Data transfer run state. Ignored for input requests.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
@ -791,6 +902,7 @@ module Google
# Output only. Unique ID of the user on whose behalf transfer is done.
# Applicable only to data sources that do not support service accounts.
# When set to 0, the data source service account credentials are used.
# May be negative.
# Corresponds to the JSON property `userId`
# @return [Fixnum]
attr_accessor :user_id
@ -802,9 +914,9 @@ module Google
# Update properties of this object
def update!(**args)
@data_source_id = args[:data_source_id] if args.key?(:data_source_id)
@dataset_region = args[:dataset_region] if args.key?(:dataset_region)
@destination_dataset_id = args[:destination_dataset_id] if args.key?(:destination_dataset_id)
@end_time = args[:end_time] if args.key?(:end_time)
@error_status = args[:error_status] if args.key?(:error_status)
@name = args[:name] if args.key?(:name)
@params = args[:params] if args.key?(:params)
@run_time = args[:run_time] if args.key?(:run_time)

View File

@ -100,6 +100,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Status
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TransferConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -255,6 +261,15 @@ module Google
end
end
class Status
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :details, as: 'details'
property :message, as: 'message'
end
end
class TransferConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -287,9 +302,10 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :data_source_id, as: 'dataSourceId'
property :dataset_region, as: 'datasetRegion'
property :destination_dataset_id, as: 'destinationDatasetId'
property :end_time, as: 'endTime'
property :error_status, as: 'errorStatus', class: Google::Apis::BigquerydatatransferV1::Status, decorator: Google::Apis::BigquerydatatransferV1::Status::Representation
property :name, as: 'name'
hash :params, as: 'params'
property :run_time, as: 'runTime'

View File

@ -519,7 +519,7 @@ module Google
# @param [String] authorization_code
# Optional OAuth2 authorization code to use with this transfer configuration.
# If it is provided, the transfer configuration will be associated with the
# gaia id of the authorizing user.
# authorizing user.
# In order to obtain authorization_code, please make a
# request to
# https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=<
@ -566,7 +566,7 @@ module Google
execute_or_queue_command(command, &block)
end
# Creates transfer runs for a time range [range_start_time, range_end_time].
# Creates transfer runs for a time range [start_time, end_time].
# For each date - or whatever granularity the data source supports - in the
# range, one transfer run is created.
# Note that runs are created per UTC time in the time range.
@ -934,7 +934,7 @@ module Google
# @param [String] authorization_code
# Optional OAuth2 authorization code to use with this transfer configuration.
# If it is provided, the transfer configuration will be associated with the
# gaia id of the authorizing user.
# authorizing user.
# In order to obtain authorization_code, please make a
# request to
# https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=<
@ -981,7 +981,7 @@ module Google
execute_or_queue_command(command, &block)
end
# Creates transfer runs for a time range [range_start_time, range_end_time].
# Creates transfer runs for a time range [start_time, end_time].
# For each date - or whatever granularity the data source supports - in the
# range, one transfer run is created.
# Note that runs are created per UTC time in the time range.

View File

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

View File

@ -137,6 +137,9 @@ module Google
# method. If you want to access the primary calendar of the currently logged in
# user, use the "primary" keyword.
# @param [Google::Apis::CalendarV3::AclRule] acl_rule_object
# @param [Boolean] send_notifications
# Whether to send notifications about the calendar sharing change. Optional. The
# default is True.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -158,13 +161,14 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def insert_acl(calendar_id, acl_rule_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def insert_acl(calendar_id, acl_rule_object = nil, send_notifications: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'calendars/{calendarId}/acl', options)
command.request_representation = Google::Apis::CalendarV3::AclRule::Representation
command.request_object = acl_rule_object
command.response_representation = Google::Apis::CalendarV3::AclRule::Representation
command.response_class = Google::Apis::CalendarV3::AclRule
command.params['calendarId'] = calendar_id unless calendar_id.nil?
command.query['sendNotifications'] = send_notifications unless send_notifications.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?
@ -240,6 +244,9 @@ module Google
# @param [String] rule_id
# ACL rule identifier.
# @param [Google::Apis::CalendarV3::AclRule] acl_rule_object
# @param [Boolean] send_notifications
# Whether to send notifications about the calendar sharing change. Note that
# there are no notifications on access removal. Optional. The default is True.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -261,7 +268,7 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_acl(calendar_id, rule_id, acl_rule_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def patch_acl(calendar_id, rule_id, acl_rule_object = nil, send_notifications: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, 'calendars/{calendarId}/acl/{ruleId}', options)
command.request_representation = Google::Apis::CalendarV3::AclRule::Representation
command.request_object = acl_rule_object
@ -269,6 +276,7 @@ module Google
command.response_class = Google::Apis::CalendarV3::AclRule
command.params['calendarId'] = calendar_id unless calendar_id.nil?
command.params['ruleId'] = rule_id unless rule_id.nil?
command.query['sendNotifications'] = send_notifications unless send_notifications.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?
@ -283,6 +291,9 @@ module Google
# @param [String] rule_id
# ACL rule identifier.
# @param [Google::Apis::CalendarV3::AclRule] acl_rule_object
# @param [Boolean] send_notifications
# Whether to send notifications about the calendar sharing change. Note that
# there are no notifications on access removal. Optional. The default is True.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -304,7 +315,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_acl(calendar_id, rule_id, acl_rule_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def update_acl(calendar_id, rule_id, acl_rule_object = nil, send_notifications: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, 'calendars/{calendarId}/acl/{ruleId}', options)
command.request_representation = Google::Apis::CalendarV3::AclRule::Representation
command.request_object = acl_rule_object
@ -312,6 +323,7 @@ module Google
command.response_class = Google::Apis::CalendarV3::AclRule
command.params['calendarId'] = calendar_id unless calendar_id.nil?
command.params['ruleId'] = rule_id unless rule_id.nil?
command.query['sendNotifications'] = send_notifications unless send_notifications.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/classroom/
module ClassroomV1
VERSION = 'V1'
REVISION = '20171004'
REVISION = '20171028'
# View and manage announcements in Google Classroom
AUTH_CLASSROOM_ANNOUNCEMENTS = 'https://www.googleapis.com/auth/classroom.announcements'
@ -66,6 +66,9 @@ module Google
# View the profile photos of people in your classes
AUTH_CLASSROOM_PROFILE_PHOTOS = 'https://www.googleapis.com/auth/classroom.profile.photos'
# Receive notifications about your Google Classroom data
AUTH_CLASSROOM_PUSH_NOTIFICATIONS = 'https://www.googleapis.com/auth/classroom.push-notifications'
# Manage your Google Classroom class rosters
AUTH_CLASSROOM_ROSTERS = 'https://www.googleapis.com/auth/classroom.rosters'

View File

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

View File

@ -230,6 +230,27 @@ module Google
class BuildOptions
include Google::Apis::Core::Hashable
# Requested disk size for the VM that runs the build. Note that this is *NOT*
# "disk free"; some of the space will be used by the operating system and
# build utilities. Also note that this is the minimum disk size that will be
# allocated for the build -- the build may run with a larger disk than
# requested. At present, the maximum disk size is 1000GB; builds that request
# more than the maximum are rejected with an error.
# Corresponds to the JSON property `diskSizeGb`
# @return [Fixnum]
attr_accessor :disk_size_gb
# LogStreamingOption to define build log streaming behavior to Google Cloud
# Storage.
# Corresponds to the JSON property `logStreamingOption`
# @return [String]
attr_accessor :log_streaming_option
# GCE VM size to run the build on.
# Corresponds to the JSON property `machineType`
# @return [String]
attr_accessor :machine_type
# Requested verifiability options.
# Corresponds to the JSON property `requestedVerifyOption`
# @return [String]
@ -251,6 +272,9 @@ module Google
# Update properties of this object
def update!(**args)
@disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
@log_streaming_option = args[:log_streaming_option] if args.key?(:log_streaming_option)
@machine_type = args[:machine_type] if args.key?(:machine_type)
@requested_verify_option = args[:requested_verify_option] if args.key?(:requested_verify_option)
@source_provenance_hash = args[:source_provenance_hash] if args.key?(:source_provenance_hash)
@substitution_option = args[:substitution_option] if args.key?(:substitution_option)
@ -734,6 +758,11 @@ module Google
# @return [String]
attr_accessor :commit_sha
# Directory, relative to the source root, in which to run the build.
# Corresponds to the JSON property `dir`
# @return [String]
attr_accessor :dir
# ID of the project that owns the repo. If omitted, the project ID requesting
# the build is assumed.
# Corresponds to the JSON property `projectId`
@ -758,6 +787,7 @@ module Google
def update!(**args)
@branch_name = args[:branch_name] if args.key?(:branch_name)
@commit_sha = args[:commit_sha] if args.key?(:commit_sha)
@dir = args[:dir] if args.key?(:dir)
@project_id = args[:project_id] if args.key?(:project_id)
@repo_name = args[:repo_name] if args.key?(:repo_name)
@tag_name = args[:tag_name] if args.key?(:tag_name)
@ -789,6 +819,19 @@ module Google
end
end
# RetryBuildRequest specifies a build to retry.
class RetryBuildRequest
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Secret pairs a set of secret environment variables containing encrypted
# values with the Cloud KMS key to use to decrypt the value.
class Secret

View File

@ -124,6 +124,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class RetryBuildRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Secret
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -203,6 +209,9 @@ module Google
class BuildOptions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb'
property :log_streaming_option, as: 'logStreamingOption'
property :machine_type, as: 'machineType'
property :requested_verify_option, as: 'requestedVerifyOption'
collection :source_provenance_hash, as: 'sourceProvenanceHash'
property :substitution_option, as: 'substitutionOption'
@ -326,6 +335,7 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :branch_name, as: 'branchName'
property :commit_sha, as: 'commitSha'
property :dir, as: 'dir'
property :project_id, as: 'projectId'
property :repo_name, as: 'repoName'
property :tag_name, as: 'tagName'
@ -341,6 +351,12 @@ module Google
end
end
class RetryBuildRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class Secret
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -316,6 +316,61 @@ module Google
execute_or_queue_command(command, &block)
end
# Creates a new build based on the given build.
# This API creates a new build using the original build request, which may
# or may not result in an identical build.
# For triggered builds:
# * Triggered builds resolve to a precise revision, so a retry of a triggered
# build will result in a build that uses the same revision.
# For non-triggered builds that specify RepoSource:
# * If the original build built from the tip of a branch, the retried build
# will build from the tip of that branch, which may not be the same revision
# as the original build.
# * If the original build specified a commit sha or revision ID, the retried
# build will use the identical source.
# For builds that specify StorageSource:
# * If the original build pulled source from Cloud Storage without specifying
# the generation of the object, the new build will use the current object,
# which may be different from the original build source.
# * If the original build pulled source from Cloud Storage and specified the
# generation of the object, the new build will attempt to use the same
# object, which may or may not be available depending on the bucket's
# lifecycle management settings.
# @param [String] project_id
# ID of the project.
# @param [String] id
# Build ID of the original build.
# @param [Google::Apis::CloudbuildV1::RetryBuildRequest] retry_build_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudbuildV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def retry_build(project_id, id, retry_build_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/projects/{projectId}/builds/{id}:retry', options)
command.request_representation = Google::Apis::CloudbuildV1::RetryBuildRequest::Representation
command.request_object = retry_build_request_object
command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
command.response_class = Google::Apis::CloudbuildV1::Operation
command.params['projectId'] = project_id unless project_id.nil?
command.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
# Creates a new BuildTrigger.
# This API is experimental.
# @param [String] project_id
@ -486,6 +541,42 @@ module Google
execute_or_queue_command(command, &block)
end
# Runs a BuildTrigger at a particular source revision.
# @param [String] project_id
# ID of the project.
# @param [String] trigger_id
# ID of the trigger.
# @param [Google::Apis::CloudbuildV1::RepoSource] repo_source_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudbuildV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def run_project_trigger(project_id, trigger_id, repo_source_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/projects/{projectId}/triggers/{triggerId}:run', options)
command.request_representation = Google::Apis::CloudbuildV1::RepoSource::Representation
command.request_object = repo_source_object
command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
command.response_class = Google::Apis::CloudbuildV1::Operation
command.params['projectId'] = project_id unless project_id.nil?
command.params['triggerId'] = trigger_id unless trigger_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
protected
def apply_command_defaults(command)

View File

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

View File

@ -22,6 +22,392 @@ module Google
module Apis
module CloudfunctionsV1
# Request for the `CallFunction` method.
class CallFunctionRequest
include Google::Apis::Core::Hashable
# Input to be passed to the function.
# Corresponds to the JSON property `data`
# @return [String]
attr_accessor :data
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@data = args[:data] if args.key?(:data)
end
end
# Response of `CallFunction` method.
class CallFunctionResponse
include Google::Apis::Core::Hashable
# Either system or user-function generated error. Set if execution
# was not successful.
# Corresponds to the JSON property `error`
# @return [String]
attr_accessor :error
# Execution id of function invocation.
# Corresponds to the JSON property `executionId`
# @return [String]
attr_accessor :execution_id
# Result populated for successful execution of synchronous function. Will
# not be populated if function does not return a result through context.
# Corresponds to the JSON property `result`
# @return [String]
attr_accessor :result
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@error = args[:error] if args.key?(:error)
@execution_id = args[:execution_id] if args.key?(:execution_id)
@result = args[:result] if args.key?(:result)
end
end
# Describes a Cloud Function that contains user computation executed in
# response to an event. It encapsulate function and triggers configurations.
class CloudFunction
include Google::Apis::Core::Hashable
# The amount of memory in MB available for a function.
# Defaults to 256MB.
# Corresponds to the JSON property `availableMemoryMb`
# @return [Fixnum]
attr_accessor :available_memory_mb
# User-provided description of a function.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# The name of the function (as defined in source code) that will be
# executed. Defaults to the resource name suffix, if not specified. For
# backward compatibility, if function with given name is not found, then the
# system will try to use function named "function".
# For Node.js this is name of a function exported by the module specified
# in `source_location`.
# Corresponds to the JSON property `entryPoint`
# @return [String]
attr_accessor :entry_point
# Describes EventTrigger, used to request events be sent from another
# service.
# Corresponds to the JSON property `eventTrigger`
# @return [Google::Apis::CloudfunctionsV1::EventTrigger]
attr_accessor :event_trigger
# Describes HttpsTrigger, could be used to connect web hooks to function.
# Corresponds to the JSON property `httpsTrigger`
# @return [Google::Apis::CloudfunctionsV1::HttpsTrigger]
attr_accessor :https_trigger
# Labels associated with this Cloud Function.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
# A user-defined name of the function. Function names must be unique
# globally and match pattern `projects/*/locations/*/functions/*`
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Output only. The email of the function's service account.
# Corresponds to the JSON property `serviceAccountEmail`
# @return [String]
attr_accessor :service_account_email
# The Google Cloud Storage URL, starting with gs://, pointing to the zip
# archive which contains the function.
# Corresponds to the JSON property `sourceArchiveUrl`
# @return [String]
attr_accessor :source_archive_url
# Describes SourceRepository, used to represent parameters related to
# source repository where a function is hosted.
# Corresponds to the JSON property `sourceRepository`
# @return [Google::Apis::CloudfunctionsV1::SourceRepository]
attr_accessor :source_repository
# The Google Cloud Storage signed URL used for source uploading, generated
# by google.cloud.functions.v1.GenerateUploadUrl
# Corresponds to the JSON property `sourceUploadUrl`
# @return [String]
attr_accessor :source_upload_url
# Output only. Status of the function deployment.
# Corresponds to the JSON property `status`
# @return [String]
attr_accessor :status
# The function execution timeout. Execution is considered failed and
# can be terminated if the function is not completed at the end of the
# timeout period. Defaults to 60 seconds.
# Corresponds to the JSON property `timeout`
# @return [String]
attr_accessor :timeout
# Output only. The last update timestamp of a Cloud Function.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
# Output only.
# The version identifier of the Cloud Function. Each deployment attempt
# results in a new version of a function being created.
# Corresponds to the JSON property `versionId`
# @return [Fixnum]
attr_accessor :version_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@available_memory_mb = args[:available_memory_mb] if args.key?(:available_memory_mb)
@description = args[:description] if args.key?(:description)
@entry_point = args[:entry_point] if args.key?(:entry_point)
@event_trigger = args[:event_trigger] if args.key?(:event_trigger)
@https_trigger = args[:https_trigger] if args.key?(:https_trigger)
@labels = args[:labels] if args.key?(:labels)
@name = args[:name] if args.key?(:name)
@service_account_email = args[:service_account_email] if args.key?(:service_account_email)
@source_archive_url = args[:source_archive_url] if args.key?(:source_archive_url)
@source_repository = args[:source_repository] if args.key?(:source_repository)
@source_upload_url = args[:source_upload_url] if args.key?(:source_upload_url)
@status = args[:status] if args.key?(:status)
@timeout = args[:timeout] if args.key?(:timeout)
@update_time = args[:update_time] if args.key?(:update_time)
@version_id = args[:version_id] if args.key?(:version_id)
end
end
# Describes EventTrigger, used to request events be sent from another
# service.
class EventTrigger
include Google::Apis::Core::Hashable
# Required. The type of event to observe. For example:
# `google.storage.object.finalized` and
# `google.firebase.analytics.event.log`.
# Event type consists of three parts:
# 1. namespace: The domain name of the organization in reverse-domain
# notation (e.g. `acme.net` appears as `net.acme`) and any orginization
# specific subdivisions. If the organization's top-level domain is `com`,
# the top-level domain is ommited (e.g. `google.com` appears as
# `google`). For example, `google.storage` and
# `google.firebase.analytics`.
# 2. resource type: The type of resource on which event ocurs. For
# example, the Google Cloud Storage API includes the type `object`.
# 3. action: The action that generates the event. For example, actions for
# a Google Cloud Storage Object include 'finalize' and 'delete'.
# These parts are lower case and joined by '.'.
# Corresponds to the JSON property `eventType`
# @return [String]
attr_accessor :event_type
# Describes the policy in case of function's execution failure.
# If empty, then defaults to ignoring failures (i.e. not retrying them).
# Corresponds to the JSON property `failurePolicy`
# @return [Google::Apis::CloudfunctionsV1::FailurePolicy]
attr_accessor :failure_policy
# Required. The resource(s) from which to observe events, for example,
# `projects/_/buckets/myBucket`.
# Not all syntactically correct values are accepted by all services. For
# example:
# 1. The authorization model must support it. Google Cloud Functions
# only allows EventTriggers to be deployed that observe resources in the
# same project as the `CloudFunction`.
# 2. The resource type must match the pattern expected for an
# `event_type`. For example, an `EventTrigger` that has an
# `event_type` of "google.pubsub.topic.publish" should have a resource
# that matches Google Cloud Pub/Sub topics.
# Additionally, some services may support short names when creating an
# `EventTrigger`. These will always be returned in the normalized "long"
# format.
# See each *service's* documentation for supported formats.
# Corresponds to the JSON property `resource`
# @return [String]
attr_accessor :resource
# The hostname of the service that should be observed.
# If no string is provided, the default service implementing the API will
# be used. For example, `storage.googleapis.com` is the default for all
# event types in the `google.storage` namespace.
# Corresponds to the JSON property `service`
# @return [String]
attr_accessor :service
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@event_type = args[:event_type] if args.key?(:event_type)
@failure_policy = args[:failure_policy] if args.key?(:failure_policy)
@resource = args[:resource] if args.key?(:resource)
@service = args[:service] if args.key?(:service)
end
end
# Describes the policy in case of function's execution failure.
# If empty, then defaults to ignoring failures (i.e. not retrying them).
class FailurePolicy
include Google::Apis::Core::Hashable
# Describes the retry policy in case of function's execution failure.
# A function execution will be retried on any failure.
# A failed execution will be retried up to 7 days with an exponential backoff
# (capped at 10 seconds).
# Retried execution is charged as any other execution.
# Corresponds to the JSON property `retry`
# @return [Google::Apis::CloudfunctionsV1::Retry]
attr_accessor :retry
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@retry = args[:retry] if args.key?(:retry)
end
end
# Request of `GenerateDownloadUrl` method.
class GenerateDownloadUrlRequest
include Google::Apis::Core::Hashable
# The optional version of function. If not set, default, current version
# is used.
# Corresponds to the JSON property `versionId`
# @return [Fixnum]
attr_accessor :version_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@version_id = args[:version_id] if args.key?(:version_id)
end
end
# Response of `GenerateDownloadUrl` method.
class GenerateDownloadUrlResponse
include Google::Apis::Core::Hashable
# The generated Google Cloud Storage signed URL that should be used for
# function source code download.
# Corresponds to the JSON property `downloadUrl`
# @return [String]
attr_accessor :download_url
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@download_url = args[:download_url] if args.key?(:download_url)
end
end
# Request of `GenerateSourceUploadUrl` method.
class GenerateUploadUrlRequest
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Response of `GenerateSourceUploadUrl` method.
class GenerateUploadUrlResponse
include Google::Apis::Core::Hashable
# The generated Google Cloud Storage signed URL that should be used for a
# function source code upload. The uploaded file should be a zip archive
# which contains a function.
# Corresponds to the JSON property `uploadUrl`
# @return [String]
attr_accessor :upload_url
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@upload_url = args[:upload_url] if args.key?(:upload_url)
end
end
# Describes HttpsTrigger, could be used to connect web hooks to function.
class HttpsTrigger
include Google::Apis::Core::Hashable
# Output only. The deployed url for the function.
# Corresponds to the JSON property `url`
# @return [String]
attr_accessor :url
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@url = args[:url] if args.key?(:url)
end
end
# Response for the `ListFunctions` method.
class ListFunctionsResponse
include Google::Apis::Core::Hashable
# The functions that match the request.
# Corresponds to the JSON property `functions`
# @return [Array<Google::Apis::CloudfunctionsV1::CloudFunction>]
attr_accessor :functions
# If not empty, indicates that there may be more functions that match
# the request; this value should be passed in a new
# google.cloud.functions.v1.ListFunctionsRequest
# to get more functions.
# 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)
@functions = args[:functions] if args.key?(:functions)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# The response message for Locations.ListLocations.
class ListLocationsResponse
include Google::Apis::Core::Hashable
@ -209,6 +595,51 @@ module Google
end
end
# Metadata describing an Operation
class OperationMetadataV1
include Google::Apis::Core::Hashable
# The original request that started the operation.
# Corresponds to the JSON property `request`
# @return [Hash<String,Object>]
attr_accessor :request
# Target of the operation - for example
# projects/project-1/locations/region-1/functions/function-1
# Corresponds to the JSON property `target`
# @return [String]
attr_accessor :target
# Type of operation.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
# The last update timestamp of the operation.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
# Version id of the function created or updated by an API call.
# This field is only pupulated for Create and Update operations.
# Corresponds to the JSON property `versionId`
# @return [Fixnum]
attr_accessor :version_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@request = args[:request] if args.key?(:request)
@target = args[:target] if args.key?(:target)
@type = args[:type] if args.key?(:type)
@update_time = args[:update_time] if args.key?(:update_time)
@version_id = args[:version_id] if args.key?(:version_id)
end
end
# Metadata describing an Operation
class OperationMetadataV1Beta2
include Google::Apis::Core::Hashable
@ -229,6 +660,11 @@ module Google
# @return [String]
attr_accessor :type
# The last update timestamp of the operation.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
# Version id of the function created or updated by an API call.
# This field is only pupulated for Create and Update operations.
# Corresponds to the JSON property `versionId`
@ -244,10 +680,68 @@ module Google
@request = args[:request] if args.key?(:request)
@target = args[:target] if args.key?(:target)
@type = args[:type] if args.key?(:type)
@update_time = args[:update_time] if args.key?(:update_time)
@version_id = args[:version_id] if args.key?(:version_id)
end
end
# Describes the retry policy in case of function's execution failure.
# A function execution will be retried on any failure.
# A failed execution will be retried up to 7 days with an exponential backoff
# (capped at 10 seconds).
# Retried execution is charged as any other execution.
class Retry
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Describes SourceRepository, used to represent parameters related to
# source repository where a function is hosted.
class SourceRepository
include Google::Apis::Core::Hashable
# Output only. The URL pointing to the hosted repository where the function
# were defined at the time of deployment. It always points to a specific
# commit in the format described above.
# Corresponds to the JSON property `deployedUrl`
# @return [String]
attr_accessor :deployed_url
# The URL pointing to the hosted repository where the function is defined.
# There are supported Cloud Source Repository URLs in the following
# formats:
# To refer to a specific commit:
# `https://source.developers.google.com/projects/*/repos/*/revisions/*/paths/*`
# To refer to a moveable alias (branch):
# `https://source.developers.google.com/projects/*/repos/*/moveable-aliases/*/
# paths/*`
# In particular, to refer to HEAD use `master` moveable alias.
# To refer to a specific fixed alias (tag):
# `https://source.developers.google.com/projects/*/repos/*/fixed-aliases/*/paths/
# *`
# You may omit `paths/*` if you want to use the main directory.
# Corresponds to the JSON property `url`
# @return [String]
attr_accessor :url
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@deployed_url = args[:deployed_url] if args.key?(:deployed_url)
@url = args[:url] if args.key?(:url)
end
end
# The `Status` type defines a logical error model that is suitable for different
# programming environments, including REST APIs and RPC APIs. It is used by
# [gRPC](https://github.com/grpc). The error model is designed to be:

View File

@ -22,6 +22,72 @@ module Google
module Apis
module CloudfunctionsV1
class CallFunctionRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CallFunctionResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CloudFunction
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class EventTrigger
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class FailurePolicy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GenerateDownloadUrlRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GenerateDownloadUrlResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GenerateUploadUrlRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GenerateUploadUrlResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class HttpsTrigger
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListFunctionsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListLocationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -46,18 +112,138 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class OperationMetadataV1
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OperationMetadataV1Beta2
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Retry
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SourceRepository
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Status
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CallFunctionRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :data, as: 'data'
end
end
class CallFunctionResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :error, as: 'error'
property :execution_id, as: 'executionId'
property :result, as: 'result'
end
end
class CloudFunction
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :available_memory_mb, as: 'availableMemoryMb'
property :description, as: 'description'
property :entry_point, as: 'entryPoint'
property :event_trigger, as: 'eventTrigger', class: Google::Apis::CloudfunctionsV1::EventTrigger, decorator: Google::Apis::CloudfunctionsV1::EventTrigger::Representation
property :https_trigger, as: 'httpsTrigger', class: Google::Apis::CloudfunctionsV1::HttpsTrigger, decorator: Google::Apis::CloudfunctionsV1::HttpsTrigger::Representation
hash :labels, as: 'labels'
property :name, as: 'name'
property :service_account_email, as: 'serviceAccountEmail'
property :source_archive_url, as: 'sourceArchiveUrl'
property :source_repository, as: 'sourceRepository', class: Google::Apis::CloudfunctionsV1::SourceRepository, decorator: Google::Apis::CloudfunctionsV1::SourceRepository::Representation
property :source_upload_url, as: 'sourceUploadUrl'
property :status, as: 'status'
property :timeout, as: 'timeout'
property :update_time, as: 'updateTime'
property :version_id, :numeric_string => true, as: 'versionId'
end
end
class EventTrigger
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :event_type, as: 'eventType'
property :failure_policy, as: 'failurePolicy', class: Google::Apis::CloudfunctionsV1::FailurePolicy, decorator: Google::Apis::CloudfunctionsV1::FailurePolicy::Representation
property :resource, as: 'resource'
property :service, as: 'service'
end
end
class FailurePolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :retry, as: 'retry', class: Google::Apis::CloudfunctionsV1::Retry, decorator: Google::Apis::CloudfunctionsV1::Retry::Representation
end
end
class GenerateDownloadUrlRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :version_id, :numeric_string => true, as: 'versionId'
end
end
class GenerateDownloadUrlResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :download_url, as: 'downloadUrl'
end
end
class GenerateUploadUrlRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class GenerateUploadUrlResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :upload_url, as: 'uploadUrl'
end
end
class HttpsTrigger
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :url, as: 'url'
end
end
class ListFunctionsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :functions, as: 'functions', class: Google::Apis::CloudfunctionsV1::CloudFunction, decorator: Google::Apis::CloudfunctionsV1::CloudFunction::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class ListLocationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -98,16 +284,42 @@ module Google
end
end
class OperationMetadataV1
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :request, as: 'request'
property :target, as: 'target'
property :type, as: 'type'
property :update_time, as: 'updateTime'
property :version_id, :numeric_string => true, as: 'versionId'
end
end
class OperationMetadataV1Beta2
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :request, as: 'request'
property :target, as: 'target'
property :type, as: 'type'
property :update_time, as: 'updateTime'
property :version_id, :numeric_string => true, as: 'versionId'
end
end
class Retry
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class SourceRepository
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :deployed_url, as: 'deployedUrl'
property :url, as: 'url'
end
end
class Status
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -166,6 +166,294 @@ module Google
execute_or_queue_command(command, &block)
end
# Invokes synchronously deployed function. To be used for testing, very
# limited traffic allowed.
# @param [String] name
# The name of the function to be called.
# @param [Google::Apis::CloudfunctionsV1::CallFunctionRequest] call_function_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::CloudfunctionsV1::CallFunctionResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudfunctionsV1::CallFunctionResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def call_function(name, call_function_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+name}:call', options)
command.request_representation = Google::Apis::CloudfunctionsV1::CallFunctionRequest::Representation
command.request_object = call_function_request_object
command.response_representation = Google::Apis::CloudfunctionsV1::CallFunctionResponse::Representation
command.response_class = Google::Apis::CloudfunctionsV1::CallFunctionResponse
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
# Creates a new function. If a function with the given name already exists in
# the specified project, the long running operation will return
# `ALREADY_EXISTS` error.
# @param [String] location
# The project and location in which the function should be created, specified
# in the format `projects/*/locations/*`
# @param [Google::Apis::CloudfunctionsV1::CloudFunction] cloud_function_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::CloudfunctionsV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudfunctionsV1::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_location_function(location, cloud_function_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+location}/functions', options)
command.request_representation = Google::Apis::CloudfunctionsV1::CloudFunction::Representation
command.request_object = cloud_function_object
command.response_representation = Google::Apis::CloudfunctionsV1::Operation::Representation
command.response_class = Google::Apis::CloudfunctionsV1::Operation
command.params['location'] = location unless location.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 function with the given name from the specified project. If the
# given function is used by some trigger, the trigger will be updated to
# remove this function.
# @param [String] name
# The name of the function which should be deleted.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudfunctionsV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudfunctionsV1::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_location_function(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1/{+name}', options)
command.response_representation = Google::Apis::CloudfunctionsV1::Operation::Representation
command.response_class = Google::Apis::CloudfunctionsV1::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
# Returns a signed URL for downloading deployed function source code.
# The URL is only valid for a limited period and should be used within
# minutes after generation.
# For more information about the signed URL usage see:
# https://cloud.google.com/storage/docs/access-control/signed-urls
# @param [String] name
# The name of function for which source code Google Cloud Storage signed
# URL should be generated.
# @param [Google::Apis::CloudfunctionsV1::GenerateDownloadUrlRequest] generate_download_url_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::CloudfunctionsV1::GenerateDownloadUrlResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudfunctionsV1::GenerateDownloadUrlResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def generate_function_download_url(name, generate_download_url_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+name}:generateDownloadUrl', options)
command.request_representation = Google::Apis::CloudfunctionsV1::GenerateDownloadUrlRequest::Representation
command.request_object = generate_download_url_request_object
command.response_representation = Google::Apis::CloudfunctionsV1::GenerateDownloadUrlResponse::Representation
command.response_class = Google::Apis::CloudfunctionsV1::GenerateDownloadUrlResponse
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns a signed URL for uploading a function source code.
# For more information about the signed URL usage see:
# https://cloud.google.com/storage/docs/access-control/signed-urls
# Once the function source code upload is complete, the used signed
# URL should be provided in CreateFunction or UpdateFunction request
# as a reference to the function source code.
# @param [String] parent
# The project and location in which the Google Cloud Storage signed URL
# should be generated, specified in the format `projects/*/locations/*
# @param [Google::Apis::CloudfunctionsV1::GenerateUploadUrlRequest] generate_upload_url_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::CloudfunctionsV1::GenerateUploadUrlResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudfunctionsV1::GenerateUploadUrlResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def generate_function_upload_url(parent, generate_upload_url_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+parent}/functions:generateUploadUrl', options)
command.request_representation = Google::Apis::CloudfunctionsV1::GenerateUploadUrlRequest::Representation
command.request_object = generate_upload_url_request_object
command.response_representation = Google::Apis::CloudfunctionsV1::GenerateUploadUrlResponse::Representation
command.response_class = Google::Apis::CloudfunctionsV1::GenerateUploadUrlResponse
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns a function with the given name from the requested project.
# @param [String] name
# The name of the function which details should be obtained.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to 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::CloudfunctionsV1::CloudFunction] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudfunctionsV1::CloudFunction]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_location_function(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::CloudfunctionsV1::CloudFunction::Representation
command.response_class = Google::Apis::CloudfunctionsV1::CloudFunction
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns a list of functions that belong to the requested project.
# @param [String] parent
# The project and location from which the function should be listed,
# specified in the format `projects/*/locations/*`
# If you want to list functions in all locations, use "-" in place of a
# location.
# @param [Fixnum] page_size
# Maximum number of functions to return per call.
# @param [String] page_token
# The value returned by the last
# `ListFunctionsResponse`; indicates that
# this is a continuation of a prior `ListFunctions` call, and that the
# system should return the next page of data.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to 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::CloudfunctionsV1::ListFunctionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudfunctionsV1::ListFunctionsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_location_functions(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+parent}/functions', options)
command.response_representation = Google::Apis::CloudfunctionsV1::ListFunctionsResponse::Representation
command.response_class = Google::Apis::CloudfunctionsV1::ListFunctionsResponse
command.params['parent'] = parent unless parent.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Updates existing function.
# @param [String] name
# A user-defined name of the function. Function names must be unique
# globally and match pattern `projects/*/locations/*/functions/*`
# @param [Google::Apis::CloudfunctionsV1::CloudFunction] cloud_function_object
# @param [String] update_mask
# Required list of fields to be updated in 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.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudfunctionsV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudfunctionsV1::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_project_location_function(name, cloud_function_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1/{+name}', options)
command.request_representation = Google::Apis::CloudfunctionsV1::CloudFunction::Representation
command.request_object = cloud_function_object
command.response_representation = Google::Apis::CloudfunctionsV1::Operation::Representation
command.response_class = Google::Apis::CloudfunctionsV1::Operation
command.params['name'] = name unless name.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
protected
def apply_command_defaults(command)

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/functions
module CloudfunctionsV1beta2
VERSION = 'V1beta2'
REVISION = '20170926'
REVISION = '20171101'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -157,6 +157,12 @@ module Google
# @return [String]
attr_accessor :source_repository_url
# The Google Cloud Storage signed URL used for source uploading, generated
# by google.cloud.functions.v1beta2.GenerateUploadUrl
# Corresponds to the JSON property `sourceUploadUrl`
# @return [String]
attr_accessor :source_upload_url
# Output only. Status of the function deployment.
# Corresponds to the JSON property `status`
# @return [String]
@ -198,6 +204,7 @@ module Google
@source_archive_url = args[:source_archive_url] if args.key?(:source_archive_url)
@source_repository = args[:source_repository] if args.key?(:source_repository)
@source_repository_url = args[:source_repository_url] if args.key?(:source_repository_url)
@source_upload_url = args[:source_upload_url] if args.key?(:source_upload_url)
@status = args[:status] if args.key?(:status)
@timeout = args[:timeout] if args.key?(:timeout)
@update_time = args[:update_time] if args.key?(:update_time)
@ -240,7 +247,7 @@ module Google
# The hostname of the service that should be observed.
# If no string is provided, the default service implementing the API will
# be used. For example, `storage.googleapis.com` is the default for all
# event types in the 'google.storage` namespace.
# event types in the `google.storage` namespace.
# Corresponds to the JSON property `service`
# @return [String]
attr_accessor :service
@ -282,6 +289,79 @@ module Google
end
end
# Request of `GenerateDownloadUrl` method.
class GenerateDownloadUrlRequest
include Google::Apis::Core::Hashable
# The optional version of function.
# Corresponds to the JSON property `versionId`
# @return [Fixnum]
attr_accessor :version_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@version_id = args[:version_id] if args.key?(:version_id)
end
end
# Response of `GenerateDownloadUrl` method.
class GenerateDownloadUrlResponse
include Google::Apis::Core::Hashable
# The generated Google Cloud Storage signed URL that should be used for
# function source code download.
# Corresponds to the JSON property `downloadUrl`
# @return [String]
attr_accessor :download_url
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@download_url = args[:download_url] if args.key?(:download_url)
end
end
# Request of `GenerateUploadUrl` method.
class GenerateUploadUrlRequest
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Response of `GenerateUploadUrl` method.
class GenerateUploadUrlResponse
include Google::Apis::Core::Hashable
# The generated Google Cloud Storage signed URL that should be used for a
# function source code upload. The uploaded file should be a zip archive
# which contains a function.
# Corresponds to the JSON property `uploadUrl`
# @return [String]
attr_accessor :upload_url
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@upload_url = args[:upload_url] if args.key?(:upload_url)
end
end
# Describes HTTPSTrigger, could be used to connect web hooks to function.
class HttpsTrigger
include Google::Apis::Core::Hashable
@ -516,6 +596,51 @@ module Google
end
end
# Metadata describing an Operation
class OperationMetadataV1
include Google::Apis::Core::Hashable
# The original request that started the operation.
# Corresponds to the JSON property `request`
# @return [Hash<String,Object>]
attr_accessor :request
# Target of the operation - for example
# projects/project-1/locations/region-1/functions/function-1
# Corresponds to the JSON property `target`
# @return [String]
attr_accessor :target
# Type of operation.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
# The last update timestamp of the operation.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
# Version id of the function created or updated by an API call.
# This field is only pupulated for Create and Update operations.
# Corresponds to the JSON property `versionId`
# @return [Fixnum]
attr_accessor :version_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@request = args[:request] if args.key?(:request)
@target = args[:target] if args.key?(:target)
@type = args[:type] if args.key?(:type)
@update_time = args[:update_time] if args.key?(:update_time)
@version_id = args[:version_id] if args.key?(:version_id)
end
end
# Metadata describing an Operation
class OperationMetadataV1Beta2
include Google::Apis::Core::Hashable
@ -536,6 +661,11 @@ module Google
# @return [String]
attr_accessor :type
# The last update timestamp of the operation.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
# Version id of the function created or updated by an API call.
# This field is only pupulated for Create and Update operations.
# Corresponds to the JSON property `versionId`
@ -551,6 +681,7 @@ module Google
@request = args[:request] if args.key?(:request)
@target = args[:target] if args.key?(:target)
@type = args[:type] if args.key?(:type)
@update_time = args[:update_time] if args.key?(:update_time)
@version_id = args[:version_id] if args.key?(:version_id)
end
end

View File

@ -52,6 +52,30 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GenerateDownloadUrlRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GenerateDownloadUrlResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GenerateUploadUrlRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GenerateUploadUrlResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class HttpsTrigger
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -88,6 +112,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class OperationMetadataV1
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OperationMetadataV1Beta2
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -145,6 +175,7 @@ module Google
property :source_repository, as: 'sourceRepository', class: Google::Apis::CloudfunctionsV1beta2::SourceRepository, decorator: Google::Apis::CloudfunctionsV1beta2::SourceRepository::Representation
property :source_repository_url, as: 'sourceRepositoryUrl'
property :source_upload_url, as: 'sourceUploadUrl'
property :status, as: 'status'
property :timeout, as: 'timeout'
property :update_time, as: 'updateTime'
@ -171,6 +202,33 @@ module Google
end
end
class GenerateDownloadUrlRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :version_id, :numeric_string => true, as: 'versionId'
end
end
class GenerateDownloadUrlResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :download_url, as: 'downloadUrl'
end
end
class GenerateUploadUrlRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class GenerateUploadUrlResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :upload_url, as: 'uploadUrl'
end
end
class HttpsTrigger
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -227,12 +285,24 @@ module Google
end
end
class OperationMetadataV1
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :request, as: 'request'
property :target, as: 'target'
property :type, as: 'type'
property :update_time, as: 'updateTime'
property :version_id, :numeric_string => true, as: 'versionId'
end
end
class OperationMetadataV1Beta2
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :request, as: 'request'
property :target, as: 'target'
property :type, as: 'type'
property :update_time, as: 'updateTime'
property :version_id, :numeric_string => true, as: 'versionId'
end
end

View File

@ -268,6 +268,83 @@ module Google
execute_or_queue_command(command, &block)
end
# Returns a signed URL for downloading deployed function source code.
# The URL is only valid for a limited period and should be used within
# minutes after generation.
# For more information about the signed URL usage see:
# https://cloud.google.com/storage/docs/access-control/signed-urls
# @param [String] name
# The name of function for which source code Google Cloud Storage signed
# URL should be generated.
# @param [Google::Apis::CloudfunctionsV1beta2::GenerateDownloadUrlRequest] generate_download_url_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::CloudfunctionsV1beta2::GenerateDownloadUrlResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudfunctionsV1beta2::GenerateDownloadUrlResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def generate_function_download_url(name, generate_download_url_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta2/{+name}:generateDownloadUrl', options)
command.request_representation = Google::Apis::CloudfunctionsV1beta2::GenerateDownloadUrlRequest::Representation
command.request_object = generate_download_url_request_object
command.response_representation = Google::Apis::CloudfunctionsV1beta2::GenerateDownloadUrlResponse::Representation
command.response_class = Google::Apis::CloudfunctionsV1beta2::GenerateDownloadUrlResponse
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns a signed URL for uploading a function source code.
# For more information about the signed URL usage see:
# https://cloud.google.com/storage/docs/access-control/signed-urls
# Once the function source code upload is complete, the used signed
# URL should be provided in CreateFunction or UpdateFunction request
# as a reference to the function source code.
# @param [String] parent
# The project and location in which the Google Cloud Storage signed URL
# should be generated, specified in the format `projects/*/locations/*
# @param [Google::Apis::CloudfunctionsV1beta2::GenerateUploadUrlRequest] generate_upload_url_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::CloudfunctionsV1beta2::GenerateUploadUrlResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudfunctionsV1beta2::GenerateUploadUrlResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def generate_function_upload_url(parent, generate_upload_url_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta2/{+parent}/functions:generateUploadUrl', options)
command.request_representation = Google::Apis::CloudfunctionsV1beta2::GenerateUploadUrlRequest::Representation
command.request_object = generate_upload_url_request_object
command.response_representation = Google::Apis::CloudfunctionsV1beta2::GenerateUploadUrlResponse::Representation
command.response_class = Google::Apis::CloudfunctionsV1beta2::GenerateUploadUrlResponse
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns a function with the given name from the requested project.
# @param [String] name
# The name of the function which details should be obtained.

View File

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

View File

@ -466,7 +466,11 @@ module Google
# The configuration for notification of telemetry events received from the
# device. All telemetry events that were successfully published by the
# device and acknowledged by Cloud IoT Core are guaranteed to be
# delivered to Cloud Pub/Sub. Only the first configuration is used.
# delivered to Cloud Pub/Sub. Only the first configuration is used. If you
# try to publish a device telemetry event using MQTT without specifying a
# Cloud Pub/Sub topic for the device's registry, the connection closes
# automatically. If you try to do so using an HTTP connection, an error
# is returned.
# Corresponds to the JSON property `eventNotificationConfigs`
# @return [Array<Google::Apis::CloudiotV1::EventNotificationConfig>]
attr_accessor :event_notification_configs

View File

@ -231,8 +231,8 @@ module Google
# Only updates the `device_registry` fields indicated by this mask.
# The field mask must not be empty, and it must not contain fields that
# are immutable or only set by the server.
# Mutable top-level fields: `event_notification_config`, `mqtt_config`, and
# `state_notification_config`.
# Mutable top-level fields: `event_notification_config`, `http_config`,
# `mqtt_config`, and `state_notification_config`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -406,6 +406,9 @@ module Google
# The name of the device. For example,
# `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
# `projects/p0/locations/us-central1/registries/registry0/devices/`num_id``.
# @param [String] field_mask
# The fields of the `Device` resource to be returned in the response. If the
# field mask is unset or empty, all fields are returned.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -423,11 +426,12 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_location_registry_device(name, fields: nil, quota_user: nil, options: nil, &block)
def get_project_location_registry_device(name, field_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::CloudiotV1::Device::Representation
command.response_class = Google::Apis::CloudiotV1::Device
command.params['name'] = name unless name.nil?
command.query['fieldMask'] = field_mask unless field_mask.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)

View File

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

View File

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

View File

@ -206,7 +206,8 @@ module Google
# @return [String]
attr_accessor :create_time
# Labels with user defined metadata.
# Labels with user-defined metadata. For more information, see
# [Labeling CryptoKeys](/kms/docs/labeling-keys).
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels

View File

@ -1,679 +0,0 @@
# 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 CloudmonitoringV2beta2
# The response of cloudmonitoring.metricDescriptors.delete.
class DeleteMetricDescriptorResponse
include Google::Apis::Core::Hashable
# Identifies what kind of resource this is. Value: the fixed string "
# cloudmonitoring#deleteMetricDescriptorResponse".
# 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)
@kind = args[:kind] if args.key?(:kind)
end
end
# The request of cloudmonitoring.metricDescriptors.list.
class ListMetricDescriptorsRequest
include Google::Apis::Core::Hashable
# Identifies what kind of resource this is. Value: the fixed string "
# cloudmonitoring#listMetricDescriptorsRequest".
# 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)
@kind = args[:kind] if args.key?(:kind)
end
end
# The response of cloudmonitoring.metricDescriptors.list.
class ListMetricDescriptorsResponse
include Google::Apis::Core::Hashable
# Identifies what kind of resource this is. Value: the fixed string "
# cloudmonitoring#listMetricDescriptorsResponse".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The returned metric descriptors.
# Corresponds to the JSON property `metrics`
# @return [Array<Google::Apis::CloudmonitoringV2beta2::MetricDescriptor>]
attr_accessor :metrics
# Pagination token. If present, indicates that additional results are available
# for retrieval. To access the results past the pagination limit, pass this
# value to the pageToken query parameter.
# 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)
@kind = args[:kind] if args.key?(:kind)
@metrics = args[:metrics] if args.key?(:metrics)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# The request of cloudmonitoring.timeseriesDescriptors.list
class ListTimeseriesDescriptorsRequest
include Google::Apis::Core::Hashable
# Identifies what kind of resource this is. Value: the fixed string "
# cloudmonitoring#listTimeseriesDescriptorsRequest".
# 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)
@kind = args[:kind] if args.key?(:kind)
end
end
# The response of cloudmonitoring.timeseriesDescriptors.list
class ListTimeseriesDescriptorsResponse
include Google::Apis::Core::Hashable
# Identifies what kind of resource this is. Value: the fixed string "
# cloudmonitoring#listTimeseriesDescriptorsResponse".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Pagination token. If present, indicates that additional results are available
# for retrieval. To access the results past the pagination limit, set this value
# to the pageToken query parameter.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# The oldest timestamp of the interval of this query, as an RFC 3339 string.
# Corresponds to the JSON property `oldest`
# @return [DateTime]
attr_accessor :oldest
# The returned time series descriptors.
# Corresponds to the JSON property `timeseries`
# @return [Array<Google::Apis::CloudmonitoringV2beta2::TimeseriesDescriptor>]
attr_accessor :timeseries
# The youngest timestamp of the interval of this query, as an RFC 3339 string.
# Corresponds to the JSON property `youngest`
# @return [DateTime]
attr_accessor :youngest
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@oldest = args[:oldest] if args.key?(:oldest)
@timeseries = args[:timeseries] if args.key?(:timeseries)
@youngest = args[:youngest] if args.key?(:youngest)
end
end
# The request of cloudmonitoring.timeseries.list
class ListTimeseriesRequest
include Google::Apis::Core::Hashable
# Identifies what kind of resource this is. Value: the fixed string "
# cloudmonitoring#listTimeseriesRequest".
# 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)
@kind = args[:kind] if args.key?(:kind)
end
end
# The response of cloudmonitoring.timeseries.list
class ListTimeseriesResponse
include Google::Apis::Core::Hashable
# Identifies what kind of resource this is. Value: the fixed string "
# cloudmonitoring#listTimeseriesResponse".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Pagination token. If present, indicates that additional results are available
# for retrieval. To access the results past the pagination limit, set the
# pageToken query parameter to this value. All of the points of a time series
# will be returned before returning any point of the subsequent time series.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# The oldest timestamp of the interval of this query as an RFC 3339 string.
# Corresponds to the JSON property `oldest`
# @return [DateTime]
attr_accessor :oldest
# The returned time series.
# Corresponds to the JSON property `timeseries`
# @return [Array<Google::Apis::CloudmonitoringV2beta2::Timeseries>]
attr_accessor :timeseries
# The youngest timestamp of the interval of this query as an RFC 3339 string.
# Corresponds to the JSON property `youngest`
# @return [DateTime]
attr_accessor :youngest
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@oldest = args[:oldest] if args.key?(:oldest)
@timeseries = args[:timeseries] if args.key?(:timeseries)
@youngest = args[:youngest] if args.key?(:youngest)
end
end
# A metricDescriptor defines the name, label keys, and data type of a particular
# metric.
class MetricDescriptor
include Google::Apis::Core::Hashable
# Description of this metric.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Labels defined for this metric.
# Corresponds to the JSON property `labels`
# @return [Array<Google::Apis::CloudmonitoringV2beta2::MetricDescriptorLabelDescriptor>]
attr_accessor :labels
# The name of this metric.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The project ID to which the metric belongs.
# Corresponds to the JSON property `project`
# @return [String]
attr_accessor :project
# A type in a metric contains information about how the metric is collected and
# what its data points look like.
# Corresponds to the JSON property `typeDescriptor`
# @return [Google::Apis::CloudmonitoringV2beta2::MetricDescriptorTypeDescriptor]
attr_accessor :type_descriptor
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@description = args[:description] if args.key?(:description)
@labels = args[:labels] if args.key?(:labels)
@name = args[:name] if args.key?(:name)
@project = args[:project] if args.key?(:project)
@type_descriptor = args[:type_descriptor] if args.key?(:type_descriptor)
end
end
# A label in a metric is a description of this metric, including the key of this
# description (what the description is), and the value for this description.
class MetricDescriptorLabelDescriptor
include Google::Apis::Core::Hashable
# Label description.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Label key.
# Corresponds to the JSON property `key`
# @return [String]
attr_accessor :key
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@description = args[:description] if args.key?(:description)
@key = args[:key] if args.key?(:key)
end
end
# A type in a metric contains information about how the metric is collected and
# what its data points look like.
class MetricDescriptorTypeDescriptor
include Google::Apis::Core::Hashable
# The method of collecting data for the metric. See Metric types.
# Corresponds to the JSON property `metricType`
# @return [String]
attr_accessor :metric_type
# The data type of of individual points in the metric's time series. See Metric
# value types.
# Corresponds to the JSON property `valueType`
# @return [String]
attr_accessor :value_type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@metric_type = args[:metric_type] if args.key?(:metric_type)
@value_type = args[:value_type] if args.key?(:value_type)
end
end
# Point is a single point in a time series. It consists of a start time, an end
# time, and a value.
class Point
include Google::Apis::Core::Hashable
# The value of this data point. Either "true" or "false".
# Corresponds to the JSON property `boolValue`
# @return [Boolean]
attr_accessor :bool_value
alias_method :bool_value?, :bool_value
# Distribution data point value type. When writing distribution points, try to
# be consistent with the boundaries of your buckets. If you must modify the
# bucket boundaries, then do so by merging, partitioning, or appending rather
# than skewing them.
# Corresponds to the JSON property `distributionValue`
# @return [Google::Apis::CloudmonitoringV2beta2::PointDistribution]
attr_accessor :distribution_value
# The value of this data point as a double-precision floating-point number.
# Corresponds to the JSON property `doubleValue`
# @return [Float]
attr_accessor :double_value
# The interval [start, end] is the time period to which the point's value
# applies. For gauge metrics, whose values are instantaneous measurements, this
# interval should be empty (start should equal end). For cumulative metrics (of
# which deltas and rates are special cases), the interval should be non-empty.
# Both start and end are RFC 3339 strings.
# Corresponds to the JSON property `end`
# @return [DateTime]
attr_accessor :end
# The value of this data point as a 64-bit integer.
# Corresponds to the JSON property `int64Value`
# @return [Fixnum]
attr_accessor :int64_value
# The interval [start, end] is the time period to which the point's value
# applies. For gauge metrics, whose values are instantaneous measurements, this
# interval should be empty (start should equal end). For cumulative metrics (of
# which deltas and rates are special cases), the interval should be non-empty.
# Both start and end are RFC 3339 strings.
# Corresponds to the JSON property `start`
# @return [DateTime]
attr_accessor :start
# The value of this data point in string format.
# Corresponds to the JSON property `stringValue`
# @return [String]
attr_accessor :string_value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@bool_value = args[:bool_value] if args.key?(:bool_value)
@distribution_value = args[:distribution_value] if args.key?(:distribution_value)
@double_value = args[:double_value] if args.key?(:double_value)
@end = args[:end] if args.key?(:end)
@int64_value = args[:int64_value] if args.key?(:int64_value)
@start = args[:start] if args.key?(:start)
@string_value = args[:string_value] if args.key?(:string_value)
end
end
# Distribution data point value type. When writing distribution points, try to
# be consistent with the boundaries of your buckets. If you must modify the
# bucket boundaries, then do so by merging, partitioning, or appending rather
# than skewing them.
class PointDistribution
include Google::Apis::Core::Hashable
# The finite buckets.
# Corresponds to the JSON property `buckets`
# @return [Array<Google::Apis::CloudmonitoringV2beta2::PointDistributionBucket>]
attr_accessor :buckets
# The overflow bucket is a special bucket that does not have the upperBound
# field; it includes all of the events that are no less than its lower bound.
# Corresponds to the JSON property `overflowBucket`
# @return [Google::Apis::CloudmonitoringV2beta2::PointDistributionOverflowBucket]
attr_accessor :overflow_bucket
# The underflow bucket is a special bucket that does not have the lowerBound
# field; it includes all of the events that are less than its upper bound.
# Corresponds to the JSON property `underflowBucket`
# @return [Google::Apis::CloudmonitoringV2beta2::PointDistributionUnderflowBucket]
attr_accessor :underflow_bucket
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@buckets = args[:buckets] if args.key?(:buckets)
@overflow_bucket = args[:overflow_bucket] if args.key?(:overflow_bucket)
@underflow_bucket = args[:underflow_bucket] if args.key?(:underflow_bucket)
end
end
# The histogram's bucket. Buckets that form the histogram of a distribution
# value. If the upper bound of a bucket, say U1, does not equal the lower bound
# of the next bucket, say L2, this means that there is no event in [U1, L2).
class PointDistributionBucket
include Google::Apis::Core::Hashable
# The number of events whose values are in the interval defined by this bucket.
# Corresponds to the JSON property `count`
# @return [Fixnum]
attr_accessor :count
# The lower bound of the value interval of this bucket (inclusive).
# Corresponds to the JSON property `lowerBound`
# @return [Float]
attr_accessor :lower_bound
# The upper bound of the value interval of this bucket (exclusive).
# Corresponds to the JSON property `upperBound`
# @return [Float]
attr_accessor :upper_bound
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@count = args[:count] if args.key?(:count)
@lower_bound = args[:lower_bound] if args.key?(:lower_bound)
@upper_bound = args[:upper_bound] if args.key?(:upper_bound)
end
end
# The overflow bucket is a special bucket that does not have the upperBound
# field; it includes all of the events that are no less than its lower bound.
class PointDistributionOverflowBucket
include Google::Apis::Core::Hashable
# The number of events whose values are in the interval defined by this bucket.
# Corresponds to the JSON property `count`
# @return [Fixnum]
attr_accessor :count
# The lower bound of the value interval of this bucket (inclusive).
# Corresponds to the JSON property `lowerBound`
# @return [Float]
attr_accessor :lower_bound
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@count = args[:count] if args.key?(:count)
@lower_bound = args[:lower_bound] if args.key?(:lower_bound)
end
end
# The underflow bucket is a special bucket that does not have the lowerBound
# field; it includes all of the events that are less than its upper bound.
class PointDistributionUnderflowBucket
include Google::Apis::Core::Hashable
# The number of events whose values are in the interval defined by this bucket.
# Corresponds to the JSON property `count`
# @return [Fixnum]
attr_accessor :count
# The upper bound of the value interval of this bucket (exclusive).
# Corresponds to the JSON property `upperBound`
# @return [Float]
attr_accessor :upper_bound
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@count = args[:count] if args.key?(:count)
@upper_bound = args[:upper_bound] if args.key?(:upper_bound)
end
end
# The monitoring data is organized as metrics and stored as data points that are
# recorded over time. Each data point represents information like the CPU
# utilization of your virtual machine. A historical record of these data points
# is called a time series.
class Timeseries
include Google::Apis::Core::Hashable
# The data points of this time series. The points are listed in order of their
# end timestamp, from younger to older.
# Corresponds to the JSON property `points`
# @return [Array<Google::Apis::CloudmonitoringV2beta2::Point>]
attr_accessor :points
# TimeseriesDescriptor identifies a single time series.
# Corresponds to the JSON property `timeseriesDesc`
# @return [Google::Apis::CloudmonitoringV2beta2::TimeseriesDescriptor]
attr_accessor :timeseries_desc
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@points = args[:points] if args.key?(:points)
@timeseries_desc = args[:timeseries_desc] if args.key?(:timeseries_desc)
end
end
# TimeseriesDescriptor identifies a single time series.
class TimeseriesDescriptor
include Google::Apis::Core::Hashable
# The label's name.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
# The name of the metric.
# Corresponds to the JSON property `metric`
# @return [String]
attr_accessor :metric
# The Developers Console project number to which this time series belongs.
# Corresponds to the JSON property `project`
# @return [String]
attr_accessor :project
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@labels = args[:labels] if args.key?(:labels)
@metric = args[:metric] if args.key?(:metric)
@project = args[:project] if args.key?(:project)
end
end
#
class TimeseriesDescriptorLabel
include Google::Apis::Core::Hashable
# The label's name.
# Corresponds to the JSON property `key`
# @return [String]
attr_accessor :key
# The label's value.
# 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
# When writing time series, TimeseriesPoint should be used instead of Timeseries,
# to enforce single point for each time series in the timeseries.write request.
class TimeseriesPoint
include Google::Apis::Core::Hashable
# Point is a single point in a time series. It consists of a start time, an end
# time, and a value.
# Corresponds to the JSON property `point`
# @return [Google::Apis::CloudmonitoringV2beta2::Point]
attr_accessor :point
# TimeseriesDescriptor identifies a single time series.
# Corresponds to the JSON property `timeseriesDesc`
# @return [Google::Apis::CloudmonitoringV2beta2::TimeseriesDescriptor]
attr_accessor :timeseries_desc
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@point = args[:point] if args.key?(:point)
@timeseries_desc = args[:timeseries_desc] if args.key?(:timeseries_desc)
end
end
# The request of cloudmonitoring.timeseries.write
class WriteTimeseriesRequest
include Google::Apis::Core::Hashable
# The label's name.
# Corresponds to the JSON property `commonLabels`
# @return [Hash<String,String>]
attr_accessor :common_labels
# Provide time series specific labels and the data points for each time series.
# The labels in timeseries and the common_labels should form a complete list of
# labels that required by the metric.
# Corresponds to the JSON property `timeseries`
# @return [Array<Google::Apis::CloudmonitoringV2beta2::TimeseriesPoint>]
attr_accessor :timeseries
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@common_labels = args[:common_labels] if args.key?(:common_labels)
@timeseries = args[:timeseries] if args.key?(:timeseries)
end
end
# The response of cloudmonitoring.timeseries.write
class WriteTimeseriesResponse
include Google::Apis::Core::Hashable
# Identifies what kind of resource this is. Value: the fixed string "
# cloudmonitoring#writeTimeseriesResponse".
# 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)
@kind = args[:kind] if args.key?(:kind)
end
end
end
end
end

View File

@ -1,353 +0,0 @@
# 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 CloudmonitoringV2beta2
class DeleteMetricDescriptorResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListMetricDescriptorsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListMetricDescriptorsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListTimeseriesDescriptorsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListTimeseriesDescriptorsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListTimeseriesRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListTimeseriesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MetricDescriptor
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MetricDescriptorLabelDescriptor
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MetricDescriptorTypeDescriptor
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Point
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PointDistribution
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PointDistributionBucket
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PointDistributionOverflowBucket
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PointDistributionUnderflowBucket
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Timeseries
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TimeseriesDescriptor
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TimeseriesDescriptorLabel
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TimeseriesPoint
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class WriteTimeseriesRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class WriteTimeseriesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DeleteMetricDescriptorResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
end
end
class ListMetricDescriptorsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
end
end
class ListMetricDescriptorsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
collection :metrics, as: 'metrics', class: Google::Apis::CloudmonitoringV2beta2::MetricDescriptor, decorator: Google::Apis::CloudmonitoringV2beta2::MetricDescriptor::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class ListTimeseriesDescriptorsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
end
end
class ListTimeseriesDescriptorsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :oldest, as: 'oldest', type: DateTime
collection :timeseries, as: 'timeseries', class: Google::Apis::CloudmonitoringV2beta2::TimeseriesDescriptor, decorator: Google::Apis::CloudmonitoringV2beta2::TimeseriesDescriptor::Representation
property :youngest, as: 'youngest', type: DateTime
end
end
class ListTimeseriesRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
end
end
class ListTimeseriesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :oldest, as: 'oldest', type: DateTime
collection :timeseries, as: 'timeseries', class: Google::Apis::CloudmonitoringV2beta2::Timeseries, decorator: Google::Apis::CloudmonitoringV2beta2::Timeseries::Representation
property :youngest, as: 'youngest', type: DateTime
end
end
class MetricDescriptor
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
collection :labels, as: 'labels', class: Google::Apis::CloudmonitoringV2beta2::MetricDescriptorLabelDescriptor, decorator: Google::Apis::CloudmonitoringV2beta2::MetricDescriptorLabelDescriptor::Representation
property :name, as: 'name'
property :project, as: 'project'
property :type_descriptor, as: 'typeDescriptor', class: Google::Apis::CloudmonitoringV2beta2::MetricDescriptorTypeDescriptor, decorator: Google::Apis::CloudmonitoringV2beta2::MetricDescriptorTypeDescriptor::Representation
end
end
class MetricDescriptorLabelDescriptor
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :key, as: 'key'
end
end
class MetricDescriptorTypeDescriptor
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :metric_type, as: 'metricType'
property :value_type, as: 'valueType'
end
end
class Point
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :bool_value, as: 'boolValue'
property :distribution_value, as: 'distributionValue', class: Google::Apis::CloudmonitoringV2beta2::PointDistribution, decorator: Google::Apis::CloudmonitoringV2beta2::PointDistribution::Representation
property :double_value, as: 'doubleValue'
property :end, as: 'end', type: DateTime
property :int64_value, :numeric_string => true, as: 'int64Value'
property :start, as: 'start', type: DateTime
property :string_value, as: 'stringValue'
end
end
class PointDistribution
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :buckets, as: 'buckets', class: Google::Apis::CloudmonitoringV2beta2::PointDistributionBucket, decorator: Google::Apis::CloudmonitoringV2beta2::PointDistributionBucket::Representation
property :overflow_bucket, as: 'overflowBucket', class: Google::Apis::CloudmonitoringV2beta2::PointDistributionOverflowBucket, decorator: Google::Apis::CloudmonitoringV2beta2::PointDistributionOverflowBucket::Representation
property :underflow_bucket, as: 'underflowBucket', class: Google::Apis::CloudmonitoringV2beta2::PointDistributionUnderflowBucket, decorator: Google::Apis::CloudmonitoringV2beta2::PointDistributionUnderflowBucket::Representation
end
end
class PointDistributionBucket
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :count, :numeric_string => true, as: 'count'
property :lower_bound, as: 'lowerBound'
property :upper_bound, as: 'upperBound'
end
end
class PointDistributionOverflowBucket
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :count, :numeric_string => true, as: 'count'
property :lower_bound, as: 'lowerBound'
end
end
class PointDistributionUnderflowBucket
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :count, :numeric_string => true, as: 'count'
property :upper_bound, as: 'upperBound'
end
end
class Timeseries
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :points, as: 'points', class: Google::Apis::CloudmonitoringV2beta2::Point, decorator: Google::Apis::CloudmonitoringV2beta2::Point::Representation
property :timeseries_desc, as: 'timeseriesDesc', class: Google::Apis::CloudmonitoringV2beta2::TimeseriesDescriptor, decorator: Google::Apis::CloudmonitoringV2beta2::TimeseriesDescriptor::Representation
end
end
class TimeseriesDescriptor
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :labels, as: 'labels'
property :metric, as: 'metric'
property :project, as: 'project'
end
end
class TimeseriesDescriptorLabel
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :key, as: 'key'
property :value, as: 'value'
end
end
class TimeseriesPoint
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :point, as: 'point', class: Google::Apis::CloudmonitoringV2beta2::Point, decorator: Google::Apis::CloudmonitoringV2beta2::Point::Representation
property :timeseries_desc, as: 'timeseriesDesc', class: Google::Apis::CloudmonitoringV2beta2::TimeseriesDescriptor, decorator: Google::Apis::CloudmonitoringV2beta2::TimeseriesDescriptor::Representation
end
end
class WriteTimeseriesRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :common_labels, as: 'commonLabels'
collection :timeseries, as: 'timeseries', class: Google::Apis::CloudmonitoringV2beta2::TimeseriesPoint, decorator: Google::Apis::CloudmonitoringV2beta2::TimeseriesPoint::Representation
end
end
class WriteTimeseriesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
end
end
end
end
end

View File

@ -1,453 +0,0 @@
# 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 CloudmonitoringV2beta2
# Cloud Monitoring API
#
# Accesses Google Cloud Monitoring data.
#
# @example
# require 'google/apis/cloudmonitoring_v2beta2'
#
# Cloudmonitoring = Google::Apis::CloudmonitoringV2beta2 # Alias the module
# service = Cloudmonitoring::CloudMonitoringService.new
#
# @see https://cloud.google.com/monitoring/v2beta2/
class CloudMonitoringService < 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/', 'cloudmonitoring/v2beta2/projects/')
@batch_path = 'batch/cloudmonitoring/v2beta2'
end
# Create a new metric.
# @param [String] project
# The project id. The value can be the numeric project ID or string-based
# project name.
# @param [Google::Apis::CloudmonitoringV2beta2::MetricDescriptor] metric_descriptor_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::CloudmonitoringV2beta2::MetricDescriptor] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudmonitoringV2beta2::MetricDescriptor]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_metric_descriptor(project, metric_descriptor_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/metricDescriptors', options)
command.request_representation = Google::Apis::CloudmonitoringV2beta2::MetricDescriptor::Representation
command.request_object = metric_descriptor_object
command.response_representation = Google::Apis::CloudmonitoringV2beta2::MetricDescriptor::Representation
command.response_class = Google::Apis::CloudmonitoringV2beta2::MetricDescriptor
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
# Delete an existing metric.
# @param [String] project
# The project ID to which the metric belongs.
# @param [String] metric
# Name of the metric.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available 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::CloudmonitoringV2beta2::DeleteMetricDescriptorResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudmonitoringV2beta2::DeleteMetricDescriptorResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_metric_descriptor(project, metric, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, '{project}/metricDescriptors/{metric}', options)
command.response_representation = Google::Apis::CloudmonitoringV2beta2::DeleteMetricDescriptorResponse::Representation
command.response_class = Google::Apis::CloudmonitoringV2beta2::DeleteMetricDescriptorResponse
command.params['project'] = project unless project.nil?
command.params['metric'] = metric unless metric.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 metric descriptors that match the query. If the query is not set, then
# all of the metric descriptors will be returned. Large responses will be
# paginated, use the nextPageToken returned in the response to request
# subsequent pages of results by setting the pageToken query parameter to the
# value of the nextPageToken.
# @param [String] project
# The project id. The value can be the numeric project ID or string-based
# project name.
# @param [Google::Apis::CloudmonitoringV2beta2::ListMetricDescriptorsRequest] list_metric_descriptors_request_object
# @param [Fixnum] count
# Maximum number of metric descriptors per page. Used for pagination. If not
# specified, count = 100.
# @param [String] page_token
# The pagination token, which is used to page through large result sets. Set
# this value to the value of the nextPageToken to retrieve the next page of
# results.
# @param [String] query
# The query used to search against existing metrics. Separate keywords with a
# space; the service joins all keywords with AND, meaning that all keywords must
# match for a metric to be returned. If this field is omitted, all metrics are
# returned. If an empty string is passed with this field, no metrics are
# returned.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# 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::CloudmonitoringV2beta2::ListMetricDescriptorsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudmonitoringV2beta2::ListMetricDescriptorsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_metric_descriptors(project, list_metric_descriptors_request_object = nil, count: nil, page_token: nil, query: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/metricDescriptors', options)
command.request_representation = Google::Apis::CloudmonitoringV2beta2::ListMetricDescriptorsRequest::Representation
command.request_object = list_metric_descriptors_request_object
command.response_representation = Google::Apis::CloudmonitoringV2beta2::ListMetricDescriptorsResponse::Representation
command.response_class = Google::Apis::CloudmonitoringV2beta2::ListMetricDescriptorsResponse
command.params['project'] = project unless project.nil?
command.query['count'] = count unless count.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['query'] = query unless query.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 the data points of the time series that match the metric and labels
# values and that have data points in the interval. Large responses are
# paginated; use the nextPageToken returned in the response to request
# subsequent pages of results by setting the pageToken query parameter to the
# value of the nextPageToken.
# @param [String] project
# The project ID to which this time series belongs. The value can be the numeric
# project ID or string-based project name.
# @param [String] metric
# Metric names are protocol-free URLs as listed in the Supported Metrics page.
# For example, compute.googleapis.com/instance/disk/read_ops_count.
# @param [String] youngest
# End of the time interval (inclusive), which is expressed as an RFC 3339
# timestamp.
# @param [Google::Apis::CloudmonitoringV2beta2::ListTimeseriesRequest] list_timeseries_request_object
# @param [String] aggregator
# The aggregation function that will reduce the data points in each window to a
# single point. This parameter is only valid for non-cumulative metrics with a
# value type of INT64 or DOUBLE.
# @param [Fixnum] count
# Maximum number of data points per page, which is used for pagination of
# results.
# @param [Array<String>, String] labels
# A collection of labels for the matching time series, which are represented as:
#
# - key==value: key equals the value
# - key=~value: key regex matches the value
# - key!=value: key does not equal the value
# - key!~value: key regex does not match the value For example, to list all of
# the time series descriptors for the region us-central1, you could specify:
# label=cloud.googleapis.com%2Flocation=~us-central1.*
# @param [String] oldest
# Start of the time interval (exclusive), which is expressed as an RFC 3339
# timestamp. If neither oldest nor timespan is specified, the default time
# interval will be (youngest - 4 hours, youngest]
# @param [String] page_token
# The pagination token, which is used to page through large result sets. Set
# this value to the value of the nextPageToken to retrieve the next page of
# results.
# @param [String] timespan
# Length of the time interval to query, which is an alternative way to declare
# the interval: (youngest - timespan, youngest]. The timespan and oldest
# parameters should not be used together. Units:
# - s: second
# - m: minute
# - h: hour
# - d: day
# - w: week Examples: 2s, 3m, 4w. Only one unit is allowed, for example: 2w3d
# is not allowed; you should use 17d instead.
# If neither oldest nor timespan is specified, the default time interval will be
# (youngest - 4 hours, youngest].
# @param [String] window
# The sampling window. At most one data point will be returned for each window
# in the requested time interval. This parameter is only valid for non-
# cumulative metric types. Units:
# - m: minute
# - h: hour
# - d: day
# - w: week Examples: 3m, 4w. Only one unit is allowed, for example: 2w3d is
# not allowed; you should use 17d instead.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# 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::CloudmonitoringV2beta2::ListTimeseriesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudmonitoringV2beta2::ListTimeseriesResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_timeseries(project, metric, youngest, list_timeseries_request_object = nil, aggregator: nil, count: nil, labels: nil, oldest: nil, page_token: nil, timespan: nil, window: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/timeseries/{metric}', options)
command.request_representation = Google::Apis::CloudmonitoringV2beta2::ListTimeseriesRequest::Representation
command.request_object = list_timeseries_request_object
command.response_representation = Google::Apis::CloudmonitoringV2beta2::ListTimeseriesResponse::Representation
command.response_class = Google::Apis::CloudmonitoringV2beta2::ListTimeseriesResponse
command.params['project'] = project unless project.nil?
command.params['metric'] = metric unless metric.nil?
command.query['aggregator'] = aggregator unless aggregator.nil?
command.query['count'] = count unless count.nil?
command.query['labels'] = labels unless labels.nil?
command.query['oldest'] = oldest unless oldest.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['timespan'] = timespan unless timespan.nil?
command.query['window'] = window unless window.nil?
command.query['youngest'] = youngest unless youngest.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
# Put data points to one or more time series for one or more metrics. If a time
# series does not exist, a new time series will be created. It is not allowed to
# write a time series point that is older than the existing youngest point of
# that time series. Points that are older than the existing youngest point of
# that time series will be discarded silently. Therefore, users should make sure
# that points of a time series are written sequentially in the order of their
# end time.
# @param [String] project
# The project ID. The value can be the numeric project ID or string-based
# project name.
# @param [Google::Apis::CloudmonitoringV2beta2::WriteTimeseriesRequest] write_timeseries_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::CloudmonitoringV2beta2::WriteTimeseriesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudmonitoringV2beta2::WriteTimeseriesResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def write_timeseries(project, write_timeseries_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/timeseries:write', options)
command.request_representation = Google::Apis::CloudmonitoringV2beta2::WriteTimeseriesRequest::Representation
command.request_object = write_timeseries_request_object
command.response_representation = Google::Apis::CloudmonitoringV2beta2::WriteTimeseriesResponse::Representation
command.response_class = Google::Apis::CloudmonitoringV2beta2::WriteTimeseriesResponse
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 the descriptors of the time series that match the metric and labels
# values and that have data points in the interval. Large responses are
# paginated; use the nextPageToken returned in the response to request
# subsequent pages of results by setting the pageToken query parameter to the
# value of the nextPageToken.
# @param [String] project
# The project ID to which this time series belongs. The value can be the numeric
# project ID or string-based project name.
# @param [String] metric
# Metric names are protocol-free URLs as listed in the Supported Metrics page.
# For example, compute.googleapis.com/instance/disk/read_ops_count.
# @param [String] youngest
# End of the time interval (inclusive), which is expressed as an RFC 3339
# timestamp.
# @param [Google::Apis::CloudmonitoringV2beta2::ListTimeseriesDescriptorsRequest] list_timeseries_descriptors_request_object
# @param [String] aggregator
# The aggregation function that will reduce the data points in each window to a
# single point. This parameter is only valid for non-cumulative metrics with a
# value type of INT64 or DOUBLE.
# @param [Fixnum] count
# Maximum number of time series descriptors per page. Used for pagination. If
# not specified, count = 100.
# @param [Array<String>, String] labels
# A collection of labels for the matching time series, which are represented as:
#
# - key==value: key equals the value
# - key=~value: key regex matches the value
# - key!=value: key does not equal the value
# - key!~value: key regex does not match the value For example, to list all of
# the time series descriptors for the region us-central1, you could specify:
# label=cloud.googleapis.com%2Flocation=~us-central1.*
# @param [String] oldest
# Start of the time interval (exclusive), which is expressed as an RFC 3339
# timestamp. If neither oldest nor timespan is specified, the default time
# interval will be (youngest - 4 hours, youngest]
# @param [String] page_token
# The pagination token, which is used to page through large result sets. Set
# this value to the value of the nextPageToken to retrieve the next page of
# results.
# @param [String] timespan
# Length of the time interval to query, which is an alternative way to declare
# the interval: (youngest - timespan, youngest]. The timespan and oldest
# parameters should not be used together. Units:
# - s: second
# - m: minute
# - h: hour
# - d: day
# - w: week Examples: 2s, 3m, 4w. Only one unit is allowed, for example: 2w3d
# is not allowed; you should use 17d instead.
# If neither oldest nor timespan is specified, the default time interval will be
# (youngest - 4 hours, youngest].
# @param [String] window
# The sampling window. At most one data point will be returned for each window
# in the requested time interval. This parameter is only valid for non-
# cumulative metric types. Units:
# - m: minute
# - h: hour
# - d: day
# - w: week Examples: 3m, 4w. Only one unit is allowed, for example: 2w3d is
# not allowed; you should use 17d instead.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# 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::CloudmonitoringV2beta2::ListTimeseriesDescriptorsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudmonitoringV2beta2::ListTimeseriesDescriptorsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_timeseries_descriptors(project, metric, youngest, list_timeseries_descriptors_request_object = nil, aggregator: nil, count: nil, labels: nil, oldest: nil, page_token: nil, timespan: nil, window: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/timeseriesDescriptors/{metric}', options)
command.request_representation = Google::Apis::CloudmonitoringV2beta2::ListTimeseriesDescriptorsRequest::Representation
command.request_object = list_timeseries_descriptors_request_object
command.response_representation = Google::Apis::CloudmonitoringV2beta2::ListTimeseriesDescriptorsResponse::Representation
command.response_class = Google::Apis::CloudmonitoringV2beta2::ListTimeseriesDescriptorsResponse
command.params['project'] = project unless project.nil?
command.params['metric'] = metric unless metric.nil?
command.query['aggregator'] = aggregator unless aggregator.nil?
command.query['count'] = count unless count.nil?
command.query['labels'] = labels unless labels.nil?
command.query['oldest'] = oldest unless oldest.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['timespan'] = timespan unless timespan.nil?
command.query['window'] = window unless window.nil?
command.query['youngest'] = youngest unless youngest.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://cloud.google.com/cloud-tasks/
module CloudtasksV2beta2
VERSION = 'V2beta2'
REVISION = '20171005'
REVISION = '20171123'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -130,8 +130,6 @@ module Google
# The app's request handler for the task's target URL must be able to handle
# HTTP requests with this http_method, otherwise the task attempt will fail
# with error code 405 (Method Not Allowed). See
# the Request-Line is not allowed for the resource identified by the
# Request-URI". See
# [Writing a push task request handler](/appengine/docs/java/taskqueue/push/
# creating-handlers#writing_a_push_task_request_handler)
# and the documentation for the request handlers in the language your app is
@ -211,7 +209,7 @@ module Google
end
end
# Deprecated. Use AppEngineTarget.
# Deprecated. Use AppEngineHttpTarget.
class AppEngineQueueConfig
include Google::Apis::Core::Hashable
@ -250,8 +248,8 @@ module Google
class AppEngineRouting
include Google::Apis::Core::Hashable
# Output only.
# The host that the task is sent to. For more information, see
# Output only. The host that the task is sent to.
# For more information, see
# [How Requests are Routed](/appengine/docs/standard/python/how-requests-are-
# routed).
# The host is constructed as:
@ -410,8 +408,7 @@ module Google
class AttemptStatus
include Google::Apis::Core::Hashable
# Output only.
# The time that this attempt was dispatched.
# Output only. The time that this attempt was dispatched.
# `dispatch_time` will be truncated to the nearest microsecond.
# Corresponds to the JSON property `dispatchTime`
# @return [String]
@ -460,15 +457,13 @@ module Google
# @return [Google::Apis::CloudtasksV2beta2::Status]
attr_accessor :response_status
# Output only.
# The time that this attempt response was received.
# Output only. The time that this attempt response was received.
# `response_time` will be truncated to the nearest microsecond.
# Corresponds to the JSON property `responseTime`
# @return [String]
attr_accessor :response_time
# Output only.
# The time that this attempt was scheduled.
# Output only. The time that this attempt was scheduled.
# `schedule_time` will be truncated to the nearest microsecond.
# Corresponds to the JSON property `scheduleTime`
# @return [String]
@ -668,7 +663,6 @@ module Google
# If the next_page_token is empty, there are no more results.
# The page token is valid for only 2 hours.
# Corresponds to the JSON property `nextPageToken`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
attr_accessor :next_page_token
@ -698,7 +692,6 @@ module Google
# ListTasksRequest.page_token.
# If the next_page_token is empty, there are no more results.
# Corresponds to the JSON property `nextPageToken`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
attr_accessor :next_page_token
@ -850,9 +843,14 @@ module Google
# @return [String]
attr_accessor :payload
# A meta-data tag for this task.
# This value is used by CloudTasks.PullTasks calls when
# PullTasksRequest.filter is `tag=<tag>`.
# The task's tag.
# Tags allow similar tasks to be processed in a batch. If you label
# tasks with a tag, your task worker can pull tasks
# with the same tag using PullTasksRequest.filter. For example,
# if you want to aggregate the events associated with a specific
# user once a day, you could tag tasks with the user ID.
# The task's tag can only be set when the
# task is created.
# The tag must be less than 500 bytes.
# Corresponds to the JSON property `tag`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
@ -1049,7 +1047,7 @@ module Google
# @return [Google::Apis::CloudtasksV2beta2::AppEngineHttpTarget]
attr_accessor :app_engine_http_target
# Deprecated. Use AppEngineTarget.
# Deprecated. Use AppEngineHttpTarget.
# Corresponds to the JSON property `appEngineQueueConfig`
# @return [Google::Apis::CloudtasksV2beta2::AppEngineQueueConfig]
attr_accessor :app_engine_queue_config
@ -1057,13 +1055,14 @@ module Google
# The queue name.
# The queue name must have the following format:
# `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
# * `PROJECT_ID` can contain uppercase and lowercase letters,
# numbers, hyphens, colons, and periods; that is, it must match
# the regular expression: `[a-zA-Z\\d-:\\.]+`.
# * `QUEUE_ID` can contain uppercase and lowercase letters,
# numbers, and hyphens; that is, it must match the regular
# expression: `[a-zA-Z\\d-]+`. The maximum length is 100
# characters.
# * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
# hyphens (-), colons (:), or periods (.).
# * `LOCATION_ID` is the canonical ID for the queue's location.
# The list of available locations can be obtained by calling
# google.cloud.location.Locations.ListLocations.
# For more information, see https://cloud.google.com/about/locations/.
# * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
# hyphens (-). The maximum length is 100 characters.
# Caller-specified and required in CreateQueueRequest, after which
# it becomes output only.
# Corresponds to the JSON property `name`
@ -1080,9 +1079,9 @@ module Google
# @return [Google::Apis::CloudtasksV2beta2::PullTarget]
attr_accessor :pull_target
# Output only.
# The last time this queue was purged. All tasks that were
# created before this time were purged.
# Output only. The last time this queue was purged.
# All tasks that were created before this time
# were purged.
# A queue can be purged using CloudTasks.PurgeQueue, the
# [App Engine Task Queue SDK, or the Cloud Console](/appengine/docs/standard/
# python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue)
@ -1093,16 +1092,6 @@ module Google
# @return [String]
attr_accessor :purge_time
# Output only.
# The state of the queue.
# `queue_state` can only be changed by called
# CloudTasks.PauseQueue, CloudTasks.ResumeQueue, or uploading
# [queue.yaml](/appengine/docs/python/config/queueref).
# CloudTasks.UpdateQueue cannot be used to change `queue_state`.
# Corresponds to the JSON property `queueState`
# @return [String]
attr_accessor :queue_state
# Rate limits.
# This message determines the maximum rate that tasks can be dispatched by a
# queue, regardless of whether the dispatch is a first task attempt or a retry.
@ -1116,6 +1105,15 @@ module Google
# @return [Google::Apis::CloudtasksV2beta2::RetryConfig]
attr_accessor :retry_config
# Output only. The state of the queue.
# `state` can only be changed by called
# CloudTasks.PauseQueue, CloudTasks.ResumeQueue, or uploading
# [queue.yaml](/appengine/docs/python/config/queueref).
# CloudTasks.UpdateQueue cannot be used to change `state`.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
def initialize(**args)
update!(**args)
end
@ -1128,9 +1126,9 @@ module Google
@pull_queue_config = args[:pull_queue_config] if args.key?(:pull_queue_config)
@pull_target = args[:pull_target] if args.key?(:pull_target)
@purge_time = args[:purge_time] if args.key?(:purge_time)
@queue_state = args[:queue_state] if args.key?(:queue_state)
@rate_limits = args[:rate_limits] if args.key?(:rate_limits)
@retry_config = args[:retry_config] if args.key?(:retry_config)
@state = args[:state] if args.key?(:state)
end
end
@ -1140,12 +1138,12 @@ module Google
class RateLimits
include Google::Apis::Core::Hashable
# Output only.
# The max burst size limits how fast the queue is processed when
# many tasks are in the queue and the rate is high. This field
# allows the queue to have a high rate so processing starts shortly
# after a task is enqueued, but still limits resource usage when
# many tasks are enqueued in a short period of time.
# Output only. The max burst size.
# Max burst size limits how fast the queue is processed when many
# tasks are in the queue and the rate is high. This field allows
# the queue to have a high rate so processing starts shortly after
# a task is enqueued, but still limits resource usage when many
# tasks are enqueued in a short period of time.
# * For App Engine queues, if
# RateLimits.max_tasks_dispatched_per_second is 1, this
# field is 10; otherwise this field is
@ -1182,6 +1180,8 @@ module Google
# The maximum allowed value is 500.
# * For App Engine queues, this field is 1 by default.
# * For pull queues, this field is output only and always 10,000.
# In addition to the `max_tasks_dispatched_per_second` limit, a maximum of
# 10 QPS of CloudTasks.PullTasks requests are allowed per queue.
# This field has the same meaning as
# [rate in queue.yaml](/appengine/docs/standard/python/config/queueref#rate).
# Corresponds to the JSON property `maxTasksDispatchedPerSecond`
@ -1207,10 +1207,10 @@ module Google
# Required.
# The desired new lease duration, starting from now.
# The maximum lease duration is 1 week.
# `new_lease_duration` will be truncated to the nearest second.
# Corresponds to the JSON property `newLeaseDuration`
# `lease_duration` will be truncated to the nearest second.
# Corresponds to the JSON property `leaseDuration`
# @return [String]
attr_accessor :new_lease_duration
attr_accessor :lease_duration
# The response_view specifies which subset of the Task will be
# returned.
@ -1241,7 +1241,7 @@ module Google
# Update properties of this object
def update!(**args)
@new_lease_duration = args[:new_lease_duration] if args.key?(:new_lease_duration)
@lease_duration = args[:lease_duration] if args.key?(:lease_duration)
@response_view = args[:response_view] if args.key?(:response_view)
@schedule_time = args[:schedule_time] if args.key?(:schedule_time)
end
@ -1287,11 +1287,19 @@ module Google
# @return [String]
attr_accessor :max_backoff
# The time between retries increases exponentially `max_doublings` times.
# `max_doublings` is maximum number of times that the interval between failed
# task retries will be doubled before the interval increases linearly.
# After max_doublings intervals, the retry interval will be
# 2^(max_doublings - 1) * RetryConfig.min_backoff.
# The time between retries will double `max_doublings` times.
# A task's retry interval starts at RetryConfig.min_backoff,
# then doubles `max_doublings` times, then increases linearly, and
# finally retries retries at intervals of
# RetryConfig.max_backoff up to max_attempts times.
# For example, if RetryConfig.min_backoff is 10s,
# RetryConfig.max_backoff is 300s, and `max_doublings` is 3,
# then the a task will first be retried in 10s. The retry interval
# will double three times, and then increase linearly by 2^3 * 10s.
# Finally, the task will retry at intervals of
# RetryConfig.max_backoff until the task has been attempted
# `max_attempts` times. Thus, the requests will retry at 10s, 20s,
# 40s, 80s, 160s, 240s, 300s, 300s, ....
# * For [App Engine queues](google.cloud.tasks.v2beta2.AppEngineHttpTarget),
# this field is 16 by default.
# * For [pull queues](google.cloud.tasks.v2beta2.PullTarget), this field
@ -1546,8 +1554,7 @@ module Google
# @return [Google::Apis::CloudtasksV2beta2::AppEngineTaskTarget]
attr_accessor :app_engine_task_target
# Output only.
# The time that the task was created.
# Output only. The time that the task was created.
# `create_time` will be truncated to the nearest second.
# Corresponds to the JSON property `createTime`
# @return [String]
@ -1556,17 +1563,16 @@ module Google
# The task name.
# The task name must have the following format:
# `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
# * `PROJECT_ID` can contain uppercase and lowercase letters,
# numbers, hyphens, colons, and periods; that is, it must match
# the regular expression: `[a-zA-Z\\d-:\\.]+`.
# * `QUEUE_ID` can contain uppercase and lowercase letters,
# numbers, and hyphens; that is, it must match the regular
# expression: `[a-zA-Z\\d-]+`. The maximum length is 100
# characters.
# * `TASK_ID` contain uppercase and lowercase letters, numbers,
# underscores, and hyphens; that is, it must match the regular
# expression: `[a-zA-Z\\d_-]+`. The maximum length is 500
# characters.
# * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
# hyphens (-), colons (:), or periods (.).
# * `LOCATION_ID` is the canonical ID for the task's location.
# The list of available locations can be obtained by calling
# google.cloud.location.Locations.ListLocations.
# For more information, see https://cloud.google.com/about/locations/.
# * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
# hyphens (-). The maximum length is 100 characters.
# * `TASK_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
# hyphens (-), or underscores (_). The maximum length is 500 characters.
# Optionally caller-specified in CreateTaskRequest.
# Corresponds to the JSON property `name`
# @return [String]
@ -1601,9 +1607,8 @@ module Google
# @return [Google::Apis::CloudtasksV2beta2::TaskStatus]
attr_accessor :task_status
# Output only.
# The view specifies which subset of the Task has been
# returned.
# Output only. The view specifies which subset of the Task has
# been returned.
# Corresponds to the JSON property `view`
# @return [String]
attr_accessor :view
@ -1630,15 +1635,14 @@ module Google
class TaskStatus
include Google::Apis::Core::Hashable
# Output only.
# The number of attempts dispatched. This count includes tasks which have
# been dispatched but haven't received a response.
# Output only. The number of attempts dispatched.
# This count includes tasks which have been dispatched but haven't
# received a response.
# Corresponds to the JSON property `attemptDispatchCount`
# @return [Fixnum]
attr_accessor :attempt_dispatch_count
# Output only.
# The number of attempts which have received a response.
# Output only. The number of attempts which have received a response.
# This field is not calculated for
# [pull tasks](google.cloud.tasks.v2beta2.PullTaskTarget).
# Corresponds to the JSON property `attemptResponseCount`

View File

@ -361,7 +361,7 @@ module Google
class ListQueuesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, :base64 => true, as: 'nextPageToken'
property :next_page_token, as: 'nextPageToken'
collection :queues, as: 'queues', class: Google::Apis::CloudtasksV2beta2::Queue, decorator: Google::Apis::CloudtasksV2beta2::Queue::Representation
end
@ -370,7 +370,7 @@ module Google
class ListTasksResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, :base64 => true, as: 'nextPageToken'
property :next_page_token, as: 'nextPageToken'
collection :tasks, as: 'tasks', class: Google::Apis::CloudtasksV2beta2::Task, decorator: Google::Apis::CloudtasksV2beta2::Task::Representation
end
@ -467,11 +467,11 @@ module Google
property :pull_target, as: 'pullTarget', class: Google::Apis::CloudtasksV2beta2::PullTarget, decorator: Google::Apis::CloudtasksV2beta2::PullTarget::Representation
property :purge_time, as: 'purgeTime'
property :queue_state, as: 'queueState'
property :rate_limits, as: 'rateLimits', class: Google::Apis::CloudtasksV2beta2::RateLimits, decorator: Google::Apis::CloudtasksV2beta2::RateLimits::Representation
property :retry_config, as: 'retryConfig', class: Google::Apis::CloudtasksV2beta2::RetryConfig, decorator: Google::Apis::CloudtasksV2beta2::RetryConfig::Representation
property :state, as: 'state'
end
end
@ -487,7 +487,7 @@ module Google
class RenewLeaseRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :new_lease_duration, as: 'newLeaseDuration'
property :lease_duration, as: 'leaseDuration'
property :response_view, as: 'responseView'
property :schedule_time, as: 'scheduleTime'
end

View File

@ -118,11 +118,11 @@ module Google
end
# Creates a queue.
# WARNING: This method is only available to whitelisted
# users. Using this method carries some risk. Read
# WARNING: Using this method may have unintended side effects if you are
# using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
# Read
# [Overview of Queue Management and queue.yaml](/cloud-tasks/docs/queue-yaml)
# carefully and then sign up for
# [whitelist access to this method](https://goo.gl/Fe5mUy).
# carefully before using this method.
# @param [String] parent
# Required.
# The location name in which the queue will be created.
@ -164,11 +164,11 @@ module Google
# This command will delete the queue even if it has tasks in it.
# Note: If you delete a queue, a queue with the same name can't be created
# for 7 days.
# WARNING: This method is only available to whitelisted
# users. Using this method carries some risk. Read
# WARNING: Using this method may have unintended side effects if you are
# using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
# Read
# [Overview of Queue Management and queue.yaml](/cloud-tasks/docs/queue-yaml)
# carefully and then sign up for
# [whitelist access to this method](https://goo.gl/Fe5mUy).
# carefully before using this method.
# @param [String] name
# Required.
# The queue name. For example:
@ -334,22 +334,23 @@ module Google
# Updates a queue.
# This method creates the queue if it does not exist and updates
# the queue if it does exist.
# WARNING: This method is only available to whitelisted
# users. Using this method carries some risk. Read
# WARNING: Using this method may have unintended side effects if you are
# using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
# Read
# [Overview of Queue Management and queue.yaml](/cloud-tasks/docs/queue-yaml)
# carefully and then sign up for
# [whitelist access to this method](https://goo.gl/Fe5mUy).
# carefully before using this method.
# @param [String] name
# The queue name.
# The queue name must have the following format:
# `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
# * `PROJECT_ID` can contain uppercase and lowercase letters,
# numbers, hyphens, colons, and periods; that is, it must match
# the regular expression: `[a-zA-Z\\d-:\\.]+`.
# * `QUEUE_ID` can contain uppercase and lowercase letters,
# numbers, and hyphens; that is, it must match the regular
# expression: `[a-zA-Z\\d-]+`. The maximum length is 100
# characters.
# * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
# hyphens (-), colons (:), or periods (.).
# * `LOCATION_ID` is the canonical ID for the queue's location.
# The list of available locations can be obtained by calling
# google.cloud.location.Locations.ListLocations.
# For more information, see https://cloud.google.com/about/locations/.
# * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
# hyphens (-). The maximum length is 100 characters.
# Caller-specified and required in CreateQueueRequest, after which
# it becomes output only.
# @param [Google::Apis::CloudtasksV2beta2::Queue] queue_object
@ -391,13 +392,8 @@ module Google
# tasks in the queue until it is resumed via
# CloudTasks.ResumeQueue. Tasks can still be added when the
# queue is paused. The state of the queue is stored in
# Queue.queue_state; if paused it will be set to
# Queue.QueueState.PAUSED.
# WARNING: This method is only available to whitelisted
# users. Using this method carries some risk. Read
# [Overview of Queue Management and queue.yaml](/cloud-tasks/docs/queue-yaml)
# carefully and then sign up for
# [whitelist access to this method](https://goo.gl/Fe5mUy).
# Queue.state; if paused it will be set to
# Queue.State.PAUSED.
# @param [String] name
# Required.
# The queue name. For example:
@ -472,14 +468,9 @@ module Google
# Resume a queue.
# This method resumes a queue after it has been
# Queue.QueueState.PAUSED or Queue.QueueState.DISABLED. The state of
# a queue is stored in Queue.queue_state; after calling this method it
# will be set to Queue.QueueState.RUNNING.
# WARNING: This method is only available to whitelisted
# users. Using this method carries some risk. Read
# [Overview of Queue Management and queue.yaml](/cloud-tasks/docs/queue-yaml)
# carefully and then sign up for
# [whitelist access to this method](https://goo.gl/Fe5mUy).
# Queue.State.PAUSED or Queue.State.DISABLED. The state of
# a queue is stored in Queue.state; after calling this method it
# will be set to Queue.State.RUNNING.
# WARNING: Resuming many high-QPS queues at the same time can
# lead to target overloading. If you are resuming high-QPS
# queues, follow the 500/50/5 pattern described in
@ -521,6 +512,8 @@ module Google
# Sets the access control policy for a Queue. Replaces any existing
# policy.
# Note: The Cloud Console does not check queue-level IAM permissions yet.
# Project-level permissions are required to use the Cloud Console.
# Authorization requires the following [Google IAM](/iam) permission on the
# specified resource parent:
# * `cloudtasks.queues.setIamPolicy`
@ -606,6 +599,10 @@ module Google
# PullTasksResponse. After the task is acknowledged, it will
# not be returned by a later CloudTasks.PullTasks,
# CloudTasks.GetTask, or CloudTasks.ListTasks.
# To acknowledge multiple tasks at the same time, use
# [HTTP batching](/storage/docs/json_api/v1/how-tos/batch)
# or the batching documentation for your client library, for example
# https://developers.google.com/api-client-library/python/guide/batch.
# @param [String] name
# Required.
# The task name. For example:
@ -812,10 +809,10 @@ module Google
# The queue name. For example:
# `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
# @param [String] order_by
# Sort order used for the query. The fields supported for sorting
# are Task.schedule_time and PullMessage.tag. All results will be
# returned in ascending order. The default ordering is by
# Task.schedule_time.
# Sort order used for the query. The only fields supported for sorting
# are `schedule_time` and `pull_message.tag`. All results will be
# returned in approximately ascending order. The default ordering is by
# `schedule_time`.
# @param [Fixnum] page_size
# Requested page size. Fewer tasks than requested might be returned.
# The maximum page size is 1000. If unspecified, the page size will
@ -964,7 +961,7 @@ module Google
# task after a fix has been made or to manually force a task to be
# dispatched now.
# When this method is called, Cloud Tasks will dispatch the task to its
# target, even if the queue is Queue.QueueState.PAUSED.
# target, even if the queue is Queue.State.PAUSED.
# The dispatched task is returned. That is, the task that is returned
# contains the Task.task_status after the task is dispatched but
# before the task is received by its target.
@ -978,6 +975,7 @@ module Google
# failed. google.rpc.Code.FAILED_PRECONDITION is returned when
# CloudTasks.RunTask is called on task that is dispatched or
# already running.
# CloudTasks.RunTask cannot be called on pull tasks.
# @param [String] name
# Required.
# The task name. For example:

View File

@ -20,15 +20,14 @@ module Google
module Apis
# Stackdriver Trace API
#
# Send and retrieve trace data from Stackdriver Trace. Data is generated and
# available by default for all App Engine applications. Data from other
# applications can be written to Stackdriver Trace for display, reporting, and
# analysis.
# Sends application trace data to Stackdriver Trace for viewing. Trace data is
# collected for all App Engine applications by default. Trace data from other
# applications can be provided using this API.
#
# @see https://cloud.google.com/trace
module CloudtraceV1
VERSION = 'V1'
REVISION = '20170927'
REVISION = '20171106'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -22,10 +22,9 @@ module Google
module CloudtraceV1
# Stackdriver Trace API
#
# Send and retrieve trace data from Stackdriver Trace. Data is generated and
# available by default for all App Engine applications. Data from other
# applications can be written to Stackdriver Trace for display, reporting, and
# analysis.
# Sends application trace data to Stackdriver Trace for viewing. Trace data is
# collected for all App Engine applications by default. Trace data from other
# applications can be provided using this API.
#
# @example
# require 'google/apis/cloudtrace_v1'

View File

@ -20,15 +20,14 @@ module Google
module Apis
# Stackdriver Trace API
#
# Send and retrieve trace data from Stackdriver Trace. Data is generated and
# available by default for all App Engine applications. Data from other
# applications can be written to Stackdriver Trace for display, reporting, and
# analysis.
# Sends application trace data to Stackdriver Trace for viewing. Trace data is
# collected for all App Engine applications by default. Trace data from other
# applications can be provided using this API.
#
# @see https://cloud.google.com/trace
module CloudtraceV2
VERSION = 'V2'
REVISION = '20171003'
REVISION = '20171106'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -116,7 +116,8 @@ module Google
class BatchWriteSpansRequest
include Google::Apis::Core::Hashable
# A collection of spans.
# A list of new spans. The span names must not match existing
# spans, or the results are undefined.
# Corresponds to the JSON property `spans`
# @return [Array<Google::Apis::CloudtraceV2::Span>]
attr_accessor :spans
@ -162,12 +163,12 @@ module Google
# @return [Google::Apis::CloudtraceV2::Attributes]
attr_accessor :attributes
# `SPAN_ID` identifies a span within a trace.
# The [SPAN_ID] for a span within a trace.
# Corresponds to the JSON property `spanId`
# @return [String]
attr_accessor :span_id
# `TRACE_ID` identifies a trace within a project.
# The [TRACE_ID] for a trace within a project.
# Corresponds to the JSON property `traceId`
# @return [String]
attr_accessor :trace_id
@ -223,11 +224,13 @@ module Google
# The number of compressed bytes sent or received. If missing assumed to
# be the same size as uncompressed.
# Corresponds to the JSON property `compressedSize`
# Corresponds to the JSON property `compressedSizeBytes`
# @return [Fixnum]
attr_accessor :compressed_size
attr_accessor :compressed_size_bytes
# An identifier for the message, which must be unique in this span.
# An identifier for the MessageEvent's message that can be used to match
# SENT and RECEIVED MessageEvents. It is recommended to be unique within
# a Span.
# Corresponds to the JSON property `id`
# @return [Fixnum]
attr_accessor :id
@ -239,9 +242,9 @@ module Google
attr_accessor :type
# The number of uncompressed bytes sent or received.
# Corresponds to the JSON property `uncompressedSize`
# Corresponds to the JSON property `uncompressedSizeBytes`
# @return [Fixnum]
attr_accessor :uncompressed_size
attr_accessor :uncompressed_size_bytes
def initialize(**args)
update!(**args)
@ -249,10 +252,10 @@ module Google
# Update properties of this object
def update!(**args)
@compressed_size = args[:compressed_size] if args.key?(:compressed_size)
@compressed_size_bytes = args[:compressed_size_bytes] if args.key?(:compressed_size_bytes)
@id = args[:id] if args.key?(:id)
@type = args[:type] if args.key?(:type)
@uncompressed_size = args[:uncompressed_size] if args.key?(:uncompressed_size)
@uncompressed_size_bytes = args[:uncompressed_size_bytes] if args.key?(:uncompressed_size_bytes)
end
end
@ -321,9 +324,10 @@ module Google
# The resource name of the span in the following format:
# projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/SPAN_ID is a unique
# identifier for a trace within a project.
# [SPAN_ID] is a unique identifier for a span within a trace,
# assigned when the span is created.
# identifier for a trace within a project;
# it is a 32-character hexadecimal encoding of a 16-byte array.
# [SPAN_ID] is a unique identifier for a span within a trace; it
# is a 16-character hexadecimal encoding of an 8-byte array.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
@ -334,9 +338,10 @@ module Google
# @return [String]
attr_accessor :parent_span_id
# A highly recommended but not required flag that identifies when a trace
# crosses a process boundary. True when the parent_span belongs to the
# same process as the current span.
# (Optional) Set this parameter to indicate whether this span is in
# the same process as its parent. If you do not set this parameter,
# Stackdriver Trace is unable to take advantage of this helpful
# information.
# Corresponds to the JSON property `sameProcessAsParentSpan`
# @return [Boolean]
attr_accessor :same_process_as_parent_span
@ -693,12 +698,12 @@ module Google
# @return [Fixnum]
attr_accessor :truncated_byte_count
# The shortened string. For example, if the original string was 500
# bytes long and the limit of the string was 128 bytes, then this
# value contains the first 128 bytes of the 500-byte string. Note that
# truncation always happens on the character boundary, to ensure that
# truncated string is still valid UTF8. In case of multi-byte characters,
# size of truncated string can be less than truncation limit.
# The shortened string. For example, if the original string is 500
# bytes long and the limit of the string is 128 bytes, then
# `value` contains the first 128 bytes of the 500-byte string.
# Truncation always happens on a UTF8 character boundary. If there
# are multi-byte characters in the string, then the length of the
# shortened string might be less than the size limit.
# Corresponds to the JSON property `value`
# @return [String]
attr_accessor :value

View File

@ -190,10 +190,10 @@ module Google
class MessageEvent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :compressed_size, :numeric_string => true, as: 'compressedSize'
property :compressed_size_bytes, :numeric_string => true, as: 'compressedSizeBytes'
property :id, :numeric_string => true, as: 'id'
property :type, as: 'type'
property :uncompressed_size, :numeric_string => true, as: 'uncompressedSize'
property :uncompressed_size_bytes, :numeric_string => true, as: 'uncompressedSizeBytes'
end
end

View File

@ -22,10 +22,9 @@ module Google
module CloudtraceV2
# Stackdriver Trace API
#
# Send and retrieve trace data from Stackdriver Trace. Data is generated and
# available by default for all App Engine applications. Data from other
# applications can be written to Stackdriver Trace for display, reporting, and
# analysis.
# Sends application trace data to Stackdriver Trace for viewing. Trace data is
# collected for all App Engine applications by default. Trace data from other
# applications can be provided using this API.
#
# @example
# require 'google/apis/cloudtrace_v2'
@ -50,14 +49,11 @@ module Google
@batch_path = 'batch'
end
# Sends new spans to Stackdriver Trace or updates existing traces. If the
# name of a trace that you send matches that of an existing trace, new spans
# are added to the existing trace. Attempt to update existing spans results
# undefined behavior. If the name does not match, a new trace is created
# with given set of spans.
# Sends new spans to new or existing traces. You cannot update
# existing spans.
# @param [String] name
# Required. Name of the project where the spans belong. The format is
# `projects/PROJECT_ID`.
# Required. The name of the project where the spans belong. The format is
# `projects/[PROJECT_ID]`.
# @param [Google::Apis::CloudtraceV2::BatchWriteSpansRequest] batch_write_spans_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -88,13 +84,14 @@ module Google
execute_or_queue_command(command, &block)
end
# Creates a new Span.
# Creates a new span.
# @param [String] name
# The resource name of the span in the following format:
# projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/SPAN_ID is a unique
# identifier for a trace within a project.
# [SPAN_ID] is a unique identifier for a span within a trace,
# assigned when the span is created.
# identifier for a trace within a project;
# it is a 32-character hexadecimal encoding of a 16-byte array.
# [SPAN_ID] is a unique identifier for a span within a trace; it
# is a 16-character hexadecimal encoding of an 8-byte array.
# @param [Google::Apis::CloudtraceV2::Span] span_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -114,7 +111,7 @@ module Google
# @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_trace_span(name, span_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:put, 'v2/{+name}', options)
command = make_simple_command(:post, 'v2/{+name}/spans', options)
command.request_representation = Google::Apis::CloudtraceV2::Span::Representation
command.request_object = span_object
command.response_representation = Google::Apis::CloudtraceV2::Span::Representation

View File

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

View File

@ -1108,7 +1108,7 @@ module Google
# Specifies a valid partial or full URL to an existing Persistent Disk resource.
# When creating a new instance, one of initializeParams.sourceImage or disks.
# source is required.
# source is required except for local SSD.
# If desired, you can also attach existing non-root persistent disks using this
# property. This field is only applicable for persistent disks.
# Note that for InstanceTemplate, specify the disk name, not the URL for the
@ -1186,7 +1186,7 @@ module Google
attr_accessor :disk_type
# The source image to create this disk. When creating a new instance, one of
# initializeParams.sourceImage or disks.source is required.
# initializeParams.sourceImage or disks.source is required except for local SSD.
# To create a disk with one of the public operating system images, specify the
# image by its family name. For example, specify family/debian-8 to use the
# latest Debian 8 image:
@ -1880,7 +1880,7 @@ module Google
# A filter string, compatible with a Stackdriver Monitoring filter string for
# TimeSeries.list API call. This filter is used to select a specific TimeSeries
# for the purpose of autoscaling and to determine whether the metric is
# exporting per-instance or global data.
# exporting per-instance or per-group data.
# For the filter to be valid for autoscaling purposes, the following rules apply:
#
# - You can only use the AND operator for joining selectors.
@ -1895,7 +1895,8 @@ module Google
# If the resource type is any other value, the autoscaler expects this metric to
# contain values that apply to the entire autoscaled instance group and resource
# label filtering can be performed to point autoscaler at the correct TimeSeries
# to scale upon. This is / called a global metric for the purpose of autoscaling.
# to scale upon. This is called a per-group metric for the purpose of
# autoscaling.
# If not specified, the type defaults to gce_instance.
# You should provide a filter that is selective enough to pick just one
# TimeSeries for the autoscaled group or for each of the instances (if you are
@ -1907,19 +1908,17 @@ module Google
attr_accessor :filter
# The identifier (type) of the Stackdriver Monitoring metric. The metric cannot
# have negative values and should be a utilization metric, which means that the
# number of virtual machines handling requests should increase or decrease
# proportionally to the metric.
# have negative values.
# The metric must have a value type of INT64 or DOUBLE.
# Corresponds to the JSON property `metric`
# @return [String]
attr_accessor :metric
# If scaling is based on a global metric value that represents the total amount
# of work to be done or resource usage, set this value to an amount assigned for
# a single instance of the scaled group. Autoscaler will keep the number of
# instances proportional to the value of this metric, the metric itself should
# not change value due to group resizing.
# If scaling is based on a per-group metric value that represents the total
# amount of work to be done or resource usage, set this value to an amount
# assigned for a single instance of the scaled group. Autoscaler will keep the
# number of instances proportional to the value of this metric, the metric
# itself should not change value due to group resizing.
# A good metric to use with the target is for example pubsub.googleapis.com/
# subscription/num_undelivered_messages or a custom metric exporting the total
# number of requests coming to your instances.
@ -1931,7 +1930,8 @@ module Google
attr_accessor :single_instance_assignment
# The target value of the metric that autoscaler should maintain. This must be a
# positive value.
# positive value. A utilization metric scales number of virtual machines
# handling requests to increase or decrease proportionally to the metric.
# For example, a good metric to use as a utilization_target is compute.
# googleapis.com/instance/network/received_bytes_count. The autoscaler will work
# to keep this value constant for each of the instances.
@ -3949,6 +3949,18 @@ module Google
# @return [Google::Apis::ComputeAlpha::CustomerEncryptionKey]
attr_accessor :disk_encryption_key
# A list of features to enable on the guest OS. Applicable for bootable disks
# only. Currently, only one feature can be enabled, VIRTIO_SCSI_MULTIQUEUE,
# which allows each virtual CPU to have its own queue. For Windows disks, you
# can only enable VIRTIO_SCSI_MULTIQUEUE on images with driver version 1.2.0.
# 1621 or higher. Linux disks with kernel versions 3.17 and higher will support
# VIRTIO_SCSI_MULTIQUEUE.
# For newer Windows images, the server might also populate this property with
# the value WINDOWS to indicate that this is a Windows image.
# Corresponds to the JSON property `guestOsFeatures`
# @return [Array<Google::Apis::ComputeAlpha::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`
@ -4142,6 +4154,7 @@ module Google
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@description = args[:description] if args.key?(:description)
@disk_encryption_key = args[:disk_encryption_key] if args.key?(:disk_encryption_key)
@guest_os_features = args[:guest_os_features] if args.key?(:guest_os_features)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint)
@ -5115,6 +5128,15 @@ module Google
# @return [String]
attr_accessor :direction
# Denotes whether the firewall rule is disabled, i.e not applied to the network
# it is associated with. When set to true, the firewall rule is not enforced and
# the network behaves as if it did not exist. If this is unspecified, the
# firewall rule will be enabled.
# Corresponds to the JSON property `disabled`
# @return [Boolean]
attr_accessor :disabled
alias_method :disabled?, :disabled
# This field denotes whether to enable logging for a particular firewall rule.
# If logging is enabled, logs will be exported to the configured export
# destination for all firewall logs in the network. Logs may be exported to
@ -5221,10 +5243,10 @@ module Google
# @return [Array<String>]
attr_accessor :target_service_accounts
# A list of instance tags indicating sets of instances located in the network
# that may make network connections as specified in allowed[]. If no targetTags
# are specified, the firewall rule applies to all instances on the specified
# network.
# A list of tags that controls which instances the firewall rule applies to. If
# targetTags are specified, then the firewall rule applies only to instances in
# the VPC network that have one of those tags. If no targetTags are specified,
# the firewall rule applies to all instances on the specified network.
# Corresponds to the JSON property `targetTags`
# @return [Array<String>]
attr_accessor :target_tags
@ -5241,6 +5263,7 @@ module Google
@description = args[:description] if args.key?(:description)
@destination_ranges = args[:destination_ranges] if args.key?(:destination_ranges)
@direction = args[:direction] if args.key?(:direction)
@disabled = args[:disabled] if args.key?(:disabled)
@enable_logging = args[:enable_logging] if args.key?(:enable_logging)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@ -5482,16 +5505,28 @@ module Google
include Google::Apis::Core::Hashable
# The IP address that this forwarding rule is serving on behalf of.
# For global forwarding rules, the address must be a global IP. For regional
# forwarding rules, the address must live in the same region as the forwarding
# rule. By default, this field is empty and an ephemeral IPv4 address from the
# same scope (global or regional) will be assigned. A regional forwarding rule
# supports IPv4 only. A global forwarding rule supports either IPv4 or IPv6.
# Addresses are restricted based on the forwarding rule's load balancing scheme (
# EXTERNAL or INTERNAL) and scope (global or regional).
# When the load balancing scheme is EXTERNAL, for global forwarding rules, the
# address must be a global IP, and for regional forwarding rules, the address
# must live in the same region as the forwarding rule. If this field is empty,
# an ephemeral IPv4 address from the same scope (global or regional) will be
# assigned. A regional forwarding rule supports IPv4 only. A global forwarding
# rule supports either IPv4 or IPv6.
# When the load balancing scheme is INTERNAL, this can only be an RFC 1918 IP
# 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.
# address belonging to the network/subnet configured for the forwarding rule. By
# default, if this field is empty, an ephemeral internal IP address will be
# automatically allocated from the IP range of the subnet or network configured
# for this forwarding rule.
# An address can be specified either by a literal IP address or a URL reference
# to an existing Address resource. The following examples are all valid:
# - 100.1.2.3
# - https://www.googleapis.com/compute/v1/projects/project/regions/region/
# addresses/address
# - projects/project/regions/region/addresses/address
# - regions/region/addresses/address
# - global/addresses/address
# - address
# Corresponds to the JSON property `IPAddress`
# @return [String]
attr_accessor :ip_address
@ -8537,6 +8572,11 @@ module Google
# @return [String]
attr_accessor :machine_type
# Maintenance policies applied to this instance.
# Corresponds to the JSON property `maintenancePolicies`
# @return [Array<String>]
attr_accessor :maintenance_policies
# A metadata key/value entry.
# Corresponds to the JSON property `metadata`
# @return [Google::Apis::ComputeAlpha::Metadata]
@ -8634,6 +8674,7 @@ module Google
@label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint)
@labels = args[:labels] if args.key?(:labels)
@machine_type = args[:machine_type] if args.key?(:machine_type)
@maintenance_policies = args[:maintenance_policies] if args.key?(:maintenance_policies)
@metadata = args[:metadata] if args.key?(:metadata)
@min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform)
@name = args[:name] if args.key?(:name)
@ -9231,7 +9272,7 @@ module Google
# Stateful configuration for this Instanced Group Manager
# Corresponds to the JSON property `statefulPolicy`
# @return [Google::Apis::ComputeAlpha::InstanceGroupManagerStatefulPolicy]
# @return [Google::Apis::ComputeAlpha::StatefulPolicy]
attr_accessor :stateful_policy
# The URLs for all TargetPool resources to which instances in the instanceGroup
@ -9761,45 +9802,6 @@ module Google
end
end
#
class InstanceGroupManagerStatefulPolicy
include Google::Apis::Core::Hashable
# Disks created on the instances that will be preserved on instance delete,
# resize down, etc.
# Corresponds to the JSON property `preservedDisks`
# @return [Array<Google::Apis::ComputeAlpha::InstanceGroupManagerStatefulPolicyDiskPolicy>]
attr_accessor :preserved_disks
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@preserved_disks = args[:preserved_disks] if args.key?(:preserved_disks)
end
end
#
class InstanceGroupManagerStatefulPolicyDiskPolicy
include Google::Apis::Core::Hashable
# Device name of the disk to be preserved
# Corresponds to the JSON property `deviceName`
# @return [String]
attr_accessor :device_name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@device_name = args[:device_name] if args.key?(:device_name)
end
end
#
class InstanceGroupManagerUpdatePolicy
include Google::Apis::Core::Hashable
@ -11512,7 +11514,7 @@ module Google
end
# Protocol definitions for Mixer API to support Interconnect. Next available tag:
# 23
# 25
class Interconnect
include Google::Apis::Core::Hashable
@ -11532,14 +11534,6 @@ module Google
# @return [Array<Google::Apis::ComputeAlpha::InterconnectCircuitInfo>]
attr_accessor :circuit_infos
# [Output Only] URL to retrieve the Letter Of Authority and Customer Facility
# Assignment (LOA-CFA) documentation relating to this Interconnect. This
# documentation authorizes the facility provider to connect to the specified
# crossconnect ports.
# Corresponds to the JSON property `connectionAuthorization`
# @return [String]
attr_accessor :connection_authorization
# [Output Only] Creation timestamp in RFC3339 text format.
# Corresponds to the JSON property `creationTimestamp`
# @return [String]
@ -11663,7 +11657,6 @@ module Google
def update!(**args)
@admin_enabled = args[:admin_enabled] if args.key?(:admin_enabled)
@circuit_infos = args[:circuit_infos] if args.key?(:circuit_infos)
@connection_authorization = args[:connection_authorization] if args.key?(:connection_authorization)
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@customer_name = args[:customer_name] if args.key?(:customer_name)
@description = args[:description] if args.key?(:description)
@ -11687,7 +11680,7 @@ module Google
end
# Protocol definitions for Mixer API to support InterconnectAttachment. Next
# available tag: 18
# available tag: 23
class InterconnectAttachment
include Google::Apis::Core::Hashable
@ -12552,11 +12545,6 @@ module Google
# @return [String]
attr_accessor :region
# Scope key for the region of this location.
# Corresponds to the JSON property `regionKey`
# @return [String]
attr_accessor :region_key
def initialize(**args)
update!(**args)
end
@ -12566,7 +12554,6 @@ module Google
@expected_rtt_ms = args[:expected_rtt_ms] if args.key?(:expected_rtt_ms)
@location_presence = args[:location_presence] if args.key?(:location_presence)
@region = args[:region] if args.key?(:region)
@region_key = args[:region_key] if args.key?(:region_key)
end
end
@ -19269,6 +19256,13 @@ module Google
# @return [Google::Apis::ComputeAlpha::SecurityPolicyRuleMatcherConfig]
attr_accessor :config
# Represents an expression text. Example:
# title: "User account presence" description: "Determines whether the request
# has a user account" expression: "size(request.user) > 0"
# Corresponds to the JSON property `expr`
# @return [Google::Apis::ComputeAlpha::Expr]
attr_accessor :expr
# CIDR IP address range. Only IPv4 is supported.
# Corresponds to the JSON property `srcIpRanges`
# @return [Array<String>]
@ -19294,6 +19288,7 @@ module Google
# Update properties of this object
def update!(**args)
@config = args[:config] if args.key?(:config)
@expr = args[:expr] if args.key?(:expr)
@src_ip_ranges = args[:src_ip_ranges] if args.key?(:src_ip_ranges)
@src_region_codes = args[:src_region_codes] if args.key?(:src_region_codes)
@versioned_expr = args[:versioned_expr] if args.key?(:versioned_expr)
@ -20225,6 +20220,71 @@ module Google
end
end
#
class StatefulPolicy
include Google::Apis::Core::Hashable
# Disks created on the instances that will be preserved on instance delete,
# resize down, etc. DEPRECATED in favor of preservedResources.disks field.
# Corresponds to the JSON property `preservedDisks`
# @return [Array<Google::Apis::ComputeAlpha::StatefulPolicyPreservedDisk>]
attr_accessor :preserved_disks
# Configuration of all preserved resources.
# Corresponds to the JSON property `preservedResources`
# @return [Google::Apis::ComputeAlpha::StatefulPolicyPreservedResources]
attr_accessor :preserved_resources
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@preserved_disks = args[:preserved_disks] if args.key?(:preserved_disks)
@preserved_resources = args[:preserved_resources] if args.key?(:preserved_resources)
end
end
#
class StatefulPolicyPreservedDisk
include Google::Apis::Core::Hashable
# Device name of the disk to be preserved
# Corresponds to the JSON property `deviceName`
# @return [String]
attr_accessor :device_name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@device_name = args[:device_name] if args.key?(:device_name)
end
end
# Configuration of all preserved resources.
class StatefulPolicyPreservedResources
include Google::Apis::Core::Hashable
# Disks created on the instances that will be preserved on instance delete,
# resize down, etc.
# Corresponds to the JSON property `disks`
# @return [Array<Google::Apis::ComputeAlpha::StatefulPolicyPreservedDisk>]
attr_accessor :disks
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@disks = args[:disks] if args.key?(:disks)
end
end
# A Subnetwork resource.
class Subnetwork
include Google::Apis::Core::Hashable

View File

@ -1216,18 +1216,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class InstanceGroupManagerStatefulPolicy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InstanceGroupManagerStatefulPolicyDiskPolicy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InstanceGroupManagerUpdatePolicy
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -2794,6 +2782,24 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class StatefulPolicy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class StatefulPolicyPreservedDisk
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class StatefulPolicyPreservedResources
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Subnetwork
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -4417,6 +4423,8 @@ module Google
property :description, as: 'description'
property :disk_encryption_key, as: 'diskEncryptionKey', class: Google::Apis::ComputeAlpha::CustomerEncryptionKey, decorator: Google::Apis::ComputeAlpha::CustomerEncryptionKey::Representation
collection :guest_os_features, as: 'guestOsFeatures', class: Google::Apis::ComputeAlpha::GuestOsFeature, decorator: Google::Apis::ComputeAlpha::GuestOsFeature::Representation
property :id, :numeric_string => true, as: 'id'
property :kind, as: 'kind'
property :label_fingerprint, :base64 => true, as: 'labelFingerprint'
@ -4710,6 +4718,7 @@ module Google
property :description, as: 'description'
collection :destination_ranges, as: 'destinationRanges'
property :direction, as: 'direction'
property :disabled, as: 'disabled'
property :enable_logging, as: 'enableLogging'
property :id, :numeric_string => true, as: 'id'
property :kind, as: 'kind'
@ -5496,6 +5505,7 @@ module Google
property :label_fingerprint, :base64 => true, as: 'labelFingerprint'
hash :labels, as: 'labels'
property :machine_type, as: 'machineType'
collection :maintenance_policies, as: 'maintenancePolicies'
property :metadata, as: 'metadata', class: Google::Apis::ComputeAlpha::Metadata, decorator: Google::Apis::ComputeAlpha::Metadata::Representation
property :min_cpu_platform, as: 'minCpuPlatform'
@ -5660,7 +5670,7 @@ module Google
property :region, as: 'region'
property :self_link, as: 'selfLink'
property :service_account, as: 'serviceAccount'
property :stateful_policy, as: 'statefulPolicy', class: Google::Apis::ComputeAlpha::InstanceGroupManagerStatefulPolicy, decorator: Google::Apis::ComputeAlpha::InstanceGroupManagerStatefulPolicy::Representation
property :stateful_policy, as: 'statefulPolicy', class: Google::Apis::ComputeAlpha::StatefulPolicy, decorator: Google::Apis::ComputeAlpha::StatefulPolicy::Representation
collection :target_pools, as: 'targetPools'
property :target_size, as: 'targetSize'
@ -5784,21 +5794,6 @@ module Google
end
end
class InstanceGroupManagerStatefulPolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :preserved_disks, as: 'preservedDisks', class: Google::Apis::ComputeAlpha::InstanceGroupManagerStatefulPolicyDiskPolicy, decorator: Google::Apis::ComputeAlpha::InstanceGroupManagerStatefulPolicyDiskPolicy::Representation
end
end
class InstanceGroupManagerStatefulPolicyDiskPolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :device_name, as: 'deviceName'
end
end
class InstanceGroupManagerUpdatePolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -6302,7 +6297,6 @@ module Google
property :admin_enabled, as: 'adminEnabled'
collection :circuit_infos, as: 'circuitInfos', class: Google::Apis::ComputeAlpha::InterconnectCircuitInfo, decorator: Google::Apis::ComputeAlpha::InterconnectCircuitInfo::Representation
property :connection_authorization, as: 'connectionAuthorization'
property :creation_timestamp, as: 'creationTimestamp'
property :customer_name, as: 'customerName'
property :description, as: 'description'
@ -6546,7 +6540,6 @@ module Google
property :expected_rtt_ms, :numeric_string => true, as: 'expectedRttMs'
property :location_presence, as: 'locationPresence'
property :region, as: 'region'
property :region_key, as: 'regionKey'
end
end
@ -8312,6 +8305,8 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :config, as: 'config', class: Google::Apis::ComputeAlpha::SecurityPolicyRuleMatcherConfig, decorator: Google::Apis::ComputeAlpha::SecurityPolicyRuleMatcherConfig::Representation
property :expr, as: 'expr', class: Google::Apis::ComputeAlpha::Expr, decorator: Google::Apis::ComputeAlpha::Expr::Representation
collection :src_ip_ranges, as: 'srcIpRanges'
collection :src_region_codes, as: 'srcRegionCodes'
property :versioned_expr, as: 'versionedExpr'
@ -8547,6 +8542,31 @@ module Google
end
end
class StatefulPolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :preserved_disks, as: 'preservedDisks', class: Google::Apis::ComputeAlpha::StatefulPolicyPreservedDisk, decorator: Google::Apis::ComputeAlpha::StatefulPolicyPreservedDisk::Representation
property :preserved_resources, as: 'preservedResources', class: Google::Apis::ComputeAlpha::StatefulPolicyPreservedResources, decorator: Google::Apis::ComputeAlpha::StatefulPolicyPreservedResources::Representation
end
end
class StatefulPolicyPreservedDisk
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :device_name, as: 'deviceName'
end
end
class StatefulPolicyPreservedResources
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :disks, as: 'disks', class: Google::Apis::ComputeAlpha::StatefulPolicyPreservedDisk, decorator: Google::Apis::ComputeAlpha::StatefulPolicyPreservedDisk::Representation
end
end
class Subnetwork
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -10945,11 +10945,10 @@ module Google
end
# Stops a running instance, shutting it down cleanly, and allows you to restart
# the instance at a later time. Stopped instances do not incur per-minute,
# virtual machine usage charges while they are stopped, but any resources that
# the virtual machine is using, such as persistent disks and static IP addresses,
# will continue to be charged until they are deleted. For more information, see
# Stopping an instance.
# the instance at a later time. Stopped instances do not incur VM usage charges
# while they are stopped. However, resources that the VM is using, such as
# persistent disks and static IP addresses, will continue to be charged until
# they are deleted. For more information, see Stopping an instance.
# @param [String] project
# Project ID for this request.
# @param [String] zone
@ -18871,6 +18870,47 @@ module Google
execute_or_queue_command(command, &block)
end
# Inserts a rule into a security policy.
# @param [String] project
# Project ID for this request.
# @param [String] security_policy
# Name of the security policy to update.
# @param [Google::Apis::ComputeAlpha::SecurityPolicyRule] security_policy_rule_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::ComputeAlpha::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeAlpha::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 add_security_policy_rule(project, security_policy, security_policy_rule_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/global/securityPolicies/{securityPolicy}/addRule', options)
command.request_representation = Google::Apis::ComputeAlpha::SecurityPolicyRule::Representation
command.request_object = security_policy_rule_object
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
command.response_class = Google::Apis::ComputeAlpha::Operation
command.params['project'] = project unless project.nil?
command.params['securityPolicy'] = security_policy unless security_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?
execute_or_queue_command(command, &block)
end
# Deletes the specified policy.
# @param [String] project
# Project ID for this request.
@ -18959,6 +18999,47 @@ module Google
execute_or_queue_command(command, &block)
end
# Gets a rule at the specified priority.
# @param [String] project
# Project ID for this request.
# @param [String] security_policy
# Name of the security policy to which the queried rule belongs.
# @param [Fixnum] priority
# The priority of the rule to get from the security policy.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available 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::ComputeAlpha::SecurityPolicyRule] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeAlpha::SecurityPolicyRule]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_security_policy_rule(project, security_policy, priority: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/global/securityPolicies/{securityPolicy}/getRule', options)
command.response_representation = Google::Apis::ComputeAlpha::SecurityPolicyRule::Representation
command.response_class = Google::Apis::ComputeAlpha::SecurityPolicyRule
command.params['project'] = project unless project.nil?
command.params['securityPolicy'] = security_policy unless security_policy.nil?
command.query['priority'] = priority unless priority.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 policy in the specified project using the data included in the
# request.
# @param [String] project
@ -19139,6 +19220,91 @@ module Google
execute_or_queue_command(command, &block)
end
# Patches a rule at the specified priority.
# @param [String] project
# Project ID for this request.
# @param [String] security_policy
# Name of the security policy to update.
# @param [Google::Apis::ComputeAlpha::SecurityPolicyRule] security_policy_rule_object
# @param [Fixnum] priority
# The priority of the rule to patch.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available 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::ComputeAlpha::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeAlpha::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_security_policy_rule(project, security_policy, security_policy_rule_object = nil, priority: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/global/securityPolicies/{securityPolicy}/patchRule', options)
command.request_representation = Google::Apis::ComputeAlpha::SecurityPolicyRule::Representation
command.request_object = security_policy_rule_object
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
command.response_class = Google::Apis::ComputeAlpha::Operation
command.params['project'] = project unless project.nil?
command.params['securityPolicy'] = security_policy unless security_policy.nil?
command.query['priority'] = priority unless priority.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Deletes a rule at the specified priority.
# @param [String] project
# Project ID for this request.
# @param [String] security_policy
# Name of the security policy to update.
# @param [Fixnum] priority
# The priority of the rule to remove from the security policy.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available 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::ComputeAlpha::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeAlpha::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 remove_security_policy_rule(project, security_policy, priority: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/global/securityPolicies/{securityPolicy}/removeRule', options)
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
command.response_class = Google::Apis::ComputeAlpha::Operation
command.params['project'] = project unless project.nil?
command.params['securityPolicy'] = security_policy unless security_policy.nil?
command.query['priority'] = priority unless priority.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 permissions that a caller has on the specified resource.
# @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 ComputeBeta
VERSION = 'Beta'
REVISION = '20170919'
REVISION = '20171114'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1068,7 +1068,7 @@ module Google
# Specifies a valid partial or full URL to an existing Persistent Disk resource.
# When creating a new instance, one of initializeParams.sourceImage or disks.
# source is required.
# source is required except for local SSD.
# If desired, you can also attach existing non-root persistent disks using this
# property. This field is only applicable for persistent disks.
# Note that for InstanceTemplate, specify the disk name, not the URL for the
@ -1145,7 +1145,7 @@ module Google
attr_accessor :disk_type
# The source image to create this disk. When creating a new instance, one of
# initializeParams.sourceImage or disks.source is required.
# initializeParams.sourceImage or disks.source is required except for local SSD.
# To create a disk with one of the public operating system images, specify the
# image by its family name. For example, specify family/debian-8 to use the
# latest Debian 8 image:
@ -1827,7 +1827,7 @@ module Google
# A filter string, compatible with a Stackdriver Monitoring filter string for
# TimeSeries.list API call. This filter is used to select a specific TimeSeries
# for the purpose of autoscaling and to determine whether the metric is
# exporting per-instance or global data.
# exporting per-instance or per-group data.
# For the filter to be valid for autoscaling purposes, the following rules apply:
#
# - You can only use the AND operator for joining selectors.
@ -1842,7 +1842,8 @@ module Google
# If the resource type is any other value, the autoscaler expects this metric to
# contain values that apply to the entire autoscaled instance group and resource
# label filtering can be performed to point autoscaler at the correct TimeSeries
# to scale upon. This is / called a global metric for the purpose of autoscaling.
# to scale upon. This is called a per-group metric for the purpose of
# autoscaling.
# If not specified, the type defaults to gce_instance.
# You should provide a filter that is selective enough to pick just one
# TimeSeries for the autoscaled group or for each of the instances (if you are
@ -1854,19 +1855,17 @@ module Google
attr_accessor :filter
# The identifier (type) of the Stackdriver Monitoring metric. The metric cannot
# have negative values and should be a utilization metric, which means that the
# number of virtual machines handling requests should increase or decrease
# proportionally to the metric.
# have negative values.
# The metric must have a value type of INT64 or DOUBLE.
# Corresponds to the JSON property `metric`
# @return [String]
attr_accessor :metric
# If scaling is based on a global metric value that represents the total amount
# of work to be done or resource usage, set this value to an amount assigned for
# a single instance of the scaled group. Autoscaler will keep the number of
# instances proportional to the value of this metric, the metric itself should
# not change value due to group resizing.
# If scaling is based on a per-group metric value that represents the total
# amount of work to be done or resource usage, set this value to an amount
# assigned for a single instance of the scaled group. Autoscaler will keep the
# number of instances proportional to the value of this metric, the metric
# itself should not change value due to group resizing.
# A good metric to use with the target is for example pubsub.googleapis.com/
# subscription/num_undelivered_messages or a custom metric exporting the total
# number of requests coming to your instances.
@ -1878,7 +1877,8 @@ module Google
attr_accessor :single_instance_assignment
# The target value of the metric that autoscaler should maintain. This must be a
# positive value.
# positive value. A utilization metric scales number of virtual machines
# handling requests to increase or decrease proportionally to the metric.
# For example, a good metric to use as a utilization_target is compute.
# googleapis.com/instance/network/received_bytes_count. The autoscaler will work
# to keep this value constant for each of the instances.
@ -4780,10 +4780,10 @@ module Google
# @return [Array<String>]
attr_accessor :target_service_accounts
# A list of instance tags indicating sets of instances located in the network
# that may make network connections as specified in allowed[]. If no targetTags
# are specified, the firewall rule applies to all instances on the specified
# network.
# A list of tags that controls which instances the firewall rule applies to. If
# targetTags are specified, then the firewall rule applies only to instances in
# the VPC network that have one of those tags. If no targetTags are specified,
# the firewall rule applies to all instances on the specified network.
# Corresponds to the JSON property `targetTags`
# @return [Array<String>]
attr_accessor :target_tags
@ -5040,16 +5040,28 @@ module Google
include Google::Apis::Core::Hashable
# The IP address that this forwarding rule is serving on behalf of.
# For global forwarding rules, the address must be a global IP. For regional
# forwarding rules, the address must live in the same region as the forwarding
# rule. By default, this field is empty and an ephemeral IPv4 address from the
# same scope (global or regional) will be assigned. A regional forwarding rule
# supports IPv4 only. A global forwarding rule supports either IPv4 or IPv6.
# Addresses are restricted based on the forwarding rule's load balancing scheme (
# EXTERNAL or INTERNAL) and scope (global or regional).
# When the load balancing scheme is EXTERNAL, for global forwarding rules, the
# address must be a global IP, and for regional forwarding rules, the address
# must live in the same region as the forwarding rule. If this field is empty,
# an ephemeral IPv4 address from the same scope (global or regional) will be
# assigned. A regional forwarding rule supports IPv4 only. A global forwarding
# rule supports either IPv4 or IPv6.
# When the load balancing scheme is INTERNAL, this can only be an RFC 1918 IP
# 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.
# address belonging to the network/subnet configured for the forwarding rule. By
# default, if this field is empty, an ephemeral internal IP address will be
# automatically allocated from the IP range of the subnet or network configured
# for this forwarding rule.
# An address can be specified either by a literal IP address or a URL reference
# to an existing Address resource. The following examples are all valid:
# - 100.1.2.3
# - https://www.googleapis.com/compute/v1/projects/project/regions/region/
# addresses/address
# - projects/project/regions/region/addresses/address
# - regions/region/addresses/address
# - global/addresses/address
# - address
# Corresponds to the JSON property `IPAddress`
# @return [String]
attr_accessor :ip_address
@ -6904,6 +6916,12 @@ module Google
# @return [String]
attr_accessor :creation_timestamp
# Whether the resource should be protected against deletion.
# Corresponds to the JSON property `deletionProtection`
# @return [Boolean]
attr_accessor :deletion_protection
alias_method :deletion_protection?, :deletion_protection
# An optional description of this resource. Provide this property when you
# create the resource.
# Corresponds to the JSON property `description`
@ -7052,6 +7070,7 @@ module Google
@can_ip_forward = args[:can_ip_forward] if args.key?(:can_ip_forward)
@cpu_platform = args[:cpu_platform] if args.key?(:cpu_platform)
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@deletion_protection = args[:deletion_protection] if args.key?(:deletion_protection)
@description = args[:description] if args.key?(:description)
@disks = args[:disks] if args.key?(:disks)
@guest_accelerators = args[:guest_accelerators] if args.key?(:guest_accelerators)
@ -9622,7 +9641,7 @@ module Google
end
# Protocol definitions for Mixer API to support Interconnect. Next available tag:
# 23
# 25
class Interconnect
include Google::Apis::Core::Hashable
@ -9642,14 +9661,6 @@ module Google
# @return [Array<Google::Apis::ComputeBeta::InterconnectCircuitInfo>]
attr_accessor :circuit_infos
# [Output Only] URL to retrieve the Letter Of Authority and Customer Facility
# Assignment (LOA-CFA) documentation relating to this Interconnect. This
# documentation authorizes the facility provider to connect to the specified
# crossconnect ports.
# Corresponds to the JSON property `connectionAuthorization`
# @return [String]
attr_accessor :connection_authorization
# [Output Only] Creation timestamp in RFC3339 text format.
# Corresponds to the JSON property `creationTimestamp`
# @return [String]
@ -9773,7 +9784,6 @@ module Google
def update!(**args)
@admin_enabled = args[:admin_enabled] if args.key?(:admin_enabled)
@circuit_infos = args[:circuit_infos] if args.key?(:circuit_infos)
@connection_authorization = args[:connection_authorization] if args.key?(:connection_authorization)
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@customer_name = args[:customer_name] if args.key?(:customer_name)
@description = args[:description] if args.key?(:description)
@ -9797,7 +9807,7 @@ module Google
end
# Protocol definitions for Mixer API to support InterconnectAttachment. Next
# available tag: 18
# available tag: 23
class InterconnectAttachment
include Google::Apis::Core::Hashable
@ -10662,11 +10672,6 @@ module Google
# @return [String]
attr_accessor :region
# Scope key for the region of this location.
# Corresponds to the JSON property `regionKey`
# @return [String]
attr_accessor :region_key
def initialize(**args)
update!(**args)
end
@ -10676,7 +10681,6 @@ module Google
@expected_rtt_ms = args[:expected_rtt_ms] if args.key?(:expected_rtt_ms)
@location_presence = args[:location_presence] if args.key?(:location_presence)
@region = args[:region] if args.key?(:region)
@region_key = args[:region_key] if args.key?(:region_key)
end
end

View File

@ -4477,6 +4477,7 @@ module Google
property :can_ip_forward, as: 'canIpForward'
property :cpu_platform, as: 'cpuPlatform'
property :creation_timestamp, as: 'creationTimestamp'
property :deletion_protection, as: 'deletionProtection'
property :description, as: 'description'
collection :disks, as: 'disks', class: Google::Apis::ComputeBeta::AttachedDisk, decorator: Google::Apis::ComputeBeta::AttachedDisk::Representation
@ -5200,7 +5201,6 @@ module Google
property :admin_enabled, as: 'adminEnabled'
collection :circuit_infos, as: 'circuitInfos', class: Google::Apis::ComputeBeta::InterconnectCircuitInfo, decorator: Google::Apis::ComputeBeta::InterconnectCircuitInfo::Representation
property :connection_authorization, as: 'connectionAuthorization'
property :creation_timestamp, as: 'creationTimestamp'
property :customer_name, as: 'customerName'
property :description, as: 'description'
@ -5444,7 +5444,6 @@ module Google
property :expected_rtt_ms, :numeric_string => true, as: 'expectedRttMs'
property :location_presence, as: 'locationPresence'
property :region, as: 'region'
property :region_key, as: 'regionKey'
end
end

View File

@ -8563,6 +8563,62 @@ module Google
execute_or_queue_command(command, &block)
end
# Sets deletion protection on the instance.
# @param [String] project
# Project ID for this request.
# @param [String] zone
# The name of the zone for this request.
# @param [String] resource
# Name of the resource for this request.
# @param [Boolean] deletion_protection
# Whether the resource should be protected against deletion.
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
# that if you must retry your request, the server will know to ignore the
# request if it has already been completed.
# For example, consider a situation where you make an initial request and the
# request times out. If you make the request again with the same request ID, the
# server can check if original operation with the same request ID was received,
# and if so, will ignore the second request. This prevents clients from
# accidentally creating duplicate commitments.
# The request ID must be a valid UUID with the exception that zero UUID is not
# supported (00000000-0000-0000-0000-000000000000).
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available 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_deletion_protection(project, zone, resource, deletion_protection: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/zones/{zone}/instances/{resource}/setDeletionProtection', options)
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['resource'] = resource unless resource.nil?
command.query['deletionProtection'] = deletion_protection unless deletion_protection.nil?
command.query['requestId'] = request_id unless request_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
# Sets the auto-delete flag for a disk attached to an instance.
# @param [String] project
# Project ID for this request.
@ -9188,11 +9244,10 @@ module Google
end
# Stops a running instance, shutting it down cleanly, and allows you to restart
# the instance at a later time. Stopped instances do not incur per-minute,
# virtual machine usage charges while they are stopped, but any resources that
# the virtual machine is using, such as persistent disks and static IP addresses,
# will continue to be charged until they are deleted. For more information, see
# Stopping an instance.
# the instance at a later time. Stopped instances do not incur VM usage charges
# while they are stopped. However, resources that the VM is using, such as
# persistent disks and static IP addresses, will continue to be charged until
# they are deleted. For more information, see Stopping an instance.
# @param [String] project
# Project ID for this request.
# @param [String] zone

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/compute/docs/reference/latest/
module ComputeV1
VERSION = 'V1'
REVISION = '20170919'
REVISION = '20171114'
# 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

@ -1186,6 +1186,138 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Interconnect
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InterconnectAttachment
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InterconnectAttachmentAggregatedList
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 InterconnectAttachmentList
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 InterconnectAttachmentPrivateInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InterconnectAttachmentsScopedList
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 InterconnectCircuitInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InterconnectList
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 InterconnectLocation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InterconnectLocationList
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 InterconnectLocationRegionInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InterconnectOutageNotification
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class License
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -3549,7 +3681,9 @@ module Google
property :priority, as: 'priority'
property :self_link, as: 'selfLink'
collection :source_ranges, as: 'sourceRanges'
collection :source_service_accounts, as: 'sourceServiceAccounts'
collection :source_tags, as: 'sourceTags'
collection :target_service_accounts, as: 'targetServiceAccounts'
collection :target_tags, as: 'targetTags'
end
@ -4022,6 +4156,7 @@ module Google
property :can_ip_forward, as: 'canIpForward'
property :cpu_platform, as: 'cpuPlatform'
property :creation_timestamp, as: 'creationTimestamp'
property :deletion_protection, as: 'deletionProtection'
property :description, as: 'description'
collection :disks, as: 'disks', class: Google::Apis::ComputeV1::AttachedDisk, decorator: Google::Apis::ComputeV1::AttachedDisk::Representation
@ -4636,6 +4771,272 @@ module Google
end
end
class Interconnect
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :admin_enabled, as: 'adminEnabled'
collection :circuit_infos, as: 'circuitInfos', class: Google::Apis::ComputeV1::InterconnectCircuitInfo, decorator: Google::Apis::ComputeV1::InterconnectCircuitInfo::Representation
property :creation_timestamp, as: 'creationTimestamp'
property :customer_name, as: 'customerName'
property :description, as: 'description'
collection :expected_outages, as: 'expectedOutages', class: Google::Apis::ComputeV1::InterconnectOutageNotification, decorator: Google::Apis::ComputeV1::InterconnectOutageNotification::Representation
property :google_ip_address, as: 'googleIpAddress'
property :google_reference_id, as: 'googleReferenceId'
property :id, :numeric_string => true, as: 'id'
collection :interconnect_attachments, as: 'interconnectAttachments'
property :interconnect_type, as: 'interconnectType'
property :kind, as: 'kind'
property :link_type, as: 'linkType'
property :location, as: 'location'
property :name, as: 'name'
property :noc_contact_email, as: 'nocContactEmail'
property :operational_status, as: 'operationalStatus'
property :peer_ip_address, as: 'peerIpAddress'
property :provisioned_link_count, as: 'provisionedLinkCount'
property :requested_link_count, as: 'requestedLinkCount'
property :self_link, as: 'selfLink'
end
end
class InterconnectAttachment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :cloud_router_ip_address, as: 'cloudRouterIpAddress'
property :creation_timestamp, as: 'creationTimestamp'
property :customer_router_ip_address, as: 'customerRouterIpAddress'
property :description, as: 'description'
property :google_reference_id, as: 'googleReferenceId'
property :id, :numeric_string => true, as: 'id'
property :interconnect, as: 'interconnect'
property :kind, as: 'kind'
property :name, as: 'name'
property :operational_status, as: 'operationalStatus'
property :private_interconnect_info, as: 'privateInterconnectInfo', class: Google::Apis::ComputeV1::InterconnectAttachmentPrivateInfo, decorator: Google::Apis::ComputeV1::InterconnectAttachmentPrivateInfo::Representation
property :region, as: 'region'
property :router, as: 'router'
property :self_link, as: 'selfLink'
end
end
class InterconnectAttachmentAggregatedList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
hash :items, as: 'items', class: Google::Apis::ComputeV1::InterconnectAttachmentsScopedList, decorator: Google::Apis::ComputeV1::InterconnectAttachmentsScopedList::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :self_link, as: 'selfLink'
property :warning, as: 'warning', class: Google::Apis::ComputeV1::InterconnectAttachmentAggregatedList::Warning, decorator: Google::Apis::ComputeV1::InterconnectAttachmentAggregatedList::Warning::Representation
end
class Warning
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :data, as: 'data', class: Google::Apis::ComputeV1::InterconnectAttachmentAggregatedList::Warning::Datum, decorator: Google::Apis::ComputeV1::InterconnectAttachmentAggregatedList::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 InterconnectAttachmentList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
collection :items, as: 'items', class: Google::Apis::ComputeV1::InterconnectAttachment, decorator: Google::Apis::ComputeV1::InterconnectAttachment::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :self_link, as: 'selfLink'
property :warning, as: 'warning', class: Google::Apis::ComputeV1::InterconnectAttachmentList::Warning, decorator: Google::Apis::ComputeV1::InterconnectAttachmentList::Warning::Representation
end
class Warning
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :data, as: 'data', class: Google::Apis::ComputeV1::InterconnectAttachmentList::Warning::Datum, decorator: Google::Apis::ComputeV1::InterconnectAttachmentList::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 InterconnectAttachmentPrivateInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :tag8021q, as: 'tag8021q'
end
end
class InterconnectAttachmentsScopedList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :interconnect_attachments, as: 'interconnectAttachments', class: Google::Apis::ComputeV1::InterconnectAttachment, decorator: Google::Apis::ComputeV1::InterconnectAttachment::Representation
property :warning, as: 'warning', class: Google::Apis::ComputeV1::InterconnectAttachmentsScopedList::Warning, decorator: Google::Apis::ComputeV1::InterconnectAttachmentsScopedList::Warning::Representation
end
class Warning
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :data, as: 'data', class: Google::Apis::ComputeV1::InterconnectAttachmentsScopedList::Warning::Datum, decorator: Google::Apis::ComputeV1::InterconnectAttachmentsScopedList::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 InterconnectCircuitInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :customer_demarc_id, as: 'customerDemarcId'
property :google_circuit_id, as: 'googleCircuitId'
property :google_demarc_id, as: 'googleDemarcId'
end
end
class InterconnectList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
collection :items, as: 'items', class: Google::Apis::ComputeV1::Interconnect, decorator: Google::Apis::ComputeV1::Interconnect::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :self_link, as: 'selfLink'
property :warning, as: 'warning', class: Google::Apis::ComputeV1::InterconnectList::Warning, decorator: Google::Apis::ComputeV1::InterconnectList::Warning::Representation
end
class Warning
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :data, as: 'data', class: Google::Apis::ComputeV1::InterconnectList::Warning::Datum, decorator: Google::Apis::ComputeV1::InterconnectList::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 InterconnectLocation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :address, as: 'address'
property :availability_zone, as: 'availabilityZone'
property :city, as: 'city'
property :continent, as: 'continent'
property :creation_timestamp, as: 'creationTimestamp'
property :description, as: 'description'
property :facility_provider, as: 'facilityProvider'
property :facility_provider_facility_id, as: 'facilityProviderFacilityId'
property :id, :numeric_string => true, as: 'id'
property :kind, as: 'kind'
property :name, as: 'name'
property :peeringdb_facility_id, as: 'peeringdbFacilityId'
collection :region_infos, as: 'regionInfos', class: Google::Apis::ComputeV1::InterconnectLocationRegionInfo, decorator: Google::Apis::ComputeV1::InterconnectLocationRegionInfo::Representation
property :self_link, as: 'selfLink'
end
end
class InterconnectLocationList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
collection :items, as: 'items', class: Google::Apis::ComputeV1::InterconnectLocation, decorator: Google::Apis::ComputeV1::InterconnectLocation::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :self_link, as: 'selfLink'
property :warning, as: 'warning', class: Google::Apis::ComputeV1::InterconnectLocationList::Warning, decorator: Google::Apis::ComputeV1::InterconnectLocationList::Warning::Representation
end
class Warning
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :data, as: 'data', class: Google::Apis::ComputeV1::InterconnectLocationList::Warning::Datum, decorator: Google::Apis::ComputeV1::InterconnectLocationList::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 InterconnectLocationRegionInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :expected_rtt_ms, :numeric_string => true, as: 'expectedRttMs'
property :location_presence, as: 'locationPresence'
property :region, as: 'region'
end
end
class InterconnectOutageNotification
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :affected_circuits, as: 'affectedCircuits'
property :description, as: 'description'
property :end_time, :numeric_string => true, as: 'endTime'
property :issue_type, as: 'issueType'
property :name, as: 'name'
property :source, as: 'source'
property :start_time, :numeric_string => true, as: 'startTime'
property :state, as: 'state'
end
end
class License
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -5575,6 +5976,7 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :ip_range, as: 'ipRange'
property :linked_interconnect_attachment, as: 'linkedInterconnectAttachment'
property :linked_vpn_tunnel, as: 'linkedVpnTunnel'
property :name, as: 'name'
end

View File

@ -7341,6 +7341,62 @@ module Google
execute_or_queue_command(command, &block)
end
# Sets deletion protection on the instance.
# @param [String] project
# Project ID for this request.
# @param [String] zone
# The name of the zone for this request.
# @param [String] resource
# Name of the resource for this request.
# @param [Boolean] deletion_protection
# Whether the resource should be protected against deletion.
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
# that if you must retry your request, the server will know to ignore the
# request if it has already been completed.
# For example, consider a situation where you make an initial request and the
# request times out. If you make the request again with the same request ID, the
# server can check if original operation with the same request ID was received,
# and if so, will ignore the second request. This prevents clients from
# accidentally creating duplicate commitments.
# The request ID must be a valid UUID with the exception that zero UUID is not
# supported (00000000-0000-0000-0000-000000000000).
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def set_instance_deletion_protection(project, zone, resource, deletion_protection: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/zones/{zone}/instances/{resource}/setDeletionProtection', options)
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
command.response_class = Google::Apis::ComputeV1::Operation
command.params['project'] = project unless project.nil?
command.params['zone'] = zone unless zone.nil?
command.params['resource'] = resource unless resource.nil?
command.query['deletionProtection'] = deletion_protection unless deletion_protection.nil?
command.query['requestId'] = request_id unless request_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
# Sets the auto-delete flag for a disk attached to an instance.
# @param [String] project
# Project ID for this request.
@ -7966,11 +8022,10 @@ module Google
end
# Stops a running instance, shutting it down cleanly, and allows you to restart
# the instance at a later time. Stopped instances do not incur per-minute,
# virtual machine usage charges while they are stopped, but any resources that
# the virtual machine is using, such as persistent disks and static IP addresses,
# will continue to be charged until they are deleted. For more information, see
# Stopping an instance.
# the instance at a later time. Stopped instances do not incur VM usage charges
# while they are stopped. However, resources that the VM is using, such as
# persistent disks and static IP addresses, will continue to be charged until
# they are deleted. For more information, see Stopping an instance.
# @param [String] project
# Project ID for this request.
# @param [String] zone
@ -8023,6 +8078,697 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves an aggregated list of interconnect attachments.
# @param [String] project
# Project ID for this request.
# @param [String] filter
# Sets a filter `expression` for filtering listed resources. Your `expression`
# must be in the format: field_name comparison_string literal_string.
# The field_name is the name of the field you want to compare. Only atomic field
# types are supported (string, number, boolean). The comparison_string must be
# either eq (equals) or ne (not equals). The literal_string is the string value
# to filter to. The literal value must be valid for the type of field you are
# filtering by (string, number, boolean). For string fields, the literal value
# is interpreted as a regular expression using RE2 syntax. The literal value
# must match the entire field.
# For example, to filter for instances that do not have a name of example-
# instance, you would use name ne example-instance.
# You can filter on nested fields. For example, you could filter on instances
# that have set the scheduling.automaticRestart field to true. Use filtering on
# nested fields to take advantage of labels to organize and search for results
# based on label values.
# To filter on multiple expressions, provide each separate expression within
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
# central1-f). Multiple expressions are treated as AND expressions, meaning that
# resources must match all expressions to pass the filters.
# @param [Fixnum] max_results
# The maximum number of results per page that should be returned. If the number
# of available results is larger than maxResults, Compute Engine returns a
# nextPageToken that can be used to get the next page of results in subsequent
# list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
# @param [String] order_by
# Sorts list results by a certain order. By default, results are returned in
# alphanumerical order based on the resource name.
# You can also sort results in descending order based on the creation timestamp
# using orderBy="creationTimestamp desc". This sorts results based on the
# creationTimestamp field in reverse chronological order (newest result first).
# Use this to sort resources like operations so that the newest operation is
# returned first.
# Currently, only sorting by name or creationTimestamp desc is supported.
# @param [String] page_token
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
# a previous list request to get the next page of results.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeV1::InterconnectAttachmentAggregatedList] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::InterconnectAttachmentAggregatedList]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def aggregated_interconnect_attachment_list(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/aggregated/interconnectAttachments', options)
command.response_representation = Google::Apis::ComputeV1::InterconnectAttachmentAggregatedList::Representation
command.response_class = Google::Apis::ComputeV1::InterconnectAttachmentAggregatedList
command.params['project'] = project unless project.nil?
command.query['filter'] = filter unless filter.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['orderBy'] = order_by unless order_by.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Deletes the specified interconnect attachment.
# @param [String] project
# Project ID for this request.
# @param [String] region
# Name of the region for this request.
# @param [String] interconnect_attachment
# Name of the interconnect attachment to delete.
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
# that if you must retry your request, the server will know to ignore the
# request if it has already been completed.
# For example, consider a situation where you make an initial request and the
# request times out. If you make the request again with the same request ID, the
# server can check if original operation with the same request ID was received,
# and if so, will ignore the second request. This prevents clients from
# accidentally creating duplicate commitments.
# The request ID must be a valid UUID with the exception that zero UUID is not
# supported (00000000-0000-0000-0000-000000000000).
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_interconnect_attachment(project, region, interconnect_attachment, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, '{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}', options)
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
command.response_class = Google::Apis::ComputeV1::Operation
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.params['interconnectAttachment'] = interconnect_attachment unless interconnect_attachment.nil?
command.query['requestId'] = request_id unless request_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
# Returns the specified interconnect attachment.
# @param [String] project
# Project ID for this request.
# @param [String] region
# Name of the region for this request.
# @param [String] interconnect_attachment
# Name of the interconnect attachment to return.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeV1::InterconnectAttachment] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::InterconnectAttachment]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_interconnect_attachment(project, region, interconnect_attachment, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}', options)
command.response_representation = Google::Apis::ComputeV1::InterconnectAttachment::Representation
command.response_class = Google::Apis::ComputeV1::InterconnectAttachment
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.params['interconnectAttachment'] = interconnect_attachment unless interconnect_attachment.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 an InterconnectAttachment in the specified project using the data
# included in the request.
# @param [String] project
# Project ID for this request.
# @param [String] region
# Name of the region for this request.
# @param [Google::Apis::ComputeV1::InterconnectAttachment] interconnect_attachment_object
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
# that if you must retry your request, the server will know to ignore the
# request if it has already been completed.
# For example, consider a situation where you make an initial request and the
# request times out. If you make the request again with the same request ID, the
# server can check if original operation with the same request ID was received,
# and if so, will ignore the second request. This prevents clients from
# accidentally creating duplicate commitments.
# The request ID must be a valid UUID with the exception that zero UUID is not
# supported (00000000-0000-0000-0000-000000000000).
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def insert_interconnect_attachment(project, region, interconnect_attachment_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/regions/{region}/interconnectAttachments', options)
command.request_representation = Google::Apis::ComputeV1::InterconnectAttachment::Representation
command.request_object = interconnect_attachment_object
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
command.response_class = Google::Apis::ComputeV1::Operation
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.query['requestId'] = request_id unless request_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 list of interconnect attachments contained within the specified
# region.
# @param [String] project
# Project ID for this request.
# @param [String] region
# Name of the region for this request.
# @param [String] filter
# Sets a filter `expression` for filtering listed resources. Your `expression`
# must be in the format: field_name comparison_string literal_string.
# The field_name is the name of the field you want to compare. Only atomic field
# types are supported (string, number, boolean). The comparison_string must be
# either eq (equals) or ne (not equals). The literal_string is the string value
# to filter to. The literal value must be valid for the type of field you are
# filtering by (string, number, boolean). For string fields, the literal value
# is interpreted as a regular expression using RE2 syntax. The literal value
# must match the entire field.
# For example, to filter for instances that do not have a name of example-
# instance, you would use name ne example-instance.
# You can filter on nested fields. For example, you could filter on instances
# that have set the scheduling.automaticRestart field to true. Use filtering on
# nested fields to take advantage of labels to organize and search for results
# based on label values.
# To filter on multiple expressions, provide each separate expression within
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
# central1-f). Multiple expressions are treated as AND expressions, meaning that
# resources must match all expressions to pass the filters.
# @param [Fixnum] max_results
# The maximum number of results per page that should be returned. If the number
# of available results is larger than maxResults, Compute Engine returns a
# nextPageToken that can be used to get the next page of results in subsequent
# list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
# @param [String] order_by
# Sorts list results by a certain order. By default, results are returned in
# alphanumerical order based on the resource name.
# You can also sort results in descending order based on the creation timestamp
# using orderBy="creationTimestamp desc". This sorts results based on the
# creationTimestamp field in reverse chronological order (newest result first).
# Use this to sort resources like operations so that the newest operation is
# returned first.
# Currently, only sorting by name or creationTimestamp desc is supported.
# @param [String] page_token
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
# a previous list request to get the next page of results.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeV1::InterconnectAttachmentList] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::InterconnectAttachmentList]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_interconnect_attachments(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/regions/{region}/interconnectAttachments', options)
command.response_representation = Google::Apis::ComputeV1::InterconnectAttachmentList::Representation
command.response_class = Google::Apis::ComputeV1::InterconnectAttachmentList
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.query['filter'] = filter unless filter.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['orderBy'] = order_by unless order_by.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Returns the details for the specified interconnect location. Get a list of
# available interconnect locations by making a list() request.
# @param [String] project
# Project ID for this request.
# @param [String] interconnect_location
# Name of the interconnect location to return.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeV1::InterconnectLocation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::InterconnectLocation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_interconnect_location(project, interconnect_location, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/global/interconnectLocations/{interconnectLocation}', options)
command.response_representation = Google::Apis::ComputeV1::InterconnectLocation::Representation
command.response_class = Google::Apis::ComputeV1::InterconnectLocation
command.params['project'] = project unless project.nil?
command.params['interconnectLocation'] = interconnect_location unless interconnect_location.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 list of interconnect locations available to the specified
# project.
# @param [String] project
# Project ID for this request.
# @param [String] filter
# Sets a filter `expression` for filtering listed resources. Your `expression`
# must be in the format: field_name comparison_string literal_string.
# The field_name is the name of the field you want to compare. Only atomic field
# types are supported (string, number, boolean). The comparison_string must be
# either eq (equals) or ne (not equals). The literal_string is the string value
# to filter to. The literal value must be valid for the type of field you are
# filtering by (string, number, boolean). For string fields, the literal value
# is interpreted as a regular expression using RE2 syntax. The literal value
# must match the entire field.
# For example, to filter for instances that do not have a name of example-
# instance, you would use name ne example-instance.
# You can filter on nested fields. For example, you could filter on instances
# that have set the scheduling.automaticRestart field to true. Use filtering on
# nested fields to take advantage of labels to organize and search for results
# based on label values.
# To filter on multiple expressions, provide each separate expression within
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
# central1-f). Multiple expressions are treated as AND expressions, meaning that
# resources must match all expressions to pass the filters.
# @param [Fixnum] max_results
# The maximum number of results per page that should be returned. If the number
# of available results is larger than maxResults, Compute Engine returns a
# nextPageToken that can be used to get the next page of results in subsequent
# list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
# @param [String] order_by
# Sorts list results by a certain order. By default, results are returned in
# alphanumerical order based on the resource name.
# You can also sort results in descending order based on the creation timestamp
# using orderBy="creationTimestamp desc". This sorts results based on the
# creationTimestamp field in reverse chronological order (newest result first).
# Use this to sort resources like operations so that the newest operation is
# returned first.
# Currently, only sorting by name or creationTimestamp desc is supported.
# @param [String] page_token
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
# a previous list request to get the next page of results.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeV1::InterconnectLocationList] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::InterconnectLocationList]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_interconnect_locations(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/global/interconnectLocations', options)
command.response_representation = Google::Apis::ComputeV1::InterconnectLocationList::Representation
command.response_class = Google::Apis::ComputeV1::InterconnectLocationList
command.params['project'] = project unless project.nil?
command.query['filter'] = filter unless filter.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['orderBy'] = order_by unless order_by.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Deletes the specified interconnect.
# @param [String] project
# Project ID for this request.
# @param [String] interconnect
# Name of the interconnect to delete.
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
# that if you must retry your request, the server will know to ignore the
# request if it has already been completed.
# For example, consider a situation where you make an initial request and the
# request times out. If you make the request again with the same request ID, the
# server can check if original operation with the same request ID was received,
# and if so, will ignore the second request. This prevents clients from
# accidentally creating duplicate commitments.
# The request ID must be a valid UUID with the exception that zero UUID is not
# supported (00000000-0000-0000-0000-000000000000).
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_interconnect(project, interconnect, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, '{project}/global/interconnects/{interconnect}', options)
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
command.response_class = Google::Apis::ComputeV1::Operation
command.params['project'] = project unless project.nil?
command.params['interconnect'] = interconnect unless interconnect.nil?
command.query['requestId'] = request_id unless request_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
# Returns the specified interconnect. Get a list of available interconnects by
# making a list() request.
# @param [String] project
# Project ID for this request.
# @param [String] interconnect
# Name of the interconnect to return.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeV1::Interconnect] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::Interconnect]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_interconnect(project, interconnect, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/global/interconnects/{interconnect}', options)
command.response_representation = Google::Apis::ComputeV1::Interconnect::Representation
command.response_class = Google::Apis::ComputeV1::Interconnect
command.params['project'] = project unless project.nil?
command.params['interconnect'] = interconnect unless interconnect.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 Interconnect in the specified project using the data included in the
# request.
# @param [String] project
# Project ID for this request.
# @param [Google::Apis::ComputeV1::Interconnect] interconnect_object
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
# that if you must retry your request, the server will know to ignore the
# request if it has already been completed.
# For example, consider a situation where you make an initial request and the
# request times out. If you make the request again with the same request ID, the
# server can check if original operation with the same request ID was received,
# and if so, will ignore the second request. This prevents clients from
# accidentally creating duplicate commitments.
# The request ID must be a valid UUID with the exception that zero UUID is not
# supported (00000000-0000-0000-0000-000000000000).
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def insert_interconnect(project, interconnect_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/global/interconnects', options)
command.request_representation = Google::Apis::ComputeV1::Interconnect::Representation
command.request_object = interconnect_object
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
command.response_class = Google::Apis::ComputeV1::Operation
command.params['project'] = project unless project.nil?
command.query['requestId'] = request_id unless request_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 list of interconnect available to the specified project.
# @param [String] project
# Project ID for this request.
# @param [String] filter
# Sets a filter `expression` for filtering listed resources. Your `expression`
# must be in the format: field_name comparison_string literal_string.
# The field_name is the name of the field you want to compare. Only atomic field
# types are supported (string, number, boolean). The comparison_string must be
# either eq (equals) or ne (not equals). The literal_string is the string value
# to filter to. The literal value must be valid for the type of field you are
# filtering by (string, number, boolean). For string fields, the literal value
# is interpreted as a regular expression using RE2 syntax. The literal value
# must match the entire field.
# For example, to filter for instances that do not have a name of example-
# instance, you would use name ne example-instance.
# You can filter on nested fields. For example, you could filter on instances
# that have set the scheduling.automaticRestart field to true. Use filtering on
# nested fields to take advantage of labels to organize and search for results
# based on label values.
# To filter on multiple expressions, provide each separate expression within
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
# central1-f). Multiple expressions are treated as AND expressions, meaning that
# resources must match all expressions to pass the filters.
# @param [Fixnum] max_results
# The maximum number of results per page that should be returned. If the number
# of available results is larger than maxResults, Compute Engine returns a
# nextPageToken that can be used to get the next page of results in subsequent
# list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
# @param [String] order_by
# Sorts list results by a certain order. By default, results are returned in
# alphanumerical order based on the resource name.
# You can also sort results in descending order based on the creation timestamp
# using orderBy="creationTimestamp desc". This sorts results based on the
# creationTimestamp field in reverse chronological order (newest result first).
# Use this to sort resources like operations so that the newest operation is
# returned first.
# Currently, only sorting by name or creationTimestamp desc is supported.
# @param [String] page_token
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
# a previous list request to get the next page of results.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeV1::InterconnectList] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::InterconnectList]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_interconnects(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/global/interconnects', options)
command.response_representation = Google::Apis::ComputeV1::InterconnectList::Representation
command.response_class = Google::Apis::ComputeV1::InterconnectList
command.params['project'] = project unless project.nil?
command.query['filter'] = filter unless filter.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['orderBy'] = order_by unless order_by.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Updates the specified interconnect with the data included in the request. This
# method supports PATCH semantics and uses the JSON merge patch format and
# processing rules.
# @param [String] project
# Project ID for this request.
# @param [String] interconnect
# Name of the interconnect to update.
# @param [Google::Apis::ComputeV1::Interconnect] interconnect_object
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
# that if you must retry your request, the server will know to ignore the
# request if it has already been completed.
# For example, consider a situation where you make an initial request and the
# request times out. If you make the request again with the same request ID, the
# server can check if original operation with the same request ID was received,
# and if so, will ignore the second request. This prevents clients from
# accidentally creating duplicate commitments.
# The request ID must be a valid UUID with the exception that zero UUID is not
# supported (00000000-0000-0000-0000-000000000000).
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_interconnect(project, interconnect, interconnect_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, '{project}/global/interconnects/{interconnect}', options)
command.request_representation = Google::Apis::ComputeV1::Interconnect::Representation
command.request_object = interconnect_object
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
command.response_class = Google::Apis::ComputeV1::Operation
command.params['project'] = project unless project.nil?
command.params['interconnect'] = interconnect unless interconnect.nil?
command.query['requestId'] = request_id unless request_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
# Returns the specified License resource.
# @param [String] project
# Project ID for this request.

View File

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

View File

@ -270,9 +270,7 @@ module Google
# @return [Fixnum]
attr_accessor :initial_node_count
# [Output only] The resource URLs of [instance
# groups](/compute/docs/instance-groups/) associated with this
# cluster.
# Deprecated. Use node_pools.instance_group_urls.
# Corresponds to the JSON property `instanceGroupUrls`
# @return [Array<String>]
attr_accessor :instance_group_urls
@ -1334,9 +1332,9 @@ module Google
# @return [Fixnum]
attr_accessor :initial_node_count
# [Output only] The resource URLs of [instance
# groups](/compute/docs/instance-groups/) associated with this
# node pool.
# [Output only] The resource URLs of the [managed instance
# groups](/compute/docs/instance-groups/creating-groups-of-managed-instances)
# associated with this node pool.
# Corresponds to the JSON property `instanceGroupUrls`
# @return [Array<String>]
attr_accessor :instance_group_urls
@ -1368,7 +1366,7 @@ module Google
# @return [String]
attr_accessor :status_message
# [Output only] The version of the Kubernetes of this node.
# The version of the Kubernetes of this node.
# Corresponds to the JSON property `version`
# @return [String]
attr_accessor :version

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/container-engine/
module ContainerV1beta1
VERSION = 'V1beta1'
REVISION = '20170922'
REVISION = '20171111'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

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