Autogenerated update (2018-05-09)

Update:
- androidenterprise_v1
- cloudiot_v1
- content_v2
- spanner_v1
- storage_v1
This commit is contained in:
Google APIs committed 2018-05-09 00:36:02 +00:00
1 parent 1db02b4256
commit f837674354
20 files changed
+8034 -27

No files matched your search

@@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/android/work/play/emm-api
module AndroidenterpriseV1
VERSION = 'V1'
REVISION = '20180425'
REVISION = '20180502'
# Manage corporate Android devices
AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise'
@@ -1632,14 +1632,12 @@ module Google
attr_accessor :maintenance_window
# The availability granted to the device for the specified products. "all" gives
# the device access to all products, regardless of approval status. "allApproved"
# entitles the device to access all products that are approved for the
# enterprise. "allApproved" and "all" do not enable automatic visibility of "
# alpha" or "beta" tracks. "whitelist" grants the device access the products
# specified in productPolicy[]. Only products that are approved or products that
# were previously approved (products with revoked approval) by the enterprise
# can be whitelisted. If no value is provided, the availability set at the user
# level is applied by default.
# the device access to all products, regardless of approval status. "all" does
# not enable automatic visibility of "alpha" or "beta" tracks. "whitelist"
# grants the device access the products specified in productPolicy[]. Only
# products that are approved or products that were previously approved (products
# with revoked approval) by the enterprise can be whitelisted. If no value is
# provided, the availability set at the user level is applied by default.
# Corresponds to the JSON property `productAvailabilityPolicy`
# @return [String]
attr_accessor :product_availability_policy
@@ -0,0 +1,34 @@
# 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/androidpublisher_v3/service.rb'
require 'google/apis/androidpublisher_v3/classes.rb'
require 'google/apis/androidpublisher_v3/representations.rb'
module Google
module Apis
# Google Play Developer API
#
# Lets Android application developers access their Google Play accounts.
#
# @see https://developers.google.com/android-publisher
module AndroidpublisherV3
VERSION = 'V3'
REVISION = '20180502'
# View and manage your Google Play Developer account
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
end
end
end
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,852 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module AndroidpublisherV3
class Apk
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ApkBinary
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ApksAddExternallyHostedRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ApksAddExternallyHostedResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ApksListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AppDetails
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AppEdit
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Comment
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DeobfuscationFile
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DeobfuscationFilesUploadResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DeveloperComment
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DeviceMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ExpansionFile
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ExpansionFilesUploadResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ExternallyHostedApk
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ExternallyHostedApkUsesPermission
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Image
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ImagesDeleteAllResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ImagesListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ImagesUploadResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InAppProduct
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InAppProductListing
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InappproductsListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Listing
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListingsListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LocalizedText
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MonthDay
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PageInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Price
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ProductPurchase
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Prorate
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Review
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ReviewReplyResult
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ReviewsListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ReviewsReplyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ReviewsReplyResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Season
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SubscriptionCancelSurveyResult
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SubscriptionDeferralInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SubscriptionPurchase
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SubscriptionPurchasesDeferRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SubscriptionPurchasesDeferResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Testers
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Timestamp
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TokenPagination
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Track
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TrackRelease
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TracksListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UserComment
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class VoidedPurchase
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class VoidedPurchasesListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Apk
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :binary, as: 'binary', class: Google::Apis::AndroidpublisherV3::ApkBinary, decorator: Google::Apis::AndroidpublisherV3::ApkBinary::Representation
property :version_code, as: 'versionCode'
end
end
class ApkBinary
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :sha1, as: 'sha1'
property :sha256, as: 'sha256'
end
end
class ApksAddExternallyHostedRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :externally_hosted_apk, as: 'externallyHostedApk', class: Google::Apis::AndroidpublisherV3::ExternallyHostedApk, decorator: Google::Apis::AndroidpublisherV3::ExternallyHostedApk::Representation
end
end
class ApksAddExternallyHostedResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :externally_hosted_apk, as: 'externallyHostedApk', class: Google::Apis::AndroidpublisherV3::ExternallyHostedApk, decorator: Google::Apis::AndroidpublisherV3::ExternallyHostedApk::Representation
end
end
class ApksListResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :apks, as: 'apks', class: Google::Apis::AndroidpublisherV3::Apk, decorator: Google::Apis::AndroidpublisherV3::Apk::Representation
property :kind, as: 'kind'
end
end
class AppDetails
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :contact_email, as: 'contactEmail'
property :contact_phone, as: 'contactPhone'
property :contact_website, as: 'contactWebsite'
property :default_language, as: 'defaultLanguage'
end
end
class AppEdit
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :expiry_time_seconds, as: 'expiryTimeSeconds'
property :id, as: 'id'
end
end
class Comment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :developer_comment, as: 'developerComment', class: Google::Apis::AndroidpublisherV3::DeveloperComment, decorator: Google::Apis::AndroidpublisherV3::DeveloperComment::Representation
property :user_comment, as: 'userComment', class: Google::Apis::AndroidpublisherV3::UserComment, decorator: Google::Apis::AndroidpublisherV3::UserComment::Representation
end
end
class DeobfuscationFile
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :symbol_type, as: 'symbolType'
end
end
class DeobfuscationFilesUploadResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :deobfuscation_file, as: 'deobfuscationFile', class: Google::Apis::AndroidpublisherV3::DeobfuscationFile, decorator: Google::Apis::AndroidpublisherV3::DeobfuscationFile::Representation
end
end
class DeveloperComment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :last_modified, as: 'lastModified', class: Google::Apis::AndroidpublisherV3::Timestamp, decorator: Google::Apis::AndroidpublisherV3::Timestamp::Representation
property :text, as: 'text'
end
end
class DeviceMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :cpu_make, as: 'cpuMake'
property :cpu_model, as: 'cpuModel'
property :device_class, as: 'deviceClass'
property :gl_es_version, as: 'glEsVersion'
property :manufacturer, as: 'manufacturer'
property :native_platform, as: 'nativePlatform'
property :product_name, as: 'productName'
property :ram_mb, as: 'ramMb'
property :screen_density_dpi, as: 'screenDensityDpi'
property :screen_height_px, as: 'screenHeightPx'
property :screen_width_px, as: 'screenWidthPx'
end
end
class ExpansionFile
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :file_size, :numeric_string => true, as: 'fileSize'
property :references_version, as: 'referencesVersion'
end
end
class ExpansionFilesUploadResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :expansion_file, as: 'expansionFile', class: Google::Apis::AndroidpublisherV3::ExpansionFile, decorator: Google::Apis::AndroidpublisherV3::ExpansionFile::Representation
end
end
class ExternallyHostedApk
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :application_label, as: 'applicationLabel'
collection :certificate_base64s, as: 'certificateBase64s'
property :externally_hosted_url, as: 'externallyHostedUrl'
property :file_sha1_base64, as: 'fileSha1Base64'
property :file_sha256_base64, as: 'fileSha256Base64'
property :file_size, :numeric_string => true, as: 'fileSize'
property :icon_base64, as: 'iconBase64'
property :maximum_sdk, as: 'maximumSdk'
property :minimum_sdk, as: 'minimumSdk'
collection :native_codes, as: 'nativeCodes'
property :package_name, as: 'packageName'
collection :uses_features, as: 'usesFeatures'
collection :uses_permissions, as: 'usesPermissions', class: Google::Apis::AndroidpublisherV3::ExternallyHostedApkUsesPermission, decorator: Google::Apis::AndroidpublisherV3::ExternallyHostedApkUsesPermission::Representation
property :version_code, as: 'versionCode'
property :version_name, as: 'versionName'
end
end
class ExternallyHostedApkUsesPermission
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :max_sdk_version, as: 'maxSdkVersion'
property :name, as: 'name'
end
end
class Image
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
property :sha1, as: 'sha1'
property :url, as: 'url'
end
end
class ImagesDeleteAllResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :deleted, as: 'deleted', class: Google::Apis::AndroidpublisherV3::Image, decorator: Google::Apis::AndroidpublisherV3::Image::Representation
end
end
class ImagesListResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :images, as: 'images', class: Google::Apis::AndroidpublisherV3::Image, decorator: Google::Apis::AndroidpublisherV3::Image::Representation
end
end
class ImagesUploadResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :image, as: 'image', class: Google::Apis::AndroidpublisherV3::Image, decorator: Google::Apis::AndroidpublisherV3::Image::Representation
end
end
class InAppProduct
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :default_language, as: 'defaultLanguage'
property :default_price, as: 'defaultPrice', class: Google::Apis::AndroidpublisherV3::Price, decorator: Google::Apis::AndroidpublisherV3::Price::Representation
hash :listings, as: 'listings', class: Google::Apis::AndroidpublisherV3::InAppProductListing, decorator: Google::Apis::AndroidpublisherV3::InAppProductListing::Representation
property :package_name, as: 'packageName'
hash :prices, as: 'prices', class: Google::Apis::AndroidpublisherV3::Price, decorator: Google::Apis::AndroidpublisherV3::Price::Representation
property :purchase_type, as: 'purchaseType'
property :season, as: 'season', class: Google::Apis::AndroidpublisherV3::Season, decorator: Google::Apis::AndroidpublisherV3::Season::Representation
property :sku, as: 'sku'
property :status, as: 'status'
property :subscription_period, as: 'subscriptionPeriod'
property :trial_period, as: 'trialPeriod'
end
end
class InAppProductListing
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :title, as: 'title'
end
end
class InappproductsListResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :inappproduct, as: 'inappproduct', class: Google::Apis::AndroidpublisherV3::InAppProduct, decorator: Google::Apis::AndroidpublisherV3::InAppProduct::Representation
property :kind, as: 'kind'
property :page_info, as: 'pageInfo', class: Google::Apis::AndroidpublisherV3::PageInfo, decorator: Google::Apis::AndroidpublisherV3::PageInfo::Representation
property :token_pagination, as: 'tokenPagination', class: Google::Apis::AndroidpublisherV3::TokenPagination, decorator: Google::Apis::AndroidpublisherV3::TokenPagination::Representation
end
end
class Listing
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :full_description, as: 'fullDescription'
property :language, as: 'language'
property :short_description, as: 'shortDescription'
property :title, as: 'title'
property :video, as: 'video'
end
end
class ListingsListResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
collection :listings, as: 'listings', class: Google::Apis::AndroidpublisherV3::Listing, decorator: Google::Apis::AndroidpublisherV3::Listing::Representation
end
end
class LocalizedText
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :language, as: 'language'
property :text, as: 'text'
end
end
class MonthDay
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :day, as: 'day'
property :month, as: 'month'
end
end
class PageInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :result_per_page, as: 'resultPerPage'
property :start_index, as: 'startIndex'
property :total_results, as: 'totalResults'
end
end
class Price
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :currency, as: 'currency'
property :price_micros, as: 'priceMicros'
end
end
class ProductPurchase
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :consumption_state, as: 'consumptionState'
property :developer_payload, as: 'developerPayload'
property :kind, as: 'kind'
property :order_id, as: 'orderId'
property :purchase_state, as: 'purchaseState'
property :purchase_time_millis, :numeric_string => true, as: 'purchaseTimeMillis'
property :purchase_type, as: 'purchaseType'
end
end
class Prorate
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :default_price, as: 'defaultPrice', class: Google::Apis::AndroidpublisherV3::Price, decorator: Google::Apis::AndroidpublisherV3::Price::Representation
property :start, as: 'start', class: Google::Apis::AndroidpublisherV3::MonthDay, decorator: Google::Apis::AndroidpublisherV3::MonthDay::Representation
end
end
class Review
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :author_name, as: 'authorName'
collection :comments, as: 'comments', class: Google::Apis::AndroidpublisherV3::Comment, decorator: Google::Apis::AndroidpublisherV3::Comment::Representation
property :review_id, as: 'reviewId'
end
end
class ReviewReplyResult
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :last_edited, as: 'lastEdited', class: Google::Apis::AndroidpublisherV3::Timestamp, decorator: Google::Apis::AndroidpublisherV3::Timestamp::Representation
property :reply_text, as: 'replyText'
end
end
class ReviewsListResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :page_info, as: 'pageInfo', class: Google::Apis::AndroidpublisherV3::PageInfo, decorator: Google::Apis::AndroidpublisherV3::PageInfo::Representation
collection :reviews, as: 'reviews', class: Google::Apis::AndroidpublisherV3::Review, decorator: Google::Apis::AndroidpublisherV3::Review::Representation
property :token_pagination, as: 'tokenPagination', class: Google::Apis::AndroidpublisherV3::TokenPagination, decorator: Google::Apis::AndroidpublisherV3::TokenPagination::Representation
end
end
class ReviewsReplyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :reply_text, as: 'replyText'
end
end
class ReviewsReplyResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :result, as: 'result', class: Google::Apis::AndroidpublisherV3::ReviewReplyResult, decorator: Google::Apis::AndroidpublisherV3::ReviewReplyResult::Representation
end
end
class Season
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :end, as: 'end', class: Google::Apis::AndroidpublisherV3::MonthDay, decorator: Google::Apis::AndroidpublisherV3::MonthDay::Representation
collection :prorations, as: 'prorations', class: Google::Apis::AndroidpublisherV3::Prorate, decorator: Google::Apis::AndroidpublisherV3::Prorate::Representation
property :start, as: 'start', class: Google::Apis::AndroidpublisherV3::MonthDay, decorator: Google::Apis::AndroidpublisherV3::MonthDay::Representation
end
end
class SubscriptionCancelSurveyResult
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :cancel_survey_reason, as: 'cancelSurveyReason'
property :user_input_cancel_reason, as: 'userInputCancelReason'
end
end
class SubscriptionDeferralInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :desired_expiry_time_millis, :numeric_string => true, as: 'desiredExpiryTimeMillis'
property :expected_expiry_time_millis, :numeric_string => true, as: 'expectedExpiryTimeMillis'
end
end
class SubscriptionPurchase
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :auto_renewing, as: 'autoRenewing'
property :cancel_reason, as: 'cancelReason'
property :cancel_survey_result, as: 'cancelSurveyResult', class: Google::Apis::AndroidpublisherV3::SubscriptionCancelSurveyResult, decorator: Google::Apis::AndroidpublisherV3::SubscriptionCancelSurveyResult::Representation
property :country_code, as: 'countryCode'
property :developer_payload, as: 'developerPayload'
property :email_address, as: 'emailAddress'
property :expiry_time_millis, :numeric_string => true, as: 'expiryTimeMillis'
property :family_name, as: 'familyName'
property :given_name, as: 'givenName'
property :kind, as: 'kind'
property :linked_purchase_token, as: 'linkedPurchaseToken'
property :order_id, as: 'orderId'
property :payment_state, as: 'paymentState'
property :price_amount_micros, :numeric_string => true, as: 'priceAmountMicros'
property :price_currency_code, as: 'priceCurrencyCode'
property :profile_id, as: 'profileId'
property :profile_name, as: 'profileName'
property :purchase_type, as: 'purchaseType'
property :start_time_millis, :numeric_string => true, as: 'startTimeMillis'
property :user_cancellation_time_millis, :numeric_string => true, as: 'userCancellationTimeMillis'
end
end
class SubscriptionPurchasesDeferRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :deferral_info, as: 'deferralInfo', class: Google::Apis::AndroidpublisherV3::SubscriptionDeferralInfo, decorator: Google::Apis::AndroidpublisherV3::SubscriptionDeferralInfo::Representation
end
end
class SubscriptionPurchasesDeferResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :new_expiry_time_millis, :numeric_string => true, as: 'newExpiryTimeMillis'
end
end
class Testers
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :google_groups, as: 'googleGroups'
collection :google_plus_communities, as: 'googlePlusCommunities'
end
end
class Timestamp
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :nanos, as: 'nanos'
property :seconds, :numeric_string => true, as: 'seconds'
end
end
class TokenPagination
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
property :previous_page_token, as: 'previousPageToken'
end
end
class Track
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :releases, as: 'releases', class: Google::Apis::AndroidpublisherV3::TrackRelease, decorator: Google::Apis::AndroidpublisherV3::TrackRelease::Representation
property :track, as: 'track'
end
end
class TrackRelease
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
collection :release_notes, as: 'releaseNotes', class: Google::Apis::AndroidpublisherV3::LocalizedText, decorator: Google::Apis::AndroidpublisherV3::LocalizedText::Representation
property :status, as: 'status'
property :user_fraction, as: 'userFraction'
collection :version_codes, as: 'versionCodes'
end
end
class TracksListResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
collection :tracks, as: 'tracks', class: Google::Apis::AndroidpublisherV3::Track, decorator: Google::Apis::AndroidpublisherV3::Track::Representation
end
end
class UserComment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :android_os_version, as: 'androidOsVersion'
property :app_version_code, as: 'appVersionCode'
property :app_version_name, as: 'appVersionName'
property :device, as: 'device'
property :device_metadata, as: 'deviceMetadata', class: Google::Apis::AndroidpublisherV3::DeviceMetadata, decorator: Google::Apis::AndroidpublisherV3::DeviceMetadata::Representation
property :last_modified, as: 'lastModified', class: Google::Apis::AndroidpublisherV3::Timestamp, decorator: Google::Apis::AndroidpublisherV3::Timestamp::Representation
property :original_text, as: 'originalText'
property :reviewer_language, as: 'reviewerLanguage'
property :star_rating, as: 'starRating'
property :text, as: 'text'
property :thumbs_down_count, as: 'thumbsDownCount'
property :thumbs_up_count, as: 'thumbsUpCount'
end
end
class VoidedPurchase
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
property :purchase_time_millis, :numeric_string => true, as: 'purchaseTimeMillis'
property :purchase_token, as: 'purchaseToken'
property :voided_time_millis, :numeric_string => true, as: 'voidedTimeMillis'
end
end
class VoidedPurchasesListResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :page_info, as: 'pageInfo', class: Google::Apis::AndroidpublisherV3::PageInfo, decorator: Google::Apis::AndroidpublisherV3::PageInfo::Representation
property :token_pagination, as: 'tokenPagination', class: Google::Apis::AndroidpublisherV3::TokenPagination, decorator: Google::Apis::AndroidpublisherV3::TokenPagination::Representation
collection :voided_purchases, as: 'voidedPurchases', class: Google::Apis::AndroidpublisherV3::VoidedPurchase, decorator: Google::Apis::AndroidpublisherV3::VoidedPurchase::Representation
end
end
end
end
end
File diff suppressed because it is too large. Load diff
+1 -1
View File
@@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/iot
module CloudiotV1
VERSION = 'V1'
REVISION = '20180424'
REVISION = '20180501'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
+12 -2
View File
@@ -63,6 +63,10 @@ module Google
# The fields of the `Device` resource to be returned in the response. The
# fields `id`, and `num_id` are always returned by default, along with any
# other fields specified.
# @param [String] gateway_type
# If `GATEWAY` is specified, only gateways are returned. If `NON_GATEWAY`
# specified, only non-gateway devices are returned. If
# `GATEWAY_TYPE_UNSPECIFIED` specified, all devices are returned.
# @param [Fixnum] page_size
# The maximum number of devices to return in the response. If this value
# is zero, the service will select a default size. A call may return fewer
@@ -89,7 +93,7 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_location_group_devices(parent, device_ids: nil, device_num_ids: nil, field_mask: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
def list_project_location_group_devices(parent, device_ids: nil, device_num_ids: nil, field_mask: nil, gateway_type: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+parent}/devices', options)
command.response_representation = Google::Apis::CloudiotV1::ListDevicesResponse::Representation
command.response_class = Google::Apis::CloudiotV1::ListDevicesResponse
@@ -97,6 +101,7 @@ module Google
command.query['deviceIds'] = device_ids unless device_ids.nil?
command.query['deviceNumIds'] = device_num_ids unless device_num_ids.nil?
command.query['fieldMask'] = field_mask unless field_mask.nil?
command.query['gatewayType'] = gateway_type unless gateway_type.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
@@ -508,6 +513,10 @@ module Google
# The fields of the `Device` resource to be returned in the response. The
# fields `id`, and `num_id` are always returned by default, along with any
# other fields specified.
# @param [String] gateway_type
# If `GATEWAY` is specified, only gateways are returned. If `NON_GATEWAY`
# specified, only non-gateway devices are returned. If
# `GATEWAY_TYPE_UNSPECIFIED` specified, all devices are returned.
# @param [Fixnum] page_size
# The maximum number of devices to return in the response. If this value
# is zero, the service will select a default size. A call may return fewer
@@ -534,7 +543,7 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_location_registry_devices(parent, device_ids: nil, device_num_ids: nil, field_mask: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
def list_project_location_registry_devices(parent, device_ids: nil, device_num_ids: nil, field_mask: nil, gateway_type: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+parent}/devices', options)
command.response_representation = Google::Apis::CloudiotV1::ListDevicesResponse::Representation
command.response_class = Google::Apis::CloudiotV1::ListDevicesResponse
@@ -542,6 +551,7 @@ module Google
command.query['deviceIds'] = device_ids unless device_ids.nil?
command.query['deviceNumIds'] = device_num_ids unless device_num_ids.nil?
command.query['fieldMask'] = field_mask unless field_mask.nil?
command.query['gatewayType'] = gateway_type unless gateway_type.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
+1 -1
View File
@@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/shopping-content
module ContentV2
VERSION = 'V2'
REVISION = '20180410'
REVISION = '20180507'
# Manage your product listings and accounts for Google Shopping
AUTH_CONTENT = 'https://www.googleapis.com/auth/content'
@@ -2816,6 +2816,16 @@ module Google
# @return [String]
attr_accessor :method_prop
# The account ID by which this merchant is known to the POS provider.
# Corresponds to the JSON property `posExternalAccountId`
# @return [String]
attr_accessor :pos_external_account_id
# The ID of POS provider. Required only for SetPosProvider.
# Corresponds to the JSON property `posProviderId`
# @return [Fixnum]
attr_accessor :pos_provider_id
def initialize(**args)
update!(**args)
end
@@ -2831,6 +2841,8 @@ module Google
@lia_settings = args[:lia_settings] if args.key?(:lia_settings)
@merchant_id = args[:merchant_id] if args.key?(:merchant_id)
@method_prop = args[:method_prop] if args.key?(:method_prop)
@pos_external_account_id = args[:pos_external_account_id] if args.key?(:pos_external_account_id)
@pos_provider_id = args[:pos_provider_id] if args.key?(:pos_provider_id)
end
end
@@ -2890,6 +2902,11 @@ module Google
# @return [Google::Apis::ContentV2::LiaSettings]
attr_accessor :lia_settings
# The list of POS providers.
# Corresponds to the JSON property `posProviders`
# @return [Array<Google::Apis::ContentV2::PosProviders>]
attr_accessor :pos_providers
def initialize(**args)
update!(**args)
end
@@ -2901,6 +2918,7 @@ module Google
@gmb_accounts = args[:gmb_accounts] if args.key?(:gmb_accounts)
@kind = args[:kind] if args.key?(:kind)
@lia_settings = args[:lia_settings] if args.key?(:lia_settings)
@pos_providers = args[:pos_providers] if args.key?(:pos_providers)
end
end
@@ -6365,6 +6383,62 @@ module Google
end
end
#
class PosProviders
include Google::Apis::Core::Hashable
# Country code.
# Corresponds to the JSON property `country`
# @return [String]
attr_accessor :country
# A list of POS providers.
# Corresponds to the JSON property `posProviders`
# @return [Array<Google::Apis::ContentV2::PosProvidersPosProvider>]
attr_accessor :pos_providers
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@country = args[:country] if args.key?(:country)
@pos_providers = args[:pos_providers] if args.key?(:pos_providers)
end
end
#
class PosProvidersPosProvider
include Google::Apis::Core::Hashable
# The display name of Pos Provider.
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
# The full name of this POS Provider.
# Corresponds to the JSON property `fullName`
# @return [String]
attr_accessor :full_name
# The ID of the account.
# Corresponds to the JSON property `providerId`
# @return [Fixnum]
attr_accessor :provider_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@display_name = args[:display_name] if args.key?(:display_name)
@full_name = args[:full_name] if args.key?(:full_name)
@provider_id = args[:provider_id] if args.key?(:provider_id)
end
end
# The change of the available quantity of an item at the given store.
class PosSale
include Google::Apis::Core::Hashable
@@ -970,6 +970,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class PosProviders
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PosProvidersPosProvider
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PosSale
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -2070,6 +2082,8 @@ module Google
property :merchant_id, :numeric_string => true, as: 'merchantId'
property :method_prop, as: 'method'
property :pos_external_account_id, as: 'posExternalAccountId'
property :pos_provider_id, :numeric_string => true, as: 'posProviderId'
end
end
@@ -2093,6 +2107,8 @@ module Google
property :kind, as: 'kind'
property :lia_settings, as: 'liaSettings', class: Google::Apis::ContentV2::LiaSettings, decorator: Google::Apis::ContentV2::LiaSettings::Representation
collection :pos_providers, as: 'posProviders', class: Google::Apis::ContentV2::PosProviders, decorator: Google::Apis::ContentV2::PosProviders::Representation
end
end
@@ -3055,6 +3071,24 @@ module Google
end
end
class PosProviders
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :country, as: 'country'
collection :pos_providers, as: 'posProviders', class: Google::Apis::ContentV2::PosProvidersPosProvider, decorator: Google::Apis::ContentV2::PosProvidersPosProvider::Representation
end
end
class PosProvidersPosProvider
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :display_name, as: 'displayName'
property :full_name, as: 'fullName'
property :provider_id, :numeric_string => true, as: 'providerId'
end
end
class PosSale
# @private
class Representation < Google::Apis::Core::JsonRepresentation
+49
View File
@@ -0,0 +1,49 @@
# 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/photoslibrary_v1/service.rb'
require 'google/apis/photoslibrary_v1/classes.rb'
require 'google/apis/photoslibrary_v1/representations.rb'
module Google
module Apis
# Photos Library API
#
# Manage photos, videos, and albums in Google Photos
#
# @see https://developers.google.com/photos/
module PhotoslibraryV1
VERSION = 'V1'
REVISION = '20180508'
# View the photos, videos and albums in your Google Photos
AUTH_DRIVE_PHOTOS_READONLY = 'https://www.googleapis.com/auth/drive.photos.readonly'
# View and manage your Google Photos library
AUTH_PHOTOSLIBRARY = 'https://www.googleapis.com/auth/photoslibrary'
# Add to your Google Photos library
AUTH_PHOTOSLIBRARY_APPENDONLY = 'https://www.googleapis.com/auth/photoslibrary.appendonly'
# View your Google Photos library
AUTH_PHOTOSLIBRARY_READONLY = 'https://www.googleapis.com/auth/photoslibrary.readonly'
# Manage photos added by this app
AUTH_PHOTOSLIBRARY_READONLY_APPCREATEDDATA = 'https://www.googleapis.com/auth/photoslibrary.readonly.appcreateddata'
# Manage and add to shared albums on your behalf
AUTH_PHOTOSLIBRARY_SHARING = 'https://www.googleapis.com/auth/photoslibrary.sharing'
end
end
end
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,625 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module PhotoslibraryV1
class AddEnrichmentToAlbumRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AddEnrichmentToAlbumResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Album
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AlbumPosition
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BatchCreateMediaItemsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BatchCreateMediaItemsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ContentFilter
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ContributorInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CreateAlbumRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Date
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DateFilter
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DateRange
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class EnrichmentItem
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Filters
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class JoinSharedAlbumRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class JoinSharedAlbumResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LatLng
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListAlbumsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListSharedAlbumsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Location
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LocationEnrichment
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MapEnrichment
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MediaItem
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MediaMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MediaTypeFilter
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class NewEnrichmentItem
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class NewMediaItem
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class NewMediaItemResult
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Photo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SearchMediaItemsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SearchMediaItemsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ShareAlbumRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ShareAlbumResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ShareInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SharedAlbumOptions
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SimpleMediaItem
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Status
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TextEnrichment
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Video
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AddEnrichmentToAlbumRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :album_position, as: 'albumPosition', class: Google::Apis::PhotoslibraryV1::AlbumPosition, decorator: Google::Apis::PhotoslibraryV1::AlbumPosition::Representation
property :new_enrichment_item, as: 'newEnrichmentItem', class: Google::Apis::PhotoslibraryV1::NewEnrichmentItem, decorator: Google::Apis::PhotoslibraryV1::NewEnrichmentItem::Representation
end
end
class AddEnrichmentToAlbumResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :enrichment_item, as: 'enrichmentItem', class: Google::Apis::PhotoslibraryV1::EnrichmentItem, decorator: Google::Apis::PhotoslibraryV1::EnrichmentItem::Representation
end
end
class Album
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :cover_photo_base_url, as: 'coverPhotoBaseUrl'
property :id, as: 'id'
property :is_writeable, as: 'isWriteable'
property :product_url, as: 'productUrl'
property :share_info, as: 'shareInfo', class: Google::Apis::PhotoslibraryV1::ShareInfo, decorator: Google::Apis::PhotoslibraryV1::ShareInfo::Representation
property :title, as: 'title'
property :total_media_items, :numeric_string => true, as: 'totalMediaItems'
end
end
class AlbumPosition
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :position, as: 'position'
property :relative_enrichment_item_id, as: 'relativeEnrichmentItemId'
property :relative_media_item_id, as: 'relativeMediaItemId'
end
end
class BatchCreateMediaItemsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :album_id, as: 'albumId'
property :album_position, as: 'albumPosition', class: Google::Apis::PhotoslibraryV1::AlbumPosition, decorator: Google::Apis::PhotoslibraryV1::AlbumPosition::Representation
collection :new_media_items, as: 'newMediaItems', class: Google::Apis::PhotoslibraryV1::NewMediaItem, decorator: Google::Apis::PhotoslibraryV1::NewMediaItem::Representation
end
end
class BatchCreateMediaItemsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :new_media_item_results, as: 'newMediaItemResults', class: Google::Apis::PhotoslibraryV1::NewMediaItemResult, decorator: Google::Apis::PhotoslibraryV1::NewMediaItemResult::Representation
end
end
class ContentFilter
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :excluded_content_categories, as: 'excludedContentCategories'
collection :included_content_categories, as: 'includedContentCategories'
end
end
class ContributorInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :display_name, as: 'displayName'
property :profile_picture_base_url, as: 'profilePictureBaseUrl'
end
end
class CreateAlbumRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :album, as: 'album', class: Google::Apis::PhotoslibraryV1::Album, decorator: Google::Apis::PhotoslibraryV1::Album::Representation
end
end
class Date
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :day, as: 'day'
property :month, as: 'month'
property :year, as: 'year'
end
end
class DateFilter
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :dates, as: 'dates', class: Google::Apis::PhotoslibraryV1::Date, decorator: Google::Apis::PhotoslibraryV1::Date::Representation
collection :ranges, as: 'ranges', class: Google::Apis::PhotoslibraryV1::DateRange, decorator: Google::Apis::PhotoslibraryV1::DateRange::Representation
end
end
class DateRange
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :end_date, as: 'endDate', class: Google::Apis::PhotoslibraryV1::Date, decorator: Google::Apis::PhotoslibraryV1::Date::Representation
property :start_date, as: 'startDate', class: Google::Apis::PhotoslibraryV1::Date, decorator: Google::Apis::PhotoslibraryV1::Date::Representation
end
end
class EnrichmentItem
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
end
end
class Filters
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :content_filter, as: 'contentFilter', class: Google::Apis::PhotoslibraryV1::ContentFilter, decorator: Google::Apis::PhotoslibraryV1::ContentFilter::Representation
property :date_filter, as: 'dateFilter', class: Google::Apis::PhotoslibraryV1::DateFilter, decorator: Google::Apis::PhotoslibraryV1::DateFilter::Representation
property :include_archived_media, as: 'includeArchivedMedia'
property :media_type_filter, as: 'mediaTypeFilter', class: Google::Apis::PhotoslibraryV1::MediaTypeFilter, decorator: Google::Apis::PhotoslibraryV1::MediaTypeFilter::Representation
end
end
class JoinSharedAlbumRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :share_token, as: 'shareToken'
end
end
class JoinSharedAlbumResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class LatLng
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :latitude, as: 'latitude'
property :longitude, as: 'longitude'
end
end
class ListAlbumsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :albums, as: 'albums', class: Google::Apis::PhotoslibraryV1::Album, decorator: Google::Apis::PhotoslibraryV1::Album::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class ListSharedAlbumsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :shared_albums, as: 'sharedAlbums', class: Google::Apis::PhotoslibraryV1::Album, decorator: Google::Apis::PhotoslibraryV1::Album::Representation
end
end
class Location
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :latlng, as: 'latlng', class: Google::Apis::PhotoslibraryV1::LatLng, decorator: Google::Apis::PhotoslibraryV1::LatLng::Representation
property :location_name, as: 'locationName'
end
end
class LocationEnrichment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :location, as: 'location', class: Google::Apis::PhotoslibraryV1::Location, decorator: Google::Apis::PhotoslibraryV1::Location::Representation
end
end
class MapEnrichment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :destination, as: 'destination', class: Google::Apis::PhotoslibraryV1::Location, decorator: Google::Apis::PhotoslibraryV1::Location::Representation
property :origin, as: 'origin', class: Google::Apis::PhotoslibraryV1::Location, decorator: Google::Apis::PhotoslibraryV1::Location::Representation
end
end
class MediaItem
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :base_url, as: 'baseUrl'
property :contributor_info, as: 'contributorInfo', class: Google::Apis::PhotoslibraryV1::ContributorInfo, decorator: Google::Apis::PhotoslibraryV1::ContributorInfo::Representation
property :description, as: 'description'
property :id, as: 'id'
property :media_metadata, as: 'mediaMetadata', class: Google::Apis::PhotoslibraryV1::MediaMetadata, decorator: Google::Apis::PhotoslibraryV1::MediaMetadata::Representation
property :mime_type, as: 'mimeType'
property :product_url, as: 'productUrl'
end
end
class MediaMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :creation_time, as: 'creationTime'
property :height, :numeric_string => true, as: 'height'
property :photo, as: 'photo', class: Google::Apis::PhotoslibraryV1::Photo, decorator: Google::Apis::PhotoslibraryV1::Photo::Representation
property :video, as: 'video', class: Google::Apis::PhotoslibraryV1::Video, decorator: Google::Apis::PhotoslibraryV1::Video::Representation
property :width, :numeric_string => true, as: 'width'
end
end
class MediaTypeFilter
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :media_types, as: 'mediaTypes'
end
end
class NewEnrichmentItem
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :location_enrichment, as: 'locationEnrichment', class: Google::Apis::PhotoslibraryV1::LocationEnrichment, decorator: Google::Apis::PhotoslibraryV1::LocationEnrichment::Representation
property :map_enrichment, as: 'mapEnrichment', class: Google::Apis::PhotoslibraryV1::MapEnrichment, decorator: Google::Apis::PhotoslibraryV1::MapEnrichment::Representation
property :text_enrichment, as: 'textEnrichment', class: Google::Apis::PhotoslibraryV1::TextEnrichment, decorator: Google::Apis::PhotoslibraryV1::TextEnrichment::Representation
end
end
class NewMediaItem
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :simple_media_item, as: 'simpleMediaItem', class: Google::Apis::PhotoslibraryV1::SimpleMediaItem, decorator: Google::Apis::PhotoslibraryV1::SimpleMediaItem::Representation
end
end
class NewMediaItemResult
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :media_item, as: 'mediaItem', class: Google::Apis::PhotoslibraryV1::MediaItem, decorator: Google::Apis::PhotoslibraryV1::MediaItem::Representation
property :status, as: 'status', class: Google::Apis::PhotoslibraryV1::Status, decorator: Google::Apis::PhotoslibraryV1::Status::Representation
property :upload_token, as: 'uploadToken'
end
end
class Photo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :aperture_f_number, as: 'apertureFNumber'
property :camera_make, as: 'cameraMake'
property :camera_model, as: 'cameraModel'
property :exposure_time, as: 'exposureTime'
property :focal_length, as: 'focalLength'
property :iso_equivalent, as: 'isoEquivalent'
end
end
class SearchMediaItemsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :album_id, as: 'albumId'
property :filters, as: 'filters', class: Google::Apis::PhotoslibraryV1::Filters, decorator: Google::Apis::PhotoslibraryV1::Filters::Representation
property :page_size, as: 'pageSize'
property :page_token, as: 'pageToken'
end
end
class SearchMediaItemsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :media_items, as: 'mediaItems', class: Google::Apis::PhotoslibraryV1::MediaItem, decorator: Google::Apis::PhotoslibraryV1::MediaItem::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class ShareAlbumRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :shared_album_options, as: 'sharedAlbumOptions', class: Google::Apis::PhotoslibraryV1::SharedAlbumOptions, decorator: Google::Apis::PhotoslibraryV1::SharedAlbumOptions::Representation
end
end
class ShareAlbumResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :share_info, as: 'shareInfo', class: Google::Apis::PhotoslibraryV1::ShareInfo, decorator: Google::Apis::PhotoslibraryV1::ShareInfo::Representation
end
end
class ShareInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :share_token, as: 'shareToken'
property :shareable_url, as: 'shareableUrl'
property :shared_album_options, as: 'sharedAlbumOptions', class: Google::Apis::PhotoslibraryV1::SharedAlbumOptions, decorator: Google::Apis::PhotoslibraryV1::SharedAlbumOptions::Representation
end
end
class SharedAlbumOptions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :is_collaborative, as: 'isCollaborative'
property :is_commentable, as: 'isCommentable'
end
end
class SimpleMediaItem
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :upload_token, as: 'uploadToken'
end
end
class Status
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :details, as: 'details'
property :message, as: 'message'
end
end
class TextEnrichment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :text, as: 'text'
end
end
class Video
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :camera_make, as: 'cameraMake'
property :camera_model, as: 'cameraModel'
property :fps, as: 'fps'
property :status, as: 'status'
end
end
end
end
end
@@ -0,0 +1,399 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module PhotoslibraryV1
# Photos Library API
#
# Manage photos, videos, and albums in Google Photos
#
# @example
# require 'google/apis/photoslibrary_v1'
#
# Photoslibrary = Google::Apis::PhotoslibraryV1 # Alias the module
# service = Photoslibrary::PhotosLibraryService.new
#
# @see https://developers.google.com/photos/
class PhotosLibraryService < Google::Apis::Core::BaseService
# @return [String]
# API key. Your API key identifies your project and provides you with API access,
# quota, and reports. Required unless you provide an OAuth 2.0 token.
attr_accessor :key
# @return [String]
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
attr_accessor :quota_user
def initialize
super('https://photoslibrary.googleapis.com/', '')
@batch_path = 'batch'
end
# Adds an enrichment to a specified position in a defined album.
# @param [String] album_id
# Identifier of the album where the enrichment will be added.
# @param [Google::Apis::PhotoslibraryV1::AddEnrichmentToAlbumRequest] add_enrichment_to_album_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::PhotoslibraryV1::AddEnrichmentToAlbumResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PhotoslibraryV1::AddEnrichmentToAlbumResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def add_enrichment_to_album(album_id, add_enrichment_to_album_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/albums/{+albumId}:addEnrichment', options)
command.request_representation = Google::Apis::PhotoslibraryV1::AddEnrichmentToAlbumRequest::Representation
command.request_object = add_enrichment_to_album_request_object
command.response_representation = Google::Apis::PhotoslibraryV1::AddEnrichmentToAlbumResponse::Representation
command.response_class = Google::Apis::PhotoslibraryV1::AddEnrichmentToAlbumResponse
command.params['albumId'] = album_id unless album_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates an album in a user's Google Photos library.
# @param [Google::Apis::PhotoslibraryV1::CreateAlbumRequest] create_album_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::PhotoslibraryV1::Album] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PhotoslibraryV1::Album]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_album(create_album_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/albums', options)
command.request_representation = Google::Apis::PhotoslibraryV1::CreateAlbumRequest::Representation
command.request_object = create_album_request_object
command.response_representation = Google::Apis::PhotoslibraryV1::Album::Representation
command.response_class = Google::Apis::PhotoslibraryV1::Album
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns the album specified by the given album id.
# @param [String] album_id
# Identifier of the album to be requested.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::PhotoslibraryV1::Album] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PhotoslibraryV1::Album]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_album(album_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/albums/{+albumId}', options)
command.response_representation = Google::Apis::PhotoslibraryV1::Album::Representation
command.response_class = Google::Apis::PhotoslibraryV1::Album
command.params['albumId'] = album_id unless album_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists all albums shown to a user in the 'Albums' tab of the Google
# Photos app.
# @param [Fixnum] page_size
# Maximum number of albums to return in the response. The default number of
# albums to return at a time is 20. The maximum page size is 50.
# @param [String] page_token
# A continuation token to get the next page of the results. Adding this to
# the request will return the rows after the pageToken. The pageToken should
# be the value returned in the nextPageToken parameter in the response to the
# listAlbums request.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::PhotoslibraryV1::ListAlbumsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PhotoslibraryV1::ListAlbumsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_albums(page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/albums', options)
command.response_representation = Google::Apis::PhotoslibraryV1::ListAlbumsResponse::Representation
command.response_class = Google::Apis::PhotoslibraryV1::ListAlbumsResponse
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Marks an album as 'shared' and accessible to other users. This action can
# only be performed on albums which were created by the developer via the
# API.
# @param [String] album_id
# Identifier of the album to be shared. This album id must belong to an album
# created by the developer.
# .
# @param [Google::Apis::PhotoslibraryV1::ShareAlbumRequest] share_album_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::PhotoslibraryV1::ShareAlbumResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PhotoslibraryV1::ShareAlbumResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def share_album(album_id, share_album_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/albums/{+albumId}:share', options)
command.request_representation = Google::Apis::PhotoslibraryV1::ShareAlbumRequest::Representation
command.request_object = share_album_request_object
command.response_representation = Google::Apis::PhotoslibraryV1::ShareAlbumResponse::Representation
command.response_class = Google::Apis::PhotoslibraryV1::ShareAlbumResponse
command.params['albumId'] = album_id unless album_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates one or more media items in a user's Google Photos library.
# If an album id is specified, the media item(s) are also added to the album.
# By default the media item(s) will be added to the end of the library or
# album.
# If an album id and position are both defined, then the media items will
# be added to the album at the specified position.
# If multiple media items are given, they will be inserted at the specified
# position.
# @param [Google::Apis::PhotoslibraryV1::BatchCreateMediaItemsRequest] batch_create_media_items_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::PhotoslibraryV1::BatchCreateMediaItemsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PhotoslibraryV1::BatchCreateMediaItemsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def batch_create_media_items(batch_create_media_items_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/mediaItems:batchCreate', options)
command.request_representation = Google::Apis::PhotoslibraryV1::BatchCreateMediaItemsRequest::Representation
command.request_object = batch_create_media_items_request_object
command.response_representation = Google::Apis::PhotoslibraryV1::BatchCreateMediaItemsResponse::Representation
command.response_class = Google::Apis::PhotoslibraryV1::BatchCreateMediaItemsResponse
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns the media item specified based on a given media item id.
# @param [String] media_item_id
# Identifier of media item to be requested.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::PhotoslibraryV1::MediaItem] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PhotoslibraryV1::MediaItem]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_media_item(media_item_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/mediaItems/{+mediaItemId}', options)
command.response_representation = Google::Apis::PhotoslibraryV1::MediaItem::Representation
command.response_class = Google::Apis::PhotoslibraryV1::MediaItem
command.params['mediaItemId'] = media_item_id unless media_item_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Searches for media items in a user's Google Photos library.
# If no filters are set, then all media items in the user's library will be
# returned.
# If an album is set, all media items in the specified album will be
# returned.
# If filters are specified, anything that matches the filters from the user's
# library will be listed.
# If an album and filters are set, then this will result in an error.
# @param [Google::Apis::PhotoslibraryV1::SearchMediaItemsRequest] search_media_items_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::PhotoslibraryV1::SearchMediaItemsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PhotoslibraryV1::SearchMediaItemsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def search_media_items(search_media_items_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/mediaItems:search', options)
command.request_representation = Google::Apis::PhotoslibraryV1::SearchMediaItemsRequest::Representation
command.request_object = search_media_items_request_object
command.response_representation = Google::Apis::PhotoslibraryV1::SearchMediaItemsResponse::Representation
command.response_class = Google::Apis::PhotoslibraryV1::SearchMediaItemsResponse
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Joins a shared album on behalf of the Google Photos user.
# @param [Google::Apis::PhotoslibraryV1::JoinSharedAlbumRequest] join_shared_album_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::PhotoslibraryV1::JoinSharedAlbumResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PhotoslibraryV1::JoinSharedAlbumResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def join_shared_album(join_shared_album_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/sharedAlbums:join', options)
command.request_representation = Google::Apis::PhotoslibraryV1::JoinSharedAlbumRequest::Representation
command.request_object = join_shared_album_request_object
command.response_representation = Google::Apis::PhotoslibraryV1::JoinSharedAlbumResponse::Representation
command.response_class = Google::Apis::PhotoslibraryV1::JoinSharedAlbumResponse
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists all shared albums shown to a user in the 'Sharing' tab of the
# Google Photos app.
# @param [Fixnum] page_size
# Maximum number of albums to return in the response. The default number of
# albums to return at a time is 20. The maximum page size is 50.
# @param [String] page_token
# A continuation token to get the next page of the results. Adding this to
# the request will return the rows after the pageToken. The pageToken should
# be the value returned in the nextPageToken parameter in the response to the
# listSharedAlbums request.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::PhotoslibraryV1::ListSharedAlbumsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PhotoslibraryV1::ListSharedAlbumsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_shared_albums(page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/sharedAlbums', options)
command.response_representation = Google::Apis::PhotoslibraryV1::ListSharedAlbumsResponse::Representation
command.response_class = Google::Apis::PhotoslibraryV1::ListSharedAlbumsResponse
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
protected
def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
end
end
end
end
end
+1 -1
View File
@@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/spanner/
module SpannerV1
VERSION = 'V1'
REVISION = '20180410'
REVISION = '20180417'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
+28 -6
View File
@@ -1808,11 +1808,11 @@ module Google
# Defines an Identity and Access Management (IAM) policy. It is used to
# specify access control policies for Cloud Platform resources.
# A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
# A `Policy` consists of a list of `bindings`. A `binding` binds a list of
# `members` to a `role`, where the members can be user accounts, Google groups,
# Google domains, and service accounts. A `role` is a named list of permissions
# defined by IAM.
# **Example**
# **JSON Example**
# `
# "bindings": [
# `
@@ -1821,7 +1821,7 @@ module Google
# "user:mike@example.com",
# "group:admins@example.com",
# "domain:google.com",
# "serviceAccount:my-other-app@appspot.gserviceaccount.com",
# "serviceAccount:my-other-app@appspot.gserviceaccount.com"
# ]
# `,
# `
@@ -1830,6 +1830,17 @@ module Google
# `
# ]
# `
# **YAML Example**
# bindings:
# - members:
# - user:mike@example.com
# - group:admins@example.com
# - domain:google.com
# - serviceAccount:my-other-app@appspot.gserviceaccount.com
# role: roles/owner
# - members:
# - user:sean@example.com
# role: roles/viewer
# For a description of IAM and its features, see the
# [IAM developer's guide](https://cloud.google.com/iam/docs).
class Policy
@@ -2243,11 +2254,11 @@ module Google
# Defines an Identity and Access Management (IAM) policy. It is used to
# specify access control policies for Cloud Platform resources.
# A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
# A `Policy` consists of a list of `bindings`. A `binding` binds a list of
# `members` to a `role`, where the members can be user accounts, Google groups,
# Google domains, and service accounts. A `role` is a named list of permissions
# defined by IAM.
# **Example**
# **JSON Example**
# `
# "bindings": [
# `
@@ -2256,7 +2267,7 @@ module Google
# "user:mike@example.com",
# "group:admins@example.com",
# "domain:google.com",
# "serviceAccount:my-other-app@appspot.gserviceaccount.com",
# "serviceAccount:my-other-app@appspot.gserviceaccount.com"
# ]
# `,
# `
@@ -2265,6 +2276,17 @@ module Google
# `
# ]
# `
# **YAML Example**
# bindings:
# - members:
# - user:mike@example.com
# - group:admins@example.com
# - domain:google.com
# - serviceAccount:my-other-app@appspot.gserviceaccount.com
# role: roles/owner
# - members:
# - user:sean@example.com
# role: roles/viewer
# For a description of IAM and its features, see the
# [IAM developer's guide](https://cloud.google.com/iam/docs).
# Corresponds to the JSON property `policy`
+1 -1
View File
@@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/storage/docs/json_api/
module StorageV1
VERSION = 'V1'
REVISION = '20180404'
REVISION = '20180430'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
+3 -6
View File
@@ -61,8 +61,7 @@ module Google
# @return [Array<Google::Apis::StorageV1::ObjectAccessControl>]
attr_accessor :default_object_acl
# Encryption configuration used by default for newly inserted objects, when no
# encryption config is specified.
# Encryption configuration for a bucket.
# Corresponds to the JSON property `encryption`
# @return [Google::Apis::StorageV1::Bucket::Encryption]
attr_accessor :encryption
@@ -270,14 +269,12 @@ module Google
end
end
# Encryption configuration used by default for newly inserted objects, when no
# encryption config is specified.
# Encryption configuration for a bucket.
class Encryption
include Google::Apis::Core::Hashable
# A Cloud KMS key that will be used to encrypt objects inserted into this bucket,
# if no encryption method is specified. Limited availability; usable only by
# enabled projects.
# if no encryption method is specified.
# Corresponds to the JSON property `defaultKmsKeyName`
# @return [String]
attr_accessor :default_kms_key_name