Autogenerated update (2018-08-22)

Delete:
- spectrum_v1explorer

Update:
- abusiveexperiencereport_v1
- adexchangebuyer2_v2beta1
- adexchangebuyer_v1_2
- adexchangebuyer_v1_3
- adexchangebuyer_v1_4
- adexchangeseller_v1
- adexchangeseller_v1_1
- adexchangeseller_v2_0
- adexperiencereport_v1
- admin_datatransfer_v1
- admin_directory_v1
- admin_reports_v1
- adsense_v1_4
- adsensehost_v4_1
- analytics_v2_4
- analytics_v3
- analyticsreporting_v4
- androiddeviceprovisioning_v1
- androidenterprise_v1
- androidmanagement_v1
- androidpublisher_v1
- androidpublisher_v1_1
- androidpublisher_v2
- androidpublisher_v3
- appengine_v1
- appengine_v1beta
- appsactivity_v1
- appsmarket_v2
- appstate_v1
- bigquery_v2
- bigquerydatatransfer_v1
- blogger_v2
- blogger_v3
- books_v1
- calendar_v3
- chat_v1
- civicinfo_v2
- classroom_v1
- cloudbilling_v1
- cloudbuild_v1
- clouddebugger_v2
- clouderrorreporting_v1beta1
- cloudiot_v1
- cloudkms_v1
- cloudprofiler_v2
- cloudresourcemanager_v1
- cloudresourcemanager_v1beta1
- cloudresourcemanager_v2
- cloudresourcemanager_v2beta1
- cloudshell_v1alpha1
- cloudtasks_v2beta2
- cloudtrace_v1
- cloudtrace_v2
- composer_v1beta1
- compute_alpha
- compute_beta
- compute_v1
- container_v1
- container_v1beta1
- content_v2
- content_v2sandbox
- customsearch_v1
- dataproc_v1beta2
- datastore_v1
- datastore_v1beta1
- datastore_v1beta3
- deploymentmanager_alpha
- deploymentmanager_v2
- deploymentmanager_v2beta
- dfareporting_v2_8
- dfareporting_v3_0
- dfareporting_v3_1
- dialogflow_v2
- dialogflow_v2beta1
- discovery_v1
- dlp_v2
- dns_v1
- dns_v1beta2
- dns_v2beta1
- doubleclickbidmanager_v1
- doubleclicksearch_v2
- drive_v2
- drive_v3
- firestore_v1beta1
- fitness_v1
- fusiontables_v1
- fusiontables_v2
- games_configuration_v1configuration
- games_management_v1management
- games_v1
- genomics_v1
- genomics_v1alpha2
- genomics_v2alpha1
- gmail_v1
- groupsmigration_v1
- groupssettings_v1
- iam_v1
- iamcredentials_v1
- identitytoolkit_v3
- jobs_v2
- licensing_v1
- logging_v2
- logging_v2beta1
- mirror_v1
- ml_v1
- monitoring_v3
- oauth2_v1
- oauth2_v2
- pagespeedonline_v1
- pagespeedonline_v2
- pagespeedonline_v4
- playcustomapp_v1
- plus_domains_v1
- plus_v1
- poly_v1
- pubsub_v1
- pubsub_v1beta2
- redis_v1beta1
- replicapool_v1beta1
- replicapoolupdater_v1beta1
- reseller_v1
- runtimeconfig_v1beta1
- script_v1
- servicebroker_v1
- servicebroker_v1alpha1
- servicebroker_v1beta1
- serviceconsumermanagement_v1
- servicecontrol_v1
- servicemanagement_v1
- serviceusage_v1
- serviceusage_v1beta1
- serviceuser_v1
- sheets_v4
- site_verification_v1
- slides_v1
- sourcerepo_v1
- sqladmin_v1beta4
- storage_v1
- storage_v1beta1
- storage_v1beta2
- surveys_v2
- tagmanager_v1
- tagmanager_v2
- tasks_v1
- testing_v1
- texttospeech_v1beta1
- toolresults_v1beta3
- tpu_v1
- tpu_v1alpha1
- urlshortener_v1
- vault_v1
- vision_v1
- vision_v1p1beta1
- vision_v1p2beta1
- webfonts_v1
- webmasters_v3
- websecurityscanner_v1alpha
- youtube_analytics_v1
- youtube_analytics_v1beta1
- youtube_partner_v1
- youtube_v3
This commit is contained in:
Google APIs 2018-08-22 21:14:52 +00:00
parent 406fcb0032
commit ca56db5630
397 changed files with 73957 additions and 5767 deletions

File diff suppressed because it is too large Load Diff

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/abusive-experience-report/ # @see https://developers.google.com/abusive-experience-report/
module AbusiveexperiencereportV1 module AbusiveexperiencereportV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20180419' REVISION = '20180807'
# Test scope for access to the Zoo service # Test scope for access to the Zoo service
AUTH_XAPI_ZOO = 'https://www.googleapis.com/auth/xapi.zoo' AUTH_XAPI_ZOO = 'https://www.googleapis.com/auth/xapi.zoo'

View File

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

View File

@ -481,7 +481,7 @@ module Google
end end
# A creative and its classification data. # A creative and its classification data.
# Next ID: 36 # Next ID: 38
class Creative class Creative
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -551,6 +551,11 @@ module Google
# @return [String] # @return [String]
attr_accessor :deals_status attr_accessor :deals_status
# The set of declared destination URLs for the creative.
# Corresponds to the JSON property `declaredClickThroughUrls`
# @return [Array<String>]
attr_accessor :declared_click_through_urls
# @OutputOnly Detected advertiser IDs, if any. # @OutputOnly Detected advertiser IDs, if any.
# Corresponds to the JSON property `detectedAdvertiserIds` # Corresponds to the JSON property `detectedAdvertiserIds`
# @return [Array<Fixnum>] # @return [Array<Fixnum>]
@ -664,6 +669,7 @@ module Google
@corrections = args[:corrections] if args.key?(:corrections) @corrections = args[:corrections] if args.key?(:corrections)
@creative_id = args[:creative_id] if args.key?(:creative_id) @creative_id = args[:creative_id] if args.key?(:creative_id)
@deals_status = args[:deals_status] if args.key?(:deals_status) @deals_status = args[:deals_status] if args.key?(:deals_status)
@declared_click_through_urls = args[:declared_click_through_urls] if args.key?(:declared_click_through_urls)
@detected_advertiser_ids = args[:detected_advertiser_ids] if args.key?(:detected_advertiser_ids) @detected_advertiser_ids = args[:detected_advertiser_ids] if args.key?(:detected_advertiser_ids)
@detected_domains = args[:detected_domains] if args.key?(:detected_domains) @detected_domains = args[:detected_domains] if args.key?(:detected_domains)
@detected_languages = args[:detected_languages] if args.key?(:detected_languages) @detected_languages = args[:detected_languages] if args.key?(:detected_languages)

View File

@ -496,6 +496,7 @@ module Google
property :creative_id, as: 'creativeId' property :creative_id, as: 'creativeId'
property :deals_status, as: 'dealsStatus' property :deals_status, as: 'dealsStatus'
collection :declared_click_through_urls, as: 'declaredClickThroughUrls'
collection :detected_advertiser_ids, as: 'detectedAdvertiserIds' collection :detected_advertiser_ids, as: 'detectedAdvertiserIds'
collection :detected_domains, as: 'detectedDomains' collection :detected_domains, as: 'detectedDomains'
collection :detected_languages, as: 'detectedLanguages' collection :detected_languages, as: 'detectedLanguages'

View File

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

View File

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

View File

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

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/ad-exchange/seller-rest/ # @see https://developers.google.com/ad-exchange/seller-rest/
module AdexchangesellerV1 module AdexchangesellerV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '' REVISION = '20180708'
# View and manage your Ad Exchange data # View and manage your Ad Exchange data
AUTH_ADEXCHANGE_SELLER = 'https://www.googleapis.com/auth/adexchange.seller' AUTH_ADEXCHANGE_SELLER = 'https://www.googleapis.com/auth/adexchange.seller'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/ad-exchange/seller-rest/ # @see https://developers.google.com/ad-exchange/seller-rest/
module AdexchangesellerV1_1 module AdexchangesellerV1_1
VERSION = 'V1_1' VERSION = 'V1_1'
REVISION = '' REVISION = '20180708'
# View and manage your Ad Exchange data # View and manage your Ad Exchange data
AUTH_ADEXCHANGE_SELLER = 'https://www.googleapis.com/auth/adexchange.seller' AUTH_ADEXCHANGE_SELLER = 'https://www.googleapis.com/auth/adexchange.seller'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/ad-exchange/seller-rest/ # @see https://developers.google.com/ad-exchange/seller-rest/
module AdexchangesellerV2_0 module AdexchangesellerV2_0
VERSION = 'V2_0' VERSION = 'V2_0'
REVISION = '' REVISION = '20180708'
# View and manage your Ad Exchange data # View and manage your Ad Exchange data
AUTH_ADEXCHANGE_SELLER = 'https://www.googleapis.com/auth/adexchange.seller' AUTH_ADEXCHANGE_SELLER = 'https://www.googleapis.com/auth/adexchange.seller'

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/ad-experience-report/ # @see https://developers.google.com/ad-experience-report/
module AdexperiencereportV1 module AdexperiencereportV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20180420' REVISION = '20180807'
# Test scope for access to the Zoo service # Test scope for access to the Zoo service
AUTH_XAPI_ZOO = 'https://www.googleapis.com/auth/xapi.zoo' AUTH_XAPI_ZOO = 'https://www.googleapis.com/auth/xapi.zoo'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/admin-sdk/data-transfer/ # @see https://developers.google.com/admin-sdk/data-transfer/
module AdminDatatransferV1 module AdminDatatransferV1
VERSION = 'DatatransferV1' VERSION = 'DatatransferV1'
REVISION = '' REVISION = '20160223'
# View and manage data transfers between users in your organization # View and manage data transfers between users in your organization
AUTH_ADMIN_DATATRANSFER = 'https://www.googleapis.com/auth/admin.datatransfer' AUTH_ADMIN_DATATRANSFER = 'https://www.googleapis.com/auth/admin.datatransfer'

View File

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

View File

@ -2896,6 +2896,12 @@ module Google
# @return [Array<String>] # @return [Array<String>]
attr_accessor :aliases attr_accessor :aliases
# Indicates if user is archived
# Corresponds to the JSON property `archived`
# @return [Boolean]
attr_accessor :archived
alias_method :archived?, :archived
# Boolean indicating if the user should change password in next login # Boolean indicating if the user should change password in next login
# Corresponds to the JSON property `changePasswordAtNextLogin` # Corresponds to the JSON property `changePasswordAtNextLogin`
# @return [Boolean] # @return [Boolean]
@ -3114,6 +3120,7 @@ module Google
@addresses = args[:addresses] if args.key?(:addresses) @addresses = args[:addresses] if args.key?(:addresses)
@agreed_to_terms = args[:agreed_to_terms] if args.key?(:agreed_to_terms) @agreed_to_terms = args[:agreed_to_terms] if args.key?(:agreed_to_terms)
@aliases = args[:aliases] if args.key?(:aliases) @aliases = args[:aliases] if args.key?(:aliases)
@archived = args[:archived] if args.key?(:archived)
@change_password_at_next_login = args[:change_password_at_next_login] if args.key?(:change_password_at_next_login) @change_password_at_next_login = args[:change_password_at_next_login] if args.key?(:change_password_at_next_login)
@creation_time = args[:creation_time] if args.key?(:creation_time) @creation_time = args[:creation_time] if args.key?(:creation_time)
@custom_schemas = args[:custom_schemas] if args.key?(:custom_schemas) @custom_schemas = args[:custom_schemas] if args.key?(:custom_schemas)

View File

@ -1229,6 +1229,7 @@ module Google
property :addresses, as: 'addresses' property :addresses, as: 'addresses'
property :agreed_to_terms, as: 'agreedToTerms' property :agreed_to_terms, as: 'agreedToTerms'
collection :aliases, as: 'aliases' collection :aliases, as: 'aliases'
property :archived, as: 'archived'
property :change_password_at_next_login, as: 'changePasswordAtNextLogin' property :change_password_at_next_login, as: 'changePasswordAtNextLogin'
property :creation_time, as: 'creationTime', type: DateTime property :creation_time, as: 'creationTime', type: DateTime

View File

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

View File

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

View File

@ -204,11 +204,21 @@ module Google
class AdCode class AdCode
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The ad code snippet. # The Auto ad code snippet. The ad code snippet.
# Corresponds to the JSON property `adCode` # Corresponds to the JSON property `adCode`
# @return [String] # @return [String]
attr_accessor :ad_code attr_accessor :ad_code
# The AMP Auto ad code snippet that goes in the body of an AMP page.
# Corresponds to the JSON property `ampBody`
# @return [String]
attr_accessor :amp_body
# The AMP Auto ad code snippet that goes in the head of an AMP page.
# Corresponds to the JSON property `ampHead`
# @return [String]
attr_accessor :amp_head
# Kind this is, in this case adsense#adCode. # Kind this is, in this case adsense#adCode.
# Corresponds to the JSON property `kind` # Corresponds to the JSON property `kind`
# @return [String] # @return [String]
@ -221,6 +231,8 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@ad_code = args[:ad_code] if args.key?(:ad_code) @ad_code = args[:ad_code] if args.key?(:ad_code)
@amp_body = args[:amp_body] if args.key?(:amp_body)
@amp_head = args[:amp_head] if args.key?(:amp_head)
@kind = args[:kind] if args.key?(:kind) @kind = args[:kind] if args.key?(:kind)
end end
end end

View File

@ -259,6 +259,8 @@ module Google
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :ad_code, as: 'adCode' property :ad_code, as: 'adCode'
property :amp_body, as: 'ampBody'
property :amp_head, as: 'ampHead'
property :kind, as: 'kind' property :kind, as: 'kind'
end end
end end

View File

@ -124,6 +124,42 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Get Auto ad code for a given ad client.
# @param [String] account_id
# Account which contains the ad client.
# @param [String] ad_client_id
# Ad client to get the code for.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AdsenseV1_4::AdCode] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AdsenseV1_4::AdCode]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_account_adclient_ad_code(account_id, ad_client_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/adcode', options)
command.response_representation = Google::Apis::AdsenseV1_4::AdCode::Representation
command.response_class = Google::Apis::AdsenseV1_4::AdCode
command.params['accountId'] = account_id unless account_id.nil?
command.params['adClientId'] = ad_client_id unless ad_client_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
# List all ad clients in the specified account. # List all ad clients in the specified account.
# @param [String] account_id # @param [String] account_id
# Account for which to list ad clients. # Account for which to list ad clients.

View File

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

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/analytics/ # @see https://developers.google.com/analytics/
module AnalyticsV2_4 module AnalyticsV2_4
VERSION = 'V2_4' VERSION = 'V2_4'
REVISION = '' REVISION = '20180622'
# View and manage your Google Analytics data # View and manage your Google Analytics data
AUTH_ANALYTICS = 'https://www.googleapis.com/auth/analytics' AUTH_ANALYTICS = 'https://www.googleapis.com/auth/analytics'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/analytics/ # @see https://developers.google.com/analytics/
module AnalyticsV3 module AnalyticsV3
VERSION = 'V3' VERSION = 'V3'
REVISION = '' REVISION = '20180622'
# View and manage your Google Analytics data # View and manage your Google Analytics data
AUTH_ANALYTICS = 'https://www.googleapis.com/auth/analytics' AUTH_ANALYTICS = 'https://www.googleapis.com/auth/analytics'

View File

@ -3383,6 +3383,74 @@ module Google
end end
end end
# JSON template for a hash Client Id request resource.
class HashClientIdRequest
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `clientId`
# @return [String]
attr_accessor :client_id
#
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
#
# Corresponds to the JSON property `webPropertyId`
# @return [String]
attr_accessor :web_property_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@client_id = args[:client_id] if args.key?(:client_id)
@kind = args[:kind] if args.key?(:kind)
@web_property_id = args[:web_property_id] if args.key?(:web_property_id)
end
end
# JSON template for a hash Client Id response resource.
class HashClientIdResponse
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `clientId`
# @return [String]
attr_accessor :client_id
#
# Corresponds to the JSON property `hashedClientId`
# @return [String]
attr_accessor :hashed_client_id
#
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
#
# Corresponds to the JSON property `webPropertyId`
# @return [String]
attr_accessor :web_property_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@client_id = args[:client_id] if args.key?(:client_id)
@hashed_client_id = args[:hashed_client_id] if args.key?(:hashed_client_id)
@kind = args[:kind] if args.key?(:kind)
@web_property_id = args[:web_property_id] if args.key?(:web_property_id)
end
end
# JSON template for an Analytics Remarketing Include Conditions. # JSON template for an Analytics Remarketing Include Conditions.
class IncludeConditions class IncludeConditions
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -400,6 +400,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class HashClientIdRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class HashClientIdResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class IncludeConditions class IncludeConditions
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1495,6 +1507,25 @@ module Google
end end
end end
class HashClientIdRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :client_id, as: 'clientId'
property :kind, as: 'kind'
property :web_property_id, as: 'webPropertyId'
end
end
class HashClientIdResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :client_id, as: 'clientId'
property :hashed_client_id, as: 'hashedClientId'
property :kind, as: 'kind'
property :web_property_id, as: 'webPropertyId'
end
end
class IncludeConditions class IncludeConditions
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -478,6 +478,39 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Hashes the given Client ID.
# @param [Google::Apis::AnalyticsV3::HashClientIdRequest] hash_client_id_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AnalyticsV3::HashClientIdResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AnalyticsV3::HashClientIdResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def hash_client_id(hash_client_id_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'management/clientId:hashClientId', options)
command.request_representation = Google::Apis::AnalyticsV3::HashClientIdRequest::Representation
command.request_object = hash_client_id_request_object
command.response_representation = Google::Apis::AnalyticsV3::HashClientIdResponse::Representation
command.response_class = Google::Apis::AnalyticsV3::HashClientIdResponse
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 custom data sources to which the user has access. # List custom data sources to which the user has access.
# @param [String] account_id # @param [String] account_id
# Account Id for the custom data sources to retrieve. # Account Id for the custom data sources to retrieve.

View File

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

View File

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

View File

@ -31,8 +31,9 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :customer_id attr_accessor :customer_id
# Encapsulates hardware and product IDs to identify a manufactured device. To # Encapsulates hardware and product IDs to identify a manufactured device.
# learn more, read [Identifiers](/zero-touch/guides/identifiers). # To understand requirements on identifier sets, read
# [Identifiers](/zero-touch/guides/identifiers).
# Corresponds to the JSON property `deviceIdentifier` # Corresponds to the JSON property `deviceIdentifier`
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier] # @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier]
attr_accessor :device_identifier attr_accessor :device_identifier
@ -101,7 +102,7 @@ module Google
end end
end end
# A customer resource in the zero-touch enrollment API. # A reseller, vendor, or customer in the zero-touch reseller and customer APIs.
class Company class Company
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -116,15 +117,18 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :company_id attr_accessor :company_id
# Required. The name of the company. For example _XYZ Corp_. Characters # Required. The name of the company. For example _XYZ Corp_. Displayed to the
# allowed are: Latin letters, numerals, hyphens, and spaces. Displayed to the # company's employees in the zero-touch enrollment portal.
# customer's employees in the zero-touch enrollment portal.
# Corresponds to the JSON property `companyName` # Corresponds to the JSON property `companyName`
# @return [String] # @return [String]
attr_accessor :company_name attr_accessor :company_name
# Output only. The API resource name of the company in the format # Output only. The API resource name of the company. The resource name is one
# `partners/[PARTNER_ID]/customers/[CUSTOMER_ID]`. Assigned by the server. # of the following formats:
# * `partners/[PARTNER_ID]/customers/[CUSTOMER_ID]`
# * `partners/[PARTNER_ID]/vendors/[VENDOR_ID]`
# * `partners/[PARTNER_ID]/vendors/[VENDOR_ID]/customers/[CUSTOMER_ID]`
# Assigned by the server.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
@ -263,7 +267,7 @@ module Google
class CreateCustomerRequest class CreateCustomerRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# A customer resource in the zero-touch enrollment API. # A reseller, vendor, or customer in the zero-touch reseller and customer APIs.
# Corresponds to the JSON property `customer` # Corresponds to the JSON property `customer`
# @return [Google::Apis::AndroiddeviceprovisioningV1::Company] # @return [Google::Apis::AndroiddeviceprovisioningV1::Company]
attr_accessor :customer attr_accessor :customer
@ -479,8 +483,9 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :device_id attr_accessor :device_id
# Encapsulates hardware and product IDs to identify a manufactured device. To # Encapsulates hardware and product IDs to identify a manufactured device.
# learn more, read [Identifiers](/zero-touch/guides/identifiers). # To understand requirements on identifier sets, read
# [Identifiers](/zero-touch/guides/identifiers).
# Corresponds to the JSON property `deviceIdentifier` # Corresponds to the JSON property `deviceIdentifier`
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier] # @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier]
attr_accessor :device_identifier attr_accessor :device_identifier
@ -524,6 +529,11 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :owner_company_id attr_accessor :owner_company_id
# The ID of the reseller that claimed the device.
# Corresponds to the JSON property `resellerId`
# @return [Fixnum]
attr_accessor :reseller_id
# Output only. The type of claim made on the device. # Output only. The type of claim made on the device.
# Corresponds to the JSON property `sectionType` # Corresponds to the JSON property `sectionType`
# @return [String] # @return [String]
@ -536,12 +546,14 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@owner_company_id = args[:owner_company_id] if args.key?(:owner_company_id) @owner_company_id = args[:owner_company_id] if args.key?(:owner_company_id)
@reseller_id = args[:reseller_id] if args.key?(:reseller_id)
@section_type = args[:section_type] if args.key?(:section_type) @section_type = args[:section_type] if args.key?(:section_type)
end end
end end
# Encapsulates hardware and product IDs to identify a manufactured device. To # Encapsulates hardware and product IDs to identify a manufactured device.
# learn more, read [Identifiers](/zero-touch/guides/identifiers). # To understand requirements on identifier sets, read
# [Identifiers](/zero-touch/guides/identifiers).
class DeviceIdentifier class DeviceIdentifier
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -550,9 +562,10 @@ module Google
# @return [String] # @return [String]
attr_accessor :imei attr_accessor :imei
# Required. The device manufacturers name. Matches the device's built-in # The device manufacturers name. Matches the device's built-in
# value returned from `android.os.Build.MANUFACTURER`. Allowed values are # value returned from `android.os.Build.MANUFACTURER`. Allowed values are
# listed in [manufacturer names](/zero-touch/resources/manufacturer-names). # listed in
# [manufacturers](/zero-touch/resources/manufacturer-names#manufacturers-names).
# Corresponds to the JSON property `manufacturer` # Corresponds to the JSON property `manufacturer`
# @return [String] # @return [String]
attr_accessor :manufacturer attr_accessor :manufacturer
@ -562,8 +575,15 @@ module Google
# @return [String] # @return [String]
attr_accessor :meid attr_accessor :meid
# The device model's name. Matches the device's built-in value returned from
# `android.os.Build.MODEL`. Allowed values are listed in
# [models](/zero-touch/resources/manufacturer-names#model-names).
# Corresponds to the JSON property `model`
# @return [String]
attr_accessor :model
# The manufacturer's serial number for the device. This value might not be # The manufacturer's serial number for the device. This value might not be
# unique. # unique across different device models.
# Corresponds to the JSON property `serialNumber` # Corresponds to the JSON property `serialNumber`
# @return [String] # @return [String]
attr_accessor :serial_number attr_accessor :serial_number
@ -577,6 +597,7 @@ module Google
@imei = args[:imei] if args.key?(:imei) @imei = args[:imei] if args.key?(:imei)
@manufacturer = args[:manufacturer] if args.key?(:manufacturer) @manufacturer = args[:manufacturer] if args.key?(:manufacturer)
@meid = args[:meid] if args.key?(:meid) @meid = args[:meid] if args.key?(:meid)
@model = args[:model] if args.key?(:model)
@serial_number = args[:serial_number] if args.key?(:serial_number) @serial_number = args[:serial_number] if args.key?(:serial_number)
end end
end end
@ -617,8 +638,9 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :device_id attr_accessor :device_id
# Encapsulates hardware and product IDs to identify a manufactured device. To # Encapsulates hardware and product IDs to identify a manufactured device.
# learn more, read [Identifiers](/zero-touch/guides/identifiers). # To understand requirements on identifier sets, read
# [Identifiers](/zero-touch/guides/identifiers).
# Corresponds to the JSON property `deviceIdentifier` # Corresponds to the JSON property `deviceIdentifier`
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier] # @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier]
attr_accessor :device_identifier attr_accessor :device_identifier
@ -765,8 +787,9 @@ module Google
class FindDevicesByDeviceIdentifierRequest class FindDevicesByDeviceIdentifierRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Encapsulates hardware and product IDs to identify a manufactured device. To # Encapsulates hardware and product IDs to identify a manufactured device.
# learn more, read [Identifiers](/zero-touch/guides/identifiers). # To understand requirements on identifier sets, read
# [Identifiers](/zero-touch/guides/identifiers).
# Corresponds to the JSON property `deviceIdentifier` # Corresponds to the JSON property `deviceIdentifier`
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier] # @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier]
attr_accessor :device_identifier attr_accessor :device_identifier
@ -903,6 +926,59 @@ module Google
end end
end end
# Response message to list customers of the vendor.
class ListVendorCustomersResponse
include Google::Apis::Core::Hashable
# List of customers of the vendor.
# Corresponds to the JSON property `customers`
# @return [Array<Google::Apis::AndroiddeviceprovisioningV1::Company>]
attr_accessor :customers
# A token to retrieve the next page of results. Omitted if no further results
# are available.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@customers = args[:customers] if args.key?(:customers)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# Response message to list vendors of the partner.
class ListVendorsResponse
include Google::Apis::Core::Hashable
# A token to retrieve the next page of results. Omitted if no further results
# are available.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# List of vendors of the reseller partner. Fields `name`, `companyId` and
# `companyName` are populated to the Company object.
# Corresponds to the JSON property `vendors`
# @return [Array<Google::Apis::AndroiddeviceprovisioningV1::Company>]
attr_accessor :vendors
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@vendors = args[:vendors] if args.key?(:vendors)
end
end
# This resource represents a long-running operation that is the result of a # This resource represents a long-running operation that is the result of a
# network API call. # network API call.
class Operation class Operation
@ -1039,8 +1115,9 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :customer_id attr_accessor :customer_id
# Encapsulates hardware and product IDs to identify a manufactured device. To # Encapsulates hardware and product IDs to identify a manufactured device.
# learn more, read [Identifiers](/zero-touch/guides/identifiers). # To understand requirements on identifier sets, read
# [Identifiers](/zero-touch/guides/identifiers).
# Corresponds to the JSON property `deviceIdentifier` # Corresponds to the JSON property `deviceIdentifier`
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier] # @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier]
attr_accessor :device_identifier attr_accessor :device_identifier
@ -1078,8 +1155,9 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :device_id attr_accessor :device_id
# Encapsulates hardware and product IDs to identify a manufactured device. To # Encapsulates hardware and product IDs to identify a manufactured device.
# learn more, read [Identifiers](/zero-touch/guides/identifiers). # To understand requirements on identifier sets, read
# [Identifiers](/zero-touch/guides/identifiers).
# Corresponds to the JSON property `deviceIdentifier` # Corresponds to the JSON property `deviceIdentifier`
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier] # @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier]
attr_accessor :device_identifier attr_accessor :device_identifier
@ -1219,8 +1297,9 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :device_id attr_accessor :device_id
# Encapsulates hardware and product IDs to identify a manufactured device. To # Encapsulates hardware and product IDs to identify a manufactured device.
# learn more, read [Identifiers](/zero-touch/guides/identifiers). # To understand requirements on identifier sets, read
# [Identifiers](/zero-touch/guides/identifiers).
# Corresponds to the JSON property `deviceIdentifier` # Corresponds to the JSON property `deviceIdentifier`
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier] # @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier]
attr_accessor :device_identifier attr_accessor :device_identifier
@ -1309,8 +1388,9 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :device_id attr_accessor :device_id
# Encapsulates hardware and product IDs to identify a manufactured device. To # Encapsulates hardware and product IDs to identify a manufactured device.
# learn more, read [Identifiers](/zero-touch/guides/identifiers). # To understand requirements on identifier sets, read
# [Identifiers](/zero-touch/guides/identifiers).
# Corresponds to the JSON property `deviceIdentifier` # Corresponds to the JSON property `deviceIdentifier`
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier] # @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier]
attr_accessor :device_identifier attr_accessor :device_identifier

View File

@ -184,6 +184,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ListVendorCustomersResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListVendorsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Operation class Operation
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -390,6 +402,7 @@ module Google
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :owner_company_id, :numeric_string => true, as: 'ownerCompanyId' property :owner_company_id, :numeric_string => true, as: 'ownerCompanyId'
property :reseller_id, :numeric_string => true, as: 'resellerId'
property :section_type, as: 'sectionType' property :section_type, as: 'sectionType'
end end
end end
@ -400,6 +413,7 @@ module Google
property :imei, as: 'imei' property :imei, as: 'imei'
property :manufacturer, as: 'manufacturer' property :manufacturer, as: 'manufacturer'
property :meid, as: 'meid' property :meid, as: 'meid'
property :model, as: 'model'
property :serial_number, as: 'serialNumber' property :serial_number, as: 'serialNumber'
end end
end end
@ -499,6 +513,24 @@ module Google
end end
end end
class ListVendorCustomersResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :customers, as: 'customers', class: Google::Apis::AndroiddeviceprovisioningV1::Company, decorator: Google::Apis::AndroiddeviceprovisioningV1::Company::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class ListVendorsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :vendors, as: 'vendors', class: Google::Apis::AndroiddeviceprovisioningV1::Company, decorator: Google::Apis::AndroiddeviceprovisioningV1::Company::Representation
end
end
class Operation class Operation
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -872,6 +872,79 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Lists the vendors of the partner.
# @param [String] parent
# Required. The resource name in the format `partners/[PARTNER_ID]`.
# @param [Fixnum] page_size
# The maximum number of results to be returned.
# @param [String] page_token
# A token identifying a page of results returned by the server.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to 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::AndroiddeviceprovisioningV1::ListVendorsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroiddeviceprovisioningV1::ListVendorsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_partner_vendors(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+parent}/vendors', options)
command.response_representation = Google::Apis::AndroiddeviceprovisioningV1::ListVendorsResponse::Representation
command.response_class = Google::Apis::AndroiddeviceprovisioningV1::ListVendorsResponse
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
# Lists the customers of the vendor.
# @param [String] parent
# Required. The resource name in the format
# `partners/[PARTNER_ID]/vendors/[VENDOR_ID]`.
# @param [Fixnum] page_size
# The maximum number of results to be returned.
# @param [String] page_token
# A token identifying a page of results returned by the server.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to 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::AndroiddeviceprovisioningV1::ListVendorCustomersResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroiddeviceprovisioningV1::ListVendorCustomersResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_partner_vendor_customers(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+parent}/customers', options)
command.response_representation = Google::Apis::AndroiddeviceprovisioningV1::ListVendorCustomersResponse::Representation
command.response_class = Google::Apis::AndroiddeviceprovisioningV1::ListVendorCustomersResponse
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
protected protected
def apply_command_defaults(command) def apply_command_defaults(command)

View File

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

View File

@ -422,39 +422,6 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Deletes the binding between the EMM and enterprise. This is now deprecated.
# Use this method only to unenroll customers that were previously enrolled with
# the insert call, then enroll them again with the enroll call.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [NilClass] No result returned for this method
# @yieldparam err [StandardError] error object if request failed
#
# @return [void]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_enterprise(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, 'enterprises/{enterpriseId}', options)
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Enrolls an enterprise with the calling EMM. # Enrolls an enterprise with the calling EMM.
# @param [String] token # @param [String] token
# The token provided by the enterprise to register the EMM. # The token provided by the enterprise to register the EMM.
@ -676,43 +643,6 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Establishes the binding between the EMM and an enterprise. This is now
# deprecated; use enroll instead.
# @param [String] token
# The token provided by the enterprise to register the EMM.
# @param [Google::Apis::AndroidenterpriseV1::Enterprise] enterprise_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidenterpriseV1::Enterprise] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidenterpriseV1::Enterprise]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_enterprise(token, enterprise_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'enterprises', options)
command.request_representation = Google::Apis::AndroidenterpriseV1::Enterprise::Representation
command.request_object = enterprise_object
command.response_representation = Google::Apis::AndroidenterpriseV1::Enterprise::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::Enterprise
command.query['token'] = token unless token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Looks up an enterprise by domain name. This is only supported for enterprises # Looks up an enterprise by domain name. This is only supported for enterprises
# created via the Google-initiated creation flow. Lookup of the id is not needed # created via the Google-initiated creation flow. Lookup of the id is not needed
# for enterprises created via the EMM-initiated flow since the EMM learns the # for enterprises created via the EMM-initiated flow since the EMM learns the

View File

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

View File

@ -562,10 +562,7 @@ module Google
# @return [Array<Google::Apis::AndroidmanagementV1::HardwareStatus>] # @return [Array<Google::Apis::AndroidmanagementV1::HardwareStatus>]
attr_accessor :hardware_status_samples attr_accessor :hardware_status_samples
# The last time the device sent a policy compliance report. Important: This # Deprecated.
# field is deprecated. The timestamp will be on last_status_report_time field,
# and last_status_report_time will be used for both status report and compliance
# report.
# Corresponds to the JSON property `lastPolicyComplianceReportTime` # Corresponds to the JSON property `lastPolicyComplianceReportTime`
# @return [String] # @return [String]
attr_accessor :last_policy_compliance_report_time attr_accessor :last_policy_compliance_report_time
@ -1734,7 +1731,7 @@ module Google
class PermissionGrant class PermissionGrant
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The android permission or group, e.g. android.permission.READ_CALENDAR or # The Android permission or group, e.g. android.permission.READ_CALENDAR or
# android.permission_group.CALENDAR. # android.permission_group.CALENDAR.
# Corresponds to the JSON property `permission` # Corresponds to the JSON property `permission`
# @return [String] # @return [String]

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -480,12 +480,11 @@ module Google
end end
end end
# Google Cloud Container Builder build information. # Google Cloud Build information.
class BuildInfo class BuildInfo
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The Google Cloud Container Builder build id. Example: "f966068f-08b2-42c8-bdfe- # The Google Cloud Build id. Example: "f966068f-08b2-42c8-bdfe-74137dff2bf9"
# 74137dff2bf9"
# Corresponds to the JSON property `cloudBuildId` # Corresponds to the JSON property `cloudBuildId`
# @return [String] # @return [String]
attr_accessor :cloud_build_id attr_accessor :cloud_build_id
@ -745,7 +744,7 @@ module Google
class Deployment class Deployment
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Google Cloud Container Builder build information. # Google Cloud Build information.
# Corresponds to the JSON property `build` # Corresponds to the JSON property `build`
# @return [Google::Apis::AppengineV1beta::BuildInfo] # @return [Google::Apis::AppengineV1beta::BuildInfo]
attr_accessor :build attr_accessor :build

View File

@ -18,14 +18,14 @@ require 'google/apis/appsactivity_v1/representations.rb'
module Google module Google
module Apis module Apis
# G Suite Activity API # Drive Activity API
# #
# Provides a historical view of activity. # Provides a historical view of activity.
# #
# @see https://developers.google.com/google-apps/activity/ # @see https://developers.google.com/google-apps/activity/
module AppsactivityV1 module AppsactivityV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '' REVISION = '20180819'
# View the activity history of your Google apps # View the activity history of your Google apps
AUTH_ACTIVITY = 'https://www.googleapis.com/auth/activity' AUTH_ACTIVITY = 'https://www.googleapis.com/auth/activity'

View File

@ -20,7 +20,7 @@ require 'google/apis/errors'
module Google module Google
module Apis module Apis
module AppsactivityV1 module AppsactivityV1
# G Suite Activity API # Drive Activity API
# #
# Provides a historical view of activity. # Provides a historical view of activity.
# #

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/google-apps/marketplace/v2/developers_guide # @see https://developers.google.com/google-apps/marketplace/v2/developers_guide
module AppsmarketV2 module AppsmarketV2
VERSION = 'V2' VERSION = 'V2'
REVISION = '' REVISION = '20160920'
# View your installed application's licensing information # View your installed application's licensing information
AUTH_APPSMARKETPLACE_LICENSE = 'https://www.googleapis.com/auth/appsmarketplace.license' AUTH_APPSMARKETPLACE_LICENSE = 'https://www.googleapis.com/auth/appsmarketplace.license'

View File

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

View File

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

View File

@ -22,6 +22,34 @@ module Google
module Apis module Apis
module BigqueryV2 module BigqueryV2
#
class BigQueryModelTraining
include Google::Apis::Core::Hashable
# [Output-only, Beta] Index of current ML training iteration. Updated during
# create model query job to show job progress.
# Corresponds to the JSON property `currentIteration`
# @return [Fixnum]
attr_accessor :current_iteration
# [Output-only, Beta] Expected number of iterations for the create model query
# job specified as num_iterations in the input query. The actual total number of
# iterations may be less than this number due to early stop.
# Corresponds to the JSON property `expectedTotalIterations`
# @return [Fixnum]
attr_accessor :expected_total_iterations
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@current_iteration = args[:current_iteration] if args.key?(:current_iteration)
@expected_total_iterations = args[:expected_total_iterations] if args.key?(:expected_total_iterations)
end
end
# #
class BigtableColumn class BigtableColumn
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -200,8 +228,9 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# [Repeated] One or more fields on which data should be clustered. Only top- # [Repeated] One or more fields on which data should be clustered. Only top-
# level, non-repeated, simple-type fields are supported. The order of the fields # level, non-repeated, simple-type fields are supported. When you cluster a
# will determine how clusters will be generated, so it is important. # table using multiple columns, the order of columns you specify is important.
# The order of the specified columns determines the sort order of the data.
# Corresponds to the JSON property `fields` # Corresponds to the JSON property `fields`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :fields attr_accessor :fields
@ -374,7 +403,7 @@ module Google
# The labels associated with this dataset. You can use these to organize and # The labels associated with this dataset. You can use these to organize and
# group your datasets. You can set this property when inserting or updating a # group your datasets. You can set this property when inserting or updating a
# dataset. See Labeling Datasets for more information. # dataset. See Creating and Updating Dataset Labels for more information.
# Corresponds to the JSON property `labels` # Corresponds to the JSON property `labels`
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :labels attr_accessor :labels
@ -950,9 +979,10 @@ module Google
# [Optional] The maximum number of bad records that BigQuery can ignore when # [Optional] The maximum number of bad records that BigQuery can ignore when
# reading data. If the number of bad records exceeds this value, an invalid # reading data. If the number of bad records exceeds this value, an invalid
# error is returned in the job result. The default value is 0, which requires # error is returned in the job result. This is only valid for CSV, JSON, and
# that all records are valid. This setting is ignored for Google Cloud Bigtable, # Google Sheets. The default value is 0, which requires that all records are
# Google Cloud Datastore backups and Avro formats. # valid. This setting is ignored for Google Cloud Bigtable, Google Cloud
# Datastore backups and Avro formats.
# Corresponds to the JSON property `maxBadRecords` # Corresponds to the JSON property `maxBadRecords`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :max_bad_records attr_accessor :max_bad_records
@ -1133,8 +1163,8 @@ module Google
class GoogleSheetsOptions class GoogleSheetsOptions
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# [Experimental] [Optional] Range of a sheet to query from. Only used when non- # [Beta] [Optional] Range of a sheet to query from. Only used when non-empty.
# empty. Typical format: !: # Typical format: !:
# Corresponds to the JSON property `range` # Corresponds to the JSON property `range`
# @return [String] # @return [String]
attr_accessor :range attr_accessor :range
@ -1463,9 +1493,9 @@ module Google
attr_accessor :autodetect attr_accessor :autodetect
alias_method :autodetect?, :autodetect alias_method :autodetect?, :autodetect
# [Experimental] Clustering specification for the destination table. Must be # [Beta] Clustering specification for the destination table. Must be specified
# specified with time-based partitioning, data in the table will be first # with time-based partitioning, data in the table will be first partitioned and
# partitioned and subsequently clustered. # subsequently clustered.
# Corresponds to the JSON property `clustering` # Corresponds to the JSON property `clustering`
# @return [Google::Apis::BigqueryV2::Clustering] # @return [Google::Apis::BigqueryV2::Clustering]
attr_accessor :clustering attr_accessor :clustering
@ -1490,8 +1520,8 @@ module Google
# @return [Google::Apis::BigqueryV2::TableReference] # @return [Google::Apis::BigqueryV2::TableReference]
attr_accessor :destination_table attr_accessor :destination_table
# [Experimental] [Optional] Properties with which to create the destination # [Beta] [Optional] Properties with which to create the destination table if it
# table if it is new. # is new.
# Corresponds to the JSON property `destinationTableProperties` # Corresponds to the JSON property `destinationTableProperties`
# @return [Google::Apis::BigqueryV2::DestinationTableProperties] # @return [Google::Apis::BigqueryV2::DestinationTableProperties]
attr_accessor :destination_table_properties attr_accessor :destination_table_properties
@ -1528,8 +1558,8 @@ module Google
# [Optional] The maximum number of bad records that BigQuery can ignore when # [Optional] The maximum number of bad records that BigQuery can ignore when
# running the job. If the number of bad records exceeds this value, an invalid # running the job. If the number of bad records exceeds this value, an invalid
# error is returned in the job result. The default value is 0, which requires # error is returned in the job result. This is only valid for CSV and JSON. The
# that all records are valid. # default value is 0, which requires that all records are valid.
# Corresponds to the JSON property `maxBadRecords` # Corresponds to the JSON property `maxBadRecords`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :max_bad_records attr_accessor :max_bad_records
@ -1685,9 +1715,9 @@ module Google
attr_accessor :allow_large_results attr_accessor :allow_large_results
alias_method :allow_large_results?, :allow_large_results alias_method :allow_large_results?, :allow_large_results
# [Experimental] Clustering specification for the destination table. Must be # [Beta] Clustering specification for the destination table. Must be specified
# specified with time-based partitioning, data in the table will be first # with time-based partitioning, data in the table will be first partitioned and
# partitioned and subsequently clustered. # subsequently clustered.
# Corresponds to the JSON property `clustering` # Corresponds to the JSON property `clustering`
# @return [Google::Apis::BigqueryV2::Clustering] # @return [Google::Apis::BigqueryV2::Clustering]
attr_accessor :clustering attr_accessor :clustering
@ -2042,8 +2072,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :job_id attr_accessor :job_id
# [Experimental] The geographic location of the job. Required except for US and # The geographic location of the job. Required except for US and EU. See details
# EU. See details at https://cloud.google.com/bigquery/docs/dataset-locations# # at https://cloud.google.com/bigquery/docs/dataset-locations#
# specifying_your_location. # specifying_your_location.
# Corresponds to the JSON property `location` # Corresponds to the JSON property `location`
# @return [String] # @return [String]
@ -2070,7 +2100,7 @@ module Google
class JobStatistics class JobStatistics
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# [Experimental] [Output-only] Job progress (0.0 -> 1.0) for LOAD and EXTRACT # [TrustedTester] [Output-only] Job progress (0.0 -> 1.0) for LOAD and EXTRACT
# jobs. # jobs.
# Corresponds to the JSON property `completionRatio` # Corresponds to the JSON property `completionRatio`
# @return [Float] # @return [Float]
@ -2103,6 +2133,11 @@ module Google
# @return [Google::Apis::BigqueryV2::JobStatistics2] # @return [Google::Apis::BigqueryV2::JobStatistics2]
attr_accessor :query attr_accessor :query
# [Output-only] Quotas which delayed this job's start time.
# Corresponds to the JSON property `quotaDeferments`
# @return [Array<String>]
attr_accessor :quota_deferments
# [Output-only] Start time of this job, in milliseconds since the epoch. This # [Output-only] Start time of this job, in milliseconds since the epoch. This
# field will be present when the job transitions from the PENDING state to # field will be present when the job transitions from the PENDING state to
# either RUNNING or DONE. # either RUNNING or DONE.
@ -2128,6 +2163,7 @@ module Google
@extract = args[:extract] if args.key?(:extract) @extract = args[:extract] if args.key?(:extract)
@load = args[:load] if args.key?(:load) @load = args[:load] if args.key?(:load)
@query = args[:query] if args.key?(:query) @query = args[:query] if args.key?(:query)
@quota_deferments = args[:quota_deferments] if args.key?(:quota_deferments)
@start_time = args[:start_time] if args.key?(:start_time) @start_time = args[:start_time] if args.key?(:start_time)
@total_bytes_processed = args[:total_bytes_processed] if args.key?(:total_bytes_processed) @total_bytes_processed = args[:total_bytes_processed] if args.key?(:total_bytes_processed)
end end
@ -2148,20 +2184,20 @@ module Google
attr_accessor :cache_hit attr_accessor :cache_hit
alias_method :cache_hit?, :cache_hit alias_method :cache_hit?, :cache_hit
# [Output-only, Experimental] The DDL operation performed, possibly dependent on # [Output-only, Beta] The DDL operation performed, possibly dependent on the pre-
# the pre-existence of the DDL target. Possible values (new values might be # existence of the DDL target. Possible values (new values might be added in the
# added in the future): "CREATE": The query created the DDL target. "SKIP": No- # future): "CREATE": The query created the DDL target. "SKIP": No-op. Example
# op. Example cases: the query is CREATE TABLE IF NOT EXISTS while the table # cases: the query is CREATE TABLE IF NOT EXISTS while the table already exists,
# already exists, or the query is DROP TABLE IF EXISTS while the table does not # or the query is DROP TABLE IF EXISTS while the table does not exist. "REPLACE":
# exist. "REPLACE": The query replaced the DDL target. Example case: the query # The query replaced the DDL target. Example case: the query is CREATE OR
# is CREATE OR REPLACE TABLE, and the table already exists. "DROP": The query # REPLACE TABLE, and the table already exists. "DROP": The query deleted the DDL
# deleted the DDL target. # target.
# Corresponds to the JSON property `ddlOperationPerformed` # Corresponds to the JSON property `ddlOperationPerformed`
# @return [String] # @return [String]
attr_accessor :ddl_operation_performed attr_accessor :ddl_operation_performed
# [Output-only, Experimental] The DDL target table. Present only for CREATE/DROP # [Output-only, Beta] The DDL target table. Present only for CREATE/DROP TABLE/
# TABLE/VIEW queries. # VIEW queries.
# Corresponds to the JSON property `ddlTargetTable` # Corresponds to the JSON property `ddlTargetTable`
# @return [Google::Apis::BigqueryV2::TableReference] # @return [Google::Apis::BigqueryV2::TableReference]
attr_accessor :ddl_target_table attr_accessor :ddl_target_table
@ -2171,15 +2207,17 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :estimated_bytes_processed attr_accessor :estimated_bytes_processed
# [Output-only, Beta] Index of current ML training iteration. Updated during # [Output-only, Beta] Information about create model query job progress.
# create model query job to show job progress. # Corresponds to the JSON property `modelTraining`
# @return [Google::Apis::BigqueryV2::BigQueryModelTraining]
attr_accessor :model_training
# [Output-only, Beta] Deprecated; do not use.
# Corresponds to the JSON property `modelTrainingCurrentIteration` # Corresponds to the JSON property `modelTrainingCurrentIteration`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :model_training_current_iteration attr_accessor :model_training_current_iteration
# [Output-only, Beta] Expected number of iterations for the create model query # [Output-only, Beta] Deprecated; do not use.
# job specified as num_iterations in the input query. The actual total number of
# iterations may be less than this number due to early stop.
# Corresponds to the JSON property `modelTrainingExpectedTotalIteration` # Corresponds to the JSON property `modelTrainingExpectedTotalIteration`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :model_training_expected_total_iteration attr_accessor :model_training_expected_total_iteration
@ -2212,23 +2250,23 @@ module Google
# @return [Google::Apis::BigqueryV2::TableSchema] # @return [Google::Apis::BigqueryV2::TableSchema]
attr_accessor :schema attr_accessor :schema
# [Output-only, Experimental] The type of query statement, if valid. Possible # [Output-only, Beta] The type of query statement, if valid. Possible values (
# values (new values might be added in the future): "SELECT": SELECT query. " # new values might be added in the future): "SELECT": SELECT query. "INSERT":
# INSERT": INSERT query; see https://cloud.google.com/bigquery/docs/reference/ # INSERT query; see https://cloud.google.com/bigquery/docs/reference/standard-
# standard-sql/data-manipulation-language "UPDATE": UPDATE query; see https:// # sql/data-manipulation-language "UPDATE": UPDATE query; see https://cloud.
# google.com/bigquery/docs/reference/standard-sql/data-manipulation-language "
# DELETE": DELETE query; see https://cloud.google.com/bigquery/docs/reference/
# standard-sql/data-manipulation-language "MERGE": MERGE query; see https://
# cloud.google.com/bigquery/docs/reference/standard-sql/data-manipulation- # cloud.google.com/bigquery/docs/reference/standard-sql/data-manipulation-
# language "DELETE": DELETE query; see https://cloud.google.com/bigquery/docs/ # language "CREATE_TABLE": CREATE [OR REPLACE] TABLE without AS SELECT. "
# reference/standard-sql/data-manipulation-language "MERGE": MERGE query; see # CREATE_TABLE_AS_SELECT": CREATE [OR REPLACE] TABLE ... AS SELECT ... "
# https://cloud.google.com/bigquery/docs/reference/standard-sql/data-
# manipulation-language "CREATE_TABLE": CREATE [OR REPLACE] TABLE without AS
# SELECT. "CREATE_TABLE_AS_SELECT": CREATE [OR REPLACE] TABLE ... AS SELECT ... "
# DROP_TABLE": DROP TABLE query. "CREATE_VIEW": CREATE [OR REPLACE] VIEW ... AS # DROP_TABLE": DROP TABLE query. "CREATE_VIEW": CREATE [OR REPLACE] VIEW ... AS
# SELECT ... "DROP_VIEW": DROP VIEW query. # SELECT ... "DROP_VIEW": DROP VIEW query.
# Corresponds to the JSON property `statementType` # Corresponds to the JSON property `statementType`
# @return [String] # @return [String]
attr_accessor :statement_type attr_accessor :statement_type
# [Output-only] [Experimental] Describes a timeline of job execution. # [Output-only] [Beta] Describes a timeline of job execution.
# Corresponds to the JSON property `timeline` # Corresponds to the JSON property `timeline`
# @return [Array<Google::Apis::BigqueryV2::QueryTimelineSample>] # @return [Array<Google::Apis::BigqueryV2::QueryTimelineSample>]
attr_accessor :timeline attr_accessor :timeline
@ -2254,8 +2292,8 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :total_slot_ms attr_accessor :total_slot_ms
# [Output-only, Experimental] Standard SQL only: list of undeclared query # [Output-only, Beta] Standard SQL only: list of undeclared query parameters
# parameters detected during a dry run validation. # detected during a dry run validation.
# Corresponds to the JSON property `undeclaredQueryParameters` # Corresponds to the JSON property `undeclaredQueryParameters`
# @return [Array<Google::Apis::BigqueryV2::QueryParameter>] # @return [Array<Google::Apis::BigqueryV2::QueryParameter>]
attr_accessor :undeclared_query_parameters attr_accessor :undeclared_query_parameters
@ -2271,6 +2309,7 @@ module Google
@ddl_operation_performed = args[:ddl_operation_performed] if args.key?(:ddl_operation_performed) @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) @ddl_target_table = args[:ddl_target_table] if args.key?(:ddl_target_table)
@estimated_bytes_processed = args[:estimated_bytes_processed] if args.key?(:estimated_bytes_processed) @estimated_bytes_processed = args[:estimated_bytes_processed] if args.key?(:estimated_bytes_processed)
@model_training = args[:model_training] if args.key?(:model_training)
@model_training_current_iteration = args[:model_training_current_iteration] if args.key?(:model_training_current_iteration) @model_training_current_iteration = args[:model_training_current_iteration] if args.key?(:model_training_current_iteration)
@model_training_expected_total_iteration = args[:model_training_expected_total_iteration] if args.key?(:model_training_expected_total_iteration) @model_training_expected_total_iteration = args[:model_training_expected_total_iteration] if args.key?(:model_training_expected_total_iteration)
@num_dml_affected_rows = args[:num_dml_affected_rows] if args.key?(:num_dml_affected_rows) @num_dml_affected_rows = args[:num_dml_affected_rows] if args.key?(:num_dml_affected_rows)
@ -2737,8 +2776,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
# [Experimental] The geographic location where the job should run. Required # The geographic location where the job should run. Required except for US and
# except for US and EU. # EU.
# Corresponds to the JSON property `location` # Corresponds to the JSON property `location`
# @return [String] # @return [String]
attr_accessor :location attr_accessor :location
@ -3002,8 +3041,8 @@ module Google
class Table class Table
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# [Experimental] Clustering specification for the table. Must be specified with # [Beta] Clustering specification for the table. Must be specified with time-
# time-based partitioning, data in the table will be first partitioned and # based partitioning, data in the table will be first partitioned and
# subsequently clustered. # subsequently clustered.
# Corresponds to the JSON property `clustering` # Corresponds to the JSON property `clustering`
# @return [Google::Apis::BigqueryV2::Clustering] # @return [Google::Apis::BigqueryV2::Clustering]
@ -3025,7 +3064,10 @@ module Google
# @return [Google::Apis::BigqueryV2::EncryptionConfiguration] # @return [Google::Apis::BigqueryV2::EncryptionConfiguration]
attr_accessor :encryption_configuration attr_accessor :encryption_configuration
# [Output-only] A hash of this resource. # [Output-only] A hash of the table metadata. Used to ensure there were no
# concurrent modifications to the resource when attempting an update. Not
# guaranteed to change when the table contents or the fields numRows, numBytes,
# numLongTermBytes or lastModifiedTime change.
# Corresponds to the JSON property `etag` # Corresponds to the JSON property `etag`
# @return [String] # @return [String]
attr_accessor :etag attr_accessor :etag
@ -3470,7 +3512,7 @@ module Google
class Table class Table
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# [Experimental] Clustering specification for this table, if configured. # [Beta] Clustering specification for this table, if configured.
# Corresponds to the JSON property `clustering` # Corresponds to the JSON property `clustering`
# @return [Google::Apis::BigqueryV2::Clustering] # @return [Google::Apis::BigqueryV2::Clustering]
attr_accessor :clustering attr_accessor :clustering
@ -3650,17 +3692,17 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :expiration_ms attr_accessor :expiration_ms
# [Experimental] [Optional] If not set, the table is partitioned by pseudo # [Beta] [Optional] If not set, the table is partitioned by pseudo column,
# column, referenced via either '_PARTITIONTIME' as TIMESTAMP type, or ' # referenced via either '_PARTITIONTIME' as TIMESTAMP type, or '_PARTITIONDATE'
# _PARTITIONDATE' as DATE type. If field is specified, the table is instead # as DATE type. If field is specified, the table is instead partitioned by this
# partitioned by this field. The field must be a top-level TIMESTAMP or DATE # field. The field must be a top-level TIMESTAMP or DATE field. Its mode must be
# field. Its mode must be NULLABLE or REQUIRED. # NULLABLE or REQUIRED.
# Corresponds to the JSON property `field` # Corresponds to the JSON property `field`
# @return [String] # @return [String]
attr_accessor :field attr_accessor :field
# [Experimental] [Optional] If set to true, queries over this table require a # [Beta] [Optional] If set to true, queries over this table require a partition
# partition filter that can be used for partition elimination to be specified. # filter that can be used for partition elimination to be specified.
# Corresponds to the JSON property `requirePartitionFilter` # Corresponds to the JSON property `requirePartitionFilter`
# @return [Boolean] # @return [Boolean]
attr_accessor :require_partition_filter attr_accessor :require_partition_filter

View File

@ -22,6 +22,12 @@ module Google
module Apis module Apis
module BigqueryV2 module BigqueryV2
class BigQueryModelTraining
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BigtableColumn class BigtableColumn
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -430,6 +436,14 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class BigQueryModelTraining
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :current_iteration, as: 'currentIteration'
property :expected_total_iterations, :numeric_string => true, as: 'expectedTotalIterations'
end
end
class BigtableColumn class BigtableColumn
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -886,6 +900,7 @@ module Google
property :query, as: 'query', class: Google::Apis::BigqueryV2::JobStatistics2, decorator: Google::Apis::BigqueryV2::JobStatistics2::Representation property :query, as: 'query', class: Google::Apis::BigqueryV2::JobStatistics2, decorator: Google::Apis::BigqueryV2::JobStatistics2::Representation
collection :quota_deferments, as: 'quotaDeferments'
property :start_time, :numeric_string => true, as: 'startTime' property :start_time, :numeric_string => true, as: 'startTime'
property :total_bytes_processed, :numeric_string => true, as: 'totalBytesProcessed' property :total_bytes_processed, :numeric_string => true, as: 'totalBytesProcessed'
end end
@ -900,6 +915,8 @@ module Google
property :ddl_target_table, as: 'ddlTargetTable', class: Google::Apis::BigqueryV2::TableReference, decorator: Google::Apis::BigqueryV2::TableReference::Representation property :ddl_target_table, as: 'ddlTargetTable', class: Google::Apis::BigqueryV2::TableReference, decorator: Google::Apis::BigqueryV2::TableReference::Representation
property :estimated_bytes_processed, :numeric_string => true, as: 'estimatedBytesProcessed' property :estimated_bytes_processed, :numeric_string => true, as: 'estimatedBytesProcessed'
property :model_training, as: 'modelTraining', class: Google::Apis::BigqueryV2::BigQueryModelTraining, decorator: Google::Apis::BigqueryV2::BigQueryModelTraining::Representation
property :model_training_current_iteration, as: 'modelTrainingCurrentIteration' property :model_training_current_iteration, as: 'modelTrainingCurrentIteration'
property :model_training_expected_total_iteration, :numeric_string => true, as: 'modelTrainingExpectedTotalIteration' property :model_training_expected_total_iteration, :numeric_string => true, as: 'modelTrainingExpectedTotalIteration'
property :num_dml_affected_rows, :numeric_string => true, as: 'numDmlAffectedRows' property :num_dml_affected_rows, :numeric_string => true, as: 'numDmlAffectedRows'

View File

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

View File

@ -0,0 +1,35 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/binaryauthorization_v1beta1/service.rb'
require 'google/apis/binaryauthorization_v1beta1/classes.rb'
require 'google/apis/binaryauthorization_v1beta1/representations.rb'
module Google
module Apis
# Binary Authorization API
#
# The management interface for Binary Authorization, a system providing policy
# control for images deployed to Kubernetes Engine clusters.
#
# @see https://cloud.google.com/binary-authorization/
module BinaryauthorizationV1beta1
VERSION = 'V1beta1'
REVISION = '20180813'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
end
end
end

View File

@ -0,0 +1,597 @@
# 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 BinaryauthorizationV1beta1
# An admission rule specifies either that all container images
# used in a pod creation request must be attested to by one or more
# attestors, that all pod creations will be allowed, or that all
# pod creations will be denied.
# Images matching an admission whitelist pattern
# are exempted from admission rules and will never block a pod creation.
class AdmissionRule
include Google::Apis::Core::Hashable
# Required. The action when a pod creation is denied by the admission rule.
# Corresponds to the JSON property `enforcementMode`
# @return [String]
attr_accessor :enforcement_mode
# Required. How this admission rule will be evaluated.
# Corresponds to the JSON property `evaluationMode`
# @return [String]
attr_accessor :evaluation_mode
# Optional. The resource names of the attestors that must attest to
# a container image, in the format `projects/*/attestors/*`. Each
# attestor must exist before a policy can reference it. To add an attestor
# to a policy the principal issuing the policy change request must be able
# to read the attestor resource.
# Note: this field must be non-empty when the evaluation_mode field specifies
# REQUIRE_ATTESTATION, otherwise it must be empty.
# Corresponds to the JSON property `requireAttestationsBy`
# @return [Array<String>]
attr_accessor :require_attestations_by
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@enforcement_mode = args[:enforcement_mode] if args.key?(:enforcement_mode)
@evaluation_mode = args[:evaluation_mode] if args.key?(:evaluation_mode)
@require_attestations_by = args[:require_attestations_by] if args.key?(:require_attestations_by)
end
end
# An admission whitelist pattern exempts images
# from checks by admission rules.
class AdmissionWhitelistPattern
include Google::Apis::Core::Hashable
# An image name pattern to whitelist, in the form `registry/path/to/image`.
# This supports a trailing `*` as a wildcard, but this is allowed only in
# text after the `registry/` part.
# Corresponds to the JSON property `namePattern`
# @return [String]
attr_accessor :name_pattern
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@name_pattern = args[:name_pattern] if args.key?(:name_pattern)
end
end
# An attestor that attests to container image
# artifacts. An existing attestor cannot be modified except where
# indicated.
class Attestor
include Google::Apis::Core::Hashable
# Optional. A descriptive comment. This field may be updated.
# The field may be displayed in chooser dialogs.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Required. The resource name, in the format:
# `projects/*/attestors/*`. This field may not be updated.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Output only. Time when the attestor was last updated.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
# An user owned drydock note references a Drydock
# ATTESTATION_AUTHORITY Note created by the user.
# Corresponds to the JSON property `userOwnedDrydockNote`
# @return [Google::Apis::BinaryauthorizationV1beta1::UserOwnedDrydockNote]
attr_accessor :user_owned_drydock_note
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@description = args[:description] if args.key?(:description)
@name = args[:name] if args.key?(:name)
@update_time = args[:update_time] if args.key?(:update_time)
@user_owned_drydock_note = args[:user_owned_drydock_note] if args.key?(:user_owned_drydock_note)
end
end
# An attestator public key that will be used to
# verify attestations signed by this attestor.
class AttestorPublicKey
include Google::Apis::Core::Hashable
# ASCII-armored representation of a PGP public key, as the entire output by
# the command `gpg --export --armor foo@example.com` (either LF or CRLF
# line endings).
# Corresponds to the JSON property `asciiArmoredPgpPublicKey`
# @return [String]
attr_accessor :ascii_armored_pgp_public_key
# Optional. A descriptive comment. This field may be updated.
# Corresponds to the JSON property `comment`
# @return [String]
attr_accessor :comment
# Output only. This field will be overwritten with key ID information, for
# example, an identifier extracted from a PGP public key. This field may not
# be updated.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@ascii_armored_pgp_public_key = args[:ascii_armored_pgp_public_key] if args.key?(:ascii_armored_pgp_public_key)
@comment = args[:comment] if args.key?(:comment)
@id = args[:id] if args.key?(:id)
end
end
# Associates `members` with a `role`.
class Binding
include Google::Apis::Core::Hashable
# Represents an expression text. Example:
# title: "User account presence"
# description: "Determines whether the request has a user account"
# expression: "size(request.user) > 0"
# Corresponds to the JSON property `condition`
# @return [Google::Apis::BinaryauthorizationV1beta1::Expr]
attr_accessor :condition
# Specifies the identities requesting access for a Cloud Platform resource.
# `members` can have the following values:
# * `allUsers`: A special identifier that represents anyone who is
# on the internet; with or without a Google account.
# * `allAuthenticatedUsers`: A special identifier that represents anyone
# who is authenticated with a Google account or a service account.
# * `user:`emailid``: An email address that represents a specific Google
# account. For example, `alice@gmail.com` .
# * `serviceAccount:`emailid``: An email address that represents a service
# account. For example, `my-other-app@appspot.gserviceaccount.com`.
# * `group:`emailid``: An email address that represents a Google group.
# For example, `admins@example.com`.
# * `domain:`domain``: A Google Apps domain name that represents all the
# users of that domain. For example, `google.com` or `example.com`.
# Corresponds to the JSON property `members`
# @return [Array<String>]
attr_accessor :members
# Role that is assigned to `members`.
# For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
# Corresponds to the JSON property `role`
# @return [String]
attr_accessor :role
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@condition = args[:condition] if args.key?(:condition)
@members = args[:members] if args.key?(:members)
@role = args[:role] if args.key?(:role)
end
end
# A generic empty message that you can re-use to avoid defining duplicated
# empty messages in your APIs. A typical example is to use it as the request
# or the response type of an API method. For instance:
# service Foo `
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
# `
# The JSON representation for `Empty` is empty JSON object ````.
class Empty
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Represents an expression text. Example:
# title: "User account presence"
# description: "Determines whether the request has a user account"
# expression: "size(request.user) > 0"
class Expr
include Google::Apis::Core::Hashable
# An optional description of the expression. This is a longer text which
# describes the expression, e.g. when hovered over it in a UI.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Textual representation of an expression in
# Common Expression Language syntax.
# The application context of the containing message determines which
# well-known feature set of CEL is supported.
# Corresponds to the JSON property `expression`
# @return [String]
attr_accessor :expression
# An optional string indicating the location of the expression for error
# reporting, e.g. a file name and a position in the file.
# Corresponds to the JSON property `location`
# @return [String]
attr_accessor :location
# An optional title for the expression, i.e. a short string describing
# its purpose. This can be used e.g. in UIs which allow to enter the
# expression.
# Corresponds to the JSON property `title`
# @return [String]
attr_accessor :title
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@description = args[:description] if args.key?(:description)
@expression = args[:expression] if args.key?(:expression)
@location = args[:location] if args.key?(:location)
@title = args[:title] if args.key?(:title)
end
end
# Defines an Identity and Access Management (IAM) policy. It is used to
# specify access control policies for Cloud Platform resources.
# A `Policy` consists of a list of `bindings`. A `binding` binds a list of
# `members` to a `role`, where the members can be user accounts, Google groups,
# Google domains, and service accounts. A `role` is a named list of permissions
# defined by IAM.
# **JSON Example**
# `
# "bindings": [
# `
# "role": "roles/owner",
# "members": [
# "user:mike@example.com",
# "group:admins@example.com",
# "domain:google.com",
# "serviceAccount:my-other-app@appspot.gserviceaccount.com"
# ]
# `,
# `
# "role": "roles/viewer",
# "members": ["user:sean@example.com"]
# `
# ]
# `
# **YAML Example**
# bindings:
# - members:
# - user:mike@example.com
# - group:admins@example.com
# - domain:google.com
# - serviceAccount:my-other-app@appspot.gserviceaccount.com
# role: roles/owner
# - members:
# - user:sean@example.com
# role: roles/viewer
# For a description of IAM and its features, see the
# [IAM developer's guide](https://cloud.google.com/iam/docs).
class IamPolicy
include Google::Apis::Core::Hashable
# Associates a list of `members` to a `role`.
# `bindings` with no members will result in an error.
# Corresponds to the JSON property `bindings`
# @return [Array<Google::Apis::BinaryauthorizationV1beta1::Binding>]
attr_accessor :bindings
# `etag` is used for optimistic concurrency control as a way to help
# prevent simultaneous updates of a policy from overwriting each other.
# It is strongly suggested that systems make use of the `etag` in the
# read-modify-write cycle to perform policy updates in order to avoid race
# conditions: An `etag` is returned in the response to `getIamPolicy`, and
# systems are expected to put that etag in the request to `setIamPolicy` to
# ensure that their change will be applied to the same version of the policy.
# If no `etag` is provided in the call to `setIamPolicy`, then the existing
# policy is overwritten blindly.
# Corresponds to the JSON property `etag`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
attr_accessor :etag
# Deprecated.
# Corresponds to the JSON property `version`
# @return [Fixnum]
attr_accessor :version
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@bindings = args[:bindings] if args.key?(:bindings)
@etag = args[:etag] if args.key?(:etag)
@version = args[:version] if args.key?(:version)
end
end
# Response message for BinauthzManagementService.ListAttestors.
class ListAttestorsResponse
include Google::Apis::Core::Hashable
# The list of attestors.
# Corresponds to the JSON property `attestors`
# @return [Array<Google::Apis::BinaryauthorizationV1beta1::Attestor>]
attr_accessor :attestors
# A token to retrieve the next page of results. Pass this value in the
# ListAttestorsRequest.page_token field in the subsequent call to the
# `ListAttestors` method to retrieve the next page of results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@attestors = args[:attestors] if args.key?(:attestors)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# A policy for container image binary authorization.
class Policy
include Google::Apis::Core::Hashable
# Optional. Admission policy whitelisting. A matching admission request will
# always be permitted. This feature is typically used to exclude Google or
# third-party infrastructure images from Binary Authorization policies.
# Corresponds to the JSON property `admissionWhitelistPatterns`
# @return [Array<Google::Apis::BinaryauthorizationV1beta1::AdmissionWhitelistPattern>]
attr_accessor :admission_whitelist_patterns
# Optional. Per-cluster admission rules. Cluster spec format:
# `location.clusterId`. There can be at most one admission rule per cluster
# spec.
# A `location` is either a compute zone (e.g. us-central1-a) or a region
# (e.g. us-central1).
# For `clusterId` syntax restrictions see
# https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.
# clusters.
# Corresponds to the JSON property `clusterAdmissionRules`
# @return [Hash<String,Google::Apis::BinaryauthorizationV1beta1::AdmissionRule>]
attr_accessor :cluster_admission_rules
# An admission rule specifies either that all container images
# used in a pod creation request must be attested to by one or more
# attestors, that all pod creations will be allowed, or that all
# pod creations will be denied.
# Images matching an admission whitelist pattern
# are exempted from admission rules and will never block a pod creation.
# Corresponds to the JSON property `defaultAdmissionRule`
# @return [Google::Apis::BinaryauthorizationV1beta1::AdmissionRule]
attr_accessor :default_admission_rule
# Optional. A descriptive comment.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Output only. The resource name, in the format `projects/*/policy`. There is
# at most one policy per project.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Output only. Time when the policy was last updated.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@admission_whitelist_patterns = args[:admission_whitelist_patterns] if args.key?(:admission_whitelist_patterns)
@cluster_admission_rules = args[:cluster_admission_rules] if args.key?(:cluster_admission_rules)
@default_admission_rule = args[:default_admission_rule] if args.key?(:default_admission_rule)
@description = args[:description] if args.key?(:description)
@name = args[:name] if args.key?(:name)
@update_time = args[:update_time] if args.key?(:update_time)
end
end
# Request message for `SetIamPolicy` method.
class SetIamPolicyRequest
include Google::Apis::Core::Hashable
# Defines an Identity and Access Management (IAM) policy. It is used to
# specify access control policies for Cloud Platform resources.
# A `Policy` consists of a list of `bindings`. A `binding` binds a list of
# `members` to a `role`, where the members can be user accounts, Google groups,
# Google domains, and service accounts. A `role` is a named list of permissions
# defined by IAM.
# **JSON Example**
# `
# "bindings": [
# `
# "role": "roles/owner",
# "members": [
# "user:mike@example.com",
# "group:admins@example.com",
# "domain:google.com",
# "serviceAccount:my-other-app@appspot.gserviceaccount.com"
# ]
# `,
# `
# "role": "roles/viewer",
# "members": ["user:sean@example.com"]
# `
# ]
# `
# **YAML Example**
# bindings:
# - members:
# - user:mike@example.com
# - group:admins@example.com
# - domain:google.com
# - serviceAccount:my-other-app@appspot.gserviceaccount.com
# role: roles/owner
# - members:
# - user:sean@example.com
# role: roles/viewer
# For a description of IAM and its features, see the
# [IAM developer's guide](https://cloud.google.com/iam/docs).
# Corresponds to the JSON property `policy`
# @return [Google::Apis::BinaryauthorizationV1beta1::IamPolicy]
attr_accessor :policy
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@policy = args[:policy] if args.key?(:policy)
end
end
# Request message for `TestIamPermissions` method.
class TestIamPermissionsRequest
include Google::Apis::Core::Hashable
# The set of permissions to check for the `resource`. Permissions with
# wildcards (such as '*' or 'storage.*') are not allowed. For more
# information see
# [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
# Corresponds to the JSON property `permissions`
# @return [Array<String>]
attr_accessor :permissions
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@permissions = args[:permissions] if args.key?(:permissions)
end
end
# Response message for `TestIamPermissions` method.
class TestIamPermissionsResponse
include Google::Apis::Core::Hashable
# A subset of `TestPermissionsRequest.permissions` that the caller is
# allowed.
# Corresponds to the JSON property `permissions`
# @return [Array<String>]
attr_accessor :permissions
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@permissions = args[:permissions] if args.key?(:permissions)
end
end
# An user owned drydock note references a Drydock
# ATTESTATION_AUTHORITY Note created by the user.
class UserOwnedDrydockNote
include Google::Apis::Core::Hashable
# Output only. This field will contain the service account email address
# that this Attestor will use as the principal when querying Container
# Analysis. Attestor administrators must grant this service account the
# IAM role needed to read attestations from the note_reference in
# Container Analysis (`containeranalysis.notes.occurrences.viewer`).
# This email address is fixed for the lifetime of the Attestor, but callers
# should not make any other assumptions about the service account email;
# future versions may use an email based on a different naming pattern.
# Corresponds to the JSON property `delegationServiceAccountEmail`
# @return [String]
attr_accessor :delegation_service_account_email
# Required. The Drydock resource name of a ATTESTATION_AUTHORITY Note,
# created by the user, in the format: `projects/*/notes/*` (or the legacy
# `providers/*/notes/*`). This field may not be updated.
# An attestation by this attestor is stored as a Drydock
# ATTESTATION_AUTHORITY Occurrence that names a container image and that
# links to this Note. Drydock is an external dependency.
# Corresponds to the JSON property `noteReference`
# @return [String]
attr_accessor :note_reference
# Optional. Public keys that verify attestations signed by this
# attestor. This field may be updated.
# If this field is non-empty, one of the specified public keys must
# verify that an attestation was signed by this attestor for the
# image specified in the admission request.
# If this field is empty, this attestor always returns that no
# valid attestations exist.
# Corresponds to the JSON property `publicKeys`
# @return [Array<Google::Apis::BinaryauthorizationV1beta1::AttestorPublicKey>]
attr_accessor :public_keys
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@delegation_service_account_email = args[:delegation_service_account_email] if args.key?(:delegation_service_account_email)
@note_reference = args[:note_reference] if args.key?(:note_reference)
@public_keys = args[:public_keys] if args.key?(:public_keys)
end
end
end
end
end

View File

@ -0,0 +1,238 @@
# 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 BinaryauthorizationV1beta1
class AdmissionRule
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AdmissionWhitelistPattern
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Attestor
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AttestorPublicKey
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Binding
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Empty
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Expr
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class IamPolicy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListAttestorsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Policy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SetIamPolicyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TestIamPermissionsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TestIamPermissionsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UserOwnedDrydockNote
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AdmissionRule
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :enforcement_mode, as: 'enforcementMode'
property :evaluation_mode, as: 'evaluationMode'
collection :require_attestations_by, as: 'requireAttestationsBy'
end
end
class AdmissionWhitelistPattern
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name_pattern, as: 'namePattern'
end
end
class Attestor
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :name, as: 'name'
property :update_time, as: 'updateTime'
property :user_owned_drydock_note, as: 'userOwnedDrydockNote', class: Google::Apis::BinaryauthorizationV1beta1::UserOwnedDrydockNote, decorator: Google::Apis::BinaryauthorizationV1beta1::UserOwnedDrydockNote::Representation
end
end
class AttestorPublicKey
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :ascii_armored_pgp_public_key, as: 'asciiArmoredPgpPublicKey'
property :comment, as: 'comment'
property :id, as: 'id'
end
end
class Binding
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :condition, as: 'condition', class: Google::Apis::BinaryauthorizationV1beta1::Expr, decorator: Google::Apis::BinaryauthorizationV1beta1::Expr::Representation
collection :members, as: 'members'
property :role, as: 'role'
end
end
class Empty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class Expr
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :expression, as: 'expression'
property :location, as: 'location'
property :title, as: 'title'
end
end
class IamPolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :bindings, as: 'bindings', class: Google::Apis::BinaryauthorizationV1beta1::Binding, decorator: Google::Apis::BinaryauthorizationV1beta1::Binding::Representation
property :etag, :base64 => true, as: 'etag'
property :version, as: 'version'
end
end
class ListAttestorsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :attestors, as: 'attestors', class: Google::Apis::BinaryauthorizationV1beta1::Attestor, decorator: Google::Apis::BinaryauthorizationV1beta1::Attestor::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class Policy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :admission_whitelist_patterns, as: 'admissionWhitelistPatterns', class: Google::Apis::BinaryauthorizationV1beta1::AdmissionWhitelistPattern, decorator: Google::Apis::BinaryauthorizationV1beta1::AdmissionWhitelistPattern::Representation
hash :cluster_admission_rules, as: 'clusterAdmissionRules', class: Google::Apis::BinaryauthorizationV1beta1::AdmissionRule, decorator: Google::Apis::BinaryauthorizationV1beta1::AdmissionRule::Representation
property :default_admission_rule, as: 'defaultAdmissionRule', class: Google::Apis::BinaryauthorizationV1beta1::AdmissionRule, decorator: Google::Apis::BinaryauthorizationV1beta1::AdmissionRule::Representation
property :description, as: 'description'
property :name, as: 'name'
property :update_time, as: 'updateTime'
end
end
class SetIamPolicyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :policy, as: 'policy', class: Google::Apis::BinaryauthorizationV1beta1::IamPolicy, decorator: Google::Apis::BinaryauthorizationV1beta1::IamPolicy::Representation
end
end
class TestIamPermissionsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :permissions, as: 'permissions'
end
end
class TestIamPermissionsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :permissions, as: 'permissions'
end
end
class UserOwnedDrydockNote
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :delegation_service_account_email, as: 'delegationServiceAccountEmail'
property :note_reference, as: 'noteReference'
collection :public_keys, as: 'publicKeys', class: Google::Apis::BinaryauthorizationV1beta1::AttestorPublicKey, decorator: Google::Apis::BinaryauthorizationV1beta1::AttestorPublicKey::Representation
end
end
end
end
end

View File

@ -0,0 +1,523 @@
# 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 BinaryauthorizationV1beta1
# Binary Authorization API
#
# The management interface for Binary Authorization, a system providing policy
# control for images deployed to Kubernetes Engine clusters.
#
# @example
# require 'google/apis/binaryauthorization_v1beta1'
#
# Binaryauthorization = Google::Apis::BinaryauthorizationV1beta1 # Alias the module
# service = Binaryauthorization::BinaryAuthorizationService.new
#
# @see https://cloud.google.com/binary-authorization/
class BinaryAuthorizationService < Google::Apis::Core::BaseService
# @return [String]
# API key. Your API key identifies your project and provides you with API access,
# quota, and reports. Required unless you provide an OAuth 2.0 token.
attr_accessor :key
# @return [String]
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
attr_accessor :quota_user
def initialize
super('https://binaryauthorization.googleapis.com/', '')
@batch_path = 'batch'
end
# Gets the policy for this project. Returns a default
# policy if the project does not have one.
# @param [String] name
# Required. The resource name of the policy to retrieve,
# in the format `projects/*/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.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::BinaryauthorizationV1beta1::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BinaryauthorizationV1beta1::Policy]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_policy(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+name}', options)
command.response_representation = Google::Apis::BinaryauthorizationV1beta1::Policy::Representation
command.response_class = Google::Apis::BinaryauthorizationV1beta1::Policy
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 or updates a project's policy, and returns a copy of the
# new policy. A policy is always updated as a whole, to avoid race
# conditions with concurrent policy enforcement (or management!)
# requests. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT
# if the request is malformed.
# @param [String] name
# Output only. The resource name, in the format `projects/*/policy`. There is
# at most one policy per project.
# @param [Google::Apis::BinaryauthorizationV1beta1::Policy] policy_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::BinaryauthorizationV1beta1::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BinaryauthorizationV1beta1::Policy]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def update_project_policy(name, policy_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:put, 'v1beta1/{+name}', options)
command.request_representation = Google::Apis::BinaryauthorizationV1beta1::Policy::Representation
command.request_object = policy_object
command.response_representation = Google::Apis::BinaryauthorizationV1beta1::Policy::Representation
command.response_class = Google::Apis::BinaryauthorizationV1beta1::Policy
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 an attestor, and returns a copy of the new
# attestor. Returns NOT_FOUND if the project does not exist,
# INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the
# attestor already exists.
# @param [String] parent
# Required. The parent of this attestor.
# @param [Google::Apis::BinaryauthorizationV1beta1::Attestor] attestor_object
# @param [String] attestor_id
# Required. The attestors ID.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::BinaryauthorizationV1beta1::Attestor] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BinaryauthorizationV1beta1::Attestor]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_attestor(parent, attestor_object = nil, attestor_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+parent}/attestors', options)
command.request_representation = Google::Apis::BinaryauthorizationV1beta1::Attestor::Representation
command.request_object = attestor_object
command.response_representation = Google::Apis::BinaryauthorizationV1beta1::Attestor::Representation
command.response_class = Google::Apis::BinaryauthorizationV1beta1::Attestor
command.params['parent'] = parent unless parent.nil?
command.query['attestorId'] = attestor_id unless attestor_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Deletes an attestor. Returns NOT_FOUND if the
# attestor does not exist.
# @param [String] name
# Required. The name of the attestors to delete, in the format
# `projects/*/attestors/*`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to 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::BinaryauthorizationV1beta1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BinaryauthorizationV1beta1::Empty]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_project_attestor(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
command.response_representation = Google::Apis::BinaryauthorizationV1beta1::Empty::Representation
command.response_class = Google::Apis::BinaryauthorizationV1beta1::Empty
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets an attestor.
# Returns NOT_FOUND if the attestor does not exist.
# @param [String] name
# Required. The name of the attestor to retrieve, in the format
# `projects/*/attestors/*`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to 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::BinaryauthorizationV1beta1::Attestor] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BinaryauthorizationV1beta1::Attestor]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_attestor(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+name}', options)
command.response_representation = Google::Apis::BinaryauthorizationV1beta1::Attestor::Representation
command.response_class = Google::Apis::BinaryauthorizationV1beta1::Attestor
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
# Gets the access control policy for a resource.
# Returns an empty policy if the resource exists and does not have a policy
# set.
# @param [String] resource
# REQUIRED: The resource for which the policy is being requested.
# See the operation documentation for the appropriate value for this field.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::BinaryauthorizationV1beta1::IamPolicy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BinaryauthorizationV1beta1::IamPolicy]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_attestor_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options)
command.response_representation = Google::Apis::BinaryauthorizationV1beta1::IamPolicy::Representation
command.response_class = Google::Apis::BinaryauthorizationV1beta1::IamPolicy
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists attestors.
# Returns INVALID_ARGUMENT if the project does not exist.
# @param [String] parent
# Required. The resource name of the project associated with the
# attestors, in the format `projects/*`.
# @param [Fixnum] page_size
# Requested page size. The server may return fewer results than requested. If
# unspecified, the server will pick an appropriate default.
# @param [String] page_token
# A token identifying a page of results the server should return. Typically,
# this is the value of ListAttestorsResponse.next_page_token returned
# from the previous call to the `ListAttestors` method.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to 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::BinaryauthorizationV1beta1::ListAttestorsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BinaryauthorizationV1beta1::ListAttestorsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_attestors(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+parent}/attestors', options)
command.response_representation = Google::Apis::BinaryauthorizationV1beta1::ListAttestorsResponse::Representation
command.response_class = Google::Apis::BinaryauthorizationV1beta1::ListAttestorsResponse
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
# Sets the access control policy on the specified resource. Replaces any
# existing policy.
# @param [String] resource
# REQUIRED: The resource for which the policy is being specified.
# See the operation documentation for the appropriate value for this field.
# @param [Google::Apis::BinaryauthorizationV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::BinaryauthorizationV1beta1::IamPolicy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BinaryauthorizationV1beta1::IamPolicy]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_attestor_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
command.request_representation = Google::Apis::BinaryauthorizationV1beta1::SetIamPolicyRequest::Representation
command.request_object = set_iam_policy_request_object
command.response_representation = Google::Apis::BinaryauthorizationV1beta1::IamPolicy::Representation
command.response_class = Google::Apis::BinaryauthorizationV1beta1::IamPolicy
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns permissions that a caller has on the specified resource.
# If the resource does not exist, this will return an empty set of
# permissions, not a NOT_FOUND error.
# Note: This operation is designed to be used for building permission-aware
# UIs and command-line tools, not for authorization checking. This operation
# may "fail open" without warning.
# @param [String] resource
# REQUIRED: The resource for which the policy detail is being requested.
# See the operation documentation for the appropriate value for this field.
# @param [Google::Apis::BinaryauthorizationV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::BinaryauthorizationV1beta1::TestIamPermissionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BinaryauthorizationV1beta1::TestIamPermissionsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def test_attestor_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
command.request_representation = Google::Apis::BinaryauthorizationV1beta1::TestIamPermissionsRequest::Representation
command.request_object = test_iam_permissions_request_object
command.response_representation = Google::Apis::BinaryauthorizationV1beta1::TestIamPermissionsResponse::Representation
command.response_class = Google::Apis::BinaryauthorizationV1beta1::TestIamPermissionsResponse
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Updates an attestor.
# Returns NOT_FOUND if the attestor does not exist.
# @param [String] name
# Required. The resource name, in the format:
# `projects/*/attestors/*`. This field may not be updated.
# @param [Google::Apis::BinaryauthorizationV1beta1::Attestor] attestor_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::BinaryauthorizationV1beta1::Attestor] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BinaryauthorizationV1beta1::Attestor]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def update_project_attestor(name, attestor_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:put, 'v1beta1/{+name}', options)
command.request_representation = Google::Apis::BinaryauthorizationV1beta1::Attestor::Representation
command.request_object = attestor_object
command.response_representation = Google::Apis::BinaryauthorizationV1beta1::Attestor::Representation
command.response_class = Google::Apis::BinaryauthorizationV1beta1::Attestor
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
# Gets the access control policy for a resource.
# Returns an empty policy if the resource exists and does not have a policy
# set.
# @param [String] resource
# REQUIRED: The resource for which the policy is being requested.
# See the operation documentation for the appropriate value for this field.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::BinaryauthorizationV1beta1::IamPolicy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BinaryauthorizationV1beta1::IamPolicy]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_policy_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options)
command.response_representation = Google::Apis::BinaryauthorizationV1beta1::IamPolicy::Representation
command.response_class = Google::Apis::BinaryauthorizationV1beta1::IamPolicy
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Sets the access control policy on the specified resource. Replaces any
# existing policy.
# @param [String] resource
# REQUIRED: The resource for which the policy is being specified.
# See the operation documentation for the appropriate value for this field.
# @param [Google::Apis::BinaryauthorizationV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::BinaryauthorizationV1beta1::IamPolicy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BinaryauthorizationV1beta1::IamPolicy]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
command.request_representation = Google::Apis::BinaryauthorizationV1beta1::SetIamPolicyRequest::Representation
command.request_object = set_iam_policy_request_object
command.response_representation = Google::Apis::BinaryauthorizationV1beta1::IamPolicy::Representation
command.response_class = Google::Apis::BinaryauthorizationV1beta1::IamPolicy
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns permissions that a caller has on the specified resource.
# If the resource does not exist, this will return an empty set of
# permissions, not a NOT_FOUND error.
# Note: This operation is designed to be used for building permission-aware
# UIs and command-line tools, not for authorization checking. This operation
# may "fail open" without warning.
# @param [String] resource
# REQUIRED: The resource for which the policy detail is being requested.
# See the operation documentation for the appropriate value for this field.
# @param [Google::Apis::BinaryauthorizationV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::BinaryauthorizationV1beta1::TestIamPermissionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BinaryauthorizationV1beta1::TestIamPermissionsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def test_policy_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
command.request_representation = Google::Apis::BinaryauthorizationV1beta1::TestIamPermissionsRequest::Representation
command.request_object = test_iam_permissions_request_object
command.response_representation = Google::Apis::BinaryauthorizationV1beta1::TestIamPermissionsResponse::Representation
command.response_class = Google::Apis::BinaryauthorizationV1beta1::TestIamPermissionsResponse
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
protected
def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
end
end
end
end
end

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/blogger/docs/2.0/json/getting_started # @see https://developers.google.com/blogger/docs/2.0/json/getting_started
module BloggerV2 module BloggerV2
VERSION = 'V2' VERSION = 'V2'
REVISION = '' REVISION = '20150422'
# Manage your Blogger account # Manage your Blogger account
AUTH_BLOGGER = 'https://www.googleapis.com/auth/blogger' AUTH_BLOGGER = 'https://www.googleapis.com/auth/blogger'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/blogger/docs/3.0/getting_started # @see https://developers.google.com/blogger/docs/3.0/getting_started
module BloggerV3 module BloggerV3
VERSION = 'V3' VERSION = 'V3'
REVISION = '' REVISION = '20150422'
# Manage your Blogger account # Manage your Blogger account
AUTH_BLOGGER = 'https://www.googleapis.com/auth/blogger' AUTH_BLOGGER = 'https://www.googleapis.com/auth/blogger'

View File

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

View File

@ -2091,6 +2091,12 @@ module Google
# @return [String] # @return [String]
attr_accessor :icon_url attr_accessor :icon_url
#
# Corresponds to the JSON property `is_document_mature`
# @return [Boolean]
attr_accessor :is_document_mature
alias_method :is_document_mature?, :is_document_mature
# Resource type. # Resource type.
# Corresponds to the JSON property `kind` # Corresponds to the JSON property `kind`
# @return [String] # @return [String]
@ -2144,6 +2150,7 @@ module Google
@doc_type = args[:doc_type] if args.key?(:doc_type) @doc_type = args[:doc_type] if args.key?(:doc_type)
@dont_show_notification = args[:dont_show_notification] if args.key?(:dont_show_notification) @dont_show_notification = args[:dont_show_notification] if args.key?(:dont_show_notification)
@icon_url = args[:icon_url] if args.key?(:icon_url) @icon_url = args[:icon_url] if args.key?(:icon_url)
@is_document_mature = args[:is_document_mature] if args.key?(:is_document_mature)
@kind = args[:kind] if args.key?(:kind) @kind = args[:kind] if args.key?(:kind)
@notification_group = args[:notification_group] if args.key?(:notification_group) @notification_group = args[:notification_group] if args.key?(:notification_group)
@notification_type = args[:notification_type] if args.key?(:notification_type) @notification_type = args[:notification_type] if args.key?(:notification_type)

View File

@ -1261,6 +1261,7 @@ module Google
property :doc_type, as: 'doc_type' property :doc_type, as: 'doc_type'
property :dont_show_notification, as: 'dont_show_notification' property :dont_show_notification, as: 'dont_show_notification'
property :icon_url, as: 'iconUrl' property :icon_url, as: 'iconUrl'
property :is_document_mature, as: 'is_document_mature'
property :kind, as: 'kind' property :kind, as: 'kind'
property :notification_group, as: 'notificationGroup' property :notification_group, as: 'notificationGroup'
property :notification_type, as: 'notification_type' property :notification_type, as: 'notification_type'

View File

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

View File

@ -442,6 +442,8 @@ module Google
# - "email" - Reminders are sent via email. # - "email" - Reminders are sent via email.
# - "sms" - Reminders are sent via SMS. This value is read-only and is ignored # - "sms" - Reminders are sent via SMS. This value is read-only and is ignored
# on inserts and updates. SMS reminders are only available for G Suite customers. # on inserts and updates. SMS reminders are only available for G Suite customers.
#
# Required when adding a notification.
# Corresponds to the JSON property `method` # Corresponds to the JSON property `method`
# @return [String] # @return [String]
attr_accessor :delivery_method attr_accessor :delivery_method
@ -450,8 +452,10 @@ module Google
# - "eventCreation" - Notification sent when a new event is put on the calendar. # - "eventCreation" - Notification sent when a new event is put on the calendar.
# - "eventChange" - Notification sent when an event is changed. # - "eventChange" - Notification sent when an event is changed.
# - "eventCancellation" - Notification sent when an event is cancelled. # - "eventCancellation" - Notification sent when an event is cancelled.
# - "eventResponse" - Notification sent when an event is changed. # - "eventResponse" - Notification sent when an attendee responds to the event
# invitation.
# - "agenda" - An agenda with the events of the day (sent out in the morning). # - "agenda" - An agenda with the events of the day (sent out in the morning).
# Required when adding a notification.
# Corresponds to the JSON property `type` # Corresponds to the JSON property `type`
# @return [String] # @return [String]
attr_accessor :type attr_accessor :type
@ -1186,7 +1190,8 @@ module Google
# For an instance of a recurring event, this is the time at which this event # For an instance of a recurring event, this is the time at which this event
# would start according to the recurrence data in the recurring event identified # would start according to the recurrence data in the recurring event identified
# by recurringEventId. Immutable. # by recurringEventId. It uniquely identifies the instance within the recurring
# event series even if the instance was moved to a different time. Immutable.
# Corresponds to the JSON property `originalStartTime` # Corresponds to the JSON property `originalStartTime`
# @return [Google::Apis::CalendarV3::EventDateTime] # @return [Google::Apis::CalendarV3::EventDateTime]
attr_accessor :original_start_time attr_accessor :original_start_time
@ -1239,7 +1244,30 @@ module Google
# Status of the event. Optional. Possible values are: # Status of the event. Optional. Possible values are:
# - "confirmed" - The event is confirmed. This is the default status. # - "confirmed" - The event is confirmed. This is the default status.
# - "tentative" - The event is tentatively confirmed. # - "tentative" - The event is tentatively confirmed.
# - "cancelled" - The event is cancelled. # - "cancelled" - The event is cancelled (deleted). The list method returns
# cancelled events only on incremental sync (when syncToken or updatedMin are
# specified) or if the showDeleted flag is set to true. The get method always
# returns them.
# A cancelled status represents two different states depending on the event type:
#
# - Cancelled exceptions of an uncancelled recurring event indicate that this
# instance should no longer be presented to the user. Clients should store these
# events for the lifetime of the parent recurring event.
# Cancelled exceptions are only guaranteed to have values for the id,
# recurringEventId and originalStartTime fields populated. The other fields
# might be empty.
# - All other cancelled events represent deleted events. Clients should remove
# their locally synced copies. Such cancelled events will eventually disappear,
# so do not rely on them being available indefinitely.
# Deleted events are only guaranteed to have the id field populated. On the
# organizer's calendar, cancelled events continue to expose event details (
# summary, location, etc.) so that they can be restored (undeleted). Similarly,
# the events to which the user was invited and that they manually removed
# continue to provide details. However, incremental sync requests with
# showDeleted set to false will not return these details.
# If an event changes its organizer (for example via the move operation) and the
# original organizer is not on the attendee list, it will leave behind a
# cancelled event where only the id field is guaranteed to be populated.
# Corresponds to the JSON property `status` # Corresponds to the JSON property `status`
# @return [String] # @return [String]
attr_accessor :status attr_accessor :status
@ -1336,7 +1364,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :email attr_accessor :email
# The creator's Profile ID, if available. It corresponds to theid field in the # The creator's Profile ID, if available. It corresponds to the id field in the
# People collection of the Google+ API # People collection of the Google+ API
# Corresponds to the JSON property `id` # Corresponds to the JSON property `id`
# @return [String] # @return [String]
@ -1472,8 +1500,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :email attr_accessor :email
# The organizer's Profile ID, if available. It corresponds to theid field in the # The organizer's Profile ID, if available. It corresponds to the id field in
# People collection of the Google+ API # the People collection of the Google+ API
# Corresponds to the JSON property `id` # Corresponds to the JSON property `id`
# @return [String] # @return [String]
attr_accessor :id attr_accessor :id
@ -1568,6 +1596,7 @@ module Google
# URL link to the attachment. # URL link to the attachment.
# For adding Google Drive file attachments use the same format as in # For adding Google Drive file attachments use the same format as in
# alternateLink property of the Files resource in the Drive API. # alternateLink property of the Files resource in the Drive API.
# Required when adding an attachment.
# Corresponds to the JSON property `fileUrl` # Corresponds to the JSON property `fileUrl`
# @return [String] # @return [String]
attr_accessor :file_url attr_accessor :file_url
@ -1622,11 +1651,12 @@ module Google
# The attendee's email address, if available. This field must be present when # The attendee's email address, if available. This field must be present when
# adding an attendee. It must be a valid email address as per RFC5322. # adding an attendee. It must be a valid email address as per RFC5322.
# Required when adding an attendee.
# Corresponds to the JSON property `email` # Corresponds to the JSON property `email`
# @return [String] # @return [String]
attr_accessor :email attr_accessor :email
# The attendee's Profile ID, if available. It corresponds to theid field in the # The attendee's Profile ID, if available. It corresponds to the id field in the
# People collection of the Google+ API # People collection of the Google+ API
# Corresponds to the JSON property `id` # Corresponds to the JSON property `id`
# @return [String] # @return [String]
@ -1734,12 +1764,14 @@ module Google
# - "sms" - Reminders are sent via SMS. These are only available for G Suite # - "sms" - Reminders are sent via SMS. These are only available for G Suite
# customers. Requests to set SMS reminders for other account types are ignored. # customers. Requests to set SMS reminders for other account types are ignored.
# - "popup" - Reminders are sent via a UI popup. # - "popup" - Reminders are sent via a UI popup.
# Required when adding a reminder.
# Corresponds to the JSON property `method` # Corresponds to the JSON property `method`
# @return [String] # @return [String]
attr_accessor :reminder_method attr_accessor :reminder_method
# Number of minutes before the start of the event when the reminder should # Number of minutes before the start of the event when the reminder should
# trigger. Valid values are between 0 and 40320 (4 weeks in minutes). # trigger. Valid values are between 0 and 40320 (4 weeks in minutes).
# Required when adding a reminder.
# Corresponds to the JSON property `minutes` # Corresponds to the JSON property `minutes`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :minutes attr_accessor :minutes
@ -1904,14 +1936,14 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Maximal number of calendars for which FreeBusy information is to be provided. # Maximal number of calendars for which FreeBusy information is to be provided.
# Optional. # Optional. Maximum value is 50.
# Corresponds to the JSON property `calendarExpansionMax` # Corresponds to the JSON property `calendarExpansionMax`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :calendar_expansion_max attr_accessor :calendar_expansion_max
# Maximal number of calendar identifiers to be provided for a single group. # Maximal number of calendar identifiers to be provided for a single group.
# Optional. An error will be returned for a group with more members than this # Optional. An error is returned for a group with more members than this value.
# value. # Maximum value is 100.
# Corresponds to the JSON property `groupExpansionMax` # Corresponds to the JSON property `groupExpansionMax`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :group_expansion_max attr_accessor :group_expansion_max
@ -1921,12 +1953,12 @@ module Google
# @return [Array<Google::Apis::CalendarV3::FreeBusyRequestItem>] # @return [Array<Google::Apis::CalendarV3::FreeBusyRequestItem>]
attr_accessor :items attr_accessor :items
# The end of the interval for the query. # The end of the interval for the query formatted as per RFC3339.
# Corresponds to the JSON property `timeMax` # Corresponds to the JSON property `timeMax`
# @return [DateTime] # @return [DateTime]
attr_accessor :time_max attr_accessor :time_max
# The start of the interval for the query. # The start of the interval for the query formatted as per RFC3339.
# Corresponds to the JSON property `timeMin` # Corresponds to the JSON property `timeMin`
# @return [DateTime] # @return [DateTime]
attr_accessor :time_min attr_accessor :time_min

View File

@ -378,7 +378,7 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Deletes an entry on the user's calendar list. # Removes a calendar from the user's calendar list.
# @param [String] calendar_id # @param [String] calendar_id
# Calendar identifier. To retrieve calendar IDs call the calendarList.list # Calendar identifier. To retrieve calendar IDs call the calendarList.list
# method. If you want to access the primary calendar of the currently logged in # method. If you want to access the primary calendar of the currently logged in
@ -411,7 +411,7 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Returns an entry on the user's calendar list. # Returns a calendar from the user's calendar list.
# @param [String] calendar_id # @param [String] calendar_id
# Calendar identifier. To retrieve calendar IDs call the calendarList.list # Calendar identifier. To retrieve calendar IDs call the calendarList.list
# method. If you want to access the primary calendar of the currently logged in # method. If you want to access the primary calendar of the currently logged in
@ -446,7 +446,7 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Adds an entry to the user's calendar list. # Inserts an existing calendar into the user's calendar list.
# @param [Google::Apis::CalendarV3::CalendarListEntry] calendar_list_entry_object # @param [Google::Apis::CalendarV3::CalendarListEntry] calendar_list_entry_object
# @param [Boolean] color_rgb_format # @param [Boolean] color_rgb_format
# Whether to use the foregroundColor and backgroundColor fields to write the # Whether to use the foregroundColor and backgroundColor fields to write the
@ -485,7 +485,7 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Returns entries on the user's calendar list. # Returns the calendars on the user's calendar list.
# @param [Fixnum] max_results # @param [Fixnum] max_results
# Maximum number of entries returned on one result page. By default the value is # Maximum number of entries returned on one result page. By default the value is
# 100 entries. The page size can never be larger than 250 entries. Optional. # 100 entries. The page size can never be larger than 250 entries. Optional.
@ -549,8 +549,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Updates an entry on the user's calendar list. This method supports patch # Updates an existing calendar on the user's calendar list. This method supports
# semantics. # patch semantics.
# @param [String] calendar_id # @param [String] calendar_id
# Calendar identifier. To retrieve calendar IDs call the calendarList.list # Calendar identifier. To retrieve calendar IDs call the calendarList.list
# method. If you want to access the primary calendar of the currently logged in # method. If you want to access the primary calendar of the currently logged in
@ -594,7 +594,7 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Updates an entry on the user's calendar list. # Updates an existing calendar on the user's calendar list.
# @param [String] calendar_id # @param [String] calendar_id
# Calendar identifier. To retrieve calendar IDs call the calendarList.list # Calendar identifier. To retrieve calendar IDs call the calendarList.list
# method. If you want to access the primary calendar of the currently logged in # method. If you want to access the primary calendar of the currently logged in

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/hangouts/chat # @see https://developers.google.com/hangouts/chat
module ChatV1 module ChatV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20180623' REVISION = '20180806'
end end
end end
end end

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/civic-information # @see https://developers.google.com/civic-information
module CivicinfoV2 module CivicinfoV2
VERSION = 'V2' VERSION = 'V2'
REVISION = '' REVISION = '20180716'
end end
end end
end end

View File

@ -736,6 +736,25 @@ module Google
end end
end end
#
class FieldMetadataProto
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `internal`
# @return [Google::Apis::CivicinfoV2::InternalFieldMetadataProto]
attr_accessor :internal
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@internal = args[:internal] if args.key?(:internal)
end
end
# Describes a political geography. # Describes a political geography.
class GeographicDivision class GeographicDivision
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -777,6 +796,207 @@ module Google
end end
end end
#
class InternalFieldMetadataProto
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `isAuto`
# @return [Boolean]
attr_accessor :is_auto
alias_method :is_auto?, :is_auto
#
# Corresponds to the JSON property `sourceSummary`
# @return [Google::Apis::CivicinfoV2::InternalSourceSummaryProto]
attr_accessor :source_summary
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@is_auto = args[:is_auto] if args.key?(:is_auto)
@source_summary = args[:source_summary] if args.key?(:source_summary)
end
end
#
class InternalSourceSummaryProto
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `dataset`
# @return [String]
attr_accessor :dataset
#
# Corresponds to the JSON property `provider`
# @return [String]
attr_accessor :provider
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@dataset = args[:dataset] if args.key?(:dataset)
@provider = args[:provider] if args.key?(:provider)
end
end
#
class LivegraphBacktraceRecordInfo
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `dataSourcePublishMsec`
# @return [Fixnum]
attr_accessor :data_source_publish_msec
#
# Corresponds to the JSON property `expId`
# @return [String]
attr_accessor :exp_id
#
# Corresponds to the JSON property `expInfo`
# @return [Google::Apis::CivicinfoV2::LivegraphBacktraceRecordInfoExpInfo]
attr_accessor :exp_info
#
# Corresponds to the JSON property `isRecon`
# @return [Boolean]
attr_accessor :is_recon
alias_method :is_recon?, :is_recon
#
# Corresponds to the JSON property `isWlmThrottled`
# @return [Boolean]
attr_accessor :is_wlm_throttled
alias_method :is_wlm_throttled?, :is_wlm_throttled
#
# Corresponds to the JSON property `numberOfTriples`
# @return [Fixnum]
attr_accessor :number_of_triples
#
# Corresponds to the JSON property `priority`
# @return [String]
attr_accessor :priority
#
# Corresponds to the JSON property `process`
# @return [String]
attr_accessor :process
#
# Corresponds to the JSON property `proxyReceiveMsec`
# @return [Fixnum]
attr_accessor :proxy_receive_msec
#
# Corresponds to the JSON property `proxySentMsec`
# @return [Fixnum]
attr_accessor :proxy_sent_msec
#
# Corresponds to the JSON property `recordId`
# @return [String]
attr_accessor :record_id
#
# Corresponds to the JSON property `shouldMonitorLatency`
# @return [Boolean]
attr_accessor :should_monitor_latency
alias_method :should_monitor_latency?, :should_monitor_latency
#
# Corresponds to the JSON property `subscriberReceiveMsec`
# @return [Fixnum]
attr_accessor :subscriber_receive_msec
#
# Corresponds to the JSON property `topicBuildFinishMsec`
# @return [Fixnum]
attr_accessor :topic_build_finish_msec
#
# Corresponds to the JSON property `topicBuildStartMsec`
# @return [Fixnum]
attr_accessor :topic_build_start_msec
#
# Corresponds to the JSON property `version`
# @return [String]
attr_accessor :version
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@data_source_publish_msec = args[:data_source_publish_msec] if args.key?(:data_source_publish_msec)
@exp_id = args[:exp_id] if args.key?(:exp_id)
@exp_info = args[:exp_info] if args.key?(:exp_info)
@is_recon = args[:is_recon] if args.key?(:is_recon)
@is_wlm_throttled = args[:is_wlm_throttled] if args.key?(:is_wlm_throttled)
@number_of_triples = args[:number_of_triples] if args.key?(:number_of_triples)
@priority = args[:priority] if args.key?(:priority)
@process = args[:process] if args.key?(:process)
@proxy_receive_msec = args[:proxy_receive_msec] if args.key?(:proxy_receive_msec)
@proxy_sent_msec = args[:proxy_sent_msec] if args.key?(:proxy_sent_msec)
@record_id = args[:record_id] if args.key?(:record_id)
@should_monitor_latency = args[:should_monitor_latency] if args.key?(:should_monitor_latency)
@subscriber_receive_msec = args[:subscriber_receive_msec] if args.key?(:subscriber_receive_msec)
@topic_build_finish_msec = args[:topic_build_finish_msec] if args.key?(:topic_build_finish_msec)
@topic_build_start_msec = args[:topic_build_start_msec] if args.key?(:topic_build_start_msec)
@version = args[:version] if args.key?(:version)
end
end
#
class LivegraphBacktraceRecordInfoExpInfo
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `deletedIns`
# @return [Array<String>]
attr_accessor :deleted_ins
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@deleted_ins = args[:deleted_ins] if args.key?(:deleted_ins)
end
end
#
class MessageSet
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `recordMessageSetExt`
# @return [Google::Apis::CivicinfoV2::LivegraphBacktraceRecordInfo]
attr_accessor :record_message_set_ext
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@record_message_set_ext = args[:record_message_set_ext] if args.key?(:record_message_set_ext)
end
end
# Information about an Office held by one or more Officials. # Information about an Office held by one or more Officials.
class Office class Office
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -896,6 +1116,43 @@ module Google
end end
end end
#
class PointProto
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `latE7`
# @return [Fixnum]
attr_accessor :lat_e7
#
# Corresponds to the JSON property `lngE7`
# @return [Fixnum]
attr_accessor :lng_e7
#
# Corresponds to the JSON property `metadata`
# @return [Google::Apis::CivicinfoV2::FieldMetadataProto]
attr_accessor :metadata
#
# Corresponds to the JSON property `temporaryData`
# @return [Google::Apis::CivicinfoV2::MessageSet]
attr_accessor :temporary_data
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@lat_e7 = args[:lat_e7] if args.key?(:lat_e7)
@lng_e7 = args[:lng_e7] if args.key?(:lng_e7)
@metadata = args[:metadata] if args.key?(:metadata)
@temporary_data = args[:temporary_data] if args.key?(:temporary_data)
end
end
# A location where a voter can vote. This may be an early vote site, an election # A location where a voter can vote. This may be an early vote site, an election
# day voting location, or a drop off location for a completed ballot. # day voting location, or a drop off location for a completed ballot.
class PollingLocation class PollingLocation
@ -1105,6 +1362,79 @@ module Google
end end
end end
#
class Provenance
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `collidedSegmentSource`
# @return [Google::Apis::CivicinfoV2::StreetSegmentList]
attr_accessor :collided_segment_source
#
# Corresponds to the JSON property `ctclContestUuid`
# @return [String]
attr_accessor :ctcl_contest_uuid
#
# Corresponds to the JSON property `ctclOfficeUuid`
# @return [String]
attr_accessor :ctcl_office_uuid
#
# Corresponds to the JSON property `datasetId`
# @return [Fixnum]
attr_accessor :dataset_id
#
# Corresponds to the JSON property `precinctId`
# @return [Fixnum]
attr_accessor :precinct_id
#
# Corresponds to the JSON property `precinctSplitId`
# @return [Fixnum]
attr_accessor :precinct_split_id
#
# Corresponds to the JSON property `tsStreetSegmentId`
# @return [String]
attr_accessor :ts_street_segment_id
#
# Corresponds to the JSON property `vip5PrecinctId`
# @return [String]
attr_accessor :vip5_precinct_id
#
# Corresponds to the JSON property `vip5StreetSegmentId`
# @return [String]
attr_accessor :vip5_street_segment_id
#
# Corresponds to the JSON property `vipStreetSegmentId`
# @return [Fixnum]
attr_accessor :vip_street_segment_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@collided_segment_source = args[:collided_segment_source] if args.key?(:collided_segment_source)
@ctcl_contest_uuid = args[:ctcl_contest_uuid] if args.key?(:ctcl_contest_uuid)
@ctcl_office_uuid = args[:ctcl_office_uuid] if args.key?(:ctcl_office_uuid)
@dataset_id = args[:dataset_id] if args.key?(:dataset_id)
@precinct_id = args[:precinct_id] if args.key?(:precinct_id)
@precinct_split_id = args[:precinct_split_id] if args.key?(:precinct_split_id)
@ts_street_segment_id = args[:ts_street_segment_id] if args.key?(:ts_street_segment_id)
@vip5_precinct_id = args[:vip5_precinct_id] if args.key?(:vip5_precinct_id)
@vip5_street_segment_id = args[:vip5_street_segment_id] if args.key?(:vip5_street_segment_id)
@vip_street_segment_id = args[:vip_street_segment_id] if args.key?(:vip_street_segment_id)
end
end
# #
class RepresentativeInfoData class RepresentativeInfoData
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1285,6 +1615,311 @@ module Google
end end
end end
#
class StreetSegment
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `administrationRegionIds`
# @return [Array<String>]
attr_accessor :administration_region_ids
#
# Corresponds to the JSON property `beforeGeocodeId`
# @return [String]
attr_accessor :before_geocode_id
#
# Corresponds to the JSON property `catalistUniquePrecinctCode`
# @return [String]
attr_accessor :catalist_unique_precinct_code
#
# Corresponds to the JSON property `city`
# @return [String]
attr_accessor :city
#
# Corresponds to the JSON property `cityCouncilDistrict`
# @return [String]
attr_accessor :city_council_district
#
# Corresponds to the JSON property `congressionalDistrict`
# @return [String]
attr_accessor :congressional_district
#
# Corresponds to the JSON property `contestIds`
# @return [Array<String>]
attr_accessor :contest_ids
#
# Corresponds to the JSON property `countyCouncilDistrict`
# @return [String]
attr_accessor :county_council_district
#
# Corresponds to the JSON property `countyFips`
# @return [String]
attr_accessor :county_fips
#
# Corresponds to the JSON property `datasetId`
# @return [Fixnum]
attr_accessor :dataset_id
#
# Corresponds to the JSON property `earlyVoteSiteByIds`
# @return [Array<String>]
attr_accessor :early_vote_site_by_ids
#
# Corresponds to the JSON property `endHouseNumber`
# @return [Fixnum]
attr_accessor :end_house_number
#
# Corresponds to the JSON property `geocodedPoint`
# @return [Google::Apis::CivicinfoV2::PointProto]
attr_accessor :geocoded_point
#
# Corresponds to the JSON property `geographicDivisionOcdIds`
# @return [Array<String>]
attr_accessor :geographic_division_ocd_ids
#
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
#
# Corresponds to the JSON property `judicialDistrict`
# @return [String]
attr_accessor :judicial_district
#
# Corresponds to the JSON property `mailOnly`
# @return [Boolean]
attr_accessor :mail_only
alias_method :mail_only?, :mail_only
#
# Corresponds to the JSON property `municipalDistrict`
# @return [String]
attr_accessor :municipal_district
#
# Corresponds to the JSON property `ncoaAddress`
# @return [String]
attr_accessor :ncoa_address
#
# Corresponds to the JSON property `oddOrEvens`
# @return [Array<String>]
attr_accessor :odd_or_evens
#
# Corresponds to the JSON property `originalId`
# @return [String]
attr_accessor :original_id
#
# Corresponds to the JSON property `pollinglocationByIds`
# @return [Array<String>]
attr_accessor :pollinglocation_by_ids
#
# Corresponds to the JSON property `precinctName`
# @return [String]
attr_accessor :precinct_name
#
# Corresponds to the JSON property `precinctOcdId`
# @return [String]
attr_accessor :precinct_ocd_id
#
# Corresponds to the JSON property `provenances`
# @return [Array<Google::Apis::CivicinfoV2::Provenance>]
attr_accessor :provenances
#
# Corresponds to the JSON property `published`
# @return [Boolean]
attr_accessor :published
alias_method :published?, :published
#
# Corresponds to the JSON property `schoolDistrict`
# @return [String]
attr_accessor :school_district
#
# Corresponds to the JSON property `startHouseNumber`
# @return [Fixnum]
attr_accessor :start_house_number
#
# Corresponds to the JSON property `startLatE7`
# @return [Fixnum]
attr_accessor :start_lat_e7
#
# Corresponds to the JSON property `startLngE7`
# @return [Fixnum]
attr_accessor :start_lng_e7
#
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
#
# Corresponds to the JSON property `stateHouseDistrict`
# @return [String]
attr_accessor :state_house_district
#
# Corresponds to the JSON property `stateSenateDistrict`
# @return [String]
attr_accessor :state_senate_district
#
# Corresponds to the JSON property `streetName`
# @return [String]
attr_accessor :street_name
#
# Corresponds to the JSON property `subAdministrativeAreaName`
# @return [String]
attr_accessor :sub_administrative_area_name
#
# Corresponds to the JSON property `surrogateId`
# @return [Fixnum]
attr_accessor :surrogate_id
#
# Corresponds to the JSON property `targetsmartUniquePrecinctCode`
# @return [String]
attr_accessor :targetsmart_unique_precinct_code
#
# Corresponds to the JSON property `townshipDistrict`
# @return [String]
attr_accessor :township_district
#
# Corresponds to the JSON property `unitNumber`
# @return [String]
attr_accessor :unit_number
#
# Corresponds to the JSON property `unitType`
# @return [String]
attr_accessor :unit_type
#
# Corresponds to the JSON property `vanPrecinctCode`
# @return [String]
attr_accessor :van_precinct_code
#
# Corresponds to the JSON property `voterGeographicDivisionOcdIds`
# @return [Array<String>]
attr_accessor :voter_geographic_division_ocd_ids
#
# Corresponds to the JSON property `wardDistrict`
# @return [String]
attr_accessor :ward_district
#
# Corresponds to the JSON property `wildcard`
# @return [Boolean]
attr_accessor :wildcard
alias_method :wildcard?, :wildcard
#
# Corresponds to the JSON property `zip`
# @return [String]
attr_accessor :zip
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@administration_region_ids = args[:administration_region_ids] if args.key?(:administration_region_ids)
@before_geocode_id = args[:before_geocode_id] if args.key?(:before_geocode_id)
@catalist_unique_precinct_code = args[:catalist_unique_precinct_code] if args.key?(:catalist_unique_precinct_code)
@city = args[:city] if args.key?(:city)
@city_council_district = args[:city_council_district] if args.key?(:city_council_district)
@congressional_district = args[:congressional_district] if args.key?(:congressional_district)
@contest_ids = args[:contest_ids] if args.key?(:contest_ids)
@county_council_district = args[:county_council_district] if args.key?(:county_council_district)
@county_fips = args[:county_fips] if args.key?(:county_fips)
@dataset_id = args[:dataset_id] if args.key?(:dataset_id)
@early_vote_site_by_ids = args[:early_vote_site_by_ids] if args.key?(:early_vote_site_by_ids)
@end_house_number = args[:end_house_number] if args.key?(:end_house_number)
@geocoded_point = args[:geocoded_point] if args.key?(:geocoded_point)
@geographic_division_ocd_ids = args[:geographic_division_ocd_ids] if args.key?(:geographic_division_ocd_ids)
@id = args[:id] if args.key?(:id)
@judicial_district = args[:judicial_district] if args.key?(:judicial_district)
@mail_only = args[:mail_only] if args.key?(:mail_only)
@municipal_district = args[:municipal_district] if args.key?(:municipal_district)
@ncoa_address = args[:ncoa_address] if args.key?(:ncoa_address)
@odd_or_evens = args[:odd_or_evens] if args.key?(:odd_or_evens)
@original_id = args[:original_id] if args.key?(:original_id)
@pollinglocation_by_ids = args[:pollinglocation_by_ids] if args.key?(:pollinglocation_by_ids)
@precinct_name = args[:precinct_name] if args.key?(:precinct_name)
@precinct_ocd_id = args[:precinct_ocd_id] if args.key?(:precinct_ocd_id)
@provenances = args[:provenances] if args.key?(:provenances)
@published = args[:published] if args.key?(:published)
@school_district = args[:school_district] if args.key?(:school_district)
@start_house_number = args[:start_house_number] if args.key?(:start_house_number)
@start_lat_e7 = args[:start_lat_e7] if args.key?(:start_lat_e7)
@start_lng_e7 = args[:start_lng_e7] if args.key?(:start_lng_e7)
@state = args[:state] if args.key?(:state)
@state_house_district = args[:state_house_district] if args.key?(:state_house_district)
@state_senate_district = args[:state_senate_district] if args.key?(:state_senate_district)
@street_name = args[:street_name] if args.key?(:street_name)
@sub_administrative_area_name = args[:sub_administrative_area_name] if args.key?(:sub_administrative_area_name)
@surrogate_id = args[:surrogate_id] if args.key?(:surrogate_id)
@targetsmart_unique_precinct_code = args[:targetsmart_unique_precinct_code] if args.key?(:targetsmart_unique_precinct_code)
@township_district = args[:township_district] if args.key?(:township_district)
@unit_number = args[:unit_number] if args.key?(:unit_number)
@unit_type = args[:unit_type] if args.key?(:unit_type)
@van_precinct_code = args[:van_precinct_code] if args.key?(:van_precinct_code)
@voter_geographic_division_ocd_ids = args[:voter_geographic_division_ocd_ids] if args.key?(:voter_geographic_division_ocd_ids)
@ward_district = args[:ward_district] if args.key?(:ward_district)
@wildcard = args[:wildcard] if args.key?(:wildcard)
@zip = args[:zip] if args.key?(:zip)
end
end
#
class StreetSegmentList
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `segments`
# @return [Array<Google::Apis::CivicinfoV2::StreetSegment>]
attr_accessor :segments
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@segments = args[:segments] if args.key?(:segments)
end
end
# A request for information about a voter. # A request for information about a voter.
class VoterInfoRequest class VoterInfoRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1379,6 +2014,11 @@ module Google
# @return [String] # @return [String]
attr_accessor :precinct_id attr_accessor :precinct_id
#
# Corresponds to the JSON property `segments`
# @return [Array<Google::Apis::CivicinfoV2::StreetSegment>]
attr_accessor :segments
# Local Election Information for the state that the voter votes in. For the US, # Local Election Information for the state that the voter votes in. For the US,
# there will only be one element in this array. # there will only be one element in this array.
# Corresponds to the JSON property `state` # Corresponds to the JSON property `state`
@ -1401,6 +2041,7 @@ module Google
@other_elections = args[:other_elections] if args.key?(:other_elections) @other_elections = args[:other_elections] if args.key?(:other_elections)
@polling_locations = args[:polling_locations] if args.key?(:polling_locations) @polling_locations = args[:polling_locations] if args.key?(:polling_locations)
@precinct_id = args[:precinct_id] if args.key?(:precinct_id) @precinct_id = args[:precinct_id] if args.key?(:precinct_id)
@segments = args[:segments] if args.key?(:segments)
@state = args[:state] if args.key?(:state) @state = args[:state] if args.key?(:state)
end end
end end

View File

@ -112,12 +112,48 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class FieldMetadataProto
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GeographicDivision class GeographicDivision
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class InternalFieldMetadataProto
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InternalSourceSummaryProto
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LivegraphBacktraceRecordInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LivegraphBacktraceRecordInfoExpInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MessageSet
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Office class Office
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -130,6 +166,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class PointProto
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PollingLocation class PollingLocation
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -142,6 +184,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class Provenance
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RepresentativeInfoData class RepresentativeInfoData
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -172,6 +220,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class StreetSegment
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class StreetSegmentList
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class VoterInfoRequest class VoterInfoRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -373,6 +433,14 @@ module Google
end end
end end
class FieldMetadataProto
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :internal, as: 'internal', class: Google::Apis::CivicinfoV2::InternalFieldMetadataProto, decorator: Google::Apis::CivicinfoV2::InternalFieldMetadataProto::Representation
end
end
class GeographicDivision class GeographicDivision
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -382,6 +450,61 @@ module Google
end end
end end
class InternalFieldMetadataProto
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :is_auto, as: 'isAuto'
property :source_summary, as: 'sourceSummary', class: Google::Apis::CivicinfoV2::InternalSourceSummaryProto, decorator: Google::Apis::CivicinfoV2::InternalSourceSummaryProto::Representation
end
end
class InternalSourceSummaryProto
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :dataset, as: 'dataset'
property :provider, as: 'provider'
end
end
class LivegraphBacktraceRecordInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :data_source_publish_msec, :numeric_string => true, as: 'dataSourcePublishMsec'
property :exp_id, as: 'expId'
property :exp_info, as: 'expInfo', class: Google::Apis::CivicinfoV2::LivegraphBacktraceRecordInfoExpInfo, decorator: Google::Apis::CivicinfoV2::LivegraphBacktraceRecordInfoExpInfo::Representation
property :is_recon, as: 'isRecon'
property :is_wlm_throttled, as: 'isWlmThrottled'
property :number_of_triples, :numeric_string => true, as: 'numberOfTriples'
property :priority, as: 'priority'
property :process, as: 'process'
property :proxy_receive_msec, :numeric_string => true, as: 'proxyReceiveMsec'
property :proxy_sent_msec, :numeric_string => true, as: 'proxySentMsec'
property :record_id, as: 'recordId'
property :should_monitor_latency, as: 'shouldMonitorLatency'
property :subscriber_receive_msec, :numeric_string => true, as: 'subscriberReceiveMsec'
property :topic_build_finish_msec, :numeric_string => true, as: 'topicBuildFinishMsec'
property :topic_build_start_msec, :numeric_string => true, as: 'topicBuildStartMsec'
property :version, as: 'version'
end
end
class LivegraphBacktraceRecordInfoExpInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :deleted_ins, as: 'deletedIns'
end
end
class MessageSet
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :record_message_set_ext, as: 'recordMessageSetExt', class: Google::Apis::CivicinfoV2::LivegraphBacktraceRecordInfo, decorator: Google::Apis::CivicinfoV2::LivegraphBacktraceRecordInfo::Representation
end
end
class Office class Office
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -411,6 +534,18 @@ module Google
end end
end end
class PointProto
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :lat_e7, as: 'latE7'
property :lng_e7, as: 'lngE7'
property :metadata, as: 'metadata', class: Google::Apis::CivicinfoV2::FieldMetadataProto, decorator: Google::Apis::CivicinfoV2::FieldMetadataProto::Representation
property :temporary_data, as: 'temporaryData', class: Google::Apis::CivicinfoV2::MessageSet, decorator: Google::Apis::CivicinfoV2::MessageSet::Representation
end
end
class PollingLocation class PollingLocation
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -454,6 +589,23 @@ module Google
end end
end end
class Provenance
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :collided_segment_source, as: 'collidedSegmentSource', class: Google::Apis::CivicinfoV2::StreetSegmentList, decorator: Google::Apis::CivicinfoV2::StreetSegmentList::Representation
property :ctcl_contest_uuid, as: 'ctclContestUuid'
property :ctcl_office_uuid, as: 'ctclOfficeUuid'
property :dataset_id, :numeric_string => true, as: 'datasetId'
property :precinct_id, :numeric_string => true, as: 'precinctId'
property :precinct_split_id, :numeric_string => true, as: 'precinctSplitId'
property :ts_street_segment_id, as: 'tsStreetSegmentId'
property :vip5_precinct_id, as: 'vip5PrecinctId'
property :vip5_street_segment_id, as: 'vip5StreetSegmentId'
property :vip_street_segment_id, :numeric_string => true, as: 'vipStreetSegmentId'
end
end
class RepresentativeInfoData class RepresentativeInfoData
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -510,6 +662,67 @@ module Google
end end
end end
class StreetSegment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :administration_region_ids, as: 'administrationRegionIds'
property :before_geocode_id, as: 'beforeGeocodeId'
property :catalist_unique_precinct_code, as: 'catalistUniquePrecinctCode'
property :city, as: 'city'
property :city_council_district, as: 'cityCouncilDistrict'
property :congressional_district, as: 'congressionalDistrict'
collection :contest_ids, as: 'contestIds'
property :county_council_district, as: 'countyCouncilDistrict'
property :county_fips, as: 'countyFips'
property :dataset_id, :numeric_string => true, as: 'datasetId'
collection :early_vote_site_by_ids, as: 'earlyVoteSiteByIds'
property :end_house_number, :numeric_string => true, as: 'endHouseNumber'
property :geocoded_point, as: 'geocodedPoint', class: Google::Apis::CivicinfoV2::PointProto, decorator: Google::Apis::CivicinfoV2::PointProto::Representation
collection :geographic_division_ocd_ids, as: 'geographicDivisionOcdIds'
property :id, as: 'id'
property :judicial_district, as: 'judicialDistrict'
property :mail_only, as: 'mailOnly'
property :municipal_district, as: 'municipalDistrict'
property :ncoa_address, as: 'ncoaAddress'
collection :odd_or_evens, as: 'oddOrEvens'
property :original_id, as: 'originalId'
collection :pollinglocation_by_ids, as: 'pollinglocationByIds'
property :precinct_name, as: 'precinctName'
property :precinct_ocd_id, as: 'precinctOcdId'
collection :provenances, as: 'provenances', class: Google::Apis::CivicinfoV2::Provenance, decorator: Google::Apis::CivicinfoV2::Provenance::Representation
property :published, as: 'published'
property :school_district, as: 'schoolDistrict'
property :start_house_number, :numeric_string => true, as: 'startHouseNumber'
property :start_lat_e7, :numeric_string => true, as: 'startLatE7'
property :start_lng_e7, :numeric_string => true, as: 'startLngE7'
property :state, as: 'state'
property :state_house_district, as: 'stateHouseDistrict'
property :state_senate_district, as: 'stateSenateDistrict'
property :street_name, as: 'streetName'
property :sub_administrative_area_name, as: 'subAdministrativeAreaName'
property :surrogate_id, :numeric_string => true, as: 'surrogateId'
property :targetsmart_unique_precinct_code, as: 'targetsmartUniquePrecinctCode'
property :township_district, as: 'townshipDistrict'
property :unit_number, as: 'unitNumber'
property :unit_type, as: 'unitType'
property :van_precinct_code, as: 'vanPrecinctCode'
collection :voter_geographic_division_ocd_ids, as: 'voterGeographicDivisionOcdIds'
property :ward_district, as: 'wardDistrict'
property :wildcard, as: 'wildcard'
property :zip, as: 'zip'
end
end
class StreetSegmentList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :segments, as: 'segments', class: Google::Apis::CivicinfoV2::StreetSegment, decorator: Google::Apis::CivicinfoV2::StreetSegment::Representation
end
end
class VoterInfoRequest class VoterInfoRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -540,6 +753,8 @@ module Google
collection :polling_locations, as: 'pollingLocations', class: Google::Apis::CivicinfoV2::PollingLocation, decorator: Google::Apis::CivicinfoV2::PollingLocation::Representation collection :polling_locations, as: 'pollingLocations', class: Google::Apis::CivicinfoV2::PollingLocation, decorator: Google::Apis::CivicinfoV2::PollingLocation::Representation
property :precinct_id, as: 'precinctId' property :precinct_id, as: 'precinctId'
collection :segments, as: 'segments', class: Google::Apis::CivicinfoV2::StreetSegment, decorator: Google::Apis::CivicinfoV2::StreetSegment::Representation
collection :state, as: 'state', class: Google::Apis::CivicinfoV2::AdministrationRegion, decorator: Google::Apis::CivicinfoV2::AdministrationRegion::Representation collection :state, as: 'state', class: Google::Apis::CivicinfoV2::AdministrationRegion, decorator: Google::Apis::CivicinfoV2::AdministrationRegion::Representation
end end

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/classroom/ # @see https://developers.google.com/classroom/
module ClassroomV1 module ClassroomV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20180602' REVISION = '20180807'
# View and manage announcements in Google Classroom # View and manage announcements in Google Classroom
AUTH_CLASSROOM_ANNOUNCEMENTS = 'https://www.googleapis.com/auth/classroom.announcements' AUTH_CLASSROOM_ANNOUNCEMENTS = 'https://www.googleapis.com/auth/classroom.announcements'

View File

@ -687,6 +687,25 @@ module Google
end end
end end
# Information about a `Feed` with a `feed_type` of `COURSE_WORK_CHANGES`.
class CourseWorkChangesInfo
include Google::Apis::Core::Hashable
# The `course_id` of the course to subscribe to work changes for.
# Corresponds to the JSON property `courseId`
# @return [String]
attr_accessor :course_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@course_id = args[:course_id] if args.key?(:course_id)
end
end
# Represents a whole calendar date, e.g. date of birth. The time of day and # Represents a whole calendar date, e.g. date of birth. The time of day and
# time zone are either specified elsewhere or are not significant. The date # time zone are either specified elsewhere or are not significant. The date
# is relative to the Proleptic Gregorian Calendar. The day may be 0 to # is relative to the Proleptic Gregorian Calendar. The day may be 0 to
@ -829,6 +848,11 @@ module Google
# @return [Google::Apis::ClassroomV1::CourseRosterChangesInfo] # @return [Google::Apis::ClassroomV1::CourseRosterChangesInfo]
attr_accessor :course_roster_changes_info attr_accessor :course_roster_changes_info
# Information about a `Feed` with a `feed_type` of `COURSE_WORK_CHANGES`.
# Corresponds to the JSON property `courseWorkChangesInfo`
# @return [Google::Apis::ClassroomV1::CourseWorkChangesInfo]
attr_accessor :course_work_changes_info
# The type of feed. # The type of feed.
# Corresponds to the JSON property `feedType` # Corresponds to the JSON property `feedType`
# @return [String] # @return [String]
@ -841,6 +865,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@course_roster_changes_info = args[:course_roster_changes_info] if args.key?(:course_roster_changes_info) @course_roster_changes_info = args[:course_roster_changes_info] if args.key?(:course_roster_changes_info)
@course_work_changes_info = args[:course_work_changes_info] if args.key?(:course_work_changes_info)
@feed_type = args[:feed_type] if args.key?(:feed_type) @feed_type = args[:feed_type] if args.key?(:feed_type)
end end
end end

View File

@ -88,6 +88,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class CourseWorkChangesInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Date class Date
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -511,6 +517,13 @@ module Google
end end
end end
class CourseWorkChangesInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :course_id, as: 'courseId'
end
end
class Date class Date
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -550,6 +563,8 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :course_roster_changes_info, as: 'courseRosterChangesInfo', class: Google::Apis::ClassroomV1::CourseRosterChangesInfo, decorator: Google::Apis::ClassroomV1::CourseRosterChangesInfo::Representation property :course_roster_changes_info, as: 'courseRosterChangesInfo', class: Google::Apis::ClassroomV1::CourseRosterChangesInfo, decorator: Google::Apis::ClassroomV1::CourseRosterChangesInfo::Representation
property :course_work_changes_info, as: 'courseWorkChangesInfo', class: Google::Apis::ClassroomV1::CourseWorkChangesInfo, decorator: Google::Apis::ClassroomV1::CourseWorkChangesInfo::Representation
property :feed_type, as: 'feedType' property :feed_type, as: 'feedType'
end end
end end

View File

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

View File

@ -187,8 +187,6 @@ module Google
# will be the resource name of the master billing account that it is being # will be the resource name of the master billing account that it is being
# resold through. # resold through.
# Otherwise this will be empty. # Otherwise this will be empty.
# > This field is currently in
# > [Beta](https://cloud.google.com/terms/launch-stages).
# Corresponds to the JSON property `masterBillingAccount` # Corresponds to the JSON property `masterBillingAccount`
# @return [String] # @return [String]
attr_accessor :master_billing_account attr_accessor :master_billing_account
@ -226,6 +224,14 @@ module Google
class Binding class Binding
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Represents an expression text. Example:
# title: "User account presence"
# description: "Determines whether the request has a user account"
# expression: "size(request.user) > 0"
# Corresponds to the JSON property `condition`
# @return [Google::Apis::CloudbillingV1::Expr]
attr_accessor :condition
# Specifies the identities requesting access for a Cloud Platform resource. # Specifies the identities requesting access for a Cloud Platform resource.
# `members` can have the following values: # `members` can have the following values:
# * `allUsers`: A special identifier that represents anyone who is # * `allUsers`: A special identifier that represents anyone who is
@ -233,7 +239,7 @@ module Google
# * `allAuthenticatedUsers`: A special identifier that represents anyone # * `allAuthenticatedUsers`: A special identifier that represents anyone
# who is authenticated with a Google account or a service account. # who is authenticated with a Google account or a service account.
# * `user:`emailid``: An email address that represents a specific Google # * `user:`emailid``: An email address that represents a specific Google
# account. For example, `alice@gmail.com` or `joe@example.com`. # account. For example, `alice@gmail.com` .
# * `serviceAccount:`emailid``: An email address that represents a service # * `serviceAccount:`emailid``: An email address that represents a service
# account. For example, `my-other-app@appspot.gserviceaccount.com`. # account. For example, `my-other-app@appspot.gserviceaccount.com`.
# * `group:`emailid``: An email address that represents a Google group. # * `group:`emailid``: An email address that represents a Google group.
@ -246,7 +252,6 @@ module Google
# Role that is assigned to `members`. # Role that is assigned to `members`.
# For example, `roles/viewer`, `roles/editor`, or `roles/owner`. # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
# Required
# Corresponds to the JSON property `role` # Corresponds to the JSON property `role`
# @return [String] # @return [String]
attr_accessor :role attr_accessor :role
@ -257,6 +262,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@condition = args[:condition] if args.key?(:condition)
@members = args[:members] if args.key?(:members) @members = args[:members] if args.key?(:members)
@role = args[:role] if args.key?(:role) @role = args[:role] if args.key?(:role)
end end
@ -302,6 +308,53 @@ module Google
end end
end end
# Represents an expression text. Example:
# title: "User account presence"
# description: "Determines whether the request has a user account"
# expression: "size(request.user) > 0"
class Expr
include Google::Apis::Core::Hashable
# An optional description of the expression. This is a longer text which
# describes the expression, e.g. when hovered over it in a UI.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Textual representation of an expression in
# Common Expression Language syntax.
# The application context of the containing message determines which
# well-known feature set of CEL is supported.
# Corresponds to the JSON property `expression`
# @return [String]
attr_accessor :expression
# An optional string indicating the location of the expression for error
# reporting, e.g. a file name and a position in the file.
# Corresponds to the JSON property `location`
# @return [String]
attr_accessor :location
# An optional title for the expression, i.e. a short string describing
# its purpose. This can be used e.g. in UIs which allow to enter the
# expression.
# Corresponds to the JSON property `title`
# @return [String]
attr_accessor :title
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@description = args[:description] if args.key?(:description)
@expression = args[:expression] if args.key?(:expression)
@location = args[:location] if args.key?(:location)
@title = args[:title] if args.key?(:title)
end
end
# Response message for `ListBillingAccounts`. # Response message for `ListBillingAccounts`.
class ListBillingAccountsResponse class ListBillingAccountsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -450,11 +503,11 @@ module Google
# Defines an Identity and Access Management (IAM) policy. It is used to # Defines an Identity and Access Management (IAM) policy. It is used to
# specify access control policies for Cloud Platform resources. # specify access control policies for Cloud Platform resources.
# A `Policy` consists of a list of `bindings`. A `Binding` binds a list of # A `Policy` consists of a list of `bindings`. A `binding` binds a list of
# `members` to a `role`, where the members can be user accounts, Google groups, # `members` to a `role`, where the members can be user accounts, Google groups,
# Google domains, and service accounts. A `role` is a named list of permissions # Google domains, and service accounts. A `role` is a named list of permissions
# defined by IAM. # defined by IAM.
# **Example** # **JSON Example**
# ` # `
# "bindings": [ # "bindings": [
# ` # `
@ -463,7 +516,7 @@ module Google
# "user:mike@example.com", # "user:mike@example.com",
# "group:admins@example.com", # "group:admins@example.com",
# "domain:google.com", # "domain:google.com",
# "serviceAccount:my-other-app@appspot.gserviceaccount.com", # "serviceAccount:my-other-app@appspot.gserviceaccount.com"
# ] # ]
# `, # `,
# ` # `
@ -472,6 +525,17 @@ module Google
# ` # `
# ] # ]
# ` # `
# **YAML Example**
# bindings:
# - members:
# - user:mike@example.com
# - group:admins@example.com
# - domain:google.com
# - serviceAccount:my-other-app@appspot.gserviceaccount.com
# role: roles/owner
# - members:
# - user:sean@example.com
# role: roles/viewer
# For a description of IAM and its features, see the # For a description of IAM and its features, see the
# [IAM developer's guide](https://cloud.google.com/iam/docs). # [IAM developer's guide](https://cloud.google.com/iam/docs).
class Policy class Policy
@ -747,11 +811,11 @@ module Google
# Defines an Identity and Access Management (IAM) policy. It is used to # Defines an Identity and Access Management (IAM) policy. It is used to
# specify access control policies for Cloud Platform resources. # specify access control policies for Cloud Platform resources.
# A `Policy` consists of a list of `bindings`. A `Binding` binds a list of # A `Policy` consists of a list of `bindings`. A `binding` binds a list of
# `members` to a `role`, where the members can be user accounts, Google groups, # `members` to a `role`, where the members can be user accounts, Google groups,
# Google domains, and service accounts. A `role` is a named list of permissions # Google domains, and service accounts. A `role` is a named list of permissions
# defined by IAM. # defined by IAM.
# **Example** # **JSON Example**
# ` # `
# "bindings": [ # "bindings": [
# ` # `
@ -760,7 +824,7 @@ module Google
# "user:mike@example.com", # "user:mike@example.com",
# "group:admins@example.com", # "group:admins@example.com",
# "domain:google.com", # "domain:google.com",
# "serviceAccount:my-other-app@appspot.gserviceaccount.com", # "serviceAccount:my-other-app@appspot.gserviceaccount.com"
# ] # ]
# `, # `,
# ` # `
@ -769,6 +833,17 @@ module Google
# ` # `
# ] # ]
# ` # `
# **YAML Example**
# bindings:
# - members:
# - user:mike@example.com
# - group:admins@example.com
# - domain:google.com
# - serviceAccount:my-other-app@appspot.gserviceaccount.com
# role: roles/owner
# - members:
# - user:sean@example.com
# role: roles/viewer
# For a description of IAM and its features, see the # For a description of IAM and its features, see the
# [IAM developer's guide](https://cloud.google.com/iam/docs). # [IAM developer's guide](https://cloud.google.com/iam/docs).
# Corresponds to the JSON property `policy` # Corresponds to the JSON property `policy`

View File

@ -58,6 +58,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class Expr
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListBillingAccountsResponse class ListBillingAccountsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -187,6 +193,8 @@ module Google
class Binding class Binding
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :condition, as: 'condition', class: Google::Apis::CloudbillingV1::Expr, decorator: Google::Apis::CloudbillingV1::Expr::Representation
collection :members, as: 'members' collection :members, as: 'members'
property :role, as: 'role' property :role, as: 'role'
end end
@ -202,6 +210,16 @@ module Google
end end
end end
class Expr
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :expression, as: 'expression'
property :location, as: 'location'
property :title, as: 'title'
end
end
class ListBillingAccountsResponse class ListBillingAccountsResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -51,13 +51,13 @@ module Google
# Creates a billing account. # Creates a billing account.
# This method can only be used to create # This method can only be used to create
# [billing subaccounts](https://cloud.google.com/billing/docs/concepts) # [billing subaccounts](https://cloud.google.com/billing/docs/concepts)
# for GCP resellers. # by GCP resellers.
# When creating a subaccount, the current authenticated user must have the # When creating a subaccount, the current authenticated user must have the
# `billing.accounts.update` IAM permission on the master account, which is # `billing.accounts.update` IAM permission on the master account, which is
# typically given to billing account # typically given to billing account
# [administrators](https://cloud.google.com/billing/docs/how-to/billing-access). # [administrators](https://cloud.google.com/billing/docs/how-to/billing-access).
# > This method is currently in # This method will return an error if the master account has not been
# > [Beta](https://cloud.google.com/terms/launch-stages). # provisioned as a reseller account.
# @param [Google::Apis::CloudbillingV1::BillingAccount] billing_account_object # @param [Google::Apis::CloudbillingV1::BillingAccount] billing_account_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -124,8 +124,6 @@ module Google
# The caller must have the `billing.accounts.getIamPolicy` permission on the # The caller must have the `billing.accounts.getIamPolicy` permission on the
# account, which is often given to billing account # account, which is often given to billing account
# [viewers](https://cloud.google.com/billing/docs/how-to/billing-access). # [viewers](https://cloud.google.com/billing/docs/how-to/billing-access).
# > This method is currently in
# > [Beta](https://cloud.google.com/terms/launch-stages).
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy is being requested. # REQUIRED: The resource for which the policy is being requested.
# See the operation documentation for the appropriate value for this field. # See the operation documentation for the appropriate value for this field.
@ -166,8 +164,6 @@ module Google
# single provided reseller billing account. # single provided reseller billing account.
# (e.g. "master_billing_account=billingAccounts/012345-678901-ABCDEF"). # (e.g. "master_billing_account=billingAccounts/012345-678901-ABCDEF").
# Boolean algebra and other fields are not currently supported. # Boolean algebra and other fields are not currently supported.
# > This field is currently in
# > [Beta](https://cloud.google.com/terms/launch-stages).
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Requested page size. The maximum page size is 100; this is also the # Requested page size. The maximum page size is 100; this is also the
# default. # default.
@ -210,8 +206,6 @@ module Google
# IAM permission, which is typically given to the # IAM permission, which is typically given to the
# [administrator](https://cloud.google.com/billing/docs/how-to/billing-access) # [administrator](https://cloud.google.com/billing/docs/how-to/billing-access)
# of the billing account. # of the billing account.
# > This method is currently in
# > [Beta](https://cloud.google.com/terms/launch-stages).
# @param [String] name # @param [String] name
# The name of the billing account resource to be updated. # The name of the billing account resource to be updated.
# @param [Google::Apis::CloudbillingV1::BillingAccount] billing_account_object # @param [Google::Apis::CloudbillingV1::BillingAccount] billing_account_object
@ -253,8 +247,6 @@ module Google
# The caller must have the `billing.accounts.setIamPolicy` permission on the # The caller must have the `billing.accounts.setIamPolicy` permission on the
# account, which is often given to billing account # account, which is often given to billing account
# [administrators](https://cloud.google.com/billing/docs/how-to/billing-access). # [administrators](https://cloud.google.com/billing/docs/how-to/billing-access).
# > This method is currently in
# > [Beta](https://cloud.google.com/terms/launch-stages).
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy is being specified. # REQUIRED: The resource for which the policy is being specified.
# See the operation documentation for the appropriate value for this field. # See the operation documentation for the appropriate value for this field.
@ -291,8 +283,6 @@ module Google
# Tests the access control policy for a billing account. This method takes # Tests the access control policy for a billing account. This method takes
# the resource and a set of permissions as input and returns the subset of # the resource and a set of permissions as input and returns the subset of
# the input permissions that the caller is allowed for that resource. # the input permissions that the caller is allowed for that resource.
# > This method is currently in
# > [Beta](https://cloud.google.com/terms/launch-stages).
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy detail is being requested. # REQUIRED: The resource for which the policy detail is being requested.
# See the operation documentation for the appropriate value for this field. # See the operation documentation for the appropriate value for this field.

View File

@ -18,14 +18,14 @@ require 'google/apis/cloudbuild_v1/representations.rb'
module Google module Google
module Apis module Apis
# Cloud Container Builder # Cloud Build API
# #
# Builds container images in the cloud. # Creates and manages builds on Google Cloud Platform.
# #
# @see https://cloud.google.com/container-builder/docs/ # @see https://cloud.google.com/cloud-build/docs/
module CloudbuildV1 module CloudbuildV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20180621' REVISION = '20180820'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -119,7 +119,7 @@ module Google
end end
end end
# A build resource in the Container Builder API. # A build resource in the Cloud Build API.
# At a high level, a `Build` describes where to find source code, how to build # At a high level, a `Build` describes where to find source code, how to build
# it (for example, the builder image to run on the source), and where to store # it (for example, the builder image to run on the source), and where to store
# the built artifacts. # the built artifacts.
@ -305,7 +305,7 @@ module Google
class BuildOperationMetadata class BuildOperationMetadata
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# A build resource in the Container Builder API. # A build resource in the Cloud Build API.
# At a high level, a `Build` describes where to find source code, how to build # At a high level, a `Build` describes where to find source code, how to build
# it (for example, the builder image to run on the source), and where to store # it (for example, the builder image to run on the source), and where to store
# the built artifacts. # the built artifacts.
@ -523,7 +523,7 @@ module Google
class BuildTrigger class BuildTrigger
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# A build resource in the Container Builder API. # A build resource in the Cloud Build API.
# At a high level, a `Build` describes where to find source code, how to build # At a high level, a `Build` describes where to find source code, how to build
# it (for example, the builder image to run on the source), and where to store # it (for example, the builder image to run on the source), and where to store
# the built artifacts. # the built artifacts.
@ -568,6 +568,28 @@ module Google
# @return [String] # @return [String]
attr_accessor :id attr_accessor :id
# ignored_files and included_files are file glob matches using
# http://godoc/pkg/path/filepath#Match extended with support for "**".
# If ignored_files and changed files are both empty, then they are
# not used to determine whether or not to trigger a build.
# If ignored_files is not empty, then we ignore any files that match
# any of the ignored_file globs. If the change has no files that are
# outside of the ignored_files globs, then we do not trigger a build.
# Corresponds to the JSON property `ignoredFiles`
# @return [Array<String>]
attr_accessor :ignored_files
# If any of the files altered in the commit pass the ignored_files
# filter and included_files is empty, then as far as this filter is
# concerned, we should trigger the build.
# If any of the files altered in the commit pass the ignored_files
# filter and included_files is not empty, then we make sure that at
# least one of those files matches a included_files glob. If not,
# then we do not trigger a build.
# Corresponds to the JSON property `includedFiles`
# @return [Array<String>]
attr_accessor :included_files
# Substitutions data for Build resource. # Substitutions data for Build resource.
# Corresponds to the JSON property `substitutions` # Corresponds to the JSON property `substitutions`
# @return [Hash<String,String>] # @return [Hash<String,String>]
@ -590,6 +612,8 @@ module Google
@disabled = args[:disabled] if args.key?(:disabled) @disabled = args[:disabled] if args.key?(:disabled)
@filename = args[:filename] if args.key?(:filename) @filename = args[:filename] if args.key?(:filename)
@id = args[:id] if args.key?(:id) @id = args[:id] if args.key?(:id)
@ignored_files = args[:ignored_files] if args.key?(:ignored_files)
@included_files = args[:included_files] if args.key?(:included_files)
@substitutions = args[:substitutions] if args.key?(:substitutions) @substitutions = args[:substitutions] if args.key?(:substitutions)
@trigger_template = args[:trigger_template] if args.key?(:trigger_template) @trigger_template = args[:trigger_template] if args.key?(:trigger_template)
end end
@ -952,6 +976,15 @@ module Google
# @return [Array<String>] # @return [Array<String>]
attr_accessor :build_step_images attr_accessor :build_step_images
# List of build step outputs, produced by builder images, in the order
# corresponding to build step indices.
# [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders)
# can produce this output by writing to `$BUILDER_OUTPUT/output`.
# Only the first 4KB of data is stored.
# Corresponds to the JSON property `buildStepOutputs`
# @return [Array<String>]
attr_accessor :build_step_outputs
# Container images that were built as a part of the build. # Container images that were built as a part of the build.
# Corresponds to the JSON property `images` # Corresponds to the JSON property `images`
# @return [Array<Google::Apis::CloudbuildV1::BuiltImage>] # @return [Array<Google::Apis::CloudbuildV1::BuiltImage>]
@ -970,6 +1003,7 @@ module Google
def update!(**args) def update!(**args)
@artifact_manifest = args[:artifact_manifest] if args.key?(:artifact_manifest) @artifact_manifest = args[:artifact_manifest] if args.key?(:artifact_manifest)
@build_step_images = args[:build_step_images] if args.key?(:build_step_images) @build_step_images = args[:build_step_images] if args.key?(:build_step_images)
@build_step_outputs = args[:build_step_outputs] if args.key?(:build_step_outputs)
@images = args[:images] if args.key?(:images) @images = args[:images] if args.key?(:images)
@num_artifacts = args[:num_artifacts] if args.key?(:num_artifacts) @num_artifacts = args[:num_artifacts] if args.key?(:num_artifacts)
end end

View File

@ -304,6 +304,8 @@ module Google
property :disabled, as: 'disabled' property :disabled, as: 'disabled'
property :filename, as: 'filename' property :filename, as: 'filename'
property :id, as: 'id' property :id, as: 'id'
collection :ignored_files, as: 'ignoredFiles'
collection :included_files, as: 'includedFiles'
hash :substitutions, as: 'substitutions' hash :substitutions, as: 'substitutions'
property :trigger_template, as: 'triggerTemplate', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation property :trigger_template, as: 'triggerTemplate', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
@ -409,6 +411,7 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :artifact_manifest, as: 'artifactManifest' property :artifact_manifest, as: 'artifactManifest'
collection :build_step_images, as: 'buildStepImages' collection :build_step_images, as: 'buildStepImages'
collection :build_step_outputs, as: 'buildStepOutputs'
collection :images, as: 'images', class: Google::Apis::CloudbuildV1::BuiltImage, decorator: Google::Apis::CloudbuildV1::BuiltImage::Representation collection :images, as: 'images', class: Google::Apis::CloudbuildV1::BuiltImage, decorator: Google::Apis::CloudbuildV1::BuiltImage::Representation
property :num_artifacts, :numeric_string => true, as: 'numArtifacts' property :num_artifacts, :numeric_string => true, as: 'numArtifacts'

View File

@ -20,9 +20,9 @@ require 'google/apis/errors'
module Google module Google
module Apis module Apis
module CloudbuildV1 module CloudbuildV1
# Cloud Container Builder # Cloud Build API
# #
# Builds container images in the cloud. # Creates and manages builds on Google Cloud Platform.
# #
# @example # @example
# require 'google/apis/cloudbuild_v1' # require 'google/apis/cloudbuild_v1'
@ -30,7 +30,7 @@ module Google
# Cloudbuild = Google::Apis::CloudbuildV1 # Alias the module # Cloudbuild = Google::Apis::CloudbuildV1 # Alias the module
# service = Cloudbuild::CloudBuildService.new # service = Cloudbuild::CloudBuildService.new
# #
# @see https://cloud.google.com/container-builder/docs/ # @see https://cloud.google.com/cloud-build/docs/
class CloudBuildService < Google::Apis::Core::BaseService class CloudBuildService < Google::Apis::Core::BaseService
# @return [String] # @return [String]
# API key. Your API key identifies your project and provides you with API access, # API key. Your API key identifies your project and provides you with API access,

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/debugger # @see https://cloud.google.com/debugger
module ClouddebuggerV2 module ClouddebuggerV2
VERSION = 'V2' VERSION = 'V2'
REVISION = '20180604' REVISION = '20180801'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -807,6 +807,13 @@ module Google
class SourceLocation class SourceLocation
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Column within a line. The first column in a line as the value `1`.
# Agents that do not support setting breakpoints on specific columns ignore
# this field.
# Corresponds to the JSON property `column`
# @return [Fixnum]
attr_accessor :column
# Line inside the file. The first line in the file has the value `1`. # Line inside the file. The first line in the file has the value `1`.
# Corresponds to the JSON property `line` # Corresponds to the JSON property `line`
# @return [Fixnum] # @return [Fixnum]
@ -823,6 +830,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@column = args[:column] if args.key?(:column)
@line = args[:line] if args.key?(:line) @line = args[:line] if args.key?(:line)
@path = args[:path] if args.key?(:path) @path = args[:path] if args.key?(:path)
end end

View File

@ -405,6 +405,7 @@ module Google
class SourceLocation class SourceLocation
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :column, as: 'column'
property :line, as: 'line' property :line, as: 'line'
property :path, as: 'path' property :path, as: 'path'
end end

View File

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

View File

@ -144,13 +144,12 @@ module Google
end end
# Report an individual error event. # Report an individual error event.
# This endpoint accepts <strong>either</strong> an OAuth token, # This endpoint accepts **either** an OAuth token,
# <strong>or</strong> an # **or** an [API key](https://support.google.com/cloud/answer/6158862)
# <a href="https://support.google.com/cloud/answer/6158862">API key</a>
# for authentication. To use an API key, append it to the URL as the value of # for authentication. To use an API key, append it to the URL as the value of
# a `key` parameter. For example: # a `key` parameter. For example:
# <pre>POST https://clouderrorreporting.googleapis.com/v1beta1/projects/example- # `POST https://clouderrorreporting.googleapis.com/v1beta1/projects/example-
# project/events:report?key=123ABC456</pre> # project/events:report?key=123ABC456`
# @param [String] project_name # @param [String] project_name
# [Required] The resource name of the Google Cloud Platform project. Written # [Required] The resource name of the Google Cloud Platform project. Written
# as `projects/` plus the # as `projects/` plus the

View File

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

View File

@ -26,6 +26,14 @@ module Google
class Binding class Binding
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Represents an expression text. Example:
# title: "User account presence"
# description: "Determines whether the request has a user account"
# expression: "size(request.user) > 0"
# Corresponds to the JSON property `condition`
# @return [Google::Apis::CloudiotV1::Expr]
attr_accessor :condition
# Specifies the identities requesting access for a Cloud Platform resource. # Specifies the identities requesting access for a Cloud Platform resource.
# `members` can have the following values: # `members` can have the following values:
# * `allUsers`: A special identifier that represents anyone who is # * `allUsers`: A special identifier that represents anyone who is
@ -56,6 +64,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@condition = args[:condition] if args.key?(:condition)
@members = args[:members] if args.key?(:members) @members = args[:members] if args.key?(:members)
@role = args[:role] if args.key?(:role) @role = args[:role] if args.key?(:role)
end end
@ -462,6 +471,53 @@ module Google
end end
end end
# Represents an expression text. Example:
# title: "User account presence"
# description: "Determines whether the request has a user account"
# expression: "size(request.user) > 0"
class Expr
include Google::Apis::Core::Hashable
# An optional description of the expression. This is a longer text which
# describes the expression, e.g. when hovered over it in a UI.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Textual representation of an expression in
# Common Expression Language syntax.
# The application context of the containing message determines which
# well-known feature set of CEL is supported.
# Corresponds to the JSON property `expression`
# @return [String]
attr_accessor :expression
# An optional string indicating the location of the expression for error
# reporting, e.g. a file name and a position in the file.
# Corresponds to the JSON property `location`
# @return [String]
attr_accessor :location
# An optional title for the expression, i.e. a short string describing
# its purpose. This can be used e.g. in UIs which allow to enter the
# expression.
# Corresponds to the JSON property `title`
# @return [String]
attr_accessor :title
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@description = args[:description] if args.key?(:description)
@expression = args[:expression] if args.key?(:expression)
@location = args[:location] if args.key?(:location)
@title = args[:title] if args.key?(:title)
end
end
# Request message for `GetIamPolicy` method. # Request message for `GetIamPolicy` method.
class GetIamPolicyRequest class GetIamPolicyRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -70,6 +70,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class Expr
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GetIamPolicyRequest class GetIamPolicyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -181,6 +187,8 @@ module Google
class Binding class Binding
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :condition, as: 'condition', class: Google::Apis::CloudiotV1::Expr, decorator: Google::Apis::CloudiotV1::Expr::Representation
collection :members, as: 'members' collection :members, as: 'members'
property :role, as: 'role' property :role, as: 'role'
end end
@ -270,6 +278,16 @@ module Google
end end
end end
class Expr
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :expression, as: 'expression'
property :location, as: 'location'
property :title, as: 'title'
end
end
class GetIamPolicyRequest class GetIamPolicyRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -649,6 +649,361 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets the access control policy for a resource.
# Returns an empty policy if the resource exists and does not have a policy
# set.
# @param [String] resource
# REQUIRED: The resource for which the policy is being requested.
# See the operation documentation for the appropriate value for this field.
# @param [Google::Apis::CloudiotV1::GetIamPolicyRequest] get_iam_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudiotV1::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudiotV1::Policy]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_group_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
command.request_representation = Google::Apis::CloudiotV1::GetIamPolicyRequest::Representation
command.request_object = get_iam_policy_request_object
command.response_representation = Google::Apis::CloudiotV1::Policy::Representation
command.response_class = Google::Apis::CloudiotV1::Policy
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Sets the access control policy on the specified resource. Replaces any
# existing policy.
# @param [String] resource
# REQUIRED: The resource for which the policy is being specified.
# See the operation documentation for the appropriate value for this field.
# @param [Google::Apis::CloudiotV1::SetIamPolicyRequest] set_iam_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudiotV1::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudiotV1::Policy]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def set_group_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
command.request_representation = Google::Apis::CloudiotV1::SetIamPolicyRequest::Representation
command.request_object = set_iam_policy_request_object
command.response_representation = Google::Apis::CloudiotV1::Policy::Representation
command.response_class = Google::Apis::CloudiotV1::Policy
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns permissions that a caller has on the specified resource.
# If the resource does not exist, this will return an empty set of
# permissions, not a NOT_FOUND error.
# @param [String] resource
# REQUIRED: The resource for which the policy detail is being requested.
# See the operation documentation for the appropriate value for this field.
# @param [Google::Apis::CloudiotV1::TestIamPermissionsRequest] test_iam_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudiotV1::TestIamPermissionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudiotV1::TestIamPermissionsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def test_group_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
command.request_representation = Google::Apis::CloudiotV1::TestIamPermissionsRequest::Representation
command.request_object = test_iam_permissions_request_object
command.response_representation = Google::Apis::CloudiotV1::TestIamPermissionsResponse::Representation
command.response_class = Google::Apis::CloudiotV1::TestIamPermissionsResponse
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets details about a device.
# @param [String] name
# 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
# Available to 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::CloudiotV1::Device] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudiotV1::Device]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_group_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)
end
# List devices in a device registry.
# @param [String] parent
# The device registry path. Required. For example,
# `projects/my-project/locations/us-central1/registries/my-registry`.
# @param [Array<String>, String] device_ids
# A list of device string identifiers. If empty, it will ignore this field.
# For example, `['device0', 'device12']`. This field cannot hold more than
# 10,000 entries.
# @param [Array<Fixnum>, Fixnum] device_num_ids
# A list of device numerical ids. If empty, it will ignore this field. This
# field cannot hold more than 10,000 entries.
# @param [String] field_mask
# The fields of the `Device` resource to be returned in the response. The
# fields `id`, and `num_id` are always returned by default, along with any
# other fields specified.
# @param [Fixnum] page_size
# The maximum number of devices to return in the response. If this value
# is zero, the service will select a default size. A call may return fewer
# objects than requested, but if there is a non-empty `page_token`, it
# indicates that more entries are available.
# @param [String] page_token
# The value returned by the last `ListDevicesResponse`; indicates
# that this is a continuation of a prior `ListDevices` 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::CloudiotV1::ListDevicesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudiotV1::ListDevicesResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_registry_group_devices(parent, device_ids: nil, device_num_ids: nil, field_mask: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+parent}/devices', options)
command.response_representation = Google::Apis::CloudiotV1::ListDevicesResponse::Representation
command.response_class = Google::Apis::CloudiotV1::ListDevicesResponse
command.params['parent'] = parent unless parent.nil?
command.query['deviceIds'] = device_ids unless device_ids.nil?
command.query['deviceNumIds'] = device_num_ids unless device_num_ids.nil?
command.query['fieldMask'] = field_mask unless field_mask.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
# Modifies the configuration for the device, which is eventually sent from
# the Cloud IoT Core servers. Returns the modified configuration version and
# its metadata.
# @param [String] name
# 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 [Google::Apis::CloudiotV1::ModifyCloudToDeviceConfigRequest] modify_cloud_to_device_config_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudiotV1::DeviceConfig] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudiotV1::DeviceConfig]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def modify_project_location_registry_group_device_cloud_to_device_config(name, modify_cloud_to_device_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+name}:modifyCloudToDeviceConfig', options)
command.request_representation = Google::Apis::CloudiotV1::ModifyCloudToDeviceConfigRequest::Representation
command.request_object = modify_cloud_to_device_config_request_object
command.response_representation = Google::Apis::CloudiotV1::DeviceConfig::Representation
command.response_class = Google::Apis::CloudiotV1::DeviceConfig
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
# Updates a device.
# @param [String] name
# The resource path name. For example,
# `projects/p1/locations/us-central1/registries/registry0/devices/dev0` or
# `projects/p1/locations/us-central1/registries/registry0/devices/`num_id``.
# When `name` is populated as a response from the service, it always ends
# in the device numeric ID.
# @param [Google::Apis::CloudiotV1::Device] device_object
# @param [String] update_mask
# Only updates the `device` 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: `credentials`, `blocked`, and `metadata`
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to 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::CloudiotV1::Device] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudiotV1::Device]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_registry_group_device(name, device_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::CloudiotV1::Device::Representation
command.request_object = device_object
command.response_representation = Google::Apis::CloudiotV1::Device::Representation
command.response_class = Google::Apis::CloudiotV1::Device
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
# Lists the last few versions of the device configuration in descending
# order (i.e.: newest first).
# @param [String] name
# 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 [Fixnum] num_versions
# The number of versions to list. Versions are listed in decreasing order of
# the version number. The maximum number of versions retained is 10. If this
# value is zero, it will return all the versions available.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to 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::CloudiotV1::ListDeviceConfigVersionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudiotV1::ListDeviceConfigVersionsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_registry_group_device_config_versions(name, num_versions: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}/configVersions', options)
command.response_representation = Google::Apis::CloudiotV1::ListDeviceConfigVersionsResponse::Representation
command.response_class = Google::Apis::CloudiotV1::ListDeviceConfigVersionsResponse
command.params['name'] = name unless name.nil?
command.query['numVersions'] = num_versions unless num_versions.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists the last few versions of the device state in descending order (i.e.:
# newest first).
# @param [String] name
# 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 [Fixnum] num_states
# The number of states to list. States are listed in descending order of
# update time. The maximum number of states retained is 10. If this
# value is zero, it will return all the states available.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to 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::CloudiotV1::ListDeviceStatesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudiotV1::ListDeviceStatesResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_registry_group_device_states(name, num_states: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}/states', options)
command.response_representation = Google::Apis::CloudiotV1::ListDeviceStatesResponse::Representation
command.response_class = Google::Apis::CloudiotV1::ListDeviceStatesResponse
command.params['name'] = name unless name.nil?
command.query['numStates'] = num_states unless num_states.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
protected protected
def apply_command_defaults(command) def apply_command_defaults(command)

View File

@ -20,13 +20,16 @@ module Google
module Apis module Apis
# Cloud Key Management Service (KMS) API # Cloud Key Management Service (KMS) API
# #
# Manages encryption for your cloud services the same way you do on-premises. # Cloud KMS allows you to keep cryptographic keys in one central cloud service,
# You can generate, use, rotate, and destroy AES256 encryption keys. # for direct use by other cloud resources and applications. With Cloud KMS you
# are the ultimate custodian of your data, you can manage encryption in the
# cloud the same way you do on-premises, and you have a provable and monitorable
# root of trust over your data.
# #
# @see https://cloud.google.com/kms/ # @see https://cloud.google.com/kms/
module CloudkmsV1 module CloudkmsV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20180702' REVISION = '20180821'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -22,6 +22,86 @@ module Google
module Apis module Apis
module CloudkmsV1 module CloudkmsV1
# Request message for KeyManagementService.AsymmetricDecrypt.
class AsymmetricDecryptRequest
include Google::Apis::Core::Hashable
# Required. The data encrypted with the named CryptoKeyVersion's public
# key using OAEP.
# Corresponds to the JSON property `ciphertext`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
attr_accessor :ciphertext
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@ciphertext = args[:ciphertext] if args.key?(:ciphertext)
end
end
# Response message for KeyManagementService.AsymmetricDecrypt.
class AsymmetricDecryptResponse
include Google::Apis::Core::Hashable
# The decrypted data originally encrypted with the matching public key.
# Corresponds to the JSON property `plaintext`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
attr_accessor :plaintext
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@plaintext = args[:plaintext] if args.key?(:plaintext)
end
end
# Request message for KeyManagementService.AsymmetricSign.
class AsymmetricSignRequest
include Google::Apis::Core::Hashable
# A Digest holds a cryptographic message digest.
# Corresponds to the JSON property `digest`
# @return [Google::Apis::CloudkmsV1::Digest]
attr_accessor :digest
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@digest = args[:digest] if args.key?(:digest)
end
end
# Response message for KeyManagementService.AsymmetricSign.
class AsymmetricSignResponse
include Google::Apis::Core::Hashable
# The created signature.
# Corresponds to the JSON property `signature`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
attr_accessor :signature
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@signature = args[:signature] if args.key?(:signature)
end
end
# Specifies the audit configuration for a service. # Specifies the audit configuration for a service.
# The configuration determines which permission types are logged, and what # The configuration determines which permission types are logged, and what
# identities, if any, are exempted from logging. # identities, if any, are exempted from logging.
@ -142,6 +222,14 @@ module Google
class Binding class Binding
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Represents an expression text. Example:
# title: "User account presence"
# description: "Determines whether the request has a user account"
# expression: "size(request.user) > 0"
# Corresponds to the JSON property `condition`
# @return [Google::Apis::CloudkmsV1::Expr]
attr_accessor :condition
# Specifies the identities requesting access for a Cloud Platform resource. # Specifies the identities requesting access for a Cloud Platform resource.
# `members` can have the following values: # `members` can have the following values:
# * `allUsers`: A special identifier that represents anyone who is # * `allUsers`: A special identifier that represents anyone who is
@ -172,6 +260,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@condition = args[:condition] if args.key?(:condition)
@members = args[:members] if args.key?(:members) @members = args[:members] if args.key?(:members)
@role = args[:role] if args.key?(:role) @role = args[:role] if args.key?(:role)
end end
@ -208,25 +297,26 @@ module Google
# CreateCryptoKeyVersion and # CreateCryptoKeyVersion and
# UpdateCryptoKeyPrimaryVersion # UpdateCryptoKeyPrimaryVersion
# do not affect next_rotation_time. # do not affect next_rotation_time.
# Keys with purpose
# ENCRYPT_DECRYPT support
# automatic rotation. For other keys, this field must be omitted.
# Corresponds to the JSON property `nextRotationTime` # Corresponds to the JSON property `nextRotationTime`
# @return [String] # @return [String]
attr_accessor :next_rotation_time attr_accessor :next_rotation_time
# A CryptoKeyVersion represents an individual cryptographic key, and the # A CryptoKeyVersion represents an individual cryptographic key, and the
# associated key material. # associated key material.
# It can be used for cryptographic operations either directly, or via its # An ENABLED version can be
# parent CryptoKey, in which case the server will choose the appropriate # used for cryptographic operations.
# version for the operation.
# For security reasons, the raw cryptographic key material represented by a # For security reasons, the raw cryptographic key material represented by a
# CryptoKeyVersion can never be viewed or exported. It can only be used to # CryptoKeyVersion can never be viewed or exported. It can only be used to
# encrypt or decrypt data when an authorized user or application invokes Cloud # encrypt, decrypt, or sign data when an authorized user or application invokes
# KMS. # Cloud KMS.
# Corresponds to the JSON property `primary` # Corresponds to the JSON property `primary`
# @return [Google::Apis::CloudkmsV1::CryptoKeyVersion] # @return [Google::Apis::CloudkmsV1::CryptoKeyVersion]
attr_accessor :primary attr_accessor :primary
# The immutable purpose of this CryptoKey. Currently, the only acceptable # The immutable purpose of this CryptoKey.
# purpose is ENCRYPT_DECRYPT.
# Corresponds to the JSON property `purpose` # Corresponds to the JSON property `purpose`
# @return [String] # @return [String]
attr_accessor :purpose attr_accessor :purpose
@ -234,10 +324,21 @@ module Google
# next_rotation_time will be advanced by this period when the service # next_rotation_time will be advanced by this period when the service
# automatically rotates a key. Must be at least one day. # automatically rotates a key. Must be at least one day.
# If rotation_period is set, next_rotation_time must also be set. # If rotation_period is set, next_rotation_time must also be set.
# Keys with purpose
# ENCRYPT_DECRYPT support
# automatic rotation. For other keys, this field must be omitted.
# Corresponds to the JSON property `rotationPeriod` # Corresponds to the JSON property `rotationPeriod`
# @return [String] # @return [String]
attr_accessor :rotation_period attr_accessor :rotation_period
# A CryptoKeyVersionTemplate specifies the properties to use when creating
# a new CryptoKeyVersion, either manually with
# CreateCryptoKeyVersion or
# automatically as a result of auto-rotation.
# Corresponds to the JSON property `versionTemplate`
# @return [Google::Apis::CloudkmsV1::CryptoKeyVersionTemplate]
attr_accessor :version_template
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -251,21 +352,32 @@ module Google
@primary = args[:primary] if args.key?(:primary) @primary = args[:primary] if args.key?(:primary)
@purpose = args[:purpose] if args.key?(:purpose) @purpose = args[:purpose] if args.key?(:purpose)
@rotation_period = args[:rotation_period] if args.key?(:rotation_period) @rotation_period = args[:rotation_period] if args.key?(:rotation_period)
@version_template = args[:version_template] if args.key?(:version_template)
end end
end end
# A CryptoKeyVersion represents an individual cryptographic key, and the # A CryptoKeyVersion represents an individual cryptographic key, and the
# associated key material. # associated key material.
# It can be used for cryptographic operations either directly, or via its # An ENABLED version can be
# parent CryptoKey, in which case the server will choose the appropriate # used for cryptographic operations.
# version for the operation.
# For security reasons, the raw cryptographic key material represented by a # For security reasons, the raw cryptographic key material represented by a
# CryptoKeyVersion can never be viewed or exported. It can only be used to # CryptoKeyVersion can never be viewed or exported. It can only be used to
# encrypt or decrypt data when an authorized user or application invokes Cloud # encrypt, decrypt, or sign data when an authorized user or application invokes
# KMS. # Cloud KMS.
class CryptoKeyVersion class CryptoKeyVersion
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Output only. The CryptoKeyVersionAlgorithm that this
# CryptoKeyVersion supports.
# Corresponds to the JSON property `algorithm`
# @return [String]
attr_accessor :algorithm
# Contains an HSM-generated attestation about a key operation.
# Corresponds to the JSON property `attestation`
# @return [Google::Apis::CloudkmsV1::KeyOperationAttestation]
attr_accessor :attestation
# Output only. The time at which this CryptoKeyVersion was created. # Output only. The time at which this CryptoKeyVersion was created.
# Corresponds to the JSON property `createTime` # Corresponds to the JSON property `createTime`
# @return [String] # @return [String]
@ -285,12 +397,24 @@ module Google
# @return [String] # @return [String]
attr_accessor :destroy_time attr_accessor :destroy_time
# Output only. The time this CryptoKeyVersion's key material was
# generated.
# Corresponds to the JSON property `generateTime`
# @return [String]
attr_accessor :generate_time
# Output only. The resource name for this CryptoKeyVersion in the format # Output only. The resource name for this CryptoKeyVersion in the format
# `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`. # `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# Output only. The ProtectionLevel describing how crypto operations are
# performed with this CryptoKeyVersion.
# Corresponds to the JSON property `protectionLevel`
# @return [String]
attr_accessor :protection_level
# The current state of the CryptoKeyVersion. # The current state of the CryptoKeyVersion.
# Corresponds to the JSON property `state` # Corresponds to the JSON property `state`
# @return [String] # @return [String]
@ -302,14 +426,51 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@algorithm = args[:algorithm] if args.key?(:algorithm)
@attestation = args[:attestation] if args.key?(:attestation)
@create_time = args[:create_time] if args.key?(:create_time) @create_time = args[:create_time] if args.key?(:create_time)
@destroy_event_time = args[:destroy_event_time] if args.key?(:destroy_event_time) @destroy_event_time = args[:destroy_event_time] if args.key?(:destroy_event_time)
@destroy_time = args[:destroy_time] if args.key?(:destroy_time) @destroy_time = args[:destroy_time] if args.key?(:destroy_time)
@generate_time = args[:generate_time] if args.key?(:generate_time)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@protection_level = args[:protection_level] if args.key?(:protection_level)
@state = args[:state] if args.key?(:state) @state = args[:state] if args.key?(:state)
end end
end end
# A CryptoKeyVersionTemplate specifies the properties to use when creating
# a new CryptoKeyVersion, either manually with
# CreateCryptoKeyVersion or
# automatically as a result of auto-rotation.
class CryptoKeyVersionTemplate
include Google::Apis::Core::Hashable
# Required. Algorithm to use
# when creating a CryptoKeyVersion based on this template.
# For backwards compatibility, GOOGLE_SYMMETRIC_ENCRYPTION is implied if both
# this field is omitted and CryptoKey.purpose is
# ENCRYPT_DECRYPT.
# Corresponds to the JSON property `algorithm`
# @return [String]
attr_accessor :algorithm
# ProtectionLevel to use when creating a CryptoKeyVersion based on
# this template. Immutable. Defaults to SOFTWARE.
# Corresponds to the JSON property `protectionLevel`
# @return [String]
attr_accessor :protection_level
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@algorithm = args[:algorithm] if args.key?(:algorithm)
@protection_level = args[:protection_level] if args.key?(:protection_level)
end
end
# Request message for KeyManagementService.Decrypt. # Request message for KeyManagementService.Decrypt.
class DecryptRequest class DecryptRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -372,19 +533,64 @@ module Google
end end
end end
# A Digest holds a cryptographic message digest.
class Digest
include Google::Apis::Core::Hashable
# A message digest produced with the SHA-256 algorithm.
# Corresponds to the JSON property `sha256`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
attr_accessor :sha256
# A message digest produced with the SHA-384 algorithm.
# Corresponds to the JSON property `sha384`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
attr_accessor :sha384
# A message digest produced with the SHA-512 algorithm.
# Corresponds to the JSON property `sha512`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
attr_accessor :sha512
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@sha256 = args[:sha256] if args.key?(:sha256)
@sha384 = args[:sha384] if args.key?(:sha384)
@sha512 = args[:sha512] if args.key?(:sha512)
end
end
# Request message for KeyManagementService.Encrypt. # Request message for KeyManagementService.Encrypt.
class EncryptRequest class EncryptRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Optional data that, if specified, must also be provided during decryption # Optional data that, if specified, must also be provided during decryption
# through DecryptRequest.additional_authenticated_data. Must be no # through DecryptRequest.additional_authenticated_data.
# larger than 64KiB. # The maximum size depends on the key version's
# protection_level. For
# SOFTWARE keys, the AAD must be no larger than
# 64KiB. For HSM keys, the combined length of the
# plaintext and additional_authenticated_data fields must be no larger than
# 8KiB.
# Corresponds to the JSON property `additionalAuthenticatedData` # Corresponds to the JSON property `additionalAuthenticatedData`
# NOTE: Values are automatically base64 encoded/decoded in the client library. # NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String] # @return [String]
attr_accessor :additional_authenticated_data attr_accessor :additional_authenticated_data
# Required. The data to encrypt. Must be no larger than 64KiB. # Required. The data to encrypt. Must be no larger than 64KiB.
# The maximum size depends on the key version's
# protection_level. For
# SOFTWARE keys, the plaintext must be no larger
# than 64KiB. For HSM keys, the combined length of the
# plaintext and additional_authenticated_data fields must be no larger than
# 8KiB.
# Corresponds to the JSON property `plaintext` # Corresponds to the JSON property `plaintext`
# NOTE: Values are automatically base64 encoded/decoded in the client library. # NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String] # @return [String]
@ -427,6 +633,80 @@ module Google
end end
end end
# Represents an expression text. Example:
# title: "User account presence"
# description: "Determines whether the request has a user account"
# expression: "size(request.user) > 0"
class Expr
include Google::Apis::Core::Hashable
# An optional description of the expression. This is a longer text which
# describes the expression, e.g. when hovered over it in a UI.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Textual representation of an expression in
# Common Expression Language syntax.
# The application context of the containing message determines which
# well-known feature set of CEL is supported.
# Corresponds to the JSON property `expression`
# @return [String]
attr_accessor :expression
# An optional string indicating the location of the expression for error
# reporting, e.g. a file name and a position in the file.
# Corresponds to the JSON property `location`
# @return [String]
attr_accessor :location
# An optional title for the expression, i.e. a short string describing
# its purpose. This can be used e.g. in UIs which allow to enter the
# expression.
# Corresponds to the JSON property `title`
# @return [String]
attr_accessor :title
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@description = args[:description] if args.key?(:description)
@expression = args[:expression] if args.key?(:expression)
@location = args[:location] if args.key?(:location)
@title = args[:title] if args.key?(:title)
end
end
# Contains an HSM-generated attestation about a key operation.
class KeyOperationAttestation
include Google::Apis::Core::Hashable
# Output only. The attestation data provided by the HSM when the key
# operation was performed.
# Corresponds to the JSON property `content`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
attr_accessor :content
# Output only. The format of the attestation data.
# Corresponds to the JSON property `format`
# @return [String]
attr_accessor :format
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@content = args[:content] if args.key?(:content)
@format = args[:format] if args.key?(:format)
end
end
# A KeyRing is a toplevel logical grouping of CryptoKeys. # A KeyRing is a toplevel logical grouping of CryptoKeys.
class KeyRing class KeyRing
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -623,6 +903,28 @@ module Google
end end
end end
# Cloud KMS metadata for the given google.cloud.location.Location.
class LocationMetadata
include Google::Apis::Core::Hashable
# Indicates whether CryptoKeys with
# protection_level
# HSM can be created in this location.
# Corresponds to the JSON property `hsmAvailable`
# @return [Boolean]
attr_accessor :hsm_available
alias_method :hsm_available?, :hsm_available
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@hsm_available = args[:hsm_available] if args.key?(:hsm_available)
end
end
# Defines an Identity and Access Management (IAM) policy. It is used to # Defines an Identity and Access Management (IAM) policy. It is used to
# specify access control policies for Cloud Platform resources. # specify access control policies for Cloud Platform resources.
# A `Policy` consists of a list of `bindings`. A `binding` binds a list of # A `Policy` consists of a list of `bindings`. A `binding` binds a list of
@ -706,6 +1008,30 @@ module Google
end end
end end
# The public key for a given CryptoKeyVersion. Obtained via
# GetPublicKey.
class PublicKey
include Google::Apis::Core::Hashable
# The public key, encoded in PEM format. For more information, see the
# [RFC 7468](https://tools.ietf.org/html/rfc7468) sections for
# [General Considerations](https://tools.ietf.org/html/rfc7468#section-2) and
# [Textual Encoding of Subject Public Key Info]
# (https://tools.ietf.org/html/rfc7468#section-13).
# Corresponds to the JSON property `pem`
# @return [String]
attr_accessor :pem
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@pem = args[:pem] if args.key?(:pem)
end
end
# Request message for KeyManagementService.RestoreCryptoKeyVersion. # Request message for KeyManagementService.RestoreCryptoKeyVersion.
class RestoreCryptoKeyVersionRequest class RestoreCryptoKeyVersionRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -22,6 +22,30 @@ module Google
module Apis module Apis
module CloudkmsV1 module CloudkmsV1
class AsymmetricDecryptRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AsymmetricDecryptResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AsymmetricSignRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AsymmetricSignResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AuditConfig class AuditConfig
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -52,6 +76,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class CryptoKeyVersionTemplate
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DecryptRequest class DecryptRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -70,6 +100,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class Digest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class EncryptRequest class EncryptRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -82,6 +118,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class Expr
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class KeyOperationAttestation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class KeyRing class KeyRing
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -118,12 +166,24 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class LocationMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Policy class Policy
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class PublicKey
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RestoreCryptoKeyVersionRequest class RestoreCryptoKeyVersionRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -154,6 +214,35 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class AsymmetricDecryptRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :ciphertext, :base64 => true, as: 'ciphertext'
end
end
class AsymmetricDecryptResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :plaintext, :base64 => true, as: 'plaintext'
end
end
class AsymmetricSignRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :digest, as: 'digest', class: Google::Apis::CloudkmsV1::Digest, decorator: Google::Apis::CloudkmsV1::Digest::Representation
end
end
class AsymmetricSignResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :signature, :base64 => true, as: 'signature'
end
end
class AuditConfig class AuditConfig
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -174,6 +263,8 @@ module Google
class Binding class Binding
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :condition, as: 'condition', class: Google::Apis::CloudkmsV1::Expr, decorator: Google::Apis::CloudkmsV1::Expr::Representation
collection :members, as: 'members' collection :members, as: 'members'
property :role, as: 'role' property :role, as: 'role'
end end
@ -190,20 +281,35 @@ module Google
property :purpose, as: 'purpose' property :purpose, as: 'purpose'
property :rotation_period, as: 'rotationPeriod' property :rotation_period, as: 'rotationPeriod'
property :version_template, as: 'versionTemplate', class: Google::Apis::CloudkmsV1::CryptoKeyVersionTemplate, decorator: Google::Apis::CloudkmsV1::CryptoKeyVersionTemplate::Representation
end end
end end
class CryptoKeyVersion class CryptoKeyVersion
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :algorithm, as: 'algorithm'
property :attestation, as: 'attestation', class: Google::Apis::CloudkmsV1::KeyOperationAttestation, decorator: Google::Apis::CloudkmsV1::KeyOperationAttestation::Representation
property :create_time, as: 'createTime' property :create_time, as: 'createTime'
property :destroy_event_time, as: 'destroyEventTime' property :destroy_event_time, as: 'destroyEventTime'
property :destroy_time, as: 'destroyTime' property :destroy_time, as: 'destroyTime'
property :generate_time, as: 'generateTime'
property :name, as: 'name' property :name, as: 'name'
property :protection_level, as: 'protectionLevel'
property :state, as: 'state' property :state, as: 'state'
end end
end end
class CryptoKeyVersionTemplate
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :algorithm, as: 'algorithm'
property :protection_level, as: 'protectionLevel'
end
end
class DecryptRequest class DecryptRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -225,6 +331,15 @@ module Google
end end
end end
class Digest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :sha256, :base64 => true, as: 'sha256'
property :sha384, :base64 => true, as: 'sha384'
property :sha512, :base64 => true, as: 'sha512'
end
end
class EncryptRequest class EncryptRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -241,6 +356,24 @@ module Google
end end
end end
class Expr
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :expression, as: 'expression'
property :location, as: 'location'
property :title, as: 'title'
end
end
class KeyOperationAttestation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :content, :base64 => true, as: 'content'
property :format, as: 'format'
end
end
class KeyRing class KeyRing
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -299,6 +432,13 @@ module Google
end end
end end
class LocationMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :hsm_available, as: 'hsmAvailable'
end
end
class Policy class Policy
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -311,6 +451,13 @@ module Google
end end
end end
class PublicKey
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :pem, as: 'pem'
end
end
class RestoreCryptoKeyVersionRequest class RestoreCryptoKeyVersionRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -22,8 +22,11 @@ module Google
module CloudkmsV1 module CloudkmsV1
# Cloud Key Management Service (KMS) API # Cloud Key Management Service (KMS) API
# #
# Manages encryption for your cloud services the same way you do on-premises. # Cloud KMS allows you to keep cryptographic keys in one central cloud service,
# You can generate, use, rotate, and destroy AES256 encryption keys. # for direct use by other cloud resources and applications. With Cloud KMS you
# are the ultimate custodian of your data, you can manage encryption in the
# cloud the same way you do on-premises, and you have a provable and monitorable
# root of trust over your data.
# #
# @example # @example
# require 'google/apis/cloudkms_v1' # require 'google/apis/cloudkms_v1'
@ -334,7 +337,9 @@ module Google
end end
# Create a new CryptoKey within a KeyRing. # Create a new CryptoKey within a KeyRing.
# CryptoKey.purpose is required. # CryptoKey.purpose and
# CryptoKey.version_template.algorithm
# are required.
# @param [String] parent # @param [String] parent
# Required. The name of the KeyRing associated with the # Required. The name of the KeyRing associated with the
# CryptoKeys. # CryptoKeys.
@ -372,7 +377,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Decrypts data that was protected by Encrypt. # Decrypts data that was protected by Encrypt. The CryptoKey.purpose
# must be ENCRYPT_DECRYPT.
# @param [String] name # @param [String] name
# Required. The resource name of the CryptoKey to use for decryption. # Required. The resource name of the CryptoKey to use for decryption.
# The server will choose the appropriate version. # The server will choose the appropriate version.
@ -407,6 +413,8 @@ module Google
end end
# Encrypts data, so that it can only be recovered by a call to Decrypt. # Encrypts data, so that it can only be recovered by a call to Decrypt.
# The CryptoKey.purpose must be
# ENCRYPT_DECRYPT.
# @param [String] name # @param [String] name
# Required. The resource name of the CryptoKey or CryptoKeyVersion # Required. The resource name of the CryptoKey or CryptoKeyVersion
# to use for encryption. # to use for encryption.
@ -518,6 +526,8 @@ module Google
# @param [String] page_token # @param [String] page_token
# Optional pagination token, returned earlier via # Optional pagination token, returned earlier via
# ListCryptoKeysResponse.next_page_token. # ListCryptoKeysResponse.next_page_token.
# @param [String] version_view
# The fields of the primary version to include in the response.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -535,13 +545,14 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_location_key_ring_crypto_keys(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) def list_project_location_key_ring_crypto_keys(parent, page_size: nil, page_token: nil, version_view: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+parent}/cryptoKeys', options) command = make_simple_command(:get, 'v1/{+parent}/cryptoKeys', options)
command.response_representation = Google::Apis::CloudkmsV1::ListCryptoKeysResponse::Representation command.response_representation = Google::Apis::CloudkmsV1::ListCryptoKeysResponse::Representation
command.response_class = Google::Apis::CloudkmsV1::ListCryptoKeysResponse command.response_class = Google::Apis::CloudkmsV1::ListCryptoKeysResponse
command.params['parent'] = parent unless parent.nil? command.params['parent'] = parent unless parent.nil?
command.query['pageSize'] = page_size unless page_size.nil? command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil? command.query['pageToken'] = page_token unless page_token.nil?
command.query['versionView'] = version_view unless version_view.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
@ -659,6 +670,7 @@ module Google
end end
# Update the version of a CryptoKey that will be used in Encrypt. # Update the version of a CryptoKey that will be used in Encrypt.
# Returns an error if called on an asymmetric key.
# @param [String] name # @param [String] name
# The resource name of the CryptoKey to update. # The resource name of the CryptoKey to update.
# @param [Google::Apis::CloudkmsV1::UpdateCryptoKeyPrimaryVersionRequest] update_crypto_key_primary_version_request_object # @param [Google::Apis::CloudkmsV1::UpdateCryptoKeyPrimaryVersionRequest] update_crypto_key_primary_version_request_object
@ -691,6 +703,77 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Decrypts data that was encrypted with a public key retrieved from
# GetPublicKey corresponding to a CryptoKeyVersion with
# CryptoKey.purpose ASYMMETRIC_DECRYPT.
# @param [String] name
# Required. The resource name of the CryptoKeyVersion to use for
# decryption.
# @param [Google::Apis::CloudkmsV1::AsymmetricDecryptRequest] asymmetric_decrypt_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudkmsV1::AsymmetricDecryptResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudkmsV1::AsymmetricDecryptResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def asymmetric_crypto_key_version_decrypt(name, asymmetric_decrypt_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+name}:asymmetricDecrypt', options)
command.request_representation = Google::Apis::CloudkmsV1::AsymmetricDecryptRequest::Representation
command.request_object = asymmetric_decrypt_request_object
command.response_representation = Google::Apis::CloudkmsV1::AsymmetricDecryptResponse::Representation
command.response_class = Google::Apis::CloudkmsV1::AsymmetricDecryptResponse
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
# Signs data using a CryptoKeyVersion with CryptoKey.purpose
# ASYMMETRIC_SIGN, producing a signature that can be verified with the public
# key retrieved from GetPublicKey.
# @param [String] name
# Required. The resource name of the CryptoKeyVersion to use for signing.
# @param [Google::Apis::CloudkmsV1::AsymmetricSignRequest] asymmetric_sign_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudkmsV1::AsymmetricSignResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudkmsV1::AsymmetricSignResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def asymmetric_crypto_key_version_sign(name, asymmetric_sign_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+name}:asymmetricSign', options)
command.request_representation = Google::Apis::CloudkmsV1::AsymmetricSignRequest::Representation
command.request_object = asymmetric_sign_request_object
command.response_representation = Google::Apis::CloudkmsV1::AsymmetricSignResponse::Representation
command.response_class = Google::Apis::CloudkmsV1::AsymmetricSignResponse
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
# Create a new CryptoKeyVersion in a CryptoKey. # Create a new CryptoKeyVersion in a CryptoKey.
# The server will assign the next sequential id. If unset, # The server will assign the next sequential id. If unset,
# state will be set to # state will be set to
@ -800,6 +883,40 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Returns the public key for the given CryptoKeyVersion. The
# CryptoKey.purpose must be
# ASYMMETRIC_SIGN or
# ASYMMETRIC_DECRYPT.
# @param [String] name
# The name of the CryptoKeyVersion public key to
# get.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudkmsV1::PublicKey] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudkmsV1::PublicKey]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_location_key_ring_crypto_key_crypto_key_version_public_key(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}/publicKey', options)
command.response_representation = Google::Apis::CloudkmsV1::PublicKey::Representation
command.response_class = Google::Apis::CloudkmsV1::PublicKey
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists CryptoKeyVersions. # Lists CryptoKeyVersions.
# @param [String] parent # @param [String] parent
# Required. The resource name of the CryptoKey to list, in the format # Required. The resource name of the CryptoKey to list, in the format
@ -813,6 +930,8 @@ module Google
# @param [String] page_token # @param [String] page_token
# Optional pagination token, returned earlier via # Optional pagination token, returned earlier via
# ListCryptoKeyVersionsResponse.next_page_token. # ListCryptoKeyVersionsResponse.next_page_token.
# @param [String] view
# The fields to include in the response.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -830,13 +949,14 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_location_key_ring_crypto_key_crypto_key_versions(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) def list_project_location_key_ring_crypto_key_crypto_key_versions(parent, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+parent}/cryptoKeyVersions', options) command = make_simple_command(:get, 'v1/{+parent}/cryptoKeyVersions', options)
command.response_representation = Google::Apis::CloudkmsV1::ListCryptoKeyVersionsResponse::Representation command.response_representation = Google::Apis::CloudkmsV1::ListCryptoKeyVersionsResponse::Representation
command.response_class = Google::Apis::CloudkmsV1::ListCryptoKeyVersionsResponse command.response_class = Google::Apis::CloudkmsV1::ListCryptoKeyVersionsResponse
command.params['parent'] = parent unless parent.nil? command.params['parent'] = parent unless parent.nil?
command.query['pageSize'] = page_size unless page_size.nil? command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil? command.query['pageToken'] = page_token unless page_token.nil?
command.query['view'] = view unless view.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)

View File

@ -20,12 +20,12 @@ module Google
module Apis module Apis
# Stackdriver Profiler API # Stackdriver Profiler API
# #
# Allows Google services manage the continuous profiling information. # Manages continuous profiling information.
# #
# @see https://cloud.google.com/ # @see https://cloud.google.com/profiler/
module CloudprofilerV2 module CloudprofilerV2
VERSION = 'V2' VERSION = 'V2'
REVISION = '20180625' REVISION = '20180730'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -34,11 +34,6 @@ module Google
# @return [Google::Apis::CloudprofilerV2::Deployment] # @return [Google::Apis::CloudprofilerV2::Deployment]
attr_accessor :deployment attr_accessor :deployment
# Profile resource.
# Corresponds to the JSON property `profile`
# @return [Google::Apis::CloudprofilerV2::Profile]
attr_accessor :profile
# One or more profile types that the agent is capable of providing. # One or more profile types that the agent is capable of providing.
# Corresponds to the JSON property `profileType` # Corresponds to the JSON property `profileType`
# @return [Array<String>] # @return [Array<String>]
@ -51,7 +46,6 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@deployment = args[:deployment] if args.key?(:deployment) @deployment = args[:deployment] if args.key?(:deployment)
@profile = args[:profile] if args.key?(:profile)
@profile_type = args[:profile_type] if args.key?(:profile_type) @profile_type = args[:profile_type] if args.key?(:profile_type)
end end
end end

View File

@ -45,8 +45,6 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :deployment, as: 'deployment', class: Google::Apis::CloudprofilerV2::Deployment, decorator: Google::Apis::CloudprofilerV2::Deployment::Representation property :deployment, as: 'deployment', class: Google::Apis::CloudprofilerV2::Deployment, decorator: Google::Apis::CloudprofilerV2::Deployment::Representation
property :profile, as: 'profile', class: Google::Apis::CloudprofilerV2::Profile, decorator: Google::Apis::CloudprofilerV2::Profile::Representation
collection :profile_type, as: 'profileType' collection :profile_type, as: 'profileType'
end end
end end

View File

@ -22,7 +22,7 @@ module Google
module CloudprofilerV2 module CloudprofilerV2
# Stackdriver Profiler API # Stackdriver Profiler API
# #
# Allows Google services manage the continuous profiling information. # Manages continuous profiling information.
# #
# @example # @example
# require 'google/apis/cloudprofiler_v2' # require 'google/apis/cloudprofiler_v2'
@ -30,7 +30,7 @@ module Google
# Cloudprofiler = Google::Apis::CloudprofilerV2 # Alias the module # Cloudprofiler = Google::Apis::CloudprofilerV2 # Alias the module
# service = Cloudprofiler::CloudProfilerService.new # service = Cloudprofiler::CloudProfilerService.new
# #
# @see https://cloud.google.com/ # @see https://cloud.google.com/profiler/
class CloudProfilerService < Google::Apis::Core::BaseService class CloudProfilerService < Google::Apis::Core::BaseService
# @return [String] # @return [String]
# API key. Your API key identifies your project and provides you with API access, # API key. Your API key identifies your project and provides you with API access,

View File

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

View File

@ -164,6 +164,14 @@ module Google
class Binding class Binding
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Represents an expression text. Example:
# title: "User account presence"
# description: "Determines whether the request has a user account"
# expression: "size(request.user) > 0"
# Corresponds to the JSON property `condition`
# @return [Google::Apis::CloudresourcemanagerV1::Expr]
attr_accessor :condition
# Specifies the identities requesting access for a Cloud Platform resource. # Specifies the identities requesting access for a Cloud Platform resource.
# `members` can have the following values: # `members` can have the following values:
# * `allUsers`: A special identifier that represents anyone who is # * `allUsers`: A special identifier that represents anyone who is
@ -194,6 +202,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@condition = args[:condition] if args.key?(:condition)
@members = args[:members] if args.key?(:members) @members = args[:members] if args.key?(:members)
@role = args[:role] if args.key?(:role) @role = args[:role] if args.key?(:role)
end end
@ -394,6 +403,53 @@ module Google
end end
end end
# Represents an expression text. Example:
# title: "User account presence"
# description: "Determines whether the request has a user account"
# expression: "size(request.user) > 0"
class Expr
include Google::Apis::Core::Hashable
# An optional description of the expression. This is a longer text which
# describes the expression, e.g. when hovered over it in a UI.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Textual representation of an expression in
# Common Expression Language syntax.
# The application context of the containing message determines which
# well-known feature set of CEL is supported.
# Corresponds to the JSON property `expression`
# @return [String]
attr_accessor :expression
# An optional string indicating the location of the expression for error
# reporting, e.g. a file name and a position in the file.
# Corresponds to the JSON property `location`
# @return [String]
attr_accessor :location
# An optional title for the expression, i.e. a short string describing
# its purpose. This can be used e.g. in UIs which allow to enter the
# expression.
# Corresponds to the JSON property `title`
# @return [String]
attr_accessor :title
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@description = args[:description] if args.key?(:description)
@expression = args[:expression] if args.key?(:expression)
@location = args[:location] if args.key?(:location)
@title = args[:title] if args.key?(:title)
end
end
# Metadata describing a long running folder operation # Metadata describing a long running folder operation
class FolderOperation class FolderOperation
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1455,7 +1511,7 @@ module Google
attr_accessor :id attr_accessor :id
# Required field representing the resource type this id is for. # Required field representing the resource type this id is for.
# At present, the valid types are: "organization" # At present, the valid types are: "organization" and "folder".
# Corresponds to the JSON property `type` # Corresponds to the JSON property `type`
# @return [String] # @return [String]
attr_accessor :type attr_accessor :type

View File

@ -76,6 +76,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class Expr
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class FolderOperation class FolderOperation
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -302,6 +308,8 @@ module Google
class Binding class Binding
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :condition, as: 'condition', class: Google::Apis::CloudresourcemanagerV1::Expr, decorator: Google::Apis::CloudresourcemanagerV1::Expr::Representation
collection :members, as: 'members' collection :members, as: 'members'
property :role, as: 'role' property :role, as: 'role'
end end
@ -349,6 +357,16 @@ module Google
end end
end end
class Expr
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :expression, as: 'expression'
property :location, as: 'location'
property :title, as: 'title'
end
end
class FolderOperation class FolderOperation
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

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

View File

@ -164,6 +164,14 @@ module Google
class Binding class Binding
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Represents an expression text. Example:
# title: "User account presence"
# description: "Determines whether the request has a user account"
# expression: "size(request.user) > 0"
# Corresponds to the JSON property `condition`
# @return [Google::Apis::CloudresourcemanagerV1beta1::Expr]
attr_accessor :condition
# Specifies the identities requesting access for a Cloud Platform resource. # Specifies the identities requesting access for a Cloud Platform resource.
# `members` can have the following values: # `members` can have the following values:
# * `allUsers`: A special identifier that represents anyone who is # * `allUsers`: A special identifier that represents anyone who is
@ -194,6 +202,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@condition = args[:condition] if args.key?(:condition)
@members = args[:members] if args.key?(:members) @members = args[:members] if args.key?(:members)
@role = args[:role] if args.key?(:role) @role = args[:role] if args.key?(:role)
end end
@ -218,6 +227,53 @@ module Google
end end
end end
# Represents an expression text. Example:
# title: "User account presence"
# description: "Determines whether the request has a user account"
# expression: "size(request.user) > 0"
class Expr
include Google::Apis::Core::Hashable
# An optional description of the expression. This is a longer text which
# describes the expression, e.g. when hovered over it in a UI.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Textual representation of an expression in
# Common Expression Language syntax.
# The application context of the containing message determines which
# well-known feature set of CEL is supported.
# Corresponds to the JSON property `expression`
# @return [String]
attr_accessor :expression
# An optional string indicating the location of the expression for error
# reporting, e.g. a file name and a position in the file.
# Corresponds to the JSON property `location`
# @return [String]
attr_accessor :location
# An optional title for the expression, i.e. a short string describing
# its purpose. This can be used e.g. in UIs which allow to enter the
# expression.
# Corresponds to the JSON property `title`
# @return [String]
attr_accessor :title
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@description = args[:description] if args.key?(:description)
@expression = args[:expression] if args.key?(:expression)
@location = args[:location] if args.key?(:location)
@title = args[:title] if args.key?(:title)
end
end
# Metadata describing a long running folder operation # Metadata describing a long running folder operation
class FolderOperation class FolderOperation
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

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