Add dfareporting_v2_5, regenerate APIs

This commit is contained in:
Steve Bazyl 2016-06-30 15:17:37 -06:00
parent b4842fc28b
commit 24ef90b583
48 changed files with 28372 additions and 2741 deletions

View File

@ -643,61 +643,6 @@
"/deploymentmanager:v2beta2/OperationsListResponse": list_operations_response "/deploymentmanager:v2beta2/OperationsListResponse": list_operations_response
"/deploymentmanager:v2beta2/ResourcesListResponse": list_resources_response "/deploymentmanager:v2beta2/ResourcesListResponse": list_resources_response
"/deploymentmanager:v2beta2/TypesListResponse": list_types_response "/deploymentmanager:v2beta2/TypesListResponse": list_types_response
"/dfareporting:v2.1/AccountPermissionGroupsListResponse": list_account_permission_groups_response
"/dfareporting:v2.1/AccountPermissionsListResponse": list_account_permissions_response
"/dfareporting:v2.1/AccountUserProfilesListResponse": list_account_user_profiles_response
"/dfareporting:v2.1/AccountsListResponse": list_accounts_response
"/dfareporting:v2.1/AdsListResponse": list_ads_response
"/dfareporting:v2.1/AdvertiserGroupsListResponse": list_advertiser_groups_response
"/dfareporting:v2.1/AdvertisersListResponse": list_advertisers_response
"/dfareporting:v2.1/BrowsersListResponse": list_browsers_response
"/dfareporting:v2.1/CampaignCreativeAssociationsListResponse": list_campaign_creative_associations_response
"/dfareporting:v2.1/CampaignsListResponse": list_campaigns_response
"/dfareporting:v2.1/ChangeLog/objectId": obj_id
"/dfareporting:v2.1/ChangeLogsListResponse": list_change_logs_response
"/dfareporting:v2.1/CitiesListResponse": list_cities_response
"/dfareporting:v2.1/ConnectionTypesListResponse": list_connection_types_response
"/dfareporting:v2.1/ContentCategoriesListResponse": list_content_categories_response
"/dfareporting:v2.1/CountriesListResponse": list_countries_response
"/dfareporting:v2.1/CreativeFieldValuesListResponse": list_creative_field_values_response
"/dfareporting:v2.1/CreativeFieldsListResponse": list_creative_fields_response
"/dfareporting:v2.1/CreativeGroupsListResponse": list_creative_groups_response
"/dfareporting:v2.1/CreativesListResponse": list_creatives_response
"/dfareporting:v2.1/DimensionValueRequest": dimension_value_request
"/dfareporting:v2.1/DirectorySiteContactsListResponse": list_directory_site_contacts_response
"/dfareporting:v2.1/DirectorySitesListResponse": list_directory_sites_response
"/dfareporting:v2.1/EventTagsListResponse": list_event_tags_response
"/dfareporting:v2.1/FloodlightActivitiesGenerateTagResponse": floodlight_activities_generate_tag_response
"/dfareporting:v2.1/FloodlightActivitiesListResponse": list_floodlight_activities_response
"/dfareporting:v2.1/FloodlightActivityGroupsListResponse": list_floodlight_activity_groups_response
"/dfareporting:v2.1/FloodlightConfigurationsListResponse": list_floodlight_configurations_response
"/dfareporting:v2.1/InventoryItemsListResponse": list_inventory_items_response
"/dfareporting:v2.1/LandingPagesListResponse": list_landing_pages_response
"/dfareporting:v2.1/MetrosListResponse": list_metros_response
"/dfareporting:v2.1/MobileCarriersListResponse": list_mobile_carriers_response
"/dfareporting:v2.1/ObjectFilter/objectIds/object_id": obj_id
"/dfareporting:v2.1/OperatingSystemVersionsListResponse": list_operating_system_versions_response
"/dfareporting:v2.1/OperatingSystemsListResponse": list_operating_systems_response
"/dfareporting:v2.1/OrderDocumentsListResponse": list_order_documents_response
"/dfareporting:v2.1/OrdersListResponse": list_orders_response
"/dfareporting:v2.1/PlacementGroupsListResponse": list_placement_groups_response
"/dfareporting:v2.1/PlacementStrategiesListResponse": list_placement_strategies_response
"/dfareporting:v2.1/PlacementsGenerateTagsResponse": generate_placements_tags_response
"/dfareporting:v2.1/PlacementsListResponse": list_placements_response
"/dfareporting:v2.1/PlatformTypesListResponse": list_platform_types_response
"/dfareporting:v2.1/PostalCodesListResponse": list_postal_codes_response
"/dfareporting:v2.1/ProjectsListResponse": list_projects_response
"/dfareporting:v2.1/RegionsListResponse": list_regions_response
"/dfareporting:v2.1/RemarketingListsListResponse": list_remarketing_lists_response
"/dfareporting:v2.1/SitesListResponse": list_sites_response
"/dfareporting:v2.1/SizesListResponse": list_sizes_response
"/dfareporting:v2.1/SubaccountsListResponse": list_subaccounts_response
"/dfareporting:v2.1/TargetableRemarketingListsListResponse": list_targetable_remarketing_lists_response
"/dfareporting:v2.1/UserRolePermissionGroupsListResponse": list_user_role_permission_groups_response
"/dfareporting:v2.1/UserRolePermissionsListResponse": list_user_role_permissions_response
"/dfareporting:v2.1/UserRolesListResponse": list_user_roles_response
"/dfareporting:v2.1/dfareporting.floodlightActivities.generatetag": generate_floodlight_activity_tag
"/dfareporting:v2.1/dfareporting.placements.generatetags": generate_placement_tags
"/dfareporting:v2.3/AccountPermissionGroupsListResponse": list_account_permission_groups_response "/dfareporting:v2.3/AccountPermissionGroupsListResponse": list_account_permission_groups_response
"/dfareporting:v2.3/AccountPermissionsListResponse": list_account_permissions_response "/dfareporting:v2.3/AccountPermissionsListResponse": list_account_permissions_response
"/dfareporting:v2.3/AccountUserProfilesListResponse": list_account_user_profiles_response "/dfareporting:v2.3/AccountUserProfilesListResponse": list_account_user_profiles_response
@ -753,6 +698,61 @@
"/dfareporting:v2.3/UserRolesListResponse": list_user_roles_response "/dfareporting:v2.3/UserRolesListResponse": list_user_roles_response
"/dfareporting:v2.3/dfareporting.floodlightActivities.generatetag": generate_floodlight_activity_tag "/dfareporting:v2.3/dfareporting.floodlightActivities.generatetag": generate_floodlight_activity_tag
"/dfareporting:v2.3/dfareporting.placements.generatetags": generate_placement_tags "/dfareporting:v2.3/dfareporting.placements.generatetags": generate_placement_tags
"/dfareporting:v2.5/AccountPermissionGroupsListResponse": list_account_permission_groups_response
"/dfareporting:v2.5/AccountPermissionsListResponse": list_account_permissions_response
"/dfareporting:v2.5/AccountUserProfilesListResponse": list_account_user_profiles_response
"/dfareporting:v2.5/AccountsListResponse": list_accounts_response
"/dfareporting:v2.5/AdsListResponse": list_ads_response
"/dfareporting:v2.5/AdvertiserGroupsListResponse": list_advertiser_groups_response
"/dfareporting:v2.5/AdvertisersListResponse": list_advertisers_response
"/dfareporting:v2.5/BrowsersListResponse": list_browsers_response
"/dfareporting:v2.5/CampaignCreativeAssociationsListResponse": list_campaign_creative_associations_response
"/dfareporting:v2.5/CampaignsListResponse": list_campaigns_response
"/dfareporting:v2.5/ChangeLog/objectId": obj_id
"/dfareporting:v2.5/ChangeLogsListResponse": list_change_logs_response
"/dfareporting:v2.5/CitiesListResponse": list_cities_response
"/dfareporting:v2.5/ConnectionTypesListResponse": list_connection_types_response
"/dfareporting:v2.5/ContentCategoriesListResponse": list_content_categories_response
"/dfareporting:v2.5/CountriesListResponse": list_countries_response
"/dfareporting:v2.5/CreativeFieldValuesListResponse": list_creative_field_values_response
"/dfareporting:v2.5/CreativeFieldsListResponse": list_creative_fields_response
"/dfareporting:v2.5/CreativeGroupsListResponse": list_creative_groups_response
"/dfareporting:v2.5/CreativesListResponse": list_creatives_response
"/dfareporting:v2.5/DimensionValueRequest": dimension_value_request
"/dfareporting:v2.5/DirectorySiteContactsListResponse": list_directory_site_contacts_response
"/dfareporting:v2.5/DirectorySitesListResponse": list_directory_sites_response
"/dfareporting:v2.5/EventTagsListResponse": list_event_tags_response
"/dfareporting:v2.5/FloodlightActivitiesGenerateTagResponse": floodlight_activities_generate_tag_response
"/dfareporting:v2.5/FloodlightActivitiesListResponse": list_floodlight_activities_response
"/dfareporting:v2.5/FloodlightActivityGroupsListResponse": list_floodlight_activity_groups_response
"/dfareporting:v2.5/FloodlightConfigurationsListResponse": list_floodlight_configurations_response
"/dfareporting:v2.5/InventoryItemsListResponse": list_inventory_items_response
"/dfareporting:v2.5/LandingPagesListResponse": list_landing_pages_response
"/dfareporting:v2.5/MetrosListResponse": list_metros_response
"/dfareporting:v2.5/MobileCarriersListResponse": list_mobile_carriers_response
"/dfareporting:v2.5/ObjectFilter/objectIds/object_id": obj_id
"/dfareporting:v2.5/OperatingSystemVersionsListResponse": list_operating_system_versions_response
"/dfareporting:v2.5/OperatingSystemsListResponse": list_operating_systems_response
"/dfareporting:v2.5/OrderDocumentsListResponse": list_order_documents_response
"/dfareporting:v2.5/OrdersListResponse": list_orders_response
"/dfareporting:v2.5/PlacementGroupsListResponse": list_placement_groups_response
"/dfareporting:v2.5/PlacementStrategiesListResponse": list_placement_strategies_response
"/dfareporting:v2.5/PlacementsGenerateTagsResponse": generate_placements_tags_response
"/dfareporting:v2.5/PlacementsListResponse": list_placements_response
"/dfareporting:v2.5/PlatformTypesListResponse": list_platform_types_response
"/dfareporting:v2.5/PostalCodesListResponse": list_postal_codes_response
"/dfareporting:v2.5/ProjectsListResponse": list_projects_response
"/dfareporting:v2.5/RegionsListResponse": list_regions_response
"/dfareporting:v2.5/RemarketingListsListResponse": list_remarketing_lists_response
"/dfareporting:v2.5/SitesListResponse": list_sites_response
"/dfareporting:v2.5/SizesListResponse": list_sizes_response
"/dfareporting:v2.5/SubaccountsListResponse": list_subaccounts_response
"/dfareporting:v2.5/TargetableRemarketingListsListResponse": list_targetable_remarketing_lists_response
"/dfareporting:v2.5/UserRolePermissionGroupsListResponse": list_user_role_permission_groups_response
"/dfareporting:v2.5/UserRolePermissionsListResponse": list_user_role_permissions_response
"/dfareporting:v2.5/UserRolesListResponse": list_user_roles_response
"/dfareporting:v2.5/dfareporting.floodlightActivities.generatetag": generate_floodlight_activity_tag
"/dfareporting:v2.5/dfareporting.placements.generatetags": generate_placement_tags
"/discovery:v1/RestDescription/methods": api_methods "/discovery:v1/RestDescription/methods": api_methods
"/discovery:v1/RestResource/methods": api_methods "/discovery:v1/RestResource/methods": api_methods
"/discovery:v1/discovery.apis.getRest": get_rest_api "/discovery:v1/discovery.apis.getRest": get_rest_api

File diff suppressed because it is too large Load Diff

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 = '20160611' REVISION = '20160627'
# 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

@ -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 = '20160611' REVISION = '20160627'
# 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/android/work/play/emm-api # @see https://developers.google.com/android/work/play/emm-api
module AndroidenterpriseV1 module AndroidenterpriseV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20160607' REVISION = '20160627'
# 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

@ -22,6 +22,26 @@ module Google
module Apis module Apis
module AndroidenterpriseV1 module AndroidenterpriseV1
# This represents an enterprise administrator who can manage the enterprise in
# the Google Play for Work Store.
class Administrator
include Google::Apis::Core::Hashable
# The administrator's email address.
# Corresponds to the JSON property `email`
# @return [String]
attr_accessor :email
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@email = args[:email] if args.key?(:email)
end
end
# Represents the list of app restrictions available to be pre-configured for the # Represents the list of app restrictions available to be pre-configured for the
# product. # product.
class AppRestrictionsSchema class AppRestrictionsSchema
@ -49,6 +69,28 @@ module Google
end end
end end
# An event generated when a new app version is uploaded to Google Play and its
# app restrictions schema changed. To fetch the app restrictions schema for an
# app, use Products.getAppRestrictionsSchema on the EMM API.
class AppRestrictionsSchemaChangeEvent
include Google::Apis::Core::Hashable
# The id of the product (e.g. "app:com.google.android.gm") for which the app
# restriction schema changed. This field will always be present.
# Corresponds to the JSON property `productId`
# @return [String]
attr_accessor :product_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@product_id = args[:product_id] if args.key?(:product_id)
end
end
# A restriction in the App Restriction Schema represents a piece of # A restriction in the App Restriction Schema represents a piece of
# configuration that may be pre-applied. # configuration that may be pre-applied.
class AppRestrictionsSchemaRestriction class AppRestrictionsSchemaRestriction
@ -152,6 +194,29 @@ module Google
end end
end end
# An event generated when a new version of an app is uploaded to Google Play.
# Notifications are sent for new public versions only: alpha, beta, or canary
# versions do not generate this event. To fetch up-to-date version history for
# an app, use Products.Get on the EMM API.
class AppUpdateEvent
include Google::Apis::Core::Hashable
# The id of the product (e.g. "app:com.google.android.gm") that was updated.
# This field will always be present.
# Corresponds to the JSON property `productId`
# @return [String]
attr_accessor :product_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@product_id = args[:product_id] if args.key?(:product_id)
end
end
# This represents a single version of the app. # This represents a single version of the app.
class AppVersion class AppVersion
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -206,6 +271,35 @@ module Google
end end
end end
# An AuthenticationToken is used by the EMM's device policy client on a device
# to provision the given EMM-managed user on that device.
class AuthenticationToken
include Google::Apis::Core::Hashable
# Identifies what kind of resource this is. Value: the fixed string "
# androidenterprise#authenticationToken".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The authentication token to be passed to the device policy client on the
# device where it can be used to provision the account for which this token was
# generated.
# Corresponds to the JSON property `token`
# @return [String]
attr_accessor :token
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@kind = args[:kind] if args.key?(:kind)
@token = args[:token] if args.key?(:token)
end
end
# A collection resource defines a named set of apps that is visible to a set of # A collection resource defines a named set of apps that is visible to a set of
# users in the Google Play Store app running on those users' managed devices. # users in the Google Play Store app running on those users' managed devices.
# Those users can then install any of those apps if they wish (which will # Those users can then install any of those apps if they wish (which will
@ -417,33 +511,31 @@ module Google
end end
end end
# An enterprise resource represents a binding between an organization and their # An enterprise resource represents the binding between an EMM and a specific
# EMM. # organization.
# To create an enterprise, an admin of the enterprise must first go through a # That binding can be instantiated in one of two different ways using this API
# Play for Work sign-up flow. At the end of this the admin will be presented # as follows:
# with a token (a short opaque alphanumeric string). They must then present this #
# to the EMM, who then supplies it to the enroll method. Until this is done the # - For Google managed domain customers, the process involves using Enterprises.
# EMM will not have any access to the enterprise. # enroll and Enterprises.setAccount (in conjunction with artifacts obtained from
# After calling enroll the EMM should call setAccount to specify the service # the Admin console and the Google Developers console) and submitted to the EMM
# account that will be allowed to act on behalf of the enterprise, which will be # through a more-or-less manual process.
# required for access to the enterprise's data through this API. Only one call # - An alternative process that takes advantage of Google-provided mechanisms (
# of setAccount is allowed for a given enterprise; the only way to change the # Android for Work Sign-up UI) that expedite the process involves Enterprises.
# account later is to unenroll the enterprise and enroll it again (obtaining a # generateSignupUrl, Enterprises.completeSignup, Enterprises.getServiceAccount (
# new token). # optional), and Enterprises.setAccount.
# The EMM can unenroll an enterprise in order to sever the binding between them. # The overall processes are very different and involve different identity models,
# Re-enrolling an enterprise is possible, but requires a new token to be # but as an EMM, you can support either or both approaches in your EMM console.
# retrieved. Enterprises.unenroll requires the EMM's credentials (as enroll does) # See EMM Developer?s Guide for details.
# , not the enterprise's. Enterprises.unenroll can only be used for enterprises
# that were previously enrolled with the enroll call. Any enterprises that were
# enrolled using the (deprecated) Enterprises.insert call must be unenrolled
# with Enterprises.delete and can then be re-enrolled using the Enterprises.
# enroll call.
# The ID for an enterprise is an opaque string. It is returned by insert and
# enroll and can also be retrieved if the enterprise's primary domain is known
# using the list method.
class Enterprise class Enterprise
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Administrators of the enterprise. This is only supported for enterprises
# created via the EMM-initiated flow.
# Corresponds to the JSON property `administrator`
# @return [Array<Google::Apis::AndroidenterpriseV1::Administrator>]
attr_accessor :administrator
# The unique ID for the enterprise. # The unique ID for the enterprise.
# Corresponds to the JSON property `id` # Corresponds to the JSON property `id`
# @return [String] # @return [String]
@ -471,6 +563,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@administrator = args[:administrator] if args.key?(:administrator)
@id = args[:id] if args.key?(:id) @id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind) @kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@ -831,6 +924,50 @@ module Google
end end
end end
# An event generated when an app installation failed on a device
class InstallFailureEvent
include Google::Apis::Core::Hashable
# The Android ID of the device. This field will always be present.
# Corresponds to the JSON property `deviceId`
# @return [String]
attr_accessor :device_id
# Additional details on the failure if applicable.
# Corresponds to the JSON property `failureDetails`
# @return [String]
attr_accessor :failure_details
# The reason for the installation failure. This field will always be present.
# Corresponds to the JSON property `failureReason`
# @return [String]
attr_accessor :failure_reason
# The id of the product (e.g. "app:com.google.android.gm") for which the install
# failure event occured. This field will always be present.
# Corresponds to the JSON property `productId`
# @return [String]
attr_accessor :product_id
# The ID of the user. This field will always be present.
# Corresponds to the JSON property `userId`
# @return [String]
attr_accessor :user_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@device_id = args[:device_id] if args.key?(:device_id)
@failure_details = args[:failure_details] if args.key?(:failure_details)
@failure_reason = args[:failure_reason] if args.key?(:failure_reason)
@product_id = args[:product_id] if args.key?(:product_id)
@user_id = args[:user_id] if args.key?(:user_id)
end
end
# The install resources for the device. # The install resources for the device.
class ListInstallsResponse class ListInstallsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -883,6 +1020,145 @@ module Google
end end
end end
# An event generated when new permissions are added to an app.
class NewPermissionsEvent
include Google::Apis::Core::Hashable
# The set of permissions that the enterprise admin has already approved for this
# application. Use Permissions.Get on the EMM API to retrieve details about
# these permissions.
# Corresponds to the JSON property `approvedPermissions`
# @return [Array<String>]
attr_accessor :approved_permissions
# The id of the product (e.g. "app:com.google.android.gm") for which new
# permissions were added. This field will always be present.
# Corresponds to the JSON property `productId`
# @return [String]
attr_accessor :product_id
# The set of permissions that the app is currently requesting. Use Permissions.
# Get on the EMM API to retrieve details about these permissions.
# Corresponds to the JSON property `requestedPermissions`
# @return [Array<String>]
attr_accessor :requested_permissions
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@approved_permissions = args[:approved_permissions] if args.key?(:approved_permissions)
@product_id = args[:product_id] if args.key?(:product_id)
@requested_permissions = args[:requested_permissions] if args.key?(:requested_permissions)
end
end
# A notification of one event relating to an enterprise.
class Notification
include Google::Apis::Core::Hashable
# An event generated when a new app version is uploaded to Google Play and its
# app restrictions schema changed. To fetch the app restrictions schema for an
# app, use Products.getAppRestrictionsSchema on the EMM API.
# Corresponds to the JSON property `appRestrictionsSchemaChangeEvent`
# @return [Google::Apis::AndroidenterpriseV1::AppRestrictionsSchemaChangeEvent]
attr_accessor :app_restrictions_schema_change_event
# An event generated when a new version of an app is uploaded to Google Play.
# Notifications are sent for new public versions only: alpha, beta, or canary
# versions do not generate this event. To fetch up-to-date version history for
# an app, use Products.Get on the EMM API.
# Corresponds to the JSON property `appUpdateEvent`
# @return [Google::Apis::AndroidenterpriseV1::AppUpdateEvent]
attr_accessor :app_update_event
# The ID of the enterprise for which the notification is sent. This will always
# be present.
# Corresponds to the JSON property `enterpriseId`
# @return [String]
attr_accessor :enterprise_id
# An event generated when an app installation failed on a device
# Corresponds to the JSON property `installFailureEvent`
# @return [Google::Apis::AndroidenterpriseV1::InstallFailureEvent]
attr_accessor :install_failure_event
# An event generated when new permissions are added to an app.
# Corresponds to the JSON property `newPermissionsEvent`
# @return [Google::Apis::AndroidenterpriseV1::NewPermissionsEvent]
attr_accessor :new_permissions_event
# An event generated when a product's approval status is changed.
# Corresponds to the JSON property `productApprovalEvent`
# @return [Google::Apis::AndroidenterpriseV1::ProductApprovalEvent]
attr_accessor :product_approval_event
# An event generated whenever a product's availability changes.
# Corresponds to the JSON property `productAvailabilityChangeEvent`
# @return [Google::Apis::AndroidenterpriseV1::ProductAvailabilityChangeEvent]
attr_accessor :product_availability_change_event
# The time when the notification was published in milliseconds since 1970-01-
# 01T00:00:00Z. This will always be present.
# Corresponds to the JSON property `timestampMillis`
# @return [String]
attr_accessor :timestamp_millis
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@app_restrictions_schema_change_event = args[:app_restrictions_schema_change_event] if args.key?(:app_restrictions_schema_change_event)
@app_update_event = args[:app_update_event] if args.key?(:app_update_event)
@enterprise_id = args[:enterprise_id] if args.key?(:enterprise_id)
@install_failure_event = args[:install_failure_event] if args.key?(:install_failure_event)
@new_permissions_event = args[:new_permissions_event] if args.key?(:new_permissions_event)
@product_approval_event = args[:product_approval_event] if args.key?(:product_approval_event)
@product_availability_change_event = args[:product_availability_change_event] if args.key?(:product_availability_change_event)
@timestamp_millis = args[:timestamp_millis] if args.key?(:timestamp_millis)
end
end
# A resource returned by the PullNotificationSet API, which contains a
# collection of notifications for enterprises associated with the service
# account authenticated for the request.
class NotificationSet
include Google::Apis::Core::Hashable
# Identifies what kind of resource this is. Value: the fixed string "
# androidenterprise#notificationSet".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The notifications received, or empty if no notifications are present.
# Corresponds to the JSON property `notification`
# @return [Array<Google::Apis::AndroidenterpriseV1::Notification>]
attr_accessor :notification
# The notification set ID, required to mark the notification as received with
# the Enterprises.AcknowledgeNotification API. This will be omitted if no
# notifications are present.
# Corresponds to the JSON property `notificationSetId`
# @return [String]
attr_accessor :notification_set_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@kind = args[:kind] if args.key?(:kind)
@notification = args[:notification] if args.key?(:notification)
@notification_set_id = args[:notification_set_id] if args.key?(:notification_set_id)
end
end
# #
class PageInfo class PageInfo
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1062,6 +1338,59 @@ module Google
end end
end end
# An event generated when a product's approval status is changed.
class ProductApprovalEvent
include Google::Apis::Core::Hashable
# Whether the product was approved or unapproved. This field will always be
# present.
# Corresponds to the JSON property `approved`
# @return [String]
attr_accessor :approved
# The id of the product (e.g. "app:com.google.android.gm") for which the
# approval status has changed. This field will always be present.
# Corresponds to the JSON property `productId`
# @return [String]
attr_accessor :product_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@approved = args[:approved] if args.key?(:approved)
@product_id = args[:product_id] if args.key?(:product_id)
end
end
# An event generated whenever a product's availability changes.
class ProductAvailabilityChangeEvent
include Google::Apis::Core::Hashable
# The new state of the product. This field will always be present.
# Corresponds to the JSON property `availabilityStatus`
# @return [String]
attr_accessor :availability_status
# The id of the product (e.g. "app:com.google.android.gm") for which the product
# availability changed. This field will always be present.
# Corresponds to the JSON property `productId`
# @return [String]
attr_accessor :product_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@availability_status = args[:availability_status] if args.key?(:availability_status)
@product_id = args[:product_id] if args.key?(:product_id)
end
end
# A product permissions resource represents the set of permissions required by a # A product permissions resource represents the set of permissions required by a
# specific app and whether or not they have been accepted by an enterprise admin. # specific app and whether or not they have been accepted by an enterprise admin.
# The API can be used to read the set of permissions, and also to update the set # The API can be used to read the set of permissions, and also to update the set
@ -1234,6 +1563,134 @@ module Google
end end
end end
# A service account identity, including the name and credentials that can be
# used to authenticate as the service account.
class ServiceAccount
include Google::Apis::Core::Hashable
# Credentials that can be used to authenticate as a service account.
# Corresponds to the JSON property `key`
# @return [Google::Apis::AndroidenterpriseV1::ServiceAccountKey]
attr_accessor :key
# Identifies what kind of resource this is. Value: the fixed string "
# androidenterprise#serviceAccount".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The account name of the service account, in the form of an email address.
# Assigned by the server.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@key = args[:key] if args.key?(:key)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
end
end
# Credentials that can be used to authenticate as a service account.
class ServiceAccountKey
include Google::Apis::Core::Hashable
# The body of the private key credentials file, in string format. This is only
# populated when the ServiceAccountKey is created, and is not stored by Google.
# Corresponds to the JSON property `data`
# @return [String]
attr_accessor :data
# An opaque, unique identifier for this ServiceAccountKey. Assigned by the
# server.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# Identifies what kind of resource this is. Value: the fixed string "
# androidenterprise#serviceAccountKey".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The file format of the generated key data.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@data = args[:data] if args.key?(:data)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@type = args[:type] if args.key?(:type)
end
end
#
class ServiceAccountKeysListResponse
include Google::Apis::Core::Hashable
# The service account credentials.
# Corresponds to the JSON property `serviceAccountKey`
# @return [Array<Google::Apis::AndroidenterpriseV1::ServiceAccountKey>]
attr_accessor :service_account_key
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@service_account_key = args[:service_account_key] if args.key?(:service_account_key)
end
end
# A resource returned by the GenerateSignupUrl API, which contains the Signup
# URL and Completion Token.
class SignupInfo
include Google::Apis::Core::Hashable
# An opaque token that will be required, along with the Enterprise Token, for
# obtaining the enterprise resource from CompleteSignup.
# Corresponds to the JSON property `completionToken`
# @return [String]
attr_accessor :completion_token
# Identifies what kind of resource this is. Value: the fixed string "
# androidenterprise#signupInfo".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# A URL under which the Admin can sign up for an enterprise. The page pointed to
# cannot be rendered in an iframe.
# Corresponds to the JSON property `url`
# @return [String]
attr_accessor :url
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@completion_token = args[:completion_token] if args.key?(:completion_token)
@kind = args[:kind] if args.key?(:kind)
@url = args[:url] if args.key?(:url)
end
end
# Definition of a Google Play for Work store cluster, a list of products # Definition of a Google Play for Work store cluster, a list of products
# displayed as part of a store page. # displayed as part of a store page.
class StoreCluster class StoreCluster
@ -1441,17 +1898,44 @@ module Google
end end
end end
# A user resource represents an individual user within the enterprise's domain. # A user resource represents an account associated with an enterprise. The
# Note that each user is associated with a Google account based on the user's # account may be specific to a device or to an individual user (who can then use
# corporate email address (which must be in one of the enterprise's domains). As # the account across multiple devices). The account may provide access to Google
# part of installing the EMM's DPC app to manage a device the Google account # Play for Work only, or to other Google services, depending on the identity
# must be provisioned to the device, and so the user resource must be created # model used:
# before that. This can be done using the Google Admin SDK Directory API. # - Google managed domain identity model requires synchronization to Google
# The ID for a user is an opaque string. It can be retrieved using the list # account sources (via primaryEmail).
# method queried by the user's primary email address. # - Android for Work accounts identity model provides a dynamic means for
# enterprises to create user or device accounts as needed. These accounts
# provide access to Google Play for Work only.
class User class User
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The id as used by the EMM for this user, e.g. "user342" or "asset#44418". Will
# always be set for EMM managed users and not set for Google managed users. For
# privacy sensitive deployments it should not be possible to identify the
# individual with this identifier.
# Corresponds to the JSON property `accountIdentifier`
# @return [String]
attr_accessor :account_identifier
# The type of account that this user represents. A "deviceAccount" is specific
# to a single device while a "userAccount" represents a traditional user account,
# i.e. one that can be installed on multiple devices. "googleManaged" users
# will always be a "userAccount" but "emmManaged" users can be either a "
# userAccount" or a "deviceAccount".
# Corresponds to the JSON property `accountType`
# @return [String]
attr_accessor :account_type
# The user's name as it is to be presented in user interfaces, e.g. "John". Can
# optionally be set for EMM managed users and will not be set for Google managed
# users. For privacy sensitive deployments this should be left unset or set to
# something generic.
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
# The unique ID for the user. # The unique ID for the user.
# Corresponds to the JSON property `id` # Corresponds to the JSON property `id`
# @return [String] # @return [String]
@ -1463,7 +1947,15 @@ module Google
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
# The user's primary email address, e.g. "jsmith@example.com". # The entity that manages the user. With "googleManaged" users, the source of
# truth is Google so EMMs have to make sure a Google account exists for the user.
# With "emmManaged" users, the EMM is in charge.
# Corresponds to the JSON property `managementType`
# @return [String]
attr_accessor :management_type
# The user's primary email address, e.g. "jsmith@example.com". Will always be
# set for Google managed users and not set for EMM managed users.
# Corresponds to the JSON property `primaryEmail` # Corresponds to the JSON property `primaryEmail`
# @return [String] # @return [String]
attr_accessor :primary_email attr_accessor :primary_email
@ -1474,8 +1966,12 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@account_identifier = args[:account_identifier] if args.key?(:account_identifier)
@account_type = args[:account_type] if args.key?(:account_type)
@display_name = args[:display_name] if args.key?(:display_name)
@id = args[:id] if args.key?(:id) @id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind) @kind = args[:kind] if args.key?(:kind)
@management_type = args[:management_type] if args.key?(:management_type)
@primary_email = args[:primary_email] if args.key?(:primary_email) @primary_email = args[:primary_email] if args.key?(:primary_email)
end end
end end

View File

@ -22,12 +22,24 @@ module Google
module Apis module Apis
module AndroidenterpriseV1 module AndroidenterpriseV1
class Administrator
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AppRestrictionsSchema class AppRestrictionsSchema
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 AppRestrictionsSchemaChangeEvent
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AppRestrictionsSchemaRestriction class AppRestrictionsSchemaRestriction
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -40,6 +52,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class AppUpdateEvent
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AppVersion class AppVersion
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -52,6 +70,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class AuthenticationToken
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Collection class Collection
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -148,6 +172,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class InstallFailureEvent
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListInstallsResponse class ListInstallsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -160,6 +190,24 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class NewPermissionsEvent
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Notification
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class NotificationSet
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PageInfo class PageInfo
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -178,6 +226,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ProductApprovalEvent
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ProductAvailabilityChangeEvent
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ProductPermission class ProductPermission
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -214,6 +274,30 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ServiceAccount
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ServiceAccountKey
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ServiceAccountKeysListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SignupInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class StoreCluster class StoreCluster
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -268,6 +352,13 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class Administrator
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :email, as: 'email'
end
end
class AppRestrictionsSchema class AppRestrictionsSchema
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -277,6 +368,13 @@ module Google
end end
end end
class AppRestrictionsSchemaChangeEvent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :product_id, as: 'productId'
end
end
class AppRestrictionsSchemaRestriction class AppRestrictionsSchemaRestriction
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -302,6 +400,13 @@ module Google
end end
end end
class AppUpdateEvent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :product_id, as: 'productId'
end
end
class AppVersion class AppVersion
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -318,6 +423,14 @@ module Google
end end
end end
class AuthenticationToken
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
property :token, as: 'token'
end
end
class Collection class Collection
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -376,6 +489,8 @@ module Google
class Enterprise class Enterprise
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
collection :administrator, as: 'administrator', class: Google::Apis::AndroidenterpriseV1::Administrator, decorator: Google::Apis::AndroidenterpriseV1::Administrator::Representation
property :id, as: 'id' property :id, as: 'id'
property :kind, as: 'kind' property :kind, as: 'kind'
property :name, as: 'name' property :name, as: 'name'
@ -466,6 +581,17 @@ module Google
end end
end end
class InstallFailureEvent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :device_id, as: 'deviceId'
property :failure_details, as: 'failureDetails'
property :failure_reason, as: 'failureReason'
property :product_id, as: 'productId'
property :user_id, as: 'userId'
end
end
class ListInstallsResponse class ListInstallsResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -483,6 +609,45 @@ module Google
end end
end end
class NewPermissionsEvent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :approved_permissions, as: 'approvedPermissions'
property :product_id, as: 'productId'
collection :requested_permissions, as: 'requestedPermissions'
end
end
class Notification
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :app_restrictions_schema_change_event, as: 'appRestrictionsSchemaChangeEvent', class: Google::Apis::AndroidenterpriseV1::AppRestrictionsSchemaChangeEvent, decorator: Google::Apis::AndroidenterpriseV1::AppRestrictionsSchemaChangeEvent::Representation
property :app_update_event, as: 'appUpdateEvent', class: Google::Apis::AndroidenterpriseV1::AppUpdateEvent, decorator: Google::Apis::AndroidenterpriseV1::AppUpdateEvent::Representation
property :enterprise_id, as: 'enterpriseId'
property :install_failure_event, as: 'installFailureEvent', class: Google::Apis::AndroidenterpriseV1::InstallFailureEvent, decorator: Google::Apis::AndroidenterpriseV1::InstallFailureEvent::Representation
property :new_permissions_event, as: 'newPermissionsEvent', class: Google::Apis::AndroidenterpriseV1::NewPermissionsEvent, decorator: Google::Apis::AndroidenterpriseV1::NewPermissionsEvent::Representation
property :product_approval_event, as: 'productApprovalEvent', class: Google::Apis::AndroidenterpriseV1::ProductApprovalEvent, decorator: Google::Apis::AndroidenterpriseV1::ProductApprovalEvent::Representation
property :product_availability_change_event, as: 'productAvailabilityChangeEvent', class: Google::Apis::AndroidenterpriseV1::ProductAvailabilityChangeEvent, decorator: Google::Apis::AndroidenterpriseV1::ProductAvailabilityChangeEvent::Representation
property :timestamp_millis, as: 'timestampMillis'
end
end
class NotificationSet
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
collection :notification, as: 'notification', class: Google::Apis::AndroidenterpriseV1::Notification, decorator: Google::Apis::AndroidenterpriseV1::Notification::Representation
property :notification_set_id, as: 'notificationSetId'
end
end
class PageInfo class PageInfo
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -521,6 +686,22 @@ module Google
end end
end end
class ProductApprovalEvent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :approved, as: 'approved'
property :product_id, as: 'productId'
end
end
class ProductAvailabilityChangeEvent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :availability_status, as: 'availabilityStatus'
property :product_id, as: 'productId'
end
end
class ProductPermission class ProductPermission
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -575,6 +756,43 @@ module Google
end end
end end
class ServiceAccount
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :key, as: 'key', class: Google::Apis::AndroidenterpriseV1::ServiceAccountKey, decorator: Google::Apis::AndroidenterpriseV1::ServiceAccountKey::Representation
property :kind, as: 'kind'
property :name, as: 'name'
end
end
class ServiceAccountKey
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :data, as: 'data'
property :id, as: 'id'
property :kind, as: 'kind'
property :type, as: 'type'
end
end
class ServiceAccountKeysListResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :service_account_key, as: 'serviceAccountKey', class: Google::Apis::AndroidenterpriseV1::ServiceAccountKey, decorator: Google::Apis::AndroidenterpriseV1::ServiceAccountKey::Representation
end
end
class SignupInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :completion_token, as: 'completionToken'
property :kind, as: 'kind'
property :url, as: 'url'
end
end
class StoreCluster class StoreCluster
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -635,8 +853,12 @@ module Google
class User class User
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :account_identifier, as: 'accountIdentifier'
property :account_type, as: 'accountType'
property :display_name, as: 'displayName'
property :id, as: 'id' property :id, as: 'id'
property :kind, as: 'kind' property :kind, as: 'kind'
property :management_type, as: 'managementType'
property :primary_email, as: 'primaryEmail' property :primary_email, as: 'primaryEmail'
end end
end end

View File

@ -542,6 +542,7 @@ module Google
# Google services. The device state takes effect only if enforcing EMM policies # Google services. The device state takes effect only if enforcing EMM policies
# on Android devices is enabled in the Google Admin Console. Otherwise, the # on Android devices is enabled in the Google Admin Console. Otherwise, the
# device state is ignored and all devices are allowed access to Google services. # device state is ignored and all devices are allowed access to Google services.
# This is only supported for Google-managed users.
# @param [String] enterprise_id # @param [String] enterprise_id
# The ID of the enterprise. # The ID of the enterprise.
# @param [String] user_id # @param [String] user_id
@ -623,7 +624,8 @@ module Google
# Sets whether a device is enabled or disabled for access by the user to Google # Sets whether a device is enabled or disabled for access by the user to Google
# services. The device state takes effect only if enforcing EMM policies on # services. The device state takes effect only if enforcing EMM policies on
# Android devices is enabled in the Google Admin Console. Otherwise, the device # Android devices is enabled in the Google Admin Console. Otherwise, the device
# state is ignored and all devices are allowed access to Google services. # state is ignored and all devices are allowed access to Google services. This
# is only supported for Google-managed users.
# @param [String] enterprise_id # @param [String] enterprise_id
# The ID of the enterprise. # The ID of the enterprise.
# @param [String] user_id # @param [String] user_id
@ -667,6 +669,82 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Acknowledges notifications that were received from Enterprises.
# PullNotificationSet to prevent subsequent calls from returning the same
# notifications.
# @param [String] notification_set_id
# The notification set ID as returned by Enterprises.PullNotificationSet. This
# must be provided.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [NilClass] No result returned for this method
# @yieldparam err [StandardError] error object if request failed
#
# @return [void]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def acknowledge_enterprise_notification_set(notification_set_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'enterprises/acknowledgeNotificationSet', options)
command.query['notificationSetId'] = notification_set_id unless notification_set_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
# Completes the signup flow, by specifying the Completion Token and Enterprise
# Token. This request must not be called multiple times for a given Enterprise
# Token.
# @param [String] completion_token
# The Completion Token intially returned by GenerateSignupUrl.
# @param [String] enterprise_token
# The Enterprise Token appended to the Callback URL.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidenterpriseV1::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 complete_enterprise_signup(completion_token: nil, enterprise_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'enterprises/completeSignup', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::Enterprise::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::Enterprise
command.query['completionToken'] = completion_token unless completion_token.nil?
command.query['enterpriseToken'] = enterprise_token unless enterprise_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Deletes the binding between the EMM and enterprise. This is now deprecated; # Deletes the binding between the EMM and enterprise. This is now deprecated;
# use this to unenroll customers that were previously enrolled with the 'insert' # use this to unenroll customers that were previously enrolled with the 'insert'
# call, then enroll them again with the 'enroll' call. # call, then enroll them again with the 'enroll' call.
@ -740,6 +818,47 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Generates a sign-up URL.
# @param [String] callback_url
# The callback URL to which the Admin will be redirected after successfully
# creating an enterprise. Before redirecting there the system will add a single
# query parameter to this URL named "enterpriseToken" which will contain an
# opaque token to be used for the CompleteSignup request.
# Beware that this means that the URL will be parsed, the parameter added and
# then a new URL formatted, i.e. there may be some minor formatting changes and,
# more importantly, the URL must be well-formed so that it can be parsed.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidenterpriseV1::SignupInfo] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidenterpriseV1::SignupInfo]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def generate_enterprise_signup_url(callback_url: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'enterprises/signupUrl', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::SignupInfo::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::SignupInfo
command.query['callbackUrl'] = callback_url unless callback_url.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Retrieves the name and domain of an enterprise. # Retrieves the name and domain of an enterprise.
# @param [String] enterprise_id # @param [String] enterprise_id
# The ID of the enterprise. # The ID of the enterprise.
@ -775,6 +894,53 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Returns a service account and credentials. The service account can be bound to
# the enterprise by calling setAccount. The service account is unique to this
# enterprise and EMM, and will be deleted if the enterprise is unbound. The
# credentials contain private key data and are not stored server-side.
# This method can only be called after calling Enterprises.Enroll or Enterprises.
# CompleteSignup, and before Enterprises.SetAccount; at other times it will
# return an error.
# Subsequent calls after the first will generate a new, unique set of
# credentials, and invalidate the previously generated credentials.
# Once the service account is bound to the enterprise, it can be managed using
# the serviceAccountKeys resource.
# @param [String] enterprise_id
# @param [String] key_type
# The type of credential to return with the service account. Required.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidenterpriseV1::ServiceAccount] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidenterpriseV1::ServiceAccount]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_enterprise_service_account(enterprise_id, key_type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'enterprises/{enterpriseId}/serviceAccount', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::ServiceAccount::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::ServiceAccount
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.query['keyType'] = key_type unless key_type.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Returns the store layout resource. # Returns the store layout resource.
# @param [String] enterprise_id # @param [String] enterprise_id
# The ID of the enterprise. # The ID of the enterprise.
@ -849,7 +1015,11 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Looks up an enterprise by domain name. # 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
# for enterprises created via the EMM-initiated flow since the EMM learns the
# enterprise ID in the callback specified in the Enterprises.generateSignupUrl
# call.
# @param [String] domain # @param [String] domain
# The exact primary domain name of the enterprise to look up. # The exact primary domain name of the enterprise to look up.
# @param [String] fields # @param [String] fields
@ -884,6 +1054,56 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Pulls and returns a notification set for the enterprises associated with the
# service account authenticated for the request. The notification set may be
# empty if no notification are pending.
# A notification set returned needs to be acknowledged within 20 seconds by
# calling Enterprises.AcknowledgeNotificationSet, unless the notification set is
# empty.
# Notifications that are not acknowledged within the 20 seconds will eventually
# be included again in the response to another PullNotificationSet request, and
# those that are never acknowledged will ultimately be deleted according to the
# Google Cloud Platform Pub/Sub system policy.
# Multiple requests might be performed concurrently to retrieve notifications,
# in which case the pending notifications (if any) will be split among each
# caller, if any are pending.
# @param [String] request_mode
# The request mode for pulling notifications. If omitted, defaults to
# WAIT_FOR_NOTIFCATIONS.
# If this is set to WAIT_FOR_NOTIFCATIONS, the request will eventually timeout,
# in which case it should be retried.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidenterpriseV1::NotificationSet] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidenterpriseV1::NotificationSet]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def pull_enterprise_notification_set(request_mode: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'enterprises/pullNotificationSet', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::NotificationSet::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::NotificationSet
command.query['requestMode'] = request_mode unless request_mode.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
# Sends a test push notification to validate the EMM integration with the Google # Sends a test push notification to validate the EMM integration with the Google
# Cloud Pub/Sub service for this enterprise. # Cloud Pub/Sub service for this enterprise.
# @param [String] enterprise_id # @param [String] enterprise_id
@ -1948,6 +2168,126 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Removes and invalidates the specified credentials for the service account
# associated with this enterprise. The calling service account must have been
# retrieved by calling Enterprises.GetServiceAccount and must have been set as
# the enterprise service account by calling Enterprises.SetAccount.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [String] key_id
# The ID of the key.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [NilClass] No result returned for this method
# @yieldparam err [StandardError] error object if request failed
#
# @return [void]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_serviceaccountkey(enterprise_id, key_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, 'enterprises/{enterpriseId}/serviceAccountKeys/{keyId}', options)
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['keyId'] = key_id unless key_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
# Generates new credentials for the service account associated with this
# enterprise. The calling service account must have been retrieved by calling
# Enterprises.GetServiceAccount and must have been set as the enterprise service
# account by calling Enterprises.SetAccount.
# Only the type of the key should be populated in the resource to be inserted.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [Google::Apis::AndroidenterpriseV1::ServiceAccountKey] service_account_key_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidenterpriseV1::ServiceAccountKey] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidenterpriseV1::ServiceAccountKey]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_serviceaccountkey(enterprise_id, service_account_key_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'enterprises/{enterpriseId}/serviceAccountKeys', options)
command.request_representation = Google::Apis::AndroidenterpriseV1::ServiceAccountKey::Representation
command.request_object = service_account_key_object
command.response_representation = Google::Apis::AndroidenterpriseV1::ServiceAccountKey::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::ServiceAccountKey
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
# Lists all active credentials for the service account associated with this
# enterprise. Only the ID and key type are returned. The calling service account
# must have been retrieved by calling Enterprises.GetServiceAccount and must
# have been set as the enterprise service account by calling Enterprises.
# SetAccount.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidenterpriseV1::ServiceAccountKeysListResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidenterpriseV1::ServiceAccountKeysListResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_serviceaccountkeys(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'enterprises/{enterpriseId}/serviceAccountKeys', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::ServiceAccountKeysListResponse::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::ServiceAccountKeysListResponse
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
# Deletes a cluster. # Deletes a cluster.
# @param [String] enterprise_id # @param [String] enterprise_id
# The ID of the enterprise. # The ID of the enterprise.
@ -2424,6 +2764,83 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Deleted an EMM-managed user.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [String] user_id
# The ID of the user.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [NilClass] No result returned for this method
# @yieldparam err [StandardError] error object if request failed
#
# @return [void]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_user(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, 'enterprises/{enterpriseId}/users/{userId}', options)
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['userId'] = user_id unless user_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Generates an authentication token which the device policy client can use to
# provision the given EMM-managed user account on a device. The generated token
# is single-use and expires after a few minutes.
# This call only works with EMM-managed accounts.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [String] user_id
# The ID of the user.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidenterpriseV1::AuthenticationToken] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidenterpriseV1::AuthenticationToken]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def generate_user_authentication_token(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'enterprises/{enterpriseId}/users/{userId}/authenticationToken', options)
command.response_representation = Google::Apis::AndroidenterpriseV1::AuthenticationToken::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::AuthenticationToken
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['userId'] = user_id unless user_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Generates a token (activation code) to allow this user to configure their work # Generates a token (activation code) to allow this user to configure their work
# account in the Android Setup Wizard. Revokes any previously generated token. # account in the Android Setup Wizard. Revokes any previously generated token.
# This call only works with Google managed accounts. # This call only works with Google managed accounts.
@ -2540,7 +2957,50 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Looks up a user by their primary email address. # Creates a new EMM-managed user.
# The required details of the user are passed in the Users resource in the body
# of the request. Specifically, the accountIdentifier, accountType, and
# displayName fields must be provided.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [Google::Apis::AndroidenterpriseV1::User] user_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidenterpriseV1::User] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidenterpriseV1::User]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def insert_user(enterprise_id, user_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'enterprises/{enterpriseId}/users', options)
command.request_representation = Google::Apis::AndroidenterpriseV1::User::Representation
command.request_object = user_object
command.response_representation = Google::Apis::AndroidenterpriseV1::User::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::User
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.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 a user by their primary email address. This is only supported for
# Google-managed users. Lookup of the id is not needed for EMM-managed users
# because the id is already returned in the result of the Users.insert call.
# @param [String] enterprise_id # @param [String] enterprise_id
# The ID of the enterprise. # The ID of the enterprise.
# @param [String] email # @param [String] email
@ -2578,6 +3038,51 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Updates the details of an EMM-managed user.
# This only works with EMM-managed users. Pass the new details in Users resource
# in the request body. Only the displayName field can be changed. Other fields
# must either be unset or have the currently active value. This method supports
# patch semantics.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [String] user_id
# The ID of the user.
# @param [Google::Apis::AndroidenterpriseV1::User] user_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidenterpriseV1::User] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidenterpriseV1::User]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_user(enterprise_id, user_id, user_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, 'enterprises/{enterpriseId}/users/{userId}', options)
command.request_representation = Google::Apis::AndroidenterpriseV1::User::Representation
command.request_object = user_object
command.response_representation = Google::Apis::AndroidenterpriseV1::User::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::User
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['userId'] = user_id unless user_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Revokes a previously generated token (activation code) for the user. # Revokes a previously generated token (activation code) for the user.
# @param [String] enterprise_id # @param [String] enterprise_id
# The ID of the enterprise. # The ID of the enterprise.
@ -2654,6 +3159,50 @@ module Google
command.query['userIp'] = user_ip unless user_ip.nil? command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Updates the details of an EMM-managed user.
# This only works with EMM-managed users. Pass the new details in Users resource
# in the request body. Only the displayName field can be changed. Other fields
# must either be unset or have the currently active value.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [String] user_id
# The ID of the user.
# @param [Google::Apis::AndroidenterpriseV1::User] user_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidenterpriseV1::User] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidenterpriseV1::User]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def update_user(enterprise_id, user_id, user_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, 'enterprises/{enterpriseId}/users/{userId}', options)
command.request_representation = Google::Apis::AndroidenterpriseV1::User::Representation
command.request_object = user_object
command.response_representation = Google::Apis::AndroidenterpriseV1::User::Representation
command.response_class = Google::Apis::AndroidenterpriseV1::User
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['userId'] = user_id unless user_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
protected protected

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 = '20160602' REVISION = '20160627'
# 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/games/services/web/api/states # @see https://developers.google.com/games/services/web/api/states
module AppstateV1 module AppstateV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20160616' REVISION = '20160621'
# 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 = '20160617' REVISION = '20160629'
# 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

@ -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 = '20160531' REVISION = '20160629'
# Manage your books # Manage your books
AUTH_BOOKS = 'https://www.googleapis.com/auth/books' AUTH_BOOKS = 'https://www.googleapis.com/auth/books'

View File

@ -3561,6 +3561,11 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :page_count attr_accessor :page_count
# A top-level summary of the panelization info in this volume.
# Corresponds to the JSON property `panelizationSummary`
# @return [Google::Apis::BooksV1::Volume::VolumeInfo::PanelizationSummary]
attr_accessor :panelization_summary
# URL to preview this volume on the Google Books site. # URL to preview this volume on the Google Books site.
# Corresponds to the JSON property `previewLink` # Corresponds to the JSON property `previewLink`
# @return [String] # @return [String]
@ -3637,6 +3642,7 @@ module Google
@main_category = args[:main_category] if args.key?(:main_category) @main_category = args[:main_category] if args.key?(:main_category)
@maturity_rating = args[:maturity_rating] if args.key?(:maturity_rating) @maturity_rating = args[:maturity_rating] if args.key?(:maturity_rating)
@page_count = args[:page_count] if args.key?(:page_count) @page_count = args[:page_count] if args.key?(:page_count)
@panelization_summary = args[:panelization_summary] if args.key?(:panelization_summary)
@preview_link = args[:preview_link] if args.key?(:preview_link) @preview_link = args[:preview_link] if args.key?(:preview_link)
@print_type = args[:print_type] if args.key?(:print_type) @print_type = args[:print_type] if args.key?(:print_type)
@printed_page_count = args[:printed_page_count] if args.key?(:printed_page_count) @printed_page_count = args[:printed_page_count] if args.key?(:printed_page_count)
@ -3755,6 +3761,45 @@ module Google
@type = args[:type] if args.key?(:type) @type = args[:type] if args.key?(:type)
end end
end end
# A top-level summary of the panelization info in this volume.
class PanelizationSummary
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `containsEpubBubbles`
# @return [Boolean]
attr_accessor :contains_epub_bubbles
alias_method :contains_epub_bubbles?, :contains_epub_bubbles
#
# Corresponds to the JSON property `containsImageBubbles`
# @return [Boolean]
attr_accessor :contains_image_bubbles
alias_method :contains_image_bubbles?, :contains_image_bubbles
#
# Corresponds to the JSON property `epubBubbleVersion`
# @return [String]
attr_accessor :epub_bubble_version
#
# Corresponds to the JSON property `imageBubbleVersion`
# @return [String]
attr_accessor :image_bubble_version
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@contains_epub_bubbles = args[:contains_epub_bubbles] if args.key?(:contains_epub_bubbles)
@contains_image_bubbles = args[:contains_image_bubbles] if args.key?(:contains_image_bubbles)
@epub_bubble_version = args[:epub_bubble_version] if args.key?(:epub_bubble_version)
@image_bubble_version = args[:image_bubble_version] if args.key?(:image_bubble_version)
end
end
end end
end end

View File

@ -567,6 +567,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class PanelizationSummary
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
@ -1634,6 +1640,8 @@ module Google
property :main_category, as: 'mainCategory' property :main_category, as: 'mainCategory'
property :maturity_rating, as: 'maturityRating' property :maturity_rating, as: 'maturityRating'
property :page_count, as: 'pageCount' property :page_count, as: 'pageCount'
property :panelization_summary, as: 'panelizationSummary', class: Google::Apis::BooksV1::Volume::VolumeInfo::PanelizationSummary, decorator: Google::Apis::BooksV1::Volume::VolumeInfo::PanelizationSummary::Representation
property :preview_link, as: 'previewLink' property :preview_link, as: 'previewLink'
property :print_type, as: 'printType' property :print_type, as: 'printType'
property :printed_page_count, as: 'printedPageCount' property :printed_page_count, as: 'printedPageCount'
@ -1676,6 +1684,16 @@ module Google
property :type, as: 'type' property :type, as: 'type'
end end
end end
class PanelizationSummary
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :contains_epub_bubbles, as: 'containsEpubBubbles'
property :contains_image_bubbles, as: 'containsImageBubbles'
property :epub_bubble_version, as: 'epubBubbleVersion'
property :image_bubble_version, as: 'imageBubbleVersion'
end
end
end end
end end

View File

@ -2090,7 +2090,7 @@ module Google
# Return a list of books in My Library. # Return a list of books in My Library.
# @param [Array<String>, String] acquire_method # @param [Array<String>, String] acquire_method
# How the book was aquired # How the book was acquired
# @param [String] country # @param [String] country
# ISO-3166-1 code to override the IP-based location. # ISO-3166-1 code to override the IP-based location.
# @param [String] locale # @param [String] locale

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 = '20160613' REVISION = '20160626'
# Manage your calendars # Manage your calendars
AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar' AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar'

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/container-builder/docs/ # @see https://cloud.google.com/container-builder/docs/
module CloudbuildV1 module CloudbuildV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20160525' REVISION = '20160628'
# 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

@ -137,6 +137,33 @@ module Google
end end
end end
# Provenance of the source. Ways to find the original source, or verify that
# some source was used for this build.
class SourceProvenance
include Google::Apis::Core::Hashable
# Hash(es) of the build source, which can be used to verify that the original
# source integrity was maintained in the build. Note that FileHashes will
# only be populated if BuildOptions has requested a SourceProvenanceHash.
# The keys to this map are file paths used as build source and the values
# contain the hash values for those files.
# If the build source came in a single package such as a gzipped tarfile
# (.tar.gz), the FileHash will be for the single path to that file.
# @OutputOnly
# Corresponds to the JSON property `fileHashes`
# @return [Hash<String,Google::Apis::CloudbuildV1::FileHashes>]
attr_accessor :file_hashes
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@file_hashes = args[:file_hashes] if args.key?(:file_hashes)
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
@ -260,6 +287,31 @@ module Google
end end
end end
# Container message for hash values.
class HashProp
include Google::Apis::Core::Hashable
# The hash value.
# Corresponds to the JSON property `value`
# @return [String]
attr_accessor :value
# The type of hash that was performed.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@value = args[:value] if args.key?(:value)
@type = args[:type] if args.key?(:type)
end
end
# StorageSource describes the location of the source in an archive file in # StorageSource describes the location of the source in an archive file in
# Google Cloud Storage. # Google Cloud Storage.
class StorageSource class StorageSource
@ -330,6 +382,12 @@ module Google
# @return [String] # @return [String]
attr_accessor :id attr_accessor :id
# Provenance of the source. Ways to find the original source, or verify that
# some source was used for this build.
# Corresponds to the JSON property `sourceProvenance`
# @return [Google::Apis::CloudbuildV1::SourceProvenance]
attr_accessor :source_provenance
# Results describes the artifacts created by the build pipeline. # Results describes the artifacts created by the build pipeline.
# Corresponds to the JSON property `results` # Corresponds to the JSON property `results`
# @return [Google::Apis::CloudbuildV1::Results] # @return [Google::Apis::CloudbuildV1::Results]
@ -341,6 +399,11 @@ module Google
# @return [String] # @return [String]
attr_accessor :status attr_accessor :status
# Optional arguments to enable specific features of builds.
# Corresponds to the JSON property `options`
# @return [Google::Apis::CloudbuildV1::BuildOptions]
attr_accessor :options
# Time at which execution of the build was finished. # Time at which execution of the build was finished.
# @OutputOnly # @OutputOnly
# Corresponds to the JSON property `finishTime` # Corresponds to the JSON property `finishTime`
@ -414,8 +477,10 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@id = args[:id] if args.key?(:id) @id = args[:id] if args.key?(:id)
@source_provenance = args[:source_provenance] if args.key?(:source_provenance)
@results = args[:results] if args.key?(:results) @results = args[:results] if args.key?(:results)
@status = args[:status] if args.key?(:status) @status = args[:status] if args.key?(:status)
@options = args[:options] if args.key?(:options)
@finish_time = args[:finish_time] if args.key?(:finish_time) @finish_time = args[:finish_time] if args.key?(:finish_time)
@timeout = args[:timeout] if args.key?(:timeout) @timeout = args[:timeout] if args.key?(:timeout)
@steps = args[:steps] if args.key?(:steps) @steps = args[:steps] if args.key?(:steps)
@ -442,6 +507,26 @@ module Google
end end
end end
# Container message for hashes of byte content of files, used in
# SourceProvenance messages to verify integrity of source input to the build.
class FileHashes
include Google::Apis::Core::Hashable
# Collection of file hashes.
# Corresponds to the JSON property `fileHash`
# @return [Array<Google::Apis::CloudbuildV1::HashProp>]
attr_accessor :file_hash
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@file_hash = args[:file_hash] if args.key?(:file_hash)
end
end
# The response message for Operations.ListOperations. # The response message for Operations.ListOperations.
class ListOperationsResponse class ListOperationsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -506,6 +591,31 @@ module Google
end end
end end
# Optional arguments to enable specific features of builds.
class BuildOptions
include Google::Apis::Core::Hashable
# Requested hash for SourceProvenance.
# Corresponds to the JSON property `sourceProvenanceHash`
# @return [Array<String>]
attr_accessor :source_provenance_hash
# Options for a verifiable build with details uploaded to the Analysis API.
# Corresponds to the JSON property `requestedVerifyOption`
# @return [String]
attr_accessor :requested_verify_option
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@source_provenance_hash = args[:source_provenance_hash] if args.key?(:source_provenance_hash)
@requested_verify_option = args[:requested_verify_option] if args.key?(:requested_verify_option)
end
end
# Response including listed builds. # Response including listed builds.
class ListBuildsResponse class ListBuildsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -40,6 +40,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class SourceProvenance
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
@ -52,6 +58,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class HashProp
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class StorageSource class StorageSource
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -76,6 +88,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class FileHashes
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListOperationsResponse class ListOperationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -88,6 +106,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class BuildOptions
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListBuildsResponse class ListBuildsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -119,6 +143,14 @@ module Google
end end
end end
class SourceProvenance
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :file_hashes, as: 'fileHashes', class: Google::Apis::CloudbuildV1::FileHashes, decorator: Google::Apis::CloudbuildV1::FileHashes::Representation
end
end
class Operation class Operation
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -139,6 +171,14 @@ module Google
end end
end end
class HashProp
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :value, :base64 => true, as: 'value'
property :type, as: 'type'
end
end
class StorageSource class StorageSource
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -160,9 +200,13 @@ module Google
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id' property :id, as: 'id'
property :source_provenance, as: 'sourceProvenance', class: Google::Apis::CloudbuildV1::SourceProvenance, decorator: Google::Apis::CloudbuildV1::SourceProvenance::Representation
property :results, as: 'results', class: Google::Apis::CloudbuildV1::Results, decorator: Google::Apis::CloudbuildV1::Results::Representation property :results, as: 'results', class: Google::Apis::CloudbuildV1::Results, decorator: Google::Apis::CloudbuildV1::Results::Representation
property :status, as: 'status' property :status, as: 'status'
property :options, as: 'options', class: Google::Apis::CloudbuildV1::BuildOptions, decorator: Google::Apis::CloudbuildV1::BuildOptions::Representation
property :finish_time, as: 'finishTime' property :finish_time, as: 'finishTime'
property :timeout, as: 'timeout' property :timeout, as: 'timeout'
collection :steps, as: 'steps', class: Google::Apis::CloudbuildV1::BuildStep, decorator: Google::Apis::CloudbuildV1::BuildStep::Representation collection :steps, as: 'steps', class: Google::Apis::CloudbuildV1::BuildStep, decorator: Google::Apis::CloudbuildV1::BuildStep::Representation
@ -184,6 +228,14 @@ module Google
end end
end end
class FileHashes
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :file_hash, as: 'fileHash', class: Google::Apis::CloudbuildV1::HashProp, decorator: Google::Apis::CloudbuildV1::HashProp::Representation
end
end
class ListOperationsResponse class ListOperationsResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -203,6 +255,14 @@ module Google
end end
end end
class BuildOptions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :source_provenance_hash, as: 'sourceProvenanceHash'
property :requested_verify_option, as: 'requestedVerifyOption'
end
end
class ListBuildsResponse class ListBuildsResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/deployment-manager/ # @see https://cloud.google.com/deployment-manager/
module DeploymentmanagerV2 module DeploymentmanagerV2
VERSION = 'V2' VERSION = 'V2'
REVISION = '20160608' REVISION = '20160624'
# 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

@ -233,16 +233,14 @@ module Google
# must match the entire field. # must match the entire field.
# For example, to filter for instances that do not have a name of example- # For example, to filter for instances that do not have a name of example-
# instance, you would use filter=name ne example-instance. # instance, you would use filter=name ne example-instance.
# Compute Engine Beta API Only: When filtering in the Beta API, you can also # You can filter on nested fields. For example, you could filter on instances
# filter on nested fields. For example, you could filter on instances that have # that have set the scheduling.automaticRestart field to true. Use filtering on
# set the scheduling.automaticRestart field to true. Use filtering on nested # nested fields to take advantage of labels to organize and search for results
# fields to take advantage of labels to organize and search for results based on # based on label values.
# label values. # To filter on multiple expressions, provide each separate expression within
# The Beta API also supports filtering on multiple expressions by providing each # parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
# separate expression within parentheses. For example, (scheduling. # central1-f). Multiple expressions are treated as AND expressions, meaning that
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are # resources must match all expressions to pass the filters.
# treated as AND expressions, meaning that resources must match all expressions
# to pass the filters.
# @param [Fixnum] max_results # @param [Fixnum] max_results
# The maximum number of results per page that should be returned. If the number # The maximum number of results per page that should be returned. If the number
# of available results is larger than maxResults, Compute Engine returns a # of available results is larger than maxResults, Compute Engine returns a
@ -505,16 +503,14 @@ module Google
# must match the entire field. # must match the entire field.
# For example, to filter for instances that do not have a name of example- # For example, to filter for instances that do not have a name of example-
# instance, you would use filter=name ne example-instance. # instance, you would use filter=name ne example-instance.
# Compute Engine Beta API Only: When filtering in the Beta API, you can also # You can filter on nested fields. For example, you could filter on instances
# filter on nested fields. For example, you could filter on instances that have # that have set the scheduling.automaticRestart field to true. Use filtering on
# set the scheduling.automaticRestart field to true. Use filtering on nested # nested fields to take advantage of labels to organize and search for results
# fields to take advantage of labels to organize and search for results based on # based on label values.
# label values. # To filter on multiple expressions, provide each separate expression within
# The Beta API also supports filtering on multiple expressions by providing each # parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
# separate expression within parentheses. For example, (scheduling. # central1-f). Multiple expressions are treated as AND expressions, meaning that
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are # resources must match all expressions to pass the filters.
# treated as AND expressions, meaning that resources must match all expressions
# to pass the filters.
# @param [Fixnum] max_results # @param [Fixnum] max_results
# The maximum number of results per page that should be returned. If the number # The maximum number of results per page that should be returned. If the number
# of available results is larger than maxResults, Compute Engine returns a # of available results is larger than maxResults, Compute Engine returns a
@ -613,16 +609,14 @@ module Google
# must match the entire field. # must match the entire field.
# For example, to filter for instances that do not have a name of example- # For example, to filter for instances that do not have a name of example-
# instance, you would use filter=name ne example-instance. # instance, you would use filter=name ne example-instance.
# Compute Engine Beta API Only: When filtering in the Beta API, you can also # You can filter on nested fields. For example, you could filter on instances
# filter on nested fields. For example, you could filter on instances that have # that have set the scheduling.automaticRestart field to true. Use filtering on
# set the scheduling.automaticRestart field to true. Use filtering on nested # nested fields to take advantage of labels to organize and search for results
# fields to take advantage of labels to organize and search for results based on # based on label values.
# label values. # To filter on multiple expressions, provide each separate expression within
# The Beta API also supports filtering on multiple expressions by providing each # parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
# separate expression within parentheses. For example, (scheduling. # central1-f). Multiple expressions are treated as AND expressions, meaning that
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are # resources must match all expressions to pass the filters.
# treated as AND expressions, meaning that resources must match all expressions
# to pass the filters.
# @param [Fixnum] max_results # @param [Fixnum] max_results
# The maximum number of results per page that should be returned. If the number # The maximum number of results per page that should be returned. If the number
# of available results is larger than maxResults, Compute Engine returns a # of available results is larger than maxResults, Compute Engine returns a
@ -725,16 +719,14 @@ module Google
# must match the entire field. # must match the entire field.
# For example, to filter for instances that do not have a name of example- # For example, to filter for instances that do not have a name of example-
# instance, you would use filter=name ne example-instance. # instance, you would use filter=name ne example-instance.
# Compute Engine Beta API Only: When filtering in the Beta API, you can also # You can filter on nested fields. For example, you could filter on instances
# filter on nested fields. For example, you could filter on instances that have # that have set the scheduling.automaticRestart field to true. Use filtering on
# set the scheduling.automaticRestart field to true. Use filtering on nested # nested fields to take advantage of labels to organize and search for results
# fields to take advantage of labels to organize and search for results based on # based on label values.
# label values. # To filter on multiple expressions, provide each separate expression within
# The Beta API also supports filtering on multiple expressions by providing each # parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
# separate expression within parentheses. For example, (scheduling. # central1-f). Multiple expressions are treated as AND expressions, meaning that
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are # resources must match all expressions to pass the filters.
# treated as AND expressions, meaning that resources must match all expressions
# to pass the filters.
# @param [Fixnum] max_results # @param [Fixnum] max_results
# The maximum number of results per page that should be returned. If the number # The maximum number of results per page that should be returned. If the number
# of available results is larger than maxResults, Compute Engine returns a # of available results is larger than maxResults, Compute Engine returns a
@ -795,16 +787,14 @@ module Google
# must match the entire field. # must match the entire field.
# For example, to filter for instances that do not have a name of example- # For example, to filter for instances that do not have a name of example-
# instance, you would use filter=name ne example-instance. # instance, you would use filter=name ne example-instance.
# Compute Engine Beta API Only: When filtering in the Beta API, you can also # You can filter on nested fields. For example, you could filter on instances
# filter on nested fields. For example, you could filter on instances that have # that have set the scheduling.automaticRestart field to true. Use filtering on
# set the scheduling.automaticRestart field to true. Use filtering on nested # nested fields to take advantage of labels to organize and search for results
# fields to take advantage of labels to organize and search for results based on # based on label values.
# label values. # To filter on multiple expressions, provide each separate expression within
# The Beta API also supports filtering on multiple expressions by providing each # parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
# separate expression within parentheses. For example, (scheduling. # central1-f). Multiple expressions are treated as AND expressions, meaning that
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are # resources must match all expressions to pass the filters.
# treated as AND expressions, meaning that resources must match all expressions
# to pass the filters.
# @param [Fixnum] max_results # @param [Fixnum] max_results
# The maximum number of results per page that should be returned. If the number # The maximum number of results per page that should be returned. If the number
# of available results is larger than maxResults, Compute Engine returns a # of available results is larger than maxResults, Compute Engine returns a

View File

@ -0,0 +1,40 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/dfareporting_v2_5/service.rb'
require 'google/apis/dfareporting_v2_5/classes.rb'
require 'google/apis/dfareporting_v2_5/representations.rb'
module Google
module Apis
# DCM/DFA Reporting And Trafficking API
#
# Manages your DoubleClick Campaign Manager ad campaigns and reports.
#
# @see https://developers.google.com/doubleclick-advertisers/reporting/
module DfareportingV2_5
VERSION = 'V2_5'
REVISION = '20160509'
# Manage DoubleClick Digital Marketing conversions
AUTH_DDMCONVERSIONS = 'https://www.googleapis.com/auth/ddmconversions'
# View and manage DoubleClick for Advertisers reports
AUTH_DFAREPORTING = 'https://www.googleapis.com/auth/dfareporting'
# View and manage your DoubleClick Campaign Manager's (DCM) display ad campaigns
AUTH_DFATRAFFICKING = 'https://www.googleapis.com/auth/dfatrafficking'
end
end
end

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

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

View File

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

View File

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

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/games/services # @see https://developers.google.com/games/services
module GamesConfigurationV1configuration module GamesConfigurationV1configuration
VERSION = 'V1configuration' VERSION = 'V1configuration'
REVISION = '20160616' REVISION = '20160621'
# 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/games/services # @see https://developers.google.com/games/services
module GamesManagementV1management module GamesManagementV1management
VERSION = 'V1management' VERSION = 'V1management'
REVISION = '20160616' REVISION = '20160621'
# Share your Google+ profile information and view and manage your game activity # Share your Google+ profile information and view and manage your game activity
AUTH_GAMES = 'https://www.googleapis.com/auth/games' AUTH_GAMES = 'https://www.googleapis.com/auth/games'

View File

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

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/genomics/ # @see https://cloud.google.com/genomics/
module GenomicsV1 module GenomicsV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20160615' REVISION = '20160627'
# 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

@ -3311,6 +3311,11 @@ module Google
# @return [String] # @return [String]
attr_accessor :create_time attr_accessor :create_time
# The time at which the job began to run.
# Corresponds to the JSON property `startTime`
# @return [String]
attr_accessor :start_time
# The time at which the job stopped running. # The time at which the job stopped running.
# Corresponds to the JSON property `endTime` # Corresponds to the JSON property `endTime`
# @return [String] # @return [String]
@ -3329,6 +3334,12 @@ module Google
# @return [Array<Google::Apis::GenomicsV1::OperationEvent>] # @return [Array<Google::Apis::GenomicsV1::OperationEvent>]
attr_accessor :events attr_accessor :events
# Optionally provided by the caller when submitting the request that creates the
# operation.
# Corresponds to the JSON property `clientId`
# @return [String]
attr_accessor :client_id
# Runtime metadata on this Operation. # Runtime metadata on this Operation.
# Corresponds to the JSON property `runtimeMetadata` # Corresponds to the JSON property `runtimeMetadata`
# @return [Hash<String,Object>] # @return [Hash<String,Object>]
@ -3342,9 +3353,11 @@ module Google
def update!(**args) def update!(**args)
@project_id = args[:project_id] if args.key?(:project_id) @project_id = args[:project_id] if args.key?(:project_id)
@create_time = args[:create_time] if args.key?(:create_time) @create_time = args[:create_time] if args.key?(:create_time)
@start_time = args[:start_time] if args.key?(:start_time)
@end_time = args[:end_time] if args.key?(:end_time) @end_time = args[:end_time] if args.key?(:end_time)
@request = args[:request] if args.key?(:request) @request = args[:request] if args.key?(:request)
@events = args[:events] if args.key?(:events) @events = args[:events] if args.key?(:events)
@client_id = args[:client_id] if args.key?(:client_id)
@runtime_metadata = args[:runtime_metadata] if args.key?(:runtime_metadata) @runtime_metadata = args[:runtime_metadata] if args.key?(:runtime_metadata)
end end
end end
@ -3353,6 +3366,17 @@ module Google
class OperationEvent class OperationEvent
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Optional time of when event started.
# Corresponds to the JSON property `startTime`
# @return [String]
attr_accessor :start_time
# Optional time of when event finished. An event can have a start time and no
# finish time. If an event has a finish time, there must be a start time.
# Corresponds to the JSON property `endTime`
# @return [String]
attr_accessor :end_time
# Required description of event. # Required description of event.
# Corresponds to the JSON property `description` # Corresponds to the JSON property `description`
# @return [String] # @return [String]
@ -3364,6 +3388,8 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@start_time = args[:start_time] if args.key?(:start_time)
@end_time = args[:end_time] if args.key?(:end_time)
@description = args[:description] if args.key?(:description) @description = args[:description] if args.key?(:description)
end end
end end
@ -3373,10 +3399,11 @@ module Google
class RuntimeMetadata class RuntimeMetadata
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Describes a GCE resource that is being managed by a running pipeline. # Describes a Compute Engine resource that is being managed by a running
# Corresponds to the JSON property `gce` # pipeline.
# @return [Google::Apis::GenomicsV1::Gce] # Corresponds to the JSON property `computeEngine`
attr_accessor :gce # @return [Google::Apis::GenomicsV1::ComputeEngine]
attr_accessor :compute_engine
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
@ -3384,12 +3411,13 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@gce = args[:gce] if args.key?(:gce) @compute_engine = args[:compute_engine] if args.key?(:compute_engine)
end end
end end
# Describes a GCE resource that is being managed by a running pipeline. # Describes a Compute Engine resource that is being managed by a running
class Gce # pipeline.
class ComputeEngine
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The instance on which the operation is running. # The instance on which the operation is running.

View File

@ -484,7 +484,7 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class Gce class ComputeEngine
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
@ -1306,10 +1306,12 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :project_id, as: 'projectId' property :project_id, as: 'projectId'
property :create_time, as: 'createTime' property :create_time, as: 'createTime'
property :start_time, as: 'startTime'
property :end_time, as: 'endTime' property :end_time, as: 'endTime'
hash :request, as: 'request' hash :request, as: 'request'
collection :events, as: 'events', class: Google::Apis::GenomicsV1::OperationEvent, decorator: Google::Apis::GenomicsV1::OperationEvent::Representation collection :events, as: 'events', class: Google::Apis::GenomicsV1::OperationEvent, decorator: Google::Apis::GenomicsV1::OperationEvent::Representation
property :client_id, as: 'clientId'
hash :runtime_metadata, as: 'runtimeMetadata' hash :runtime_metadata, as: 'runtimeMetadata'
end end
end end
@ -1317,6 +1319,8 @@ module Google
class OperationEvent class OperationEvent
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :start_time, as: 'startTime'
property :end_time, as: 'endTime'
property :description, as: 'description' property :description, as: 'description'
end end
end end
@ -1324,12 +1328,12 @@ module Google
class RuntimeMetadata class RuntimeMetadata
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :gce, as: 'gce', class: Google::Apis::GenomicsV1::Gce, decorator: Google::Apis::GenomicsV1::Gce::Representation property :compute_engine, as: 'computeEngine', class: Google::Apis::GenomicsV1::ComputeEngine, decorator: Google::Apis::GenomicsV1::ComputeEngine::Representation
end end
end end
class Gce class ComputeEngine
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :instance_name, as: 'instanceName' property :instance_name, as: 'instanceName'

View File

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

View File

@ -300,6 +300,10 @@ module Google
# Maximum number of drafts to return. # Maximum number of drafts to return.
# @param [String] page_token # @param [String] page_token
# Page token to retrieve a specific page of results in the list. # Page token to retrieve a specific page of results in the list.
# @param [String] q
# Only return draft messages matching the specified query. Supports the same
# query format as the Gmail search box. For example, "from:someuser@example.com
# rfc822msgid: is:unread".
# @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
@ -321,7 +325,7 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_user_drafts(user_id, include_spam_trash: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def list_user_drafts(user_id, include_spam_trash: nil, max_results: nil, page_token: nil, q: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{userId}/drafts', options) command = make_simple_command(:get, '{userId}/drafts', options)
command.response_representation = Google::Apis::GmailV1::ListDraftsResponse::Representation command.response_representation = Google::Apis::GmailV1::ListDraftsResponse::Representation
command.response_class = Google::Apis::GmailV1::ListDraftsResponse command.response_class = Google::Apis::GmailV1::ListDraftsResponse
@ -329,6 +333,7 @@ module Google
command.query['includeSpamTrash'] = include_spam_trash unless include_spam_trash.nil? command.query['includeSpamTrash'] = include_spam_trash unless include_spam_trash.nil?
command.query['maxResults'] = max_results unless max_results.nil? command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil? command.query['pageToken'] = page_token unless page_token.nil?
command.query['q'] = q unless q.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?
command.query['userIp'] = user_ip unless user_ip.nil? command.query['userIp'] = user_ip unless user_ip.nil?

View File

@ -20,12 +20,12 @@ module Google
module Apis module Apis
# Google Mirror API # Google Mirror API
# #
# API for interacting with Glass users via the timeline. # Interacts with Glass users via the timeline.
# #
# @see https://developers.google.com/glass # @see https://developers.google.com/glass
module MirrorV1 module MirrorV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20151206' REVISION = '20160616'
# View your location # View your location
AUTH_GLASS_LOCATION = 'https://www.googleapis.com/auth/glass.location' AUTH_GLASS_LOCATION = 'https://www.googleapis.com/auth/glass.location'

View File

@ -22,7 +22,7 @@ module Google
module MirrorV1 module MirrorV1
# Google Mirror API # Google Mirror API
# #
# API for interacting with Glass users via the timeline. # Interacts with Glass users via the timeline.
# #
# @example # @example
# require 'google/apis/mirror_v1' # require 'google/apis/mirror_v1'

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/monitoring/api/ # @see https://cloud.google.com/monitoring/api/
module MonitoringV3 module MonitoringV3
VERSION = 'V3' VERSION = 'V3'
REVISION = '20160606' REVISION = '20160620'
# 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

@ -312,7 +312,7 @@ module Google
# MonitoredResourceDescriptor for `"gce_instance"` has labels # MonitoredResourceDescriptor for `"gce_instance"` has labels
# `"instance_id"` and `"zone"`: # `"instance_id"` and `"zone"`:
# ` "type": "gce_instance", # ` "type": "gce_instance",
# "labels": ` "instance_id": "my-instance", # "labels": ` "instance_id": "12345678901234",
# "zone": "us-central1-a" `` # "zone": "us-central1-a" ``
# Corresponds to the JSON property `resource` # Corresponds to the JSON property `resource`
# @return [Google::Apis::MonitoringV3::MonitoredResource] # @return [Google::Apis::MonitoringV3::MonitoredResource]
@ -478,17 +478,17 @@ module Google
class Exponential class Exponential
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Must be greater than 1 # Must be greater than 1.
# Corresponds to the JSON property `growthFactor` # Corresponds to the JSON property `growthFactor`
# @return [Float] # @return [Float]
attr_accessor :growth_factor attr_accessor :growth_factor
# Must be greater than 0 # Must be greater than 0.
# Corresponds to the JSON property `scale` # Corresponds to the JSON property `scale`
# @return [Float] # @return [Float]
attr_accessor :scale attr_accessor :scale
# must be greater than 0 # Must be greater than 0.
# Corresponds to the JSON property `numFiniteBuckets` # Corresponds to the JSON property `numFiniteBuckets`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :num_finite_buckets attr_accessor :num_finite_buckets
@ -769,7 +769,7 @@ module Google
# MonitoredResourceDescriptor for `"gce_instance"` has labels # MonitoredResourceDescriptor for `"gce_instance"` has labels
# `"instance_id"` and `"zone"`: # `"instance_id"` and `"zone"`:
# ` "type": "gce_instance", # ` "type": "gce_instance",
# "labels": ` "instance_id": "my-instance", # "labels": ` "instance_id": "12345678901234",
# "zone": "us-central1-a" `` # "zone": "us-central1-a" ``
class MonitoredResource class MonitoredResource
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -862,6 +862,7 @@ module Google
# Required. The monitored resource type. For example, the type # Required. The monitored resource type. For example, the type
# `"cloudsql_database"` represents databases in Google Cloud SQL. # `"cloudsql_database"` represents databases in Google Cloud SQL.
# The maximum length of this value is 256 characters.
# Corresponds to the JSON property `type` # Corresponds to the JSON property `type`
# @return [String] # @return [String]
attr_accessor :type attr_accessor :type
@ -1260,7 +1261,7 @@ module Google
# MonitoredResourceDescriptor for `"gce_instance"` has labels # MonitoredResourceDescriptor for `"gce_instance"` has labels
# `"instance_id"` and `"zone"`: # `"instance_id"` and `"zone"`:
# ` "type": "gce_instance", # ` "type": "gce_instance",
# "labels": ` "instance_id": "my-instance", # "labels": ` "instance_id": "12345678901234",
# "zone": "us-central1-a" `` # "zone": "us-central1-a" ``
# Corresponds to the JSON property `resource` # Corresponds to the JSON property `resource`
# @return [Google::Apis::MonitoringV3::MonitoredResource] # @return [Google::Apis::MonitoringV3::MonitoredResource]

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/accounts/docs/OAuth2 # @see https://developers.google.com/accounts/docs/OAuth2
module Oauth2V2 module Oauth2V2
VERSION = 'V2' VERSION = 'V2'
REVISION = '20160602' REVISION = '20160624'
# Know the list of people in your circles, your age range, and language # Know the list of people in your circles, your age range, and language
AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login' AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/+/domains/ # @see https://developers.google.com/+/domains/
module PlusDomainsV1 module PlusDomainsV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20160618' REVISION = '20160629'
# View your circles and the people and pages in them # View your circles and the people and pages in them
AUTH_PLUS_CIRCLES_READ = 'https://www.googleapis.com/auth/plus.circles.read' AUTH_PLUS_CIRCLES_READ = 'https://www.googleapis.com/auth/plus.circles.read'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/+/api/ # @see https://developers.google.com/+/api/
module PlusV1 module PlusV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20160618' REVISION = '20160629'
# Know the list of people in your circles, your age range, and language # Know the list of people in your circles, your age range, and language
AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login' AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/sheets/ # @see https://developers.google.com/sheets/
module SheetsV4 module SheetsV4
VERSION = 'V4' VERSION = 'V4'
REVISION = '20160617' REVISION = '20160623'
# View the files in your Google Drive # View the files in your Google Drive
AUTH_DRIVE_READONLY = 'https://www.googleapis.com/auth/drive.readonly' AUTH_DRIVE_READONLY = 'https://www.googleapis.com/auth/drive.readonly'

View File

@ -20,12 +20,12 @@ module Google
module Apis module Apis
# Translate API # Translate API
# #
# Lets you translate text from one language to another # Translates text from one language to another.
# #
# @see https://developers.google.com/translate/v2/using_rest # @see https://developers.google.com/translate/v2/using_rest
module TranslateV2 module TranslateV2
VERSION = 'V2' VERSION = 'V2'
REVISION = '20160217' REVISION = '20160627'
end end
end end
end end

View File

@ -22,7 +22,7 @@ module Google
module TranslateV2 module TranslateV2
# Translate API # Translate API
# #
# Lets you translate text from one language to another # Translates text from one language to another.
# #
# @example # @example
# require 'google/apis/translate_v2' # require 'google/apis/translate_v2'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/youtube/partner/ # @see https://developers.google.com/youtube/partner/
module YoutubePartnerV1 module YoutubePartnerV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20160614' REVISION = '20160628'
# View and manage your assets and associated content on YouTube # View and manage your assets and associated content on YouTube
AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner' AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner'

View File

@ -43,7 +43,7 @@ API_IDS=(adexchangebuyer:v1.4 \
dataproc:v1 \ dataproc:v1 \
datastore:v1beta3 \ datastore:v1beta3 \
deploymentmanager:v2 \ deploymentmanager:v2 \
dfareporting:v2.3 \ dfareporting:v2.5 \
discovery:v1 \ discovery:v1 \
dns:v1 \ dns:v1 \
doubleclickbidmanager:v1 \ doubleclickbidmanager:v1 \