diff --git a/api_names_out.yaml b/api_names_out.yaml index 45ce42d0c..69535fa87 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -7116,6 +7116,447 @@ "/androidpublisher:v2/key": key "/androidpublisher:v2/quotaUser": quota_user "/androidpublisher:v2/userIp": user_ip +"/androidpublisher:v3/Apk": apk +"/androidpublisher:v3/Apk/binary": binary +"/androidpublisher:v3/Apk/versionCode": version_code +"/androidpublisher:v3/ApkBinary": apk_binary +"/androidpublisher:v3/ApkBinary/sha1": sha1 +"/androidpublisher:v3/ApkBinary/sha256": sha256 +"/androidpublisher:v3/ApksAddExternallyHostedRequest": apks_add_externally_hosted_request +"/androidpublisher:v3/ApksAddExternallyHostedRequest/externallyHostedApk": externally_hosted_apk +"/androidpublisher:v3/ApksAddExternallyHostedResponse": apks_add_externally_hosted_response +"/androidpublisher:v3/ApksAddExternallyHostedResponse/externallyHostedApk": externally_hosted_apk +"/androidpublisher:v3/ApksListResponse": apks_list_response +"/androidpublisher:v3/ApksListResponse/apks": apks +"/androidpublisher:v3/ApksListResponse/apks/apk": apk +"/androidpublisher:v3/ApksListResponse/kind": kind +"/androidpublisher:v3/AppDetails": app_details +"/androidpublisher:v3/AppDetails/contactEmail": contact_email +"/androidpublisher:v3/AppDetails/contactPhone": contact_phone +"/androidpublisher:v3/AppDetails/contactWebsite": contact_website +"/androidpublisher:v3/AppDetails/defaultLanguage": default_language +"/androidpublisher:v3/AppEdit": app_edit +"/androidpublisher:v3/AppEdit/expiryTimeSeconds": expiry_time_seconds +"/androidpublisher:v3/AppEdit/id": id +"/androidpublisher:v3/Comment": comment +"/androidpublisher:v3/Comment/developerComment": developer_comment +"/androidpublisher:v3/Comment/userComment": user_comment +"/androidpublisher:v3/DeobfuscationFile": deobfuscation_file +"/androidpublisher:v3/DeobfuscationFile/symbolType": symbol_type +"/androidpublisher:v3/DeobfuscationFilesUploadResponse": deobfuscation_files_upload_response +"/androidpublisher:v3/DeobfuscationFilesUploadResponse/deobfuscationFile": deobfuscation_file +"/androidpublisher:v3/DeveloperComment": developer_comment +"/androidpublisher:v3/DeveloperComment/lastModified": last_modified +"/androidpublisher:v3/DeveloperComment/text": text +"/androidpublisher:v3/DeviceMetadata": device_metadata +"/androidpublisher:v3/DeviceMetadata/cpuMake": cpu_make +"/androidpublisher:v3/DeviceMetadata/cpuModel": cpu_model +"/androidpublisher:v3/DeviceMetadata/deviceClass": device_class +"/androidpublisher:v3/DeviceMetadata/glEsVersion": gl_es_version +"/androidpublisher:v3/DeviceMetadata/manufacturer": manufacturer +"/androidpublisher:v3/DeviceMetadata/nativePlatform": native_platform +"/androidpublisher:v3/DeviceMetadata/productName": product_name +"/androidpublisher:v3/DeviceMetadata/ramMb": ram_mb +"/androidpublisher:v3/DeviceMetadata/screenDensityDpi": screen_density_dpi +"/androidpublisher:v3/DeviceMetadata/screenHeightPx": screen_height_px +"/androidpublisher:v3/DeviceMetadata/screenWidthPx": screen_width_px +"/androidpublisher:v3/ExpansionFile": expansion_file +"/androidpublisher:v3/ExpansionFile/fileSize": file_size +"/androidpublisher:v3/ExpansionFile/referencesVersion": references_version +"/androidpublisher:v3/ExpansionFilesUploadResponse": expansion_files_upload_response +"/androidpublisher:v3/ExpansionFilesUploadResponse/expansionFile": expansion_file +"/androidpublisher:v3/ExternallyHostedApk": externally_hosted_apk +"/androidpublisher:v3/ExternallyHostedApk/applicationLabel": application_label +"/androidpublisher:v3/ExternallyHostedApk/certificateBase64s": certificate_base64s +"/androidpublisher:v3/ExternallyHostedApk/certificateBase64s/certificate_base64": certificate_base64 +"/androidpublisher:v3/ExternallyHostedApk/externallyHostedUrl": externally_hosted_url +"/androidpublisher:v3/ExternallyHostedApk/fileSha1Base64": file_sha1_base64 +"/androidpublisher:v3/ExternallyHostedApk/fileSha256Base64": file_sha256_base64 +"/androidpublisher:v3/ExternallyHostedApk/fileSize": file_size +"/androidpublisher:v3/ExternallyHostedApk/iconBase64": icon_base64 +"/androidpublisher:v3/ExternallyHostedApk/maximumSdk": maximum_sdk +"/androidpublisher:v3/ExternallyHostedApk/minimumSdk": minimum_sdk +"/androidpublisher:v3/ExternallyHostedApk/nativeCodes": native_codes +"/androidpublisher:v3/ExternallyHostedApk/nativeCodes/native_code": native_code +"/androidpublisher:v3/ExternallyHostedApk/packageName": package_name +"/androidpublisher:v3/ExternallyHostedApk/usesFeatures": uses_features +"/androidpublisher:v3/ExternallyHostedApk/usesFeatures/uses_feature": uses_feature +"/androidpublisher:v3/ExternallyHostedApk/usesPermissions": uses_permissions +"/androidpublisher:v3/ExternallyHostedApk/usesPermissions/uses_permission": uses_permission +"/androidpublisher:v3/ExternallyHostedApk/versionCode": version_code +"/androidpublisher:v3/ExternallyHostedApk/versionName": version_name +"/androidpublisher:v3/ExternallyHostedApkUsesPermission": externally_hosted_apk_uses_permission +"/androidpublisher:v3/ExternallyHostedApkUsesPermission/maxSdkVersion": max_sdk_version +"/androidpublisher:v3/ExternallyHostedApkUsesPermission/name": name +"/androidpublisher:v3/Image": image +"/androidpublisher:v3/Image/id": id +"/androidpublisher:v3/Image/sha1": sha1 +"/androidpublisher:v3/Image/url": url +"/androidpublisher:v3/ImagesDeleteAllResponse": images_delete_all_response +"/androidpublisher:v3/ImagesDeleteAllResponse/deleted": deleted +"/androidpublisher:v3/ImagesDeleteAllResponse/deleted/deleted": deleted +"/androidpublisher:v3/ImagesListResponse": images_list_response +"/androidpublisher:v3/ImagesListResponse/images": images +"/androidpublisher:v3/ImagesListResponse/images/image": image +"/androidpublisher:v3/ImagesUploadResponse": images_upload_response +"/androidpublisher:v3/ImagesUploadResponse/image": image +"/androidpublisher:v3/InAppProduct": in_app_product +"/androidpublisher:v3/InAppProduct/defaultLanguage": default_language +"/androidpublisher:v3/InAppProduct/defaultPrice": default_price +"/androidpublisher:v3/InAppProduct/listings": listings +"/androidpublisher:v3/InAppProduct/listings/listing": listing +"/androidpublisher:v3/InAppProduct/packageName": package_name +"/androidpublisher:v3/InAppProduct/prices": prices +"/androidpublisher:v3/InAppProduct/prices/price": price +"/androidpublisher:v3/InAppProduct/purchaseType": purchase_type +"/androidpublisher:v3/InAppProduct/season": season +"/androidpublisher:v3/InAppProduct/sku": sku +"/androidpublisher:v3/InAppProduct/status": status +"/androidpublisher:v3/InAppProduct/subscriptionPeriod": subscription_period +"/androidpublisher:v3/InAppProduct/trialPeriod": trial_period +"/androidpublisher:v3/InAppProductListing": in_app_product_listing +"/androidpublisher:v3/InAppProductListing/description": description +"/androidpublisher:v3/InAppProductListing/title": title +"/androidpublisher:v3/InappproductsListResponse": inappproducts_list_response +"/androidpublisher:v3/InappproductsListResponse/inappproduct": inappproduct +"/androidpublisher:v3/InappproductsListResponse/inappproduct/inappproduct": inappproduct +"/androidpublisher:v3/InappproductsListResponse/kind": kind +"/androidpublisher:v3/InappproductsListResponse/pageInfo": page_info +"/androidpublisher:v3/InappproductsListResponse/tokenPagination": token_pagination +"/androidpublisher:v3/Listing": listing +"/androidpublisher:v3/Listing/fullDescription": full_description +"/androidpublisher:v3/Listing/language": language +"/androidpublisher:v3/Listing/shortDescription": short_description +"/androidpublisher:v3/Listing/title": title +"/androidpublisher:v3/Listing/video": video +"/androidpublisher:v3/ListingsListResponse": listings_list_response +"/androidpublisher:v3/ListingsListResponse/kind": kind +"/androidpublisher:v3/ListingsListResponse/listings": listings +"/androidpublisher:v3/ListingsListResponse/listings/listing": listing +"/androidpublisher:v3/LocalizedText": localized_text +"/androidpublisher:v3/LocalizedText/language": language +"/androidpublisher:v3/LocalizedText/text": text +"/androidpublisher:v3/MonthDay": month_day +"/androidpublisher:v3/MonthDay/day": day +"/androidpublisher:v3/MonthDay/month": month +"/androidpublisher:v3/PageInfo": page_info +"/androidpublisher:v3/PageInfo/resultPerPage": result_per_page +"/androidpublisher:v3/PageInfo/startIndex": start_index +"/androidpublisher:v3/PageInfo/totalResults": total_results +"/androidpublisher:v3/Price": price +"/androidpublisher:v3/Price/currency": currency +"/androidpublisher:v3/Price/priceMicros": price_micros +"/androidpublisher:v3/ProductPurchase": product_purchase +"/androidpublisher:v3/ProductPurchase/consumptionState": consumption_state +"/androidpublisher:v3/ProductPurchase/developerPayload": developer_payload +"/androidpublisher:v3/ProductPurchase/kind": kind +"/androidpublisher:v3/ProductPurchase/orderId": order_id +"/androidpublisher:v3/ProductPurchase/purchaseState": purchase_state +"/androidpublisher:v3/ProductPurchase/purchaseTimeMillis": purchase_time_millis +"/androidpublisher:v3/ProductPurchase/purchaseType": purchase_type +"/androidpublisher:v3/Prorate": prorate +"/androidpublisher:v3/Prorate/defaultPrice": default_price +"/androidpublisher:v3/Prorate/start": start +"/androidpublisher:v3/Review": review +"/androidpublisher:v3/Review/authorName": author_name +"/androidpublisher:v3/Review/comments": comments +"/androidpublisher:v3/Review/comments/comment": comment +"/androidpublisher:v3/Review/reviewId": review_id +"/androidpublisher:v3/ReviewReplyResult": review_reply_result +"/androidpublisher:v3/ReviewReplyResult/lastEdited": last_edited +"/androidpublisher:v3/ReviewReplyResult/replyText": reply_text +"/androidpublisher:v3/ReviewsListResponse": reviews_list_response +"/androidpublisher:v3/ReviewsListResponse/pageInfo": page_info +"/androidpublisher:v3/ReviewsListResponse/reviews": reviews +"/androidpublisher:v3/ReviewsListResponse/reviews/review": review +"/androidpublisher:v3/ReviewsListResponse/tokenPagination": token_pagination +"/androidpublisher:v3/ReviewsReplyRequest": reviews_reply_request +"/androidpublisher:v3/ReviewsReplyRequest/replyText": reply_text +"/androidpublisher:v3/ReviewsReplyResponse": reviews_reply_response +"/androidpublisher:v3/ReviewsReplyResponse/result": result +"/androidpublisher:v3/Season": season +"/androidpublisher:v3/Season/end": end +"/androidpublisher:v3/Season/prorations": prorations +"/androidpublisher:v3/Season/prorations/proration": proration +"/androidpublisher:v3/Season/start": start +"/androidpublisher:v3/SubscriptionCancelSurveyResult": subscription_cancel_survey_result +"/androidpublisher:v3/SubscriptionCancelSurveyResult/cancelSurveyReason": cancel_survey_reason +"/androidpublisher:v3/SubscriptionCancelSurveyResult/userInputCancelReason": user_input_cancel_reason +"/androidpublisher:v3/SubscriptionDeferralInfo": subscription_deferral_info +"/androidpublisher:v3/SubscriptionDeferralInfo/desiredExpiryTimeMillis": desired_expiry_time_millis +"/androidpublisher:v3/SubscriptionDeferralInfo/expectedExpiryTimeMillis": expected_expiry_time_millis +"/androidpublisher:v3/SubscriptionPurchase": subscription_purchase +"/androidpublisher:v3/SubscriptionPurchase/autoRenewing": auto_renewing +"/androidpublisher:v3/SubscriptionPurchase/cancelReason": cancel_reason +"/androidpublisher:v3/SubscriptionPurchase/cancelSurveyResult": cancel_survey_result +"/androidpublisher:v3/SubscriptionPurchase/countryCode": country_code +"/androidpublisher:v3/SubscriptionPurchase/developerPayload": developer_payload +"/androidpublisher:v3/SubscriptionPurchase/emailAddress": email_address +"/androidpublisher:v3/SubscriptionPurchase/expiryTimeMillis": expiry_time_millis +"/androidpublisher:v3/SubscriptionPurchase/familyName": family_name +"/androidpublisher:v3/SubscriptionPurchase/givenName": given_name +"/androidpublisher:v3/SubscriptionPurchase/kind": kind +"/androidpublisher:v3/SubscriptionPurchase/linkedPurchaseToken": linked_purchase_token +"/androidpublisher:v3/SubscriptionPurchase/orderId": order_id +"/androidpublisher:v3/SubscriptionPurchase/paymentState": payment_state +"/androidpublisher:v3/SubscriptionPurchase/priceAmountMicros": price_amount_micros +"/androidpublisher:v3/SubscriptionPurchase/priceCurrencyCode": price_currency_code +"/androidpublisher:v3/SubscriptionPurchase/profileId": profile_id +"/androidpublisher:v3/SubscriptionPurchase/profileName": profile_name +"/androidpublisher:v3/SubscriptionPurchase/purchaseType": purchase_type +"/androidpublisher:v3/SubscriptionPurchase/startTimeMillis": start_time_millis +"/androidpublisher:v3/SubscriptionPurchase/userCancellationTimeMillis": user_cancellation_time_millis +"/androidpublisher:v3/SubscriptionPurchasesDeferRequest": subscription_purchases_defer_request +"/androidpublisher:v3/SubscriptionPurchasesDeferRequest/deferralInfo": deferral_info +"/androidpublisher:v3/SubscriptionPurchasesDeferResponse": subscription_purchases_defer_response +"/androidpublisher:v3/SubscriptionPurchasesDeferResponse/newExpiryTimeMillis": new_expiry_time_millis +"/androidpublisher:v3/Testers": testers +"/androidpublisher:v3/Testers/googleGroups": google_groups +"/androidpublisher:v3/Testers/googleGroups/google_group": google_group +"/androidpublisher:v3/Testers/googlePlusCommunities": google_plus_communities +"/androidpublisher:v3/Testers/googlePlusCommunities/google_plus_community": google_plus_community +"/androidpublisher:v3/Timestamp": timestamp +"/androidpublisher:v3/Timestamp/nanos": nanos +"/androidpublisher:v3/Timestamp/seconds": seconds +"/androidpublisher:v3/TokenPagination": token_pagination +"/androidpublisher:v3/TokenPagination/nextPageToken": next_page_token +"/androidpublisher:v3/TokenPagination/previousPageToken": previous_page_token +"/androidpublisher:v3/Track": track +"/androidpublisher:v3/Track/releases": releases +"/androidpublisher:v3/Track/releases/release": release +"/androidpublisher:v3/Track/track": track +"/androidpublisher:v3/TrackRelease": track_release +"/androidpublisher:v3/TrackRelease/name": name +"/androidpublisher:v3/TrackRelease/releaseNotes": release_notes +"/androidpublisher:v3/TrackRelease/releaseNotes/release_note": release_note +"/androidpublisher:v3/TrackRelease/status": status +"/androidpublisher:v3/TrackRelease/userFraction": user_fraction +"/androidpublisher:v3/TrackRelease/versionCodes": version_codes +"/androidpublisher:v3/TrackRelease/versionCodes/version_code": version_code +"/androidpublisher:v3/TracksListResponse": tracks_list_response +"/androidpublisher:v3/TracksListResponse/kind": kind +"/androidpublisher:v3/TracksListResponse/tracks": tracks +"/androidpublisher:v3/TracksListResponse/tracks/track": track +"/androidpublisher:v3/UserComment": user_comment +"/androidpublisher:v3/UserComment/androidOsVersion": android_os_version +"/androidpublisher:v3/UserComment/appVersionCode": app_version_code +"/androidpublisher:v3/UserComment/appVersionName": app_version_name +"/androidpublisher:v3/UserComment/device": device +"/androidpublisher:v3/UserComment/deviceMetadata": device_metadata +"/androidpublisher:v3/UserComment/lastModified": last_modified +"/androidpublisher:v3/UserComment/originalText": original_text +"/androidpublisher:v3/UserComment/reviewerLanguage": reviewer_language +"/androidpublisher:v3/UserComment/starRating": star_rating +"/androidpublisher:v3/UserComment/text": text +"/androidpublisher:v3/UserComment/thumbsDownCount": thumbs_down_count +"/androidpublisher:v3/UserComment/thumbsUpCount": thumbs_up_count +"/androidpublisher:v3/VoidedPurchase": voided_purchase +"/androidpublisher:v3/VoidedPurchase/kind": kind +"/androidpublisher:v3/VoidedPurchase/purchaseTimeMillis": purchase_time_millis +"/androidpublisher:v3/VoidedPurchase/purchaseToken": purchase_token +"/androidpublisher:v3/VoidedPurchase/voidedTimeMillis": voided_time_millis +"/androidpublisher:v3/VoidedPurchasesListResponse": voided_purchases_list_response +"/androidpublisher:v3/VoidedPurchasesListResponse/pageInfo": page_info +"/androidpublisher:v3/VoidedPurchasesListResponse/tokenPagination": token_pagination +"/androidpublisher:v3/VoidedPurchasesListResponse/voidedPurchases": voided_purchases +"/androidpublisher:v3/VoidedPurchasesListResponse/voidedPurchases/voided_purchase": voided_purchase +"/androidpublisher:v3/androidpublisher.edits.apks.addexternallyhosted": addexternallyhosted_edit_apk +"/androidpublisher:v3/androidpublisher.edits.apks.addexternallyhosted/editId": edit_id +"/androidpublisher:v3/androidpublisher.edits.apks.addexternallyhosted/packageName": package_name +"/androidpublisher:v3/androidpublisher.edits.apks.list": list_edit_apks +"/androidpublisher:v3/androidpublisher.edits.apks.list/editId": edit_id +"/androidpublisher:v3/androidpublisher.edits.apks.list/packageName": package_name +"/androidpublisher:v3/androidpublisher.edits.apks.upload": upload_edit_apk +"/androidpublisher:v3/androidpublisher.edits.apks.upload/editId": edit_id +"/androidpublisher:v3/androidpublisher.edits.apks.upload/packageName": package_name +"/androidpublisher:v3/androidpublisher.edits.commit": commit_edit +"/androidpublisher:v3/androidpublisher.edits.commit/editId": edit_id +"/androidpublisher:v3/androidpublisher.edits.commit/packageName": package_name +"/androidpublisher:v3/androidpublisher.edits.delete": delete_edit +"/androidpublisher:v3/androidpublisher.edits.delete/editId": edit_id +"/androidpublisher:v3/androidpublisher.edits.delete/packageName": package_name +"/androidpublisher:v3/androidpublisher.edits.deobfuscationfiles.upload": upload_edit_deobfuscationfile +"/androidpublisher:v3/androidpublisher.edits.deobfuscationfiles.upload/apkVersionCode": apk_version_code +"/androidpublisher:v3/androidpublisher.edits.deobfuscationfiles.upload/deobfuscationFileType": deobfuscation_file_type +"/androidpublisher:v3/androidpublisher.edits.deobfuscationfiles.upload/editId": edit_id +"/androidpublisher:v3/androidpublisher.edits.deobfuscationfiles.upload/packageName": package_name +"/androidpublisher:v3/androidpublisher.edits.details.get": get_edit_detail +"/androidpublisher:v3/androidpublisher.edits.details.get/editId": edit_id +"/androidpublisher:v3/androidpublisher.edits.details.get/packageName": package_name +"/androidpublisher:v3/androidpublisher.edits.details.patch": patch_edit_detail +"/androidpublisher:v3/androidpublisher.edits.details.patch/editId": edit_id +"/androidpublisher:v3/androidpublisher.edits.details.patch/packageName": package_name +"/androidpublisher:v3/androidpublisher.edits.details.update": update_edit_detail +"/androidpublisher:v3/androidpublisher.edits.details.update/editId": edit_id +"/androidpublisher:v3/androidpublisher.edits.details.update/packageName": package_name +"/androidpublisher:v3/androidpublisher.edits.expansionfiles.get": get_edit_expansionfile +"/androidpublisher:v3/androidpublisher.edits.expansionfiles.get/apkVersionCode": apk_version_code +"/androidpublisher:v3/androidpublisher.edits.expansionfiles.get/editId": edit_id +"/androidpublisher:v3/androidpublisher.edits.expansionfiles.get/expansionFileType": expansion_file_type +"/androidpublisher:v3/androidpublisher.edits.expansionfiles.get/packageName": package_name +"/androidpublisher:v3/androidpublisher.edits.expansionfiles.patch": patch_edit_expansionfile +"/androidpublisher:v3/androidpublisher.edits.expansionfiles.patch/apkVersionCode": apk_version_code +"/androidpublisher:v3/androidpublisher.edits.expansionfiles.patch/editId": edit_id +"/androidpublisher:v3/androidpublisher.edits.expansionfiles.patch/expansionFileType": expansion_file_type +"/androidpublisher:v3/androidpublisher.edits.expansionfiles.patch/packageName": package_name +"/androidpublisher:v3/androidpublisher.edits.expansionfiles.update": update_edit_expansionfile +"/androidpublisher:v3/androidpublisher.edits.expansionfiles.update/apkVersionCode": apk_version_code +"/androidpublisher:v3/androidpublisher.edits.expansionfiles.update/editId": edit_id +"/androidpublisher:v3/androidpublisher.edits.expansionfiles.update/expansionFileType": expansion_file_type +"/androidpublisher:v3/androidpublisher.edits.expansionfiles.update/packageName": package_name +"/androidpublisher:v3/androidpublisher.edits.expansionfiles.upload": upload_edit_expansionfile +"/androidpublisher:v3/androidpublisher.edits.expansionfiles.upload/apkVersionCode": apk_version_code +"/androidpublisher:v3/androidpublisher.edits.expansionfiles.upload/editId": edit_id +"/androidpublisher:v3/androidpublisher.edits.expansionfiles.upload/expansionFileType": expansion_file_type +"/androidpublisher:v3/androidpublisher.edits.expansionfiles.upload/packageName": package_name +"/androidpublisher:v3/androidpublisher.edits.get": get_edit +"/androidpublisher:v3/androidpublisher.edits.get/editId": edit_id +"/androidpublisher:v3/androidpublisher.edits.get/packageName": package_name +"/androidpublisher:v3/androidpublisher.edits.images.delete": delete_edit_image +"/androidpublisher:v3/androidpublisher.edits.images.delete/editId": edit_id +"/androidpublisher:v3/androidpublisher.edits.images.delete/imageId": image_id +"/androidpublisher:v3/androidpublisher.edits.images.delete/imageType": image_type +"/androidpublisher:v3/androidpublisher.edits.images.delete/language": language +"/androidpublisher:v3/androidpublisher.edits.images.delete/packageName": package_name +"/androidpublisher:v3/androidpublisher.edits.images.deleteall": deleteall_edit_image +"/androidpublisher:v3/androidpublisher.edits.images.deleteall/editId": edit_id +"/androidpublisher:v3/androidpublisher.edits.images.deleteall/imageType": image_type +"/androidpublisher:v3/androidpublisher.edits.images.deleteall/language": language +"/androidpublisher:v3/androidpublisher.edits.images.deleteall/packageName": package_name +"/androidpublisher:v3/androidpublisher.edits.images.list": list_edit_images +"/androidpublisher:v3/androidpublisher.edits.images.list/editId": edit_id +"/androidpublisher:v3/androidpublisher.edits.images.list/imageType": image_type +"/androidpublisher:v3/androidpublisher.edits.images.list/language": language +"/androidpublisher:v3/androidpublisher.edits.images.list/packageName": package_name +"/androidpublisher:v3/androidpublisher.edits.images.upload": upload_edit_image +"/androidpublisher:v3/androidpublisher.edits.images.upload/editId": edit_id +"/androidpublisher:v3/androidpublisher.edits.images.upload/imageType": image_type +"/androidpublisher:v3/androidpublisher.edits.images.upload/language": language +"/androidpublisher:v3/androidpublisher.edits.images.upload/packageName": package_name +"/androidpublisher:v3/androidpublisher.edits.insert": insert_edit +"/androidpublisher:v3/androidpublisher.edits.insert/packageName": package_name +"/androidpublisher:v3/androidpublisher.edits.listings.delete": delete_edit_listing +"/androidpublisher:v3/androidpublisher.edits.listings.delete/editId": edit_id +"/androidpublisher:v3/androidpublisher.edits.listings.delete/language": language +"/androidpublisher:v3/androidpublisher.edits.listings.delete/packageName": package_name +"/androidpublisher:v3/androidpublisher.edits.listings.deleteall": deleteall_edit_listing +"/androidpublisher:v3/androidpublisher.edits.listings.deleteall/editId": edit_id +"/androidpublisher:v3/androidpublisher.edits.listings.deleteall/packageName": package_name +"/androidpublisher:v3/androidpublisher.edits.listings.get": get_edit_listing +"/androidpublisher:v3/androidpublisher.edits.listings.get/editId": edit_id +"/androidpublisher:v3/androidpublisher.edits.listings.get/language": language +"/androidpublisher:v3/androidpublisher.edits.listings.get/packageName": package_name +"/androidpublisher:v3/androidpublisher.edits.listings.list": list_edit_listings +"/androidpublisher:v3/androidpublisher.edits.listings.list/editId": edit_id +"/androidpublisher:v3/androidpublisher.edits.listings.list/packageName": package_name +"/androidpublisher:v3/androidpublisher.edits.listings.patch": patch_edit_listing +"/androidpublisher:v3/androidpublisher.edits.listings.patch/editId": edit_id +"/androidpublisher:v3/androidpublisher.edits.listings.patch/language": language +"/androidpublisher:v3/androidpublisher.edits.listings.patch/packageName": package_name +"/androidpublisher:v3/androidpublisher.edits.listings.update": update_edit_listing +"/androidpublisher:v3/androidpublisher.edits.listings.update/editId": edit_id +"/androidpublisher:v3/androidpublisher.edits.listings.update/language": language +"/androidpublisher:v3/androidpublisher.edits.listings.update/packageName": package_name +"/androidpublisher:v3/androidpublisher.edits.testers.get": get_edit_tester +"/androidpublisher:v3/androidpublisher.edits.testers.get/editId": edit_id +"/androidpublisher:v3/androidpublisher.edits.testers.get/packageName": package_name +"/androidpublisher:v3/androidpublisher.edits.testers.get/track": track +"/androidpublisher:v3/androidpublisher.edits.testers.patch": patch_edit_tester +"/androidpublisher:v3/androidpublisher.edits.testers.patch/editId": edit_id +"/androidpublisher:v3/androidpublisher.edits.testers.patch/packageName": package_name +"/androidpublisher:v3/androidpublisher.edits.testers.patch/track": track +"/androidpublisher:v3/androidpublisher.edits.testers.update": update_edit_tester +"/androidpublisher:v3/androidpublisher.edits.testers.update/editId": edit_id +"/androidpublisher:v3/androidpublisher.edits.testers.update/packageName": package_name +"/androidpublisher:v3/androidpublisher.edits.testers.update/track": track +"/androidpublisher:v3/androidpublisher.edits.tracks.get": get_edit_track +"/androidpublisher:v3/androidpublisher.edits.tracks.get/editId": edit_id +"/androidpublisher:v3/androidpublisher.edits.tracks.get/packageName": package_name +"/androidpublisher:v3/androidpublisher.edits.tracks.get/track": track +"/androidpublisher:v3/androidpublisher.edits.tracks.list": list_edit_tracks +"/androidpublisher:v3/androidpublisher.edits.tracks.list/editId": edit_id +"/androidpublisher:v3/androidpublisher.edits.tracks.list/packageName": package_name +"/androidpublisher:v3/androidpublisher.edits.tracks.patch": patch_edit_track +"/androidpublisher:v3/androidpublisher.edits.tracks.patch/editId": edit_id +"/androidpublisher:v3/androidpublisher.edits.tracks.patch/packageName": package_name +"/androidpublisher:v3/androidpublisher.edits.tracks.patch/track": track +"/androidpublisher:v3/androidpublisher.edits.tracks.update": update_edit_track +"/androidpublisher:v3/androidpublisher.edits.tracks.update/editId": edit_id +"/androidpublisher:v3/androidpublisher.edits.tracks.update/packageName": package_name +"/androidpublisher:v3/androidpublisher.edits.tracks.update/track": track +"/androidpublisher:v3/androidpublisher.edits.validate": validate_edit +"/androidpublisher:v3/androidpublisher.edits.validate/editId": edit_id +"/androidpublisher:v3/androidpublisher.edits.validate/packageName": package_name +"/androidpublisher:v3/androidpublisher.inappproducts.delete": delete_inappproduct +"/androidpublisher:v3/androidpublisher.inappproducts.delete/packageName": package_name +"/androidpublisher:v3/androidpublisher.inappproducts.delete/sku": sku +"/androidpublisher:v3/androidpublisher.inappproducts.get": get_inappproduct +"/androidpublisher:v3/androidpublisher.inappproducts.get/packageName": package_name +"/androidpublisher:v3/androidpublisher.inappproducts.get/sku": sku +"/androidpublisher:v3/androidpublisher.inappproducts.insert": insert_inappproduct +"/androidpublisher:v3/androidpublisher.inappproducts.insert/autoConvertMissingPrices": auto_convert_missing_prices +"/androidpublisher:v3/androidpublisher.inappproducts.insert/packageName": package_name +"/androidpublisher:v3/androidpublisher.inappproducts.list": list_inappproducts +"/androidpublisher:v3/androidpublisher.inappproducts.list/maxResults": max_results +"/androidpublisher:v3/androidpublisher.inappproducts.list/packageName": package_name +"/androidpublisher:v3/androidpublisher.inappproducts.list/startIndex": start_index +"/androidpublisher:v3/androidpublisher.inappproducts.list/token": token +"/androidpublisher:v3/androidpublisher.inappproducts.patch": patch_inappproduct +"/androidpublisher:v3/androidpublisher.inappproducts.patch/autoConvertMissingPrices": auto_convert_missing_prices +"/androidpublisher:v3/androidpublisher.inappproducts.patch/packageName": package_name +"/androidpublisher:v3/androidpublisher.inappproducts.patch/sku": sku +"/androidpublisher:v3/androidpublisher.inappproducts.update": update_inappproduct +"/androidpublisher:v3/androidpublisher.inappproducts.update/autoConvertMissingPrices": auto_convert_missing_prices +"/androidpublisher:v3/androidpublisher.inappproducts.update/packageName": package_name +"/androidpublisher:v3/androidpublisher.inappproducts.update/sku": sku +"/androidpublisher:v3/androidpublisher.purchases.products.get": get_purchase_product +"/androidpublisher:v3/androidpublisher.purchases.products.get/packageName": package_name +"/androidpublisher:v3/androidpublisher.purchases.products.get/productId": product_id +"/androidpublisher:v3/androidpublisher.purchases.products.get/token": token +"/androidpublisher:v3/androidpublisher.purchases.subscriptions.cancel": cancel_purchase_subscription +"/androidpublisher:v3/androidpublisher.purchases.subscriptions.cancel/packageName": package_name +"/androidpublisher:v3/androidpublisher.purchases.subscriptions.cancel/subscriptionId": subscription_id +"/androidpublisher:v3/androidpublisher.purchases.subscriptions.cancel/token": token +"/androidpublisher:v3/androidpublisher.purchases.subscriptions.defer": defer_purchase_subscription +"/androidpublisher:v3/androidpublisher.purchases.subscriptions.defer/packageName": package_name +"/androidpublisher:v3/androidpublisher.purchases.subscriptions.defer/subscriptionId": subscription_id +"/androidpublisher:v3/androidpublisher.purchases.subscriptions.defer/token": token +"/androidpublisher:v3/androidpublisher.purchases.subscriptions.get": get_purchase_subscription +"/androidpublisher:v3/androidpublisher.purchases.subscriptions.get/packageName": package_name +"/androidpublisher:v3/androidpublisher.purchases.subscriptions.get/subscriptionId": subscription_id +"/androidpublisher:v3/androidpublisher.purchases.subscriptions.get/token": token +"/androidpublisher:v3/androidpublisher.purchases.subscriptions.refund": refund_purchase_subscription +"/androidpublisher:v3/androidpublisher.purchases.subscriptions.refund/packageName": package_name +"/androidpublisher:v3/androidpublisher.purchases.subscriptions.refund/subscriptionId": subscription_id +"/androidpublisher:v3/androidpublisher.purchases.subscriptions.refund/token": token +"/androidpublisher:v3/androidpublisher.purchases.subscriptions.revoke": revoke_purchase_subscription +"/androidpublisher:v3/androidpublisher.purchases.subscriptions.revoke/packageName": package_name +"/androidpublisher:v3/androidpublisher.purchases.subscriptions.revoke/subscriptionId": subscription_id +"/androidpublisher:v3/androidpublisher.purchases.subscriptions.revoke/token": token +"/androidpublisher:v3/androidpublisher.purchases.voidedpurchases.list": list_purchase_voidedpurchases +"/androidpublisher:v3/androidpublisher.purchases.voidedpurchases.list/endTime": end_time +"/androidpublisher:v3/androidpublisher.purchases.voidedpurchases.list/maxResults": max_results +"/androidpublisher:v3/androidpublisher.purchases.voidedpurchases.list/packageName": package_name +"/androidpublisher:v3/androidpublisher.purchases.voidedpurchases.list/startIndex": start_index +"/androidpublisher:v3/androidpublisher.purchases.voidedpurchases.list/startTime": start_time +"/androidpublisher:v3/androidpublisher.purchases.voidedpurchases.list/token": token +"/androidpublisher:v3/androidpublisher.reviews.get": get_review +"/androidpublisher:v3/androidpublisher.reviews.get/packageName": package_name +"/androidpublisher:v3/androidpublisher.reviews.get/reviewId": review_id +"/androidpublisher:v3/androidpublisher.reviews.get/translationLanguage": translation_language +"/androidpublisher:v3/androidpublisher.reviews.list": list_reviews +"/androidpublisher:v3/androidpublisher.reviews.list/maxResults": max_results +"/androidpublisher:v3/androidpublisher.reviews.list/packageName": package_name +"/androidpublisher:v3/androidpublisher.reviews.list/startIndex": start_index +"/androidpublisher:v3/androidpublisher.reviews.list/token": token +"/androidpublisher:v3/androidpublisher.reviews.list/translationLanguage": translation_language +"/androidpublisher:v3/androidpublisher.reviews.reply": reply_review +"/androidpublisher:v3/androidpublisher.reviews.reply/packageName": package_name +"/androidpublisher:v3/androidpublisher.reviews.reply/reviewId": review_id +"/androidpublisher:v3/fields": fields +"/androidpublisher:v3/key": key +"/androidpublisher:v3/quotaUser": quota_user +"/androidpublisher:v3/userIp": user_ip "/appengine:v1/ApiConfigHandler": api_config_handler "/appengine:v1/ApiConfigHandler/authFailAction": auth_fail_action "/appengine:v1/ApiConfigHandler/login": login @@ -13773,6 +14214,7 @@ "/cloudiot:v1/cloudiot.projects.locations.groups.devices.list/deviceIds": device_ids "/cloudiot:v1/cloudiot.projects.locations.groups.devices.list/deviceNumIds": device_num_ids "/cloudiot:v1/cloudiot.projects.locations.groups.devices.list/fieldMask": field_mask +"/cloudiot:v1/cloudiot.projects.locations.groups.devices.list/gatewayType": gateway_type "/cloudiot:v1/cloudiot.projects.locations.groups.devices.list/pageSize": page_size "/cloudiot:v1/cloudiot.projects.locations.groups.devices.list/pageToken": page_token "/cloudiot:v1/cloudiot.projects.locations.groups.devices.list/parent": parent @@ -13794,6 +14236,7 @@ "/cloudiot:v1/cloudiot.projects.locations.registries.devices.list/deviceIds": device_ids "/cloudiot:v1/cloudiot.projects.locations.registries.devices.list/deviceNumIds": device_num_ids "/cloudiot:v1/cloudiot.projects.locations.registries.devices.list/fieldMask": field_mask +"/cloudiot:v1/cloudiot.projects.locations.registries.devices.list/gatewayType": gateway_type "/cloudiot:v1/cloudiot.projects.locations.registries.devices.list/pageSize": page_size "/cloudiot:v1/cloudiot.projects.locations.registries.devices.list/pageToken": page_token "/cloudiot:v1/cloudiot.projects.locations.registries.devices.list/parent": parent @@ -32525,6 +32968,8 @@ "/content:v2/LiasettingsCustomBatchRequestEntry/liaSettings": lia_settings "/content:v2/LiasettingsCustomBatchRequestEntry/merchantId": merchant_id "/content:v2/LiasettingsCustomBatchRequestEntry/method": method_prop +"/content:v2/LiasettingsCustomBatchRequestEntry/posExternalAccountId": pos_external_account_id +"/content:v2/LiasettingsCustomBatchRequestEntry/posProviderId": pos_provider_id "/content:v2/LiasettingsCustomBatchResponse": liasettings_custom_batch_response "/content:v2/LiasettingsCustomBatchResponse/entries": entries "/content:v2/LiasettingsCustomBatchResponse/entries/entry": entry @@ -32535,6 +32980,8 @@ "/content:v2/LiasettingsCustomBatchResponseEntry/gmbAccounts": gmb_accounts "/content:v2/LiasettingsCustomBatchResponseEntry/kind": kind "/content:v2/LiasettingsCustomBatchResponseEntry/liaSettings": lia_settings +"/content:v2/LiasettingsCustomBatchResponseEntry/posProviders": pos_providers +"/content:v2/LiasettingsCustomBatchResponseEntry/posProviders/pos_provider": pos_provider "/content:v2/LiasettingsGetAccessibleGmbAccountsResponse": liasettings_get_accessible_gmb_accounts_response "/content:v2/LiasettingsGetAccessibleGmbAccountsResponse/accountId": account_id "/content:v2/LiasettingsGetAccessibleGmbAccountsResponse/gmbAccounts": gmb_accounts @@ -33019,6 +33466,14 @@ "/content:v2/PosListResponse/kind": kind "/content:v2/PosListResponse/resources": resources "/content:v2/PosListResponse/resources/resource": resource +"/content:v2/PosProviders": pos_providers +"/content:v2/PosProviders/country": country +"/content:v2/PosProviders/posProviders": pos_providers +"/content:v2/PosProviders/posProviders/pos_provider": pos_provider +"/content:v2/PosProvidersPosProvider": pos_providers_pos_provider +"/content:v2/PosProvidersPosProvider/displayName": display_name +"/content:v2/PosProvidersPosProvider/fullName": full_name +"/content:v2/PosProvidersPosProvider/providerId": provider_id "/content:v2/PosSale": pos_sale "/content:v2/PosSale/contentLanguage": content_language "/content:v2/PosSale/gtin": gtin @@ -60610,6 +61065,173 @@ "/people:v1/people.people.updateContact/resourceName": resource_name "/people:v1/people.people.updateContact/updatePersonFields": update_person_fields "/people:v1/quotaUser": quota_user +"/photoslibrary:v1/AddEnrichmentToAlbumRequest": add_enrichment_to_album_request +"/photoslibrary:v1/AddEnrichmentToAlbumRequest/albumPosition": album_position +"/photoslibrary:v1/AddEnrichmentToAlbumRequest/newEnrichmentItem": new_enrichment_item +"/photoslibrary:v1/AddEnrichmentToAlbumResponse": add_enrichment_to_album_response +"/photoslibrary:v1/AddEnrichmentToAlbumResponse/enrichmentItem": enrichment_item +"/photoslibrary:v1/Album": album +"/photoslibrary:v1/Album/coverPhotoBaseUrl": cover_photo_base_url +"/photoslibrary:v1/Album/id": id +"/photoslibrary:v1/Album/isWriteable": is_writeable +"/photoslibrary:v1/Album/productUrl": product_url +"/photoslibrary:v1/Album/shareInfo": share_info +"/photoslibrary:v1/Album/title": title +"/photoslibrary:v1/Album/totalMediaItems": total_media_items +"/photoslibrary:v1/AlbumPosition": album_position +"/photoslibrary:v1/AlbumPosition/position": position +"/photoslibrary:v1/AlbumPosition/relativeEnrichmentItemId": relative_enrichment_item_id +"/photoslibrary:v1/AlbumPosition/relativeMediaItemId": relative_media_item_id +"/photoslibrary:v1/BatchCreateMediaItemsRequest": batch_create_media_items_request +"/photoslibrary:v1/BatchCreateMediaItemsRequest/albumId": album_id +"/photoslibrary:v1/BatchCreateMediaItemsRequest/albumPosition": album_position +"/photoslibrary:v1/BatchCreateMediaItemsRequest/newMediaItems": new_media_items +"/photoslibrary:v1/BatchCreateMediaItemsRequest/newMediaItems/new_media_item": new_media_item +"/photoslibrary:v1/BatchCreateMediaItemsResponse": batch_create_media_items_response +"/photoslibrary:v1/BatchCreateMediaItemsResponse/newMediaItemResults": new_media_item_results +"/photoslibrary:v1/BatchCreateMediaItemsResponse/newMediaItemResults/new_media_item_result": new_media_item_result +"/photoslibrary:v1/ContentFilter": content_filter +"/photoslibrary:v1/ContentFilter/excludedContentCategories": excluded_content_categories +"/photoslibrary:v1/ContentFilter/excludedContentCategories/excluded_content_category": excluded_content_category +"/photoslibrary:v1/ContentFilter/includedContentCategories": included_content_categories +"/photoslibrary:v1/ContentFilter/includedContentCategories/included_content_category": included_content_category +"/photoslibrary:v1/ContributorInfo": contributor_info +"/photoslibrary:v1/ContributorInfo/displayName": display_name +"/photoslibrary:v1/ContributorInfo/profilePictureBaseUrl": profile_picture_base_url +"/photoslibrary:v1/CreateAlbumRequest": create_album_request +"/photoslibrary:v1/CreateAlbumRequest/album": album +"/photoslibrary:v1/Date": date +"/photoslibrary:v1/Date/day": day +"/photoslibrary:v1/Date/month": month +"/photoslibrary:v1/Date/year": year +"/photoslibrary:v1/DateFilter": date_filter +"/photoslibrary:v1/DateFilter/dates": dates +"/photoslibrary:v1/DateFilter/dates/date": date +"/photoslibrary:v1/DateFilter/ranges": ranges +"/photoslibrary:v1/DateFilter/ranges/range": range +"/photoslibrary:v1/DateRange": date_range +"/photoslibrary:v1/DateRange/endDate": end_date +"/photoslibrary:v1/DateRange/startDate": start_date +"/photoslibrary:v1/EnrichmentItem": enrichment_item +"/photoslibrary:v1/EnrichmentItem/id": id +"/photoslibrary:v1/Filters": filters +"/photoslibrary:v1/Filters/contentFilter": content_filter +"/photoslibrary:v1/Filters/dateFilter": date_filter +"/photoslibrary:v1/Filters/includeArchivedMedia": include_archived_media +"/photoslibrary:v1/Filters/mediaTypeFilter": media_type_filter +"/photoslibrary:v1/JoinSharedAlbumRequest": join_shared_album_request +"/photoslibrary:v1/JoinSharedAlbumRequest/shareToken": share_token +"/photoslibrary:v1/JoinSharedAlbumResponse": join_shared_album_response +"/photoslibrary:v1/LatLng": lat_lng +"/photoslibrary:v1/LatLng/latitude": latitude +"/photoslibrary:v1/LatLng/longitude": longitude +"/photoslibrary:v1/ListAlbumsResponse": list_albums_response +"/photoslibrary:v1/ListAlbumsResponse/albums": albums +"/photoslibrary:v1/ListAlbumsResponse/albums/album": album +"/photoslibrary:v1/ListAlbumsResponse/nextPageToken": next_page_token +"/photoslibrary:v1/ListSharedAlbumsResponse": list_shared_albums_response +"/photoslibrary:v1/ListSharedAlbumsResponse/nextPageToken": next_page_token +"/photoslibrary:v1/ListSharedAlbumsResponse/sharedAlbums": shared_albums +"/photoslibrary:v1/ListSharedAlbumsResponse/sharedAlbums/shared_album": shared_album +"/photoslibrary:v1/Location": location +"/photoslibrary:v1/Location/latlng": latlng +"/photoslibrary:v1/Location/locationName": location_name +"/photoslibrary:v1/LocationEnrichment": location_enrichment +"/photoslibrary:v1/LocationEnrichment/location": location +"/photoslibrary:v1/MapEnrichment": map_enrichment +"/photoslibrary:v1/MapEnrichment/destination": destination +"/photoslibrary:v1/MapEnrichment/origin": origin +"/photoslibrary:v1/MediaItem": media_item +"/photoslibrary:v1/MediaItem/baseUrl": base_url +"/photoslibrary:v1/MediaItem/contributorInfo": contributor_info +"/photoslibrary:v1/MediaItem/description": description +"/photoslibrary:v1/MediaItem/id": id +"/photoslibrary:v1/MediaItem/mediaMetadata": media_metadata +"/photoslibrary:v1/MediaItem/mimeType": mime_type +"/photoslibrary:v1/MediaItem/productUrl": product_url +"/photoslibrary:v1/MediaMetadata": media_metadata +"/photoslibrary:v1/MediaMetadata/creationTime": creation_time +"/photoslibrary:v1/MediaMetadata/height": height +"/photoslibrary:v1/MediaMetadata/photo": photo +"/photoslibrary:v1/MediaMetadata/video": video +"/photoslibrary:v1/MediaMetadata/width": width +"/photoslibrary:v1/MediaTypeFilter": media_type_filter +"/photoslibrary:v1/MediaTypeFilter/mediaTypes": media_types +"/photoslibrary:v1/MediaTypeFilter/mediaTypes/media_type": media_type +"/photoslibrary:v1/NewEnrichmentItem": new_enrichment_item +"/photoslibrary:v1/NewEnrichmentItem/locationEnrichment": location_enrichment +"/photoslibrary:v1/NewEnrichmentItem/mapEnrichment": map_enrichment +"/photoslibrary:v1/NewEnrichmentItem/textEnrichment": text_enrichment +"/photoslibrary:v1/NewMediaItem": new_media_item +"/photoslibrary:v1/NewMediaItem/description": description +"/photoslibrary:v1/NewMediaItem/simpleMediaItem": simple_media_item +"/photoslibrary:v1/NewMediaItemResult": new_media_item_result +"/photoslibrary:v1/NewMediaItemResult/mediaItem": media_item +"/photoslibrary:v1/NewMediaItemResult/status": status +"/photoslibrary:v1/NewMediaItemResult/uploadToken": upload_token +"/photoslibrary:v1/Photo": photo +"/photoslibrary:v1/Photo/apertureFNumber": aperture_f_number +"/photoslibrary:v1/Photo/cameraMake": camera_make +"/photoslibrary:v1/Photo/cameraModel": camera_model +"/photoslibrary:v1/Photo/exposureTime": exposure_time +"/photoslibrary:v1/Photo/focalLength": focal_length +"/photoslibrary:v1/Photo/isoEquivalent": iso_equivalent +"/photoslibrary:v1/SearchMediaItemsRequest": search_media_items_request +"/photoslibrary:v1/SearchMediaItemsRequest/albumId": album_id +"/photoslibrary:v1/SearchMediaItemsRequest/filters": filters +"/photoslibrary:v1/SearchMediaItemsRequest/pageSize": page_size +"/photoslibrary:v1/SearchMediaItemsRequest/pageToken": page_token +"/photoslibrary:v1/SearchMediaItemsResponse": search_media_items_response +"/photoslibrary:v1/SearchMediaItemsResponse/mediaItems": media_items +"/photoslibrary:v1/SearchMediaItemsResponse/mediaItems/media_item": media_item +"/photoslibrary:v1/SearchMediaItemsResponse/nextPageToken": next_page_token +"/photoslibrary:v1/ShareAlbumRequest": share_album_request +"/photoslibrary:v1/ShareAlbumRequest/sharedAlbumOptions": shared_album_options +"/photoslibrary:v1/ShareAlbumResponse": share_album_response +"/photoslibrary:v1/ShareAlbumResponse/shareInfo": share_info +"/photoslibrary:v1/ShareInfo": share_info +"/photoslibrary:v1/ShareInfo/shareToken": share_token +"/photoslibrary:v1/ShareInfo/shareableUrl": shareable_url +"/photoslibrary:v1/ShareInfo/sharedAlbumOptions": shared_album_options +"/photoslibrary:v1/SharedAlbumOptions": shared_album_options +"/photoslibrary:v1/SharedAlbumOptions/isCollaborative": is_collaborative +"/photoslibrary:v1/SharedAlbumOptions/isCommentable": is_commentable +"/photoslibrary:v1/SimpleMediaItem": simple_media_item +"/photoslibrary:v1/SimpleMediaItem/uploadToken": upload_token +"/photoslibrary:v1/Status": status +"/photoslibrary:v1/Status/code": code +"/photoslibrary:v1/Status/details": details +"/photoslibrary:v1/Status/details/detail": detail +"/photoslibrary:v1/Status/details/detail/detail": detail +"/photoslibrary:v1/Status/message": message +"/photoslibrary:v1/TextEnrichment": text_enrichment +"/photoslibrary:v1/TextEnrichment/text": text +"/photoslibrary:v1/Video": video +"/photoslibrary:v1/Video/cameraMake": camera_make +"/photoslibrary:v1/Video/cameraModel": camera_model +"/photoslibrary:v1/Video/fps": fps +"/photoslibrary:v1/Video/status": status +"/photoslibrary:v1/fields": fields +"/photoslibrary:v1/key": key +"/photoslibrary:v1/photoslibrary.albums.addEnrichment": add_enrichment_to_album +"/photoslibrary:v1/photoslibrary.albums.addEnrichment/albumId": album_id +"/photoslibrary:v1/photoslibrary.albums.create": create_album +"/photoslibrary:v1/photoslibrary.albums.get": get_album +"/photoslibrary:v1/photoslibrary.albums.get/albumId": album_id +"/photoslibrary:v1/photoslibrary.albums.list": list_albums +"/photoslibrary:v1/photoslibrary.albums.list/pageSize": page_size +"/photoslibrary:v1/photoslibrary.albums.list/pageToken": page_token +"/photoslibrary:v1/photoslibrary.albums.share": share_album +"/photoslibrary:v1/photoslibrary.albums.share/albumId": album_id +"/photoslibrary:v1/photoslibrary.mediaItems.batchCreate": batch_create_media_items +"/photoslibrary:v1/photoslibrary.mediaItems.get": get_media_item +"/photoslibrary:v1/photoslibrary.mediaItems.get/mediaItemId": media_item_id +"/photoslibrary:v1/photoslibrary.mediaItems.search": search_media_items +"/photoslibrary:v1/photoslibrary.sharedAlbums.join": join_shared_album +"/photoslibrary:v1/photoslibrary.sharedAlbums.list": list_shared_albums +"/photoslibrary:v1/photoslibrary.sharedAlbums.list/pageSize": page_size +"/photoslibrary:v1/photoslibrary.sharedAlbums.list/pageToken": page_token +"/photoslibrary:v1/quotaUser": quota_user "/playcustomapp:v1/CustomApp": custom_app "/playcustomapp:v1/CustomApp/languageCode": language_code "/playcustomapp:v1/CustomApp/title": title diff --git a/generated/google/apis/androidenterprise_v1.rb b/generated/google/apis/androidenterprise_v1.rb index f4a1f857f..1c9de8d79 100644 --- a/generated/google/apis/androidenterprise_v1.rb +++ b/generated/google/apis/androidenterprise_v1.rb @@ -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' diff --git a/generated/google/apis/androidenterprise_v1/classes.rb b/generated/google/apis/androidenterprise_v1/classes.rb index 046af9658..caf390d8d 100644 --- a/generated/google/apis/androidenterprise_v1/classes.rb +++ b/generated/google/apis/androidenterprise_v1/classes.rb @@ -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 diff --git a/generated/google/apis/androidpublisher_v3.rb b/generated/google/apis/androidpublisher_v3.rb new file mode 100644 index 000000000..0004b8b37 --- /dev/null +++ b/generated/google/apis/androidpublisher_v3.rb @@ -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 diff --git a/generated/google/apis/androidpublisher_v3/classes.rb b/generated/google/apis/androidpublisher_v3/classes.rb new file mode 100644 index 000000000..a1ff7ecf8 --- /dev/null +++ b/generated/google/apis/androidpublisher_v3/classes.rb @@ -0,0 +1,1837 @@ +# 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 + include Google::Apis::Core::Hashable + + # Represents the binary payload of an APK. + # Corresponds to the JSON property `binary` + # @return [Google::Apis::AndroidpublisherV3::ApkBinary] + attr_accessor :binary + + # The version code of the APK, as specified in the APK's manifest file. + # Corresponds to the JSON property `versionCode` + # @return [Fixnum] + attr_accessor :version_code + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @binary = args[:binary] if args.key?(:binary) + @version_code = args[:version_code] if args.key?(:version_code) + end + end + + # Represents the binary payload of an APK. + class ApkBinary + include Google::Apis::Core::Hashable + + # A sha1 hash of the APK payload, encoded as a hex string and matching the + # output of the sha1sum command. + # Corresponds to the JSON property `sha1` + # @return [String] + attr_accessor :sha1 + + # A sha256 hash of the APK payload, encoded as a hex string and matching the + # output of the sha256sum command. + # Corresponds to the JSON property `sha256` + # @return [String] + attr_accessor :sha256 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @sha1 = args[:sha1] if args.key?(:sha1) + @sha256 = args[:sha256] if args.key?(:sha256) + end + end + + # + class ApksAddExternallyHostedRequest + include Google::Apis::Core::Hashable + + # Defines an APK available for this application that is hosted externally and + # not uploaded to Google Play. This function is only available to enterprises + # who are using Google Play for Work, and whos application is restricted to the + # enterprise private channel + # Corresponds to the JSON property `externallyHostedApk` + # @return [Google::Apis::AndroidpublisherV3::ExternallyHostedApk] + attr_accessor :externally_hosted_apk + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @externally_hosted_apk = args[:externally_hosted_apk] if args.key?(:externally_hosted_apk) + end + end + + # + class ApksAddExternallyHostedResponse + include Google::Apis::Core::Hashable + + # Defines an APK available for this application that is hosted externally and + # not uploaded to Google Play. This function is only available to enterprises + # who are using Google Play for Work, and whos application is restricted to the + # enterprise private channel + # Corresponds to the JSON property `externallyHostedApk` + # @return [Google::Apis::AndroidpublisherV3::ExternallyHostedApk] + attr_accessor :externally_hosted_apk + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @externally_hosted_apk = args[:externally_hosted_apk] if args.key?(:externally_hosted_apk) + end + end + + # + class ApksListResponse + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `apks` + # @return [Array] + attr_accessor :apks + + # Identifies what kind of resource this is. Value: the fixed string " + # androidpublisher#apksListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @apks = args[:apks] if args.key?(:apks) + @kind = args[:kind] if args.key?(:kind) + end + end + + # + class AppDetails + include Google::Apis::Core::Hashable + + # The user-visible support email for this app. + # Corresponds to the JSON property `contactEmail` + # @return [String] + attr_accessor :contact_email + + # The user-visible support telephone number for this app. + # Corresponds to the JSON property `contactPhone` + # @return [String] + attr_accessor :contact_phone + + # The user-visible website for this app. + # Corresponds to the JSON property `contactWebsite` + # @return [String] + attr_accessor :contact_website + + # Default language code, in BCP 47 format (eg "en-US"). + # Corresponds to the JSON property `defaultLanguage` + # @return [String] + attr_accessor :default_language + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @contact_email = args[:contact_email] if args.key?(:contact_email) + @contact_phone = args[:contact_phone] if args.key?(:contact_phone) + @contact_website = args[:contact_website] if args.key?(:contact_website) + @default_language = args[:default_language] if args.key?(:default_language) + end + end + + # Represents an edit of an app. An edit allows clients to make multiple changes + # before committing them in one operation. + class AppEdit + include Google::Apis::Core::Hashable + + # The time at which the edit will expire and will be no longer valid for use in + # any subsequent API calls (encoded as seconds since the Epoch). + # Corresponds to the JSON property `expiryTimeSeconds` + # @return [String] + attr_accessor :expiry_time_seconds + + # The ID of the edit that can be used in subsequent API calls. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @expiry_time_seconds = args[:expiry_time_seconds] if args.key?(:expiry_time_seconds) + @id = args[:id] if args.key?(:id) + end + end + + # + class Comment + include Google::Apis::Core::Hashable + + # A comment from a developer. + # Corresponds to the JSON property `developerComment` + # @return [Google::Apis::AndroidpublisherV3::DeveloperComment] + attr_accessor :developer_comment + + # A comment from a user. + # Corresponds to the JSON property `userComment` + # @return [Google::Apis::AndroidpublisherV3::UserComment] + attr_accessor :user_comment + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @developer_comment = args[:developer_comment] if args.key?(:developer_comment) + @user_comment = args[:user_comment] if args.key?(:user_comment) + end + end + + # Represents a deobfuscation file. + class DeobfuscationFile + include Google::Apis::Core::Hashable + + # The type of the deobfuscation file. + # Corresponds to the JSON property `symbolType` + # @return [String] + attr_accessor :symbol_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @symbol_type = args[:symbol_type] if args.key?(:symbol_type) + end + end + + # + class DeobfuscationFilesUploadResponse + include Google::Apis::Core::Hashable + + # Represents a deobfuscation file. + # Corresponds to the JSON property `deobfuscationFile` + # @return [Google::Apis::AndroidpublisherV3::DeobfuscationFile] + attr_accessor :deobfuscation_file + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @deobfuscation_file = args[:deobfuscation_file] if args.key?(:deobfuscation_file) + end + end + + # + class DeveloperComment + include Google::Apis::Core::Hashable + + # The last time at which this comment was updated. + # Corresponds to the JSON property `lastModified` + # @return [Google::Apis::AndroidpublisherV3::Timestamp] + attr_accessor :last_modified + + # The content of the comment, i.e. reply body. + # Corresponds to the JSON property `text` + # @return [String] + attr_accessor :text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @last_modified = args[:last_modified] if args.key?(:last_modified) + @text = args[:text] if args.key?(:text) + end + end + + # + class DeviceMetadata + include Google::Apis::Core::Hashable + + # Device CPU make e.g. "Qualcomm" + # Corresponds to the JSON property `cpuMake` + # @return [String] + attr_accessor :cpu_make + + # Device CPU model e.g. "MSM8974" + # Corresponds to the JSON property `cpuModel` + # @return [String] + attr_accessor :cpu_model + + # Device class (e.g. tablet) + # Corresponds to the JSON property `deviceClass` + # @return [String] + attr_accessor :device_class + + # OpenGL version + # Corresponds to the JSON property `glEsVersion` + # @return [Fixnum] + attr_accessor :gl_es_version + + # Device manufacturer (e.g. Motorola) + # Corresponds to the JSON property `manufacturer` + # @return [String] + attr_accessor :manufacturer + + # Comma separated list of native platforms (e.g. "arm", "arm7") + # Corresponds to the JSON property `nativePlatform` + # @return [String] + attr_accessor :native_platform + + # Device model name (e.g. Droid) + # Corresponds to the JSON property `productName` + # @return [String] + attr_accessor :product_name + + # Device RAM in Megabytes e.g. "2048" + # Corresponds to the JSON property `ramMb` + # @return [Fixnum] + attr_accessor :ram_mb + + # Screen density in DPI + # Corresponds to the JSON property `screenDensityDpi` + # @return [Fixnum] + attr_accessor :screen_density_dpi + + # Screen height in pixels + # Corresponds to the JSON property `screenHeightPx` + # @return [Fixnum] + attr_accessor :screen_height_px + + # Screen width in pixels + # Corresponds to the JSON property `screenWidthPx` + # @return [Fixnum] + attr_accessor :screen_width_px + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cpu_make = args[:cpu_make] if args.key?(:cpu_make) + @cpu_model = args[:cpu_model] if args.key?(:cpu_model) + @device_class = args[:device_class] if args.key?(:device_class) + @gl_es_version = args[:gl_es_version] if args.key?(:gl_es_version) + @manufacturer = args[:manufacturer] if args.key?(:manufacturer) + @native_platform = args[:native_platform] if args.key?(:native_platform) + @product_name = args[:product_name] if args.key?(:product_name) + @ram_mb = args[:ram_mb] if args.key?(:ram_mb) + @screen_density_dpi = args[:screen_density_dpi] if args.key?(:screen_density_dpi) + @screen_height_px = args[:screen_height_px] if args.key?(:screen_height_px) + @screen_width_px = args[:screen_width_px] if args.key?(:screen_width_px) + end + end + + # + class ExpansionFile + include Google::Apis::Core::Hashable + + # If set this field indicates that this APK has an Expansion File uploaded to it: + # this APK does not reference another APK's Expansion File. The field's value + # is the size of the uploaded Expansion File in bytes. + # Corresponds to the JSON property `fileSize` + # @return [Fixnum] + attr_accessor :file_size + + # If set this APK's Expansion File references another APK's Expansion File. The + # file_size field will not be set. + # Corresponds to the JSON property `referencesVersion` + # @return [Fixnum] + attr_accessor :references_version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @file_size = args[:file_size] if args.key?(:file_size) + @references_version = args[:references_version] if args.key?(:references_version) + end + end + + # + class ExpansionFilesUploadResponse + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `expansionFile` + # @return [Google::Apis::AndroidpublisherV3::ExpansionFile] + attr_accessor :expansion_file + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @expansion_file = args[:expansion_file] if args.key?(:expansion_file) + end + end + + # Defines an APK available for this application that is hosted externally and + # not uploaded to Google Play. This function is only available to enterprises + # who are using Google Play for Work, and whos application is restricted to the + # enterprise private channel + class ExternallyHostedApk + include Google::Apis::Core::Hashable + + # The application label. + # Corresponds to the JSON property `applicationLabel` + # @return [String] + attr_accessor :application_label + + # A certificate (or array of certificates if a certificate-chain is used) used + # to signed this APK, represented as a base64 encoded byte array. + # Corresponds to the JSON property `certificateBase64s` + # @return [Array] + attr_accessor :certificate_base64s + + # The URL at which the APK is hosted. This must be an https URL. + # Corresponds to the JSON property `externallyHostedUrl` + # @return [String] + attr_accessor :externally_hosted_url + + # The SHA1 checksum of this APK, represented as a base64 encoded byte array. + # Corresponds to the JSON property `fileSha1Base64` + # @return [String] + attr_accessor :file_sha1_base64 + + # The SHA256 checksum of this APK, represented as a base64 encoded byte array. + # Corresponds to the JSON property `fileSha256Base64` + # @return [String] + attr_accessor :file_sha256_base64 + + # The file size in bytes of this APK. + # Corresponds to the JSON property `fileSize` + # @return [Fixnum] + attr_accessor :file_size + + # The icon image from the APK, as a base64 encoded byte array. + # Corresponds to the JSON property `iconBase64` + # @return [String] + attr_accessor :icon_base64 + + # The maximum SDK supported by this APK (optional). + # Corresponds to the JSON property `maximumSdk` + # @return [Fixnum] + attr_accessor :maximum_sdk + + # The minimum SDK targeted by this APK. + # Corresponds to the JSON property `minimumSdk` + # @return [Fixnum] + attr_accessor :minimum_sdk + + # The native code environments supported by this APK (optional). + # Corresponds to the JSON property `nativeCodes` + # @return [Array] + attr_accessor :native_codes + + # The package name. + # Corresponds to the JSON property `packageName` + # @return [String] + attr_accessor :package_name + + # The features required by this APK (optional). + # Corresponds to the JSON property `usesFeatures` + # @return [Array] + attr_accessor :uses_features + + # The permissions requested by this APK. + # Corresponds to the JSON property `usesPermissions` + # @return [Array] + attr_accessor :uses_permissions + + # The version code of this APK. + # Corresponds to the JSON property `versionCode` + # @return [Fixnum] + attr_accessor :version_code + + # The version name of this APK. + # Corresponds to the JSON property `versionName` + # @return [String] + attr_accessor :version_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @application_label = args[:application_label] if args.key?(:application_label) + @certificate_base64s = args[:certificate_base64s] if args.key?(:certificate_base64s) + @externally_hosted_url = args[:externally_hosted_url] if args.key?(:externally_hosted_url) + @file_sha1_base64 = args[:file_sha1_base64] if args.key?(:file_sha1_base64) + @file_sha256_base64 = args[:file_sha256_base64] if args.key?(:file_sha256_base64) + @file_size = args[:file_size] if args.key?(:file_size) + @icon_base64 = args[:icon_base64] if args.key?(:icon_base64) + @maximum_sdk = args[:maximum_sdk] if args.key?(:maximum_sdk) + @minimum_sdk = args[:minimum_sdk] if args.key?(:minimum_sdk) + @native_codes = args[:native_codes] if args.key?(:native_codes) + @package_name = args[:package_name] if args.key?(:package_name) + @uses_features = args[:uses_features] if args.key?(:uses_features) + @uses_permissions = args[:uses_permissions] if args.key?(:uses_permissions) + @version_code = args[:version_code] if args.key?(:version_code) + @version_name = args[:version_name] if args.key?(:version_name) + end + end + + # A permission used by this APK. + class ExternallyHostedApkUsesPermission + include Google::Apis::Core::Hashable + + # Optionally, the maximum SDK version for which the permission is required. + # Corresponds to the JSON property `maxSdkVersion` + # @return [Fixnum] + attr_accessor :max_sdk_version + + # The name of the permission requested. + # 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) + @max_sdk_version = args[:max_sdk_version] if args.key?(:max_sdk_version) + @name = args[:name] if args.key?(:name) + end + end + + # + class Image + include Google::Apis::Core::Hashable + + # A unique id representing this image. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # A sha1 hash of the image that was uploaded. + # Corresponds to the JSON property `sha1` + # @return [String] + attr_accessor :sha1 + + # A URL that will serve a preview of the image. + # 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) + @id = args[:id] if args.key?(:id) + @sha1 = args[:sha1] if args.key?(:sha1) + @url = args[:url] if args.key?(:url) + end + end + + # + class ImagesDeleteAllResponse + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `deleted` + # @return [Array] + attr_accessor :deleted + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @deleted = args[:deleted] if args.key?(:deleted) + end + end + + # + class ImagesListResponse + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `images` + # @return [Array] + attr_accessor :images + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @images = args[:images] if args.key?(:images) + end + end + + # + class ImagesUploadResponse + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `image` + # @return [Google::Apis::AndroidpublisherV3::Image] + attr_accessor :image + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @image = args[:image] if args.key?(:image) + end + end + + # + class InAppProduct + include Google::Apis::Core::Hashable + + # The default language of the localized data, as defined by BCP 47. e.g. "en-US", + # "en-GB". + # Corresponds to the JSON property `defaultLanguage` + # @return [String] + attr_accessor :default_language + + # Default price cannot be zero. In-app products can never be free. Default price + # is always in the developer's Checkout merchant currency. + # Corresponds to the JSON property `defaultPrice` + # @return [Google::Apis::AndroidpublisherV3::Price] + attr_accessor :default_price + + # List of localized title and description data. + # Corresponds to the JSON property `listings` + # @return [Hash] + attr_accessor :listings + + # The package name of the parent app. + # Corresponds to the JSON property `packageName` + # @return [String] + attr_accessor :package_name + + # Prices per buyer region. None of these prices should be zero. In-app products + # can never be free. + # Corresponds to the JSON property `prices` + # @return [Hash] + attr_accessor :prices + + # Purchase type enum value. Unmodifiable after creation. + # Corresponds to the JSON property `purchaseType` + # @return [String] + attr_accessor :purchase_type + + # Definition of a season for a seasonal subscription. Can be defined only for + # yearly subscriptions. + # Corresponds to the JSON property `season` + # @return [Google::Apis::AndroidpublisherV3::Season] + attr_accessor :season + + # The stock-keeping-unit (SKU) of the product, unique within an app. + # Corresponds to the JSON property `sku` + # @return [String] + attr_accessor :sku + + # + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + # Subscription period, specified in ISO 8601 format. Acceptable values are "P1W" + # (one week), "P1M" (one month), "P3M" (three months), "P6M" (six months), and " + # P1Y" (one year). + # Corresponds to the JSON property `subscriptionPeriod` + # @return [String] + attr_accessor :subscription_period + + # Trial period, specified in ISO 8601 format. Acceptable values are anything + # between "P7D" (seven days) and "P999D" (999 days). Seasonal subscriptions + # cannot have a trial period. + # Corresponds to the JSON property `trialPeriod` + # @return [String] + attr_accessor :trial_period + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @default_language = args[:default_language] if args.key?(:default_language) + @default_price = args[:default_price] if args.key?(:default_price) + @listings = args[:listings] if args.key?(:listings) + @package_name = args[:package_name] if args.key?(:package_name) + @prices = args[:prices] if args.key?(:prices) + @purchase_type = args[:purchase_type] if args.key?(:purchase_type) + @season = args[:season] if args.key?(:season) + @sku = args[:sku] if args.key?(:sku) + @status = args[:status] if args.key?(:status) + @subscription_period = args[:subscription_period] if args.key?(:subscription_period) + @trial_period = args[:trial_period] if args.key?(:trial_period) + end + end + + # + class InAppProductListing + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @title = args[:title] if args.key?(:title) + end + end + + # + class InappproductsListResponse + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `inappproduct` + # @return [Array] + attr_accessor :inappproduct + + # Identifies what kind of resource this is. Value: the fixed string " + # androidpublisher#inappproductsListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # + # Corresponds to the JSON property `pageInfo` + # @return [Google::Apis::AndroidpublisherV3::PageInfo] + attr_accessor :page_info + + # + # Corresponds to the JSON property `tokenPagination` + # @return [Google::Apis::AndroidpublisherV3::TokenPagination] + attr_accessor :token_pagination + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @inappproduct = args[:inappproduct] if args.key?(:inappproduct) + @kind = args[:kind] if args.key?(:kind) + @page_info = args[:page_info] if args.key?(:page_info) + @token_pagination = args[:token_pagination] if args.key?(:token_pagination) + end + end + + # + class Listing + include Google::Apis::Core::Hashable + + # Full description of the app; this may be up to 4000 characters in length. + # Corresponds to the JSON property `fullDescription` + # @return [String] + attr_accessor :full_description + + # Language localization code (for example, "de-AT" for Austrian German). + # Corresponds to the JSON property `language` + # @return [String] + attr_accessor :language + + # Short description of the app (previously known as promo text); this may be up + # to 80 characters in length. + # Corresponds to the JSON property `shortDescription` + # @return [String] + attr_accessor :short_description + + # App's localized title. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + # URL of a promotional YouTube video for the app. + # Corresponds to the JSON property `video` + # @return [String] + attr_accessor :video + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @full_description = args[:full_description] if args.key?(:full_description) + @language = args[:language] if args.key?(:language) + @short_description = args[:short_description] if args.key?(:short_description) + @title = args[:title] if args.key?(:title) + @video = args[:video] if args.key?(:video) + end + end + + # + class ListingsListResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string " + # androidpublisher#listingsListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # + # Corresponds to the JSON property `listings` + # @return [Array] + attr_accessor :listings + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @listings = args[:listings] if args.key?(:listings) + end + end + + # + class LocalizedText + include Google::Apis::Core::Hashable + + # The language code, in BCP 47 format (eg "en-US"). + # Corresponds to the JSON property `language` + # @return [String] + attr_accessor :language + + # The text in the given `language`. + # Corresponds to the JSON property `text` + # @return [String] + attr_accessor :text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @language = args[:language] if args.key?(:language) + @text = args[:text] if args.key?(:text) + end + end + + # + class MonthDay + include Google::Apis::Core::Hashable + + # Day of a month, value in [1, 31] range. Valid range depends on the specified + # month. + # Corresponds to the JSON property `day` + # @return [Fixnum] + attr_accessor :day + + # Month of a year. e.g. 1 = JAN, 2 = FEB etc. + # Corresponds to the JSON property `month` + # @return [Fixnum] + attr_accessor :month + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @day = args[:day] if args.key?(:day) + @month = args[:month] if args.key?(:month) + end + end + + # + class PageInfo + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `resultPerPage` + # @return [Fixnum] + attr_accessor :result_per_page + + # + # Corresponds to the JSON property `startIndex` + # @return [Fixnum] + attr_accessor :start_index + + # + # Corresponds to the JSON property `totalResults` + # @return [Fixnum] + attr_accessor :total_results + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @result_per_page = args[:result_per_page] if args.key?(:result_per_page) + @start_index = args[:start_index] if args.key?(:start_index) + @total_results = args[:total_results] if args.key?(:total_results) + end + end + + # + class Price + include Google::Apis::Core::Hashable + + # 3 letter Currency code, as defined by ISO 4217. + # Corresponds to the JSON property `currency` + # @return [String] + attr_accessor :currency + + # The price in millionths of the currency base unit represented as a string. + # Corresponds to the JSON property `priceMicros` + # @return [String] + attr_accessor :price_micros + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @currency = args[:currency] if args.key?(:currency) + @price_micros = args[:price_micros] if args.key?(:price_micros) + end + end + + # A ProductPurchase resource indicates the status of a user's inapp product + # purchase. + class ProductPurchase + include Google::Apis::Core::Hashable + + # The consumption state of the inapp product. Possible values are: + # - Yet to be consumed + # - Consumed + # Corresponds to the JSON property `consumptionState` + # @return [Fixnum] + attr_accessor :consumption_state + + # A developer-specified string that contains supplemental information about an + # order. + # Corresponds to the JSON property `developerPayload` + # @return [String] + attr_accessor :developer_payload + + # This kind represents an inappPurchase object in the androidpublisher service. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The order id associated with the purchase of the inapp product. + # Corresponds to the JSON property `orderId` + # @return [String] + attr_accessor :order_id + + # The purchase state of the order. Possible values are: + # - Purchased + # - Canceled + # Corresponds to the JSON property `purchaseState` + # @return [Fixnum] + attr_accessor :purchase_state + + # The time the product was purchased, in milliseconds since the epoch (Jan 1, + # 1970). + # Corresponds to the JSON property `purchaseTimeMillis` + # @return [Fixnum] + attr_accessor :purchase_time_millis + + # The type of purchase of the inapp product. This field is only set if this + # purchase was not made using the standard in-app billing flow. Possible values + # are: + # - Test (i.e. purchased from a license testing account) + # - Promo (i.e. purchased using a promo code) + # Corresponds to the JSON property `purchaseType` + # @return [Fixnum] + attr_accessor :purchase_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @consumption_state = args[:consumption_state] if args.key?(:consumption_state) + @developer_payload = args[:developer_payload] if args.key?(:developer_payload) + @kind = args[:kind] if args.key?(:kind) + @order_id = args[:order_id] if args.key?(:order_id) + @purchase_state = args[:purchase_state] if args.key?(:purchase_state) + @purchase_time_millis = args[:purchase_time_millis] if args.key?(:purchase_time_millis) + @purchase_type = args[:purchase_type] if args.key?(:purchase_type) + end + end + + # + class Prorate + include Google::Apis::Core::Hashable + + # Default price cannot be zero and must be less than the full subscription price. + # Default price is always in the developer's Checkout merchant currency. + # Targeted countries have their prices set automatically based on the + # default_price. + # Corresponds to the JSON property `defaultPrice` + # @return [Google::Apis::AndroidpublisherV3::Price] + attr_accessor :default_price + + # Defines the first day on which the price takes effect. + # Corresponds to the JSON property `start` + # @return [Google::Apis::AndroidpublisherV3::MonthDay] + attr_accessor :start + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @default_price = args[:default_price] if args.key?(:default_price) + @start = args[:start] if args.key?(:start) + end + end + + # + class Review + include Google::Apis::Core::Hashable + + # The name of the user who wrote the review. + # Corresponds to the JSON property `authorName` + # @return [String] + attr_accessor :author_name + + # A repeated field containing comments for the review. + # Corresponds to the JSON property `comments` + # @return [Array] + attr_accessor :comments + + # Unique identifier for this review. + # Corresponds to the JSON property `reviewId` + # @return [String] + attr_accessor :review_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @author_name = args[:author_name] if args.key?(:author_name) + @comments = args[:comments] if args.key?(:comments) + @review_id = args[:review_id] if args.key?(:review_id) + end + end + + # + class ReviewReplyResult + include Google::Apis::Core::Hashable + + # The time at which the reply took effect. + # Corresponds to the JSON property `lastEdited` + # @return [Google::Apis::AndroidpublisherV3::Timestamp] + attr_accessor :last_edited + + # The reply text that was applied. + # Corresponds to the JSON property `replyText` + # @return [String] + attr_accessor :reply_text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @last_edited = args[:last_edited] if args.key?(:last_edited) + @reply_text = args[:reply_text] if args.key?(:reply_text) + end + end + + # + class ReviewsListResponse + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `pageInfo` + # @return [Google::Apis::AndroidpublisherV3::PageInfo] + attr_accessor :page_info + + # + # Corresponds to the JSON property `reviews` + # @return [Array] + attr_accessor :reviews + + # + # Corresponds to the JSON property `tokenPagination` + # @return [Google::Apis::AndroidpublisherV3::TokenPagination] + attr_accessor :token_pagination + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @page_info = args[:page_info] if args.key?(:page_info) + @reviews = args[:reviews] if args.key?(:reviews) + @token_pagination = args[:token_pagination] if args.key?(:token_pagination) + end + end + + # + class ReviewsReplyRequest + include Google::Apis::Core::Hashable + + # The text to set as the reply. Replies of more than approximately 350 + # characters will be rejected. HTML tags will be stripped. + # Corresponds to the JSON property `replyText` + # @return [String] + attr_accessor :reply_text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @reply_text = args[:reply_text] if args.key?(:reply_text) + end + end + + # + class ReviewsReplyResponse + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `result` + # @return [Google::Apis::AndroidpublisherV3::ReviewReplyResult] + attr_accessor :result + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @result = args[:result] if args.key?(:result) + end + end + + # + class Season + include Google::Apis::Core::Hashable + + # Inclusive end date of the recurrence period. + # Corresponds to the JSON property `end` + # @return [Google::Apis::AndroidpublisherV3::MonthDay] + attr_accessor :end + + # Optionally present list of prorations for the season. Each proration is a one- + # off discounted entry into a subscription. Each proration contains the first + # date on which the discount is available and the new pricing information. + # Corresponds to the JSON property `prorations` + # @return [Array] + attr_accessor :prorations + + # Inclusive start date of the recurrence period. + # Corresponds to the JSON property `start` + # @return [Google::Apis::AndroidpublisherV3::MonthDay] + attr_accessor :start + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @end = args[:end] if args.key?(:end) + @prorations = args[:prorations] if args.key?(:prorations) + @start = args[:start] if args.key?(:start) + end + end + + # Information provided by the user when they complete the subscription + # cancellation flow (cancellation reason survey). + class SubscriptionCancelSurveyResult + include Google::Apis::Core::Hashable + + # The cancellation reason the user chose in the survey. Possible values are: + # - Other + # - I don't use this service enough + # - Technical issues + # - Cost-related reasons + # - I found a better app + # Corresponds to the JSON property `cancelSurveyReason` + # @return [Fixnum] + attr_accessor :cancel_survey_reason + + # The customized input cancel reason from the user. Only present when + # cancelReason is 0. + # Corresponds to the JSON property `userInputCancelReason` + # @return [String] + attr_accessor :user_input_cancel_reason + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cancel_survey_reason = args[:cancel_survey_reason] if args.key?(:cancel_survey_reason) + @user_input_cancel_reason = args[:user_input_cancel_reason] if args.key?(:user_input_cancel_reason) + end + end + + # A SubscriptionDeferralInfo contains the data needed to defer a subscription + # purchase to a future expiry time. + class SubscriptionDeferralInfo + include Google::Apis::Core::Hashable + + # The desired next expiry time to assign to the subscription, in milliseconds + # since the Epoch. The given time must be later/greater than the current expiry + # time for the subscription. + # Corresponds to the JSON property `desiredExpiryTimeMillis` + # @return [Fixnum] + attr_accessor :desired_expiry_time_millis + + # The expected expiry time for the subscription. If the current expiry time for + # the subscription is not the value specified here, the deferral will not occur. + # Corresponds to the JSON property `expectedExpiryTimeMillis` + # @return [Fixnum] + attr_accessor :expected_expiry_time_millis + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @desired_expiry_time_millis = args[:desired_expiry_time_millis] if args.key?(:desired_expiry_time_millis) + @expected_expiry_time_millis = args[:expected_expiry_time_millis] if args.key?(:expected_expiry_time_millis) + end + end + + # A SubscriptionPurchase resource indicates the status of a user's subscription + # purchase. + class SubscriptionPurchase + include Google::Apis::Core::Hashable + + # Whether the subscription will automatically be renewed when it reaches its + # current expiry time. + # Corresponds to the JSON property `autoRenewing` + # @return [Boolean] + attr_accessor :auto_renewing + alias_method :auto_renewing?, :auto_renewing + + # The reason why a subscription was canceled or is not auto-renewing. Possible + # values are: + # - User canceled the subscription + # - Subscription was canceled by the system, for example because of a billing + # problem + # - Subscription was replaced with a new subscription + # - Subscription was canceled by the developer + # Corresponds to the JSON property `cancelReason` + # @return [Fixnum] + attr_accessor :cancel_reason + + # Information provided by the user when they complete the subscription + # cancellation flow (cancellation reason survey). + # Corresponds to the JSON property `cancelSurveyResult` + # @return [Google::Apis::AndroidpublisherV3::SubscriptionCancelSurveyResult] + attr_accessor :cancel_survey_result + + # ISO 3166-1 alpha-2 billing country/region code of the user at the time the + # subscription was granted. + # Corresponds to the JSON property `countryCode` + # @return [String] + attr_accessor :country_code + + # A developer-specified string that contains supplemental information about an + # order. + # Corresponds to the JSON property `developerPayload` + # @return [String] + attr_accessor :developer_payload + + # The email address of the user when the subscription was purchased. Only + # present for purchases made with 'Subscribe with Google'. + # Corresponds to the JSON property `emailAddress` + # @return [String] + attr_accessor :email_address + + # Time at which the subscription will expire, in milliseconds since the Epoch. + # Corresponds to the JSON property `expiryTimeMillis` + # @return [Fixnum] + attr_accessor :expiry_time_millis + + # The family name of the user when the subscription was purchased. Only present + # for purchases made with 'Subscribe with Google'. + # Corresponds to the JSON property `familyName` + # @return [String] + attr_accessor :family_name + + # The given name of the user when the subscription was purchased. Only present + # for purchases made with 'Subscribe with Google'. + # Corresponds to the JSON property `givenName` + # @return [String] + attr_accessor :given_name + + # This kind represents a subscriptionPurchase object in the androidpublisher + # service. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The purchase token of the originating purchase if this subscription is one of + # the following: + # - Re-signup of a canceled but non-lapsed subscription + # - Upgrade/downgrade from a previous subscription For example, suppose a user + # originally signs up and you receive purchase token X, then the user cancels + # and goes through the resignup flow (before their subscription lapses) and you + # receive purchase token Y, and finally the user upgrades their subscription and + # you receive purchase token Z. If you call this API with purchase token Z, this + # field will be set to Y. If you call this API with purchase token Y, this field + # will be set to X. If you call this API with purchase token X, this field will + # not be set. + # Corresponds to the JSON property `linkedPurchaseToken` + # @return [String] + attr_accessor :linked_purchase_token + + # The order id of the latest recurring order associated with the purchase of the + # subscription. + # Corresponds to the JSON property `orderId` + # @return [String] + attr_accessor :order_id + + # The payment state of the subscription. Possible values are: + # - Payment pending + # - Payment received + # - Free trial + # Corresponds to the JSON property `paymentState` + # @return [Fixnum] + attr_accessor :payment_state + + # Price of the subscription, not including tax. Price is expressed in micro- + # units, where 1,000,000 micro-units represents one unit of the currency. For + # example, if the subscription price is €1.99, price_amount_micros is 1990000. + # Corresponds to the JSON property `priceAmountMicros` + # @return [Fixnum] + attr_accessor :price_amount_micros + + # ISO 4217 currency code for the subscription price. For example, if the price + # is specified in British pounds sterling, price_currency_code is "GBP". + # Corresponds to the JSON property `priceCurrencyCode` + # @return [String] + attr_accessor :price_currency_code + + # The profile id of the user when the subscription was purchased. Only present + # for purchases made with 'Subscribe with Google'. + # Corresponds to the JSON property `profileId` + # @return [String] + attr_accessor :profile_id + + # The profile name of the user when the subscription was purchased. Only present + # for purchases made with 'Subscribe with Google'. + # Corresponds to the JSON property `profileName` + # @return [String] + attr_accessor :profile_name + + # The type of purchase of the subscription. This field is only set if this + # purchase was not made using the standard in-app billing flow. Possible values + # are: + # - Test (i.e. purchased from a license testing account) + # Corresponds to the JSON property `purchaseType` + # @return [Fixnum] + attr_accessor :purchase_type + + # Time at which the subscription was granted, in milliseconds since the Epoch. + # Corresponds to the JSON property `startTimeMillis` + # @return [Fixnum] + attr_accessor :start_time_millis + + # The time at which the subscription was canceled by the user, in milliseconds + # since the epoch. Only present if cancelReason is 0. + # Corresponds to the JSON property `userCancellationTimeMillis` + # @return [Fixnum] + attr_accessor :user_cancellation_time_millis + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @auto_renewing = args[:auto_renewing] if args.key?(:auto_renewing) + @cancel_reason = args[:cancel_reason] if args.key?(:cancel_reason) + @cancel_survey_result = args[:cancel_survey_result] if args.key?(:cancel_survey_result) + @country_code = args[:country_code] if args.key?(:country_code) + @developer_payload = args[:developer_payload] if args.key?(:developer_payload) + @email_address = args[:email_address] if args.key?(:email_address) + @expiry_time_millis = args[:expiry_time_millis] if args.key?(:expiry_time_millis) + @family_name = args[:family_name] if args.key?(:family_name) + @given_name = args[:given_name] if args.key?(:given_name) + @kind = args[:kind] if args.key?(:kind) + @linked_purchase_token = args[:linked_purchase_token] if args.key?(:linked_purchase_token) + @order_id = args[:order_id] if args.key?(:order_id) + @payment_state = args[:payment_state] if args.key?(:payment_state) + @price_amount_micros = args[:price_amount_micros] if args.key?(:price_amount_micros) + @price_currency_code = args[:price_currency_code] if args.key?(:price_currency_code) + @profile_id = args[:profile_id] if args.key?(:profile_id) + @profile_name = args[:profile_name] if args.key?(:profile_name) + @purchase_type = args[:purchase_type] if args.key?(:purchase_type) + @start_time_millis = args[:start_time_millis] if args.key?(:start_time_millis) + @user_cancellation_time_millis = args[:user_cancellation_time_millis] if args.key?(:user_cancellation_time_millis) + end + end + + # + class SubscriptionPurchasesDeferRequest + include Google::Apis::Core::Hashable + + # A SubscriptionDeferralInfo contains the data needed to defer a subscription + # purchase to a future expiry time. + # Corresponds to the JSON property `deferralInfo` + # @return [Google::Apis::AndroidpublisherV3::SubscriptionDeferralInfo] + attr_accessor :deferral_info + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @deferral_info = args[:deferral_info] if args.key?(:deferral_info) + end + end + + # + class SubscriptionPurchasesDeferResponse + include Google::Apis::Core::Hashable + + # The new expiry time for the subscription in milliseconds since the Epoch. + # Corresponds to the JSON property `newExpiryTimeMillis` + # @return [Fixnum] + attr_accessor :new_expiry_time_millis + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @new_expiry_time_millis = args[:new_expiry_time_millis] if args.key?(:new_expiry_time_millis) + end + end + + # + class Testers + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `googleGroups` + # @return [Array] + attr_accessor :google_groups + + # + # Corresponds to the JSON property `googlePlusCommunities` + # @return [Array] + attr_accessor :google_plus_communities + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @google_groups = args[:google_groups] if args.key?(:google_groups) + @google_plus_communities = args[:google_plus_communities] if args.key?(:google_plus_communities) + end + end + + # + class Timestamp + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `nanos` + # @return [Fixnum] + attr_accessor :nanos + + # + # Corresponds to the JSON property `seconds` + # @return [Fixnum] + attr_accessor :seconds + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @nanos = args[:nanos] if args.key?(:nanos) + @seconds = args[:seconds] if args.key?(:seconds) + end + end + + # + class TokenPagination + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # + # Corresponds to the JSON property `previousPageToken` + # @return [String] + attr_accessor :previous_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @previous_page_token = args[:previous_page_token] if args.key?(:previous_page_token) + end + end + + # + class Track + include Google::Apis::Core::Hashable + + # A list of all active releases in this track during a read request. On an + # update request, it represents desired changes. + # Corresponds to the JSON property `releases` + # @return [Array] + attr_accessor :releases + + # Identifier for this track. One of "alpha", "beta", "production", "rollout" or " + # internal". + # Corresponds to the JSON property `track` + # @return [String] + attr_accessor :track + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @releases = args[:releases] if args.key?(:releases) + @track = args[:track] if args.key?(:track) + end + end + + # + class TrackRelease + include Google::Apis::Core::Hashable + + # The release name, used to identify this release in the Play Console UI. Not + # required to be unique. This is optional, if not set it will be generated from + # the version_name in the APKs. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The description of what is new in the app in this release. + # Corresponds to the JSON property `releaseNotes` + # @return [Array] + attr_accessor :release_notes + + # The desired status of this release. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + # Fraction of users who are eligible to receive the release. 0 <= fraction < 1. + # To be set, release status must be IN_PROGRESS or HALTED. + # Corresponds to the JSON property `userFraction` + # @return [Float] + attr_accessor :user_fraction + + # A list of version codes of APKs that will be exposed to the users of this + # track when this release is rolled out. + # Corresponds to the JSON property `versionCodes` + # @return [Array] + attr_accessor :version_codes + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @release_notes = args[:release_notes] if args.key?(:release_notes) + @status = args[:status] if args.key?(:status) + @user_fraction = args[:user_fraction] if args.key?(:user_fraction) + @version_codes = args[:version_codes] if args.key?(:version_codes) + end + end + + # + class TracksListResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string " + # androidpublisher#tracksListResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # + # Corresponds to the JSON property `tracks` + # @return [Array] + attr_accessor :tracks + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @tracks = args[:tracks] if args.key?(:tracks) + end + end + + # + class UserComment + include Google::Apis::Core::Hashable + + # Integer Android SDK version of the user's device at the time the review was + # written, e.g. 23 is Marshmallow. May be absent. + # Corresponds to the JSON property `androidOsVersion` + # @return [Fixnum] + attr_accessor :android_os_version + + # Integer version code of the app as installed at the time the review was + # written. May be absent. + # Corresponds to the JSON property `appVersionCode` + # @return [Fixnum] + attr_accessor :app_version_code + + # String version name of the app as installed at the time the review was written. + # May be absent. + # Corresponds to the JSON property `appVersionName` + # @return [String] + attr_accessor :app_version_name + + # Codename for the reviewer's device, e.g. klte, flounder. May be absent. + # Corresponds to the JSON property `device` + # @return [String] + attr_accessor :device + + # Some information about the characteristics of the user's device + # Corresponds to the JSON property `deviceMetadata` + # @return [Google::Apis::AndroidpublisherV3::DeviceMetadata] + attr_accessor :device_metadata + + # The last time at which this comment was updated. + # Corresponds to the JSON property `lastModified` + # @return [Google::Apis::AndroidpublisherV3::Timestamp] + attr_accessor :last_modified + + # Untranslated text of the review, in the case where the review has been + # translated. If the review has not been translated this is left blank. + # Corresponds to the JSON property `originalText` + # @return [String] + attr_accessor :original_text + + # Language code for the reviewer. This is taken from the device settings so is + # not guaranteed to match the language the review is written in. May be absent. + # Corresponds to the JSON property `reviewerLanguage` + # @return [String] + attr_accessor :reviewer_language + + # The star rating associated with the review, from 1 to 5. + # Corresponds to the JSON property `starRating` + # @return [Fixnum] + attr_accessor :star_rating + + # The content of the comment, i.e. review body. In some cases users have been + # able to write a review with separate title and body; in those cases the title + # and body are concatenated and separated by a tab character. + # Corresponds to the JSON property `text` + # @return [String] + attr_accessor :text + + # Number of users who have given this review a thumbs down + # Corresponds to the JSON property `thumbsDownCount` + # @return [Fixnum] + attr_accessor :thumbs_down_count + + # Number of users who have given this review a thumbs up + # Corresponds to the JSON property `thumbsUpCount` + # @return [Fixnum] + attr_accessor :thumbs_up_count + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @android_os_version = args[:android_os_version] if args.key?(:android_os_version) + @app_version_code = args[:app_version_code] if args.key?(:app_version_code) + @app_version_name = args[:app_version_name] if args.key?(:app_version_name) + @device = args[:device] if args.key?(:device) + @device_metadata = args[:device_metadata] if args.key?(:device_metadata) + @last_modified = args[:last_modified] if args.key?(:last_modified) + @original_text = args[:original_text] if args.key?(:original_text) + @reviewer_language = args[:reviewer_language] if args.key?(:reviewer_language) + @star_rating = args[:star_rating] if args.key?(:star_rating) + @text = args[:text] if args.key?(:text) + @thumbs_down_count = args[:thumbs_down_count] if args.key?(:thumbs_down_count) + @thumbs_up_count = args[:thumbs_up_count] if args.key?(:thumbs_up_count) + end + end + + # A VoidedPurchase resource indicates a purchase that was either canceled/ + # refunded/charged-back. + class VoidedPurchase + include Google::Apis::Core::Hashable + + # This kind represents a voided purchase object in the androidpublisher service. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The time at which the purchase was made, in milliseconds since the epoch (Jan + # 1, 1970). + # Corresponds to the JSON property `purchaseTimeMillis` + # @return [Fixnum] + attr_accessor :purchase_time_millis + + # The token that was generated when a purchase was made. This uniquely + # identifies a purchase. + # Corresponds to the JSON property `purchaseToken` + # @return [String] + attr_accessor :purchase_token + + # The time at which the purchase was canceled/refunded/charged-back, in + # milliseconds since the epoch (Jan 1, 1970). + # Corresponds to the JSON property `voidedTimeMillis` + # @return [Fixnum] + attr_accessor :voided_time_millis + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @purchase_time_millis = args[:purchase_time_millis] if args.key?(:purchase_time_millis) + @purchase_token = args[:purchase_token] if args.key?(:purchase_token) + @voided_time_millis = args[:voided_time_millis] if args.key?(:voided_time_millis) + end + end + + # + class VoidedPurchasesListResponse + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `pageInfo` + # @return [Google::Apis::AndroidpublisherV3::PageInfo] + attr_accessor :page_info + + # + # Corresponds to the JSON property `tokenPagination` + # @return [Google::Apis::AndroidpublisherV3::TokenPagination] + attr_accessor :token_pagination + + # + # Corresponds to the JSON property `voidedPurchases` + # @return [Array] + attr_accessor :voided_purchases + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @page_info = args[:page_info] if args.key?(:page_info) + @token_pagination = args[:token_pagination] if args.key?(:token_pagination) + @voided_purchases = args[:voided_purchases] if args.key?(:voided_purchases) + end + end + end + end +end diff --git a/generated/google/apis/androidpublisher_v3/representations.rb b/generated/google/apis/androidpublisher_v3/representations.rb new file mode 100644 index 000000000..ed80a3f63 --- /dev/null +++ b/generated/google/apis/androidpublisher_v3/representations.rb @@ -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 diff --git a/generated/google/apis/androidpublisher_v3/service.rb b/generated/google/apis/androidpublisher_v3/service.rb new file mode 100644 index 000000000..c99d1603f --- /dev/null +++ b/generated/google/apis/androidpublisher_v3/service.rb @@ -0,0 +1,2124 @@ +# 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 AndroidpublisherV3 + # Google Play Developer API + # + # Lets Android application developers access their Google Play accounts. + # + # @example + # require 'google/apis/androidpublisher_v3' + # + # Androidpublisher = Google::Apis::AndroidpublisherV3 # Alias the module + # service = Androidpublisher::AndroidPublisherService.new + # + # @see https://developers.google.com/android-publisher + class AndroidPublisherService < 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] + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + attr_accessor :quota_user + + # @return [String] + # Deprecated. Please use quotaUser instead. + attr_accessor :user_ip + + def initialize + super('https://www.googleapis.com/', 'androidpublisher/v3/applications/') + @batch_path = 'batch/androidpublisher/v3' + end + + # Commits/applies the changes made in this edit back to the app. + # @param [String] package_name + # Unique identifier for the Android app that is being updated; for example, "com. + # spiffygame". + # @param [String] edit_id + # Unique identifier for this edit. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AndroidpublisherV3::AppEdit] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AndroidpublisherV3::AppEdit] + # + # @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 commit_edit(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{packageName}/edits/{editId}:commit', options) + command.response_representation = Google::Apis::AndroidpublisherV3::AppEdit::Representation + command.response_class = Google::Apis::AndroidpublisherV3::AppEdit + command.params['packageName'] = package_name unless package_name.nil? + command.params['editId'] = edit_id unless edit_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 an edit for an app. Creating a new edit will automatically delete any + # of your previous edits so this method need only be called if you want to + # preemptively abandon an edit. + # @param [String] package_name + # Unique identifier for the Android app that is being updated; for example, "com. + # spiffygame". + # @param [String] edit_id + # Unique identifier for this edit. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [NilClass] No result returned for this method + # @yieldparam err [StandardError] error object if request failed + # + # @return [void] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_edit(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, '{packageName}/edits/{editId}', options) + command.params['packageName'] = package_name unless package_name.nil? + command.params['editId'] = edit_id unless edit_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Returns information about the edit specified. Calls will fail if the edit is + # no long active (e.g. has been deleted, superseded or expired). + # @param [String] package_name + # Unique identifier for the Android app that is being updated; for example, "com. + # spiffygame". + # @param [String] edit_id + # Unique identifier for this edit. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AndroidpublisherV3::AppEdit] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AndroidpublisherV3::AppEdit] + # + # @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_edit(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{packageName}/edits/{editId}', options) + command.response_representation = Google::Apis::AndroidpublisherV3::AppEdit::Representation + command.response_class = Google::Apis::AndroidpublisherV3::AppEdit + command.params['packageName'] = package_name unless package_name.nil? + command.params['editId'] = edit_id unless edit_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Creates a new edit for an app, populated with the app's current state. + # @param [String] package_name + # Unique identifier for the Android app that is being updated; for example, "com. + # spiffygame". + # @param [Google::Apis::AndroidpublisherV3::AppEdit] app_edit_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AndroidpublisherV3::AppEdit] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AndroidpublisherV3::AppEdit] + # + # @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_edit(package_name, app_edit_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{packageName}/edits', options) + command.request_representation = Google::Apis::AndroidpublisherV3::AppEdit::Representation + command.request_object = app_edit_object + command.response_representation = Google::Apis::AndroidpublisherV3::AppEdit::Representation + command.response_class = Google::Apis::AndroidpublisherV3::AppEdit + command.params['packageName'] = package_name unless package_name.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 + + # Checks that the edit can be successfully committed. The edit's changes are not + # applied to the live app. + # @param [String] package_name + # Unique identifier for the Android app that is being updated; for example, "com. + # spiffygame". + # @param [String] edit_id + # Unique identifier for this edit. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AndroidpublisherV3::AppEdit] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AndroidpublisherV3::AppEdit] + # + # @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 validate_edit(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{packageName}/edits/{editId}:validate', options) + command.response_representation = Google::Apis::AndroidpublisherV3::AppEdit::Representation + command.response_class = Google::Apis::AndroidpublisherV3::AppEdit + command.params['packageName'] = package_name unless package_name.nil? + command.params['editId'] = edit_id unless edit_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Creates a new APK without uploading the APK itself to Google Play, instead + # hosting the APK at a specified URL. This function is only available to + # enterprises using Google Play for Work whose application is configured to + # restrict distribution to the enterprise domain. + # @param [String] package_name + # Unique identifier for the Android app that is being updated; for example, "com. + # spiffygame". + # @param [String] edit_id + # Unique identifier for this edit. + # @param [Google::Apis::AndroidpublisherV3::ApksAddExternallyHostedRequest] apks_add_externally_hosted_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AndroidpublisherV3::ApksAddExternallyHostedResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AndroidpublisherV3::ApksAddExternallyHostedResponse] + # + # @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 addexternallyhosted_edit_apk(package_name, edit_id, apks_add_externally_hosted_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{packageName}/edits/{editId}/apks/externallyHosted', options) + command.request_representation = Google::Apis::AndroidpublisherV3::ApksAddExternallyHostedRequest::Representation + command.request_object = apks_add_externally_hosted_request_object + command.response_representation = Google::Apis::AndroidpublisherV3::ApksAddExternallyHostedResponse::Representation + command.response_class = Google::Apis::AndroidpublisherV3::ApksAddExternallyHostedResponse + command.params['packageName'] = package_name unless package_name.nil? + command.params['editId'] = edit_id unless edit_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 + + # + # @param [String] package_name + # Unique identifier for the Android app that is being updated; for example, "com. + # spiffygame". + # @param [String] edit_id + # Unique identifier for this edit. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AndroidpublisherV3::ApksListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AndroidpublisherV3::ApksListResponse] + # + # @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_edit_apks(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{packageName}/edits/{editId}/apks', options) + command.response_representation = Google::Apis::AndroidpublisherV3::ApksListResponse::Representation + command.response_class = Google::Apis::AndroidpublisherV3::ApksListResponse + command.params['packageName'] = package_name unless package_name.nil? + command.params['editId'] = edit_id unless edit_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 + + # + # @param [String] package_name + # Unique identifier for the Android app that is being updated; for example, "com. + # spiffygame". + # @param [String] edit_id + # Unique identifier for this edit. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [IO, String] upload_source + # IO stream or filename containing content to upload + # @param [String] content_type + # Content type of the uploaded content. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AndroidpublisherV3::Apk] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AndroidpublisherV3::Apk] + # + # @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 upload_edit_apk(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) + if upload_source.nil? + command = make_simple_command(:post, '{packageName}/edits/{editId}/apks', options) + else + command = make_upload_command(:post, '{packageName}/edits/{editId}/apks', options) + command.upload_source = upload_source + command.upload_content_type = content_type + end + command.response_representation = Google::Apis::AndroidpublisherV3::Apk::Representation + command.response_class = Google::Apis::AndroidpublisherV3::Apk + command.params['packageName'] = package_name unless package_name.nil? + command.params['editId'] = edit_id unless edit_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 + + # Uploads the deobfuscation file of the specified APK. If a deobfuscation file + # already exists, it will be replaced. + # @param [String] package_name + # Unique identifier of the Android app for which the deobfuscatiuon files are + # being uploaded; for example, "com.spiffygame". + # @param [String] edit_id + # Unique identifier for this edit. + # @param [Fixnum] apk_version_code + # The version code of the APK whose deobfuscation file is being uploaded. + # @param [String] deobfuscation_file_type + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [IO, String] upload_source + # IO stream or filename containing content to upload + # @param [String] content_type + # Content type of the uploaded content. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AndroidpublisherV3::DeobfuscationFilesUploadResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AndroidpublisherV3::DeobfuscationFilesUploadResponse] + # + # @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 upload_edit_deobfuscationfile(package_name, edit_id, apk_version_code, deobfuscation_file_type, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) + if upload_source.nil? + command = make_simple_command(:post, '{packageName}/edits/{editId}/apks/{apkVersionCode}/deobfuscationFiles/{deobfuscationFileType}', options) + else + command = make_upload_command(:post, '{packageName}/edits/{editId}/apks/{apkVersionCode}/deobfuscationFiles/{deobfuscationFileType}', options) + command.upload_source = upload_source + command.upload_content_type = content_type + end + command.response_representation = Google::Apis::AndroidpublisherV3::DeobfuscationFilesUploadResponse::Representation + command.response_class = Google::Apis::AndroidpublisherV3::DeobfuscationFilesUploadResponse + command.params['packageName'] = package_name unless package_name.nil? + command.params['editId'] = edit_id unless edit_id.nil? + command.params['apkVersionCode'] = apk_version_code unless apk_version_code.nil? + command.params['deobfuscationFileType'] = deobfuscation_file_type unless deobfuscation_file_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 + + # Fetches app details for this edit. This includes the default language and + # developer support contact information. + # @param [String] package_name + # Unique identifier for the Android app that is being updated; for example, "com. + # spiffygame". + # @param [String] edit_id + # Unique identifier for this edit. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AndroidpublisherV3::AppDetails] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AndroidpublisherV3::AppDetails] + # + # @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_edit_detail(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{packageName}/edits/{editId}/details', options) + command.response_representation = Google::Apis::AndroidpublisherV3::AppDetails::Representation + command.response_class = Google::Apis::AndroidpublisherV3::AppDetails + command.params['packageName'] = package_name unless package_name.nil? + command.params['editId'] = edit_id unless edit_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates app details for this edit. This method supports patch semantics. + # @param [String] package_name + # Unique identifier for the Android app that is being updated; for example, "com. + # spiffygame". + # @param [String] edit_id + # Unique identifier for this edit. + # @param [Google::Apis::AndroidpublisherV3::AppDetails] app_details_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AndroidpublisherV3::AppDetails] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AndroidpublisherV3::AppDetails] + # + # @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_edit_detail(package_name, edit_id, app_details_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, '{packageName}/edits/{editId}/details', options) + command.request_representation = Google::Apis::AndroidpublisherV3::AppDetails::Representation + command.request_object = app_details_object + command.response_representation = Google::Apis::AndroidpublisherV3::AppDetails::Representation + command.response_class = Google::Apis::AndroidpublisherV3::AppDetails + command.params['packageName'] = package_name unless package_name.nil? + command.params['editId'] = edit_id unless edit_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates app details for this edit. + # @param [String] package_name + # Unique identifier for the Android app that is being updated; for example, "com. + # spiffygame". + # @param [String] edit_id + # Unique identifier for this edit. + # @param [Google::Apis::AndroidpublisherV3::AppDetails] app_details_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AndroidpublisherV3::AppDetails] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AndroidpublisherV3::AppDetails] + # + # @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_edit_detail(package_name, edit_id, app_details_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:put, '{packageName}/edits/{editId}/details', options) + command.request_representation = Google::Apis::AndroidpublisherV3::AppDetails::Representation + command.request_object = app_details_object + command.response_representation = Google::Apis::AndroidpublisherV3::AppDetails::Representation + command.response_class = Google::Apis::AndroidpublisherV3::AppDetails + command.params['packageName'] = package_name unless package_name.nil? + command.params['editId'] = edit_id unless edit_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 + + # Fetches the Expansion File configuration for the APK specified. + # @param [String] package_name + # Unique identifier for the Android app that is being updated; for example, "com. + # spiffygame". + # @param [String] edit_id + # Unique identifier for this edit. + # @param [Fixnum] apk_version_code + # The version code of the APK whose Expansion File configuration is being read + # or modified. + # @param [String] expansion_file_type + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AndroidpublisherV3::ExpansionFile] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AndroidpublisherV3::ExpansionFile] + # + # @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_edit_expansionfile(package_name, edit_id, apk_version_code, expansion_file_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', options) + command.response_representation = Google::Apis::AndroidpublisherV3::ExpansionFile::Representation + command.response_class = Google::Apis::AndroidpublisherV3::ExpansionFile + command.params['packageName'] = package_name unless package_name.nil? + command.params['editId'] = edit_id unless edit_id.nil? + command.params['apkVersionCode'] = apk_version_code unless apk_version_code.nil? + command.params['expansionFileType'] = expansion_file_type unless expansion_file_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 + + # Updates the APK's Expansion File configuration to reference another APK's + # Expansion Files. To add a new Expansion File use the Upload method. This + # method supports patch semantics. + # @param [String] package_name + # Unique identifier for the Android app that is being updated; for example, "com. + # spiffygame". + # @param [String] edit_id + # Unique identifier for this edit. + # @param [Fixnum] apk_version_code + # The version code of the APK whose Expansion File configuration is being read + # or modified. + # @param [String] expansion_file_type + # @param [Google::Apis::AndroidpublisherV3::ExpansionFile] expansion_file_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AndroidpublisherV3::ExpansionFile] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AndroidpublisherV3::ExpansionFile] + # + # @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_edit_expansionfile(package_name, edit_id, apk_version_code, expansion_file_type, expansion_file_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', options) + command.request_representation = Google::Apis::AndroidpublisherV3::ExpansionFile::Representation + command.request_object = expansion_file_object + command.response_representation = Google::Apis::AndroidpublisherV3::ExpansionFile::Representation + command.response_class = Google::Apis::AndroidpublisherV3::ExpansionFile + command.params['packageName'] = package_name unless package_name.nil? + command.params['editId'] = edit_id unless edit_id.nil? + command.params['apkVersionCode'] = apk_version_code unless apk_version_code.nil? + command.params['expansionFileType'] = expansion_file_type unless expansion_file_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 + + # Updates the APK's Expansion File configuration to reference another APK's + # Expansion Files. To add a new Expansion File use the Upload method. + # @param [String] package_name + # Unique identifier for the Android app that is being updated; for example, "com. + # spiffygame". + # @param [String] edit_id + # Unique identifier for this edit. + # @param [Fixnum] apk_version_code + # The version code of the APK whose Expansion File configuration is being read + # or modified. + # @param [String] expansion_file_type + # @param [Google::Apis::AndroidpublisherV3::ExpansionFile] expansion_file_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AndroidpublisherV3::ExpansionFile] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AndroidpublisherV3::ExpansionFile] + # + # @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_edit_expansionfile(package_name, edit_id, apk_version_code, expansion_file_type, expansion_file_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:put, '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', options) + command.request_representation = Google::Apis::AndroidpublisherV3::ExpansionFile::Representation + command.request_object = expansion_file_object + command.response_representation = Google::Apis::AndroidpublisherV3::ExpansionFile::Representation + command.response_class = Google::Apis::AndroidpublisherV3::ExpansionFile + command.params['packageName'] = package_name unless package_name.nil? + command.params['editId'] = edit_id unless edit_id.nil? + command.params['apkVersionCode'] = apk_version_code unless apk_version_code.nil? + command.params['expansionFileType'] = expansion_file_type unless expansion_file_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 + + # Uploads and attaches a new Expansion File to the APK specified. + # @param [String] package_name + # Unique identifier for the Android app that is being updated; for example, "com. + # spiffygame". + # @param [String] edit_id + # Unique identifier for this edit. + # @param [Fixnum] apk_version_code + # The version code of the APK whose Expansion File configuration is being read + # or modified. + # @param [String] expansion_file_type + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [IO, String] upload_source + # IO stream or filename containing content to upload + # @param [String] content_type + # Content type of the uploaded content. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AndroidpublisherV3::ExpansionFilesUploadResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AndroidpublisherV3::ExpansionFilesUploadResponse] + # + # @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 upload_edit_expansionfile(package_name, edit_id, apk_version_code, expansion_file_type, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) + if upload_source.nil? + command = make_simple_command(:post, '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', options) + else + command = make_upload_command(:post, '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', options) + command.upload_source = upload_source + command.upload_content_type = content_type + end + command.response_representation = Google::Apis::AndroidpublisherV3::ExpansionFilesUploadResponse::Representation + command.response_class = Google::Apis::AndroidpublisherV3::ExpansionFilesUploadResponse + command.params['packageName'] = package_name unless package_name.nil? + command.params['editId'] = edit_id unless edit_id.nil? + command.params['apkVersionCode'] = apk_version_code unless apk_version_code.nil? + command.params['expansionFileType'] = expansion_file_type unless expansion_file_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 + + # Deletes the image (specified by id) from the edit. + # @param [String] package_name + # Unique identifier for the Android app that is being updated; for example, "com. + # spiffygame". + # @param [String] edit_id + # Unique identifier for this edit. + # @param [String] language + # The language code (a BCP-47 language tag) of the localized listing whose + # images are to read or modified. For example, to select Austrian German, pass " + # de-AT". + # @param [String] image_type + # @param [String] image_id + # Unique identifier an image within the set of images attached to this edit. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [NilClass] No result returned for this method + # @yieldparam err [StandardError] error object if request failed + # + # @return [void] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_edit_image(package_name, edit_id, language, image_type, image_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, '{packageName}/edits/{editId}/listings/{language}/{imageType}/{imageId}', options) + command.params['packageName'] = package_name unless package_name.nil? + command.params['editId'] = edit_id unless edit_id.nil? + command.params['language'] = language unless language.nil? + command.params['imageType'] = image_type unless image_type.nil? + command.params['imageId'] = image_id unless image_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 all images for the specified language and image type. + # @param [String] package_name + # Unique identifier for the Android app that is being updated; for example, "com. + # spiffygame". + # @param [String] edit_id + # Unique identifier for this edit. + # @param [String] language + # The language code (a BCP-47 language tag) of the localized listing whose + # images are to read or modified. For example, to select Austrian German, pass " + # de-AT". + # @param [String] image_type + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AndroidpublisherV3::ImagesDeleteAllResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AndroidpublisherV3::ImagesDeleteAllResponse] + # + # @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 deleteall_edit_image(package_name, edit_id, language, image_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, '{packageName}/edits/{editId}/listings/{language}/{imageType}', options) + command.response_representation = Google::Apis::AndroidpublisherV3::ImagesDeleteAllResponse::Representation + command.response_class = Google::Apis::AndroidpublisherV3::ImagesDeleteAllResponse + command.params['packageName'] = package_name unless package_name.nil? + command.params['editId'] = edit_id unless edit_id.nil? + command.params['language'] = language unless language.nil? + command.params['imageType'] = image_type unless image_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 + + # Lists all images for the specified language and image type. + # @param [String] package_name + # Unique identifier for the Android app that is being updated; for example, "com. + # spiffygame". + # @param [String] edit_id + # Unique identifier for this edit. + # @param [String] language + # The language code (a BCP-47 language tag) of the localized listing whose + # images are to read or modified. For example, to select Austrian German, pass " + # de-AT". + # @param [String] image_type + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AndroidpublisherV3::ImagesListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AndroidpublisherV3::ImagesListResponse] + # + # @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_edit_images(package_name, edit_id, language, image_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{packageName}/edits/{editId}/listings/{language}/{imageType}', options) + command.response_representation = Google::Apis::AndroidpublisherV3::ImagesListResponse::Representation + command.response_class = Google::Apis::AndroidpublisherV3::ImagesListResponse + command.params['packageName'] = package_name unless package_name.nil? + command.params['editId'] = edit_id unless edit_id.nil? + command.params['language'] = language unless language.nil? + command.params['imageType'] = image_type unless image_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 + + # Uploads a new image and adds it to the list of images for the specified + # language and image type. + # @param [String] package_name + # Unique identifier for the Android app that is being updated; for example, "com. + # spiffygame". + # @param [String] edit_id + # Unique identifier for this edit. + # @param [String] language + # The language code (a BCP-47 language tag) of the localized listing whose + # images are to read or modified. For example, to select Austrian German, pass " + # de-AT". + # @param [String] image_type + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [IO, String] upload_source + # IO stream or filename containing content to upload + # @param [String] content_type + # Content type of the uploaded content. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AndroidpublisherV3::ImagesUploadResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AndroidpublisherV3::ImagesUploadResponse] + # + # @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 upload_edit_image(package_name, edit_id, language, image_type, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) + if upload_source.nil? + command = make_simple_command(:post, '{packageName}/edits/{editId}/listings/{language}/{imageType}', options) + else + command = make_upload_command(:post, '{packageName}/edits/{editId}/listings/{language}/{imageType}', options) + command.upload_source = upload_source + command.upload_content_type = content_type + end + command.response_representation = Google::Apis::AndroidpublisherV3::ImagesUploadResponse::Representation + command.response_class = Google::Apis::AndroidpublisherV3::ImagesUploadResponse + command.params['packageName'] = package_name unless package_name.nil? + command.params['editId'] = edit_id unless edit_id.nil? + command.params['language'] = language unless language.nil? + command.params['imageType'] = image_type unless image_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 + + # Deletes the specified localized store listing from an edit. + # @param [String] package_name + # Unique identifier for the Android app that is being updated; for example, "com. + # spiffygame". + # @param [String] edit_id + # Unique identifier for this edit. + # @param [String] language + # The language code (a BCP-47 language tag) of the localized listing to read or + # modify. For example, to select Austrian German, pass "de-AT". + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [NilClass] No result returned for this method + # @yieldparam err [StandardError] error object if request failed + # + # @return [void] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_edit_listing(package_name, edit_id, language, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, '{packageName}/edits/{editId}/listings/{language}', options) + command.params['packageName'] = package_name unless package_name.nil? + command.params['editId'] = edit_id unless edit_id.nil? + command.params['language'] = language unless language.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Deletes all localized listings from an edit. + # @param [String] package_name + # Unique identifier for the Android app that is being updated; for example, "com. + # spiffygame". + # @param [String] edit_id + # Unique identifier for this edit. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [NilClass] No result returned for this method + # @yieldparam err [StandardError] error object if request failed + # + # @return [void] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def deleteall_edit_listing(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, '{packageName}/edits/{editId}/listings', options) + command.params['packageName'] = package_name unless package_name.nil? + command.params['editId'] = edit_id unless edit_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 + + # Fetches information about a localized store listing. + # @param [String] package_name + # Unique identifier for the Android app that is being updated; for example, "com. + # spiffygame". + # @param [String] edit_id + # Unique identifier for this edit. + # @param [String] language + # The language code (a BCP-47 language tag) of the localized listing to read or + # modify. For example, to select Austrian German, pass "de-AT". + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AndroidpublisherV3::Listing] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AndroidpublisherV3::Listing] + # + # @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_edit_listing(package_name, edit_id, language, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{packageName}/edits/{editId}/listings/{language}', options) + command.response_representation = Google::Apis::AndroidpublisherV3::Listing::Representation + command.response_class = Google::Apis::AndroidpublisherV3::Listing + command.params['packageName'] = package_name unless package_name.nil? + command.params['editId'] = edit_id unless edit_id.nil? + command.params['language'] = language unless language.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Returns all of the localized store listings attached to this edit. + # @param [String] package_name + # Unique identifier for the Android app that is being updated; for example, "com. + # spiffygame". + # @param [String] edit_id + # Unique identifier for this edit. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AndroidpublisherV3::ListingsListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AndroidpublisherV3::ListingsListResponse] + # + # @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_edit_listings(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{packageName}/edits/{editId}/listings', options) + command.response_representation = Google::Apis::AndroidpublisherV3::ListingsListResponse::Representation + command.response_class = Google::Apis::AndroidpublisherV3::ListingsListResponse + command.params['packageName'] = package_name unless package_name.nil? + command.params['editId'] = edit_id unless edit_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Creates or updates a localized store listing. This method supports patch + # semantics. + # @param [String] package_name + # Unique identifier for the Android app that is being updated; for example, "com. + # spiffygame". + # @param [String] edit_id + # Unique identifier for this edit. + # @param [String] language + # The language code (a BCP-47 language tag) of the localized listing to read or + # modify. For example, to select Austrian German, pass "de-AT". + # @param [Google::Apis::AndroidpublisherV3::Listing] listing_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AndroidpublisherV3::Listing] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AndroidpublisherV3::Listing] + # + # @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_edit_listing(package_name, edit_id, language, listing_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, '{packageName}/edits/{editId}/listings/{language}', options) + command.request_representation = Google::Apis::AndroidpublisherV3::Listing::Representation + command.request_object = listing_object + command.response_representation = Google::Apis::AndroidpublisherV3::Listing::Representation + command.response_class = Google::Apis::AndroidpublisherV3::Listing + command.params['packageName'] = package_name unless package_name.nil? + command.params['editId'] = edit_id unless edit_id.nil? + command.params['language'] = language unless language.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Creates or updates a localized store listing. + # @param [String] package_name + # Unique identifier for the Android app that is being updated; for example, "com. + # spiffygame". + # @param [String] edit_id + # Unique identifier for this edit. + # @param [String] language + # The language code (a BCP-47 language tag) of the localized listing to read or + # modify. For example, to select Austrian German, pass "de-AT". + # @param [Google::Apis::AndroidpublisherV3::Listing] listing_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AndroidpublisherV3::Listing] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AndroidpublisherV3::Listing] + # + # @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_edit_listing(package_name, edit_id, language, listing_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:put, '{packageName}/edits/{editId}/listings/{language}', options) + command.request_representation = Google::Apis::AndroidpublisherV3::Listing::Representation + command.request_object = listing_object + command.response_representation = Google::Apis::AndroidpublisherV3::Listing::Representation + command.response_class = Google::Apis::AndroidpublisherV3::Listing + command.params['packageName'] = package_name unless package_name.nil? + command.params['editId'] = edit_id unless edit_id.nil? + command.params['language'] = language unless language.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # + # @param [String] package_name + # Unique identifier for the Android app that is being updated; for example, "com. + # spiffygame". + # @param [String] edit_id + # Unique identifier for this edit. + # @param [String] track + # The track to read or modify. Acceptable values are: "alpha", "beta", " + # production", "rollout" or "internal". + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AndroidpublisherV3::Testers] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AndroidpublisherV3::Testers] + # + # @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_edit_tester(package_name, edit_id, track, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{packageName}/edits/{editId}/testers/{track}', options) + command.response_representation = Google::Apis::AndroidpublisherV3::Testers::Representation + command.response_class = Google::Apis::AndroidpublisherV3::Testers + command.params['packageName'] = package_name unless package_name.nil? + command.params['editId'] = edit_id unless edit_id.nil? + command.params['track'] = track unless track.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 + + # + # @param [String] package_name + # Unique identifier for the Android app that is being updated; for example, "com. + # spiffygame". + # @param [String] edit_id + # Unique identifier for this edit. + # @param [String] track + # The track to read or modify. Acceptable values are: "alpha", "beta", " + # production", "rollout" or "internal". + # @param [Google::Apis::AndroidpublisherV3::Testers] testers_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AndroidpublisherV3::Testers] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AndroidpublisherV3::Testers] + # + # @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_edit_tester(package_name, edit_id, track, testers_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, '{packageName}/edits/{editId}/testers/{track}', options) + command.request_representation = Google::Apis::AndroidpublisherV3::Testers::Representation + command.request_object = testers_object + command.response_representation = Google::Apis::AndroidpublisherV3::Testers::Representation + command.response_class = Google::Apis::AndroidpublisherV3::Testers + command.params['packageName'] = package_name unless package_name.nil? + command.params['editId'] = edit_id unless edit_id.nil? + command.params['track'] = track unless track.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 + + # + # @param [String] package_name + # Unique identifier for the Android app that is being updated; for example, "com. + # spiffygame". + # @param [String] edit_id + # Unique identifier for this edit. + # @param [String] track + # The track to read or modify. Acceptable values are: "alpha", "beta", " + # production", "rollout" or "internal". + # @param [Google::Apis::AndroidpublisherV3::Testers] testers_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AndroidpublisherV3::Testers] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AndroidpublisherV3::Testers] + # + # @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_edit_tester(package_name, edit_id, track, testers_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:put, '{packageName}/edits/{editId}/testers/{track}', options) + command.request_representation = Google::Apis::AndroidpublisherV3::Testers::Representation + command.request_object = testers_object + command.response_representation = Google::Apis::AndroidpublisherV3::Testers::Representation + command.response_class = Google::Apis::AndroidpublisherV3::Testers + command.params['packageName'] = package_name unless package_name.nil? + command.params['editId'] = edit_id unless edit_id.nil? + command.params['track'] = track unless track.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 + + # Fetches the track configuration for the specified track type. Includes the APK + # version codes that are in this track. + # @param [String] package_name + # Unique identifier for the Android app that is being updated; for example, "com. + # spiffygame". + # @param [String] edit_id + # Unique identifier for this edit. + # @param [String] track + # The track to read or modify. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AndroidpublisherV3::Track] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AndroidpublisherV3::Track] + # + # @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_edit_track(package_name, edit_id, track, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{packageName}/edits/{editId}/tracks/{track}', options) + command.response_representation = Google::Apis::AndroidpublisherV3::Track::Representation + command.response_class = Google::Apis::AndroidpublisherV3::Track + command.params['packageName'] = package_name unless package_name.nil? + command.params['editId'] = edit_id unless edit_id.nil? + command.params['track'] = track unless track.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 the track configurations for this edit. + # @param [String] package_name + # Unique identifier for the Android app that is being updated; for example, "com. + # spiffygame". + # @param [String] edit_id + # Unique identifier for this edit. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AndroidpublisherV3::TracksListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AndroidpublisherV3::TracksListResponse] + # + # @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_edit_tracks(package_name, edit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{packageName}/edits/{editId}/tracks', options) + command.response_representation = Google::Apis::AndroidpublisherV3::TracksListResponse::Representation + command.response_class = Google::Apis::AndroidpublisherV3::TracksListResponse + command.params['packageName'] = package_name unless package_name.nil? + command.params['editId'] = edit_id unless edit_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates the track configuration for the specified track type. When halted, the + # rollout track cannot be updated without adding new APKs, and adding new APKs + # will cause it to resume. This method supports patch semantics. + # @param [String] package_name + # Unique identifier for the Android app that is being updated; for example, "com. + # spiffygame". + # @param [String] edit_id + # Unique identifier for this edit. + # @param [String] track + # The track to read or modify. + # @param [Google::Apis::AndroidpublisherV3::Track] track_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AndroidpublisherV3::Track] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AndroidpublisherV3::Track] + # + # @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_edit_track(package_name, edit_id, track, track_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, '{packageName}/edits/{editId}/tracks/{track}', options) + command.request_representation = Google::Apis::AndroidpublisherV3::Track::Representation + command.request_object = track_object + command.response_representation = Google::Apis::AndroidpublisherV3::Track::Representation + command.response_class = Google::Apis::AndroidpublisherV3::Track + command.params['packageName'] = package_name unless package_name.nil? + command.params['editId'] = edit_id unless edit_id.nil? + command.params['track'] = track unless track.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates the track configuration for the specified track type. When halted, the + # rollout track cannot be updated without adding new APKs, and adding new APKs + # will cause it to resume. + # @param [String] package_name + # Unique identifier for the Android app that is being updated; for example, "com. + # spiffygame". + # @param [String] edit_id + # Unique identifier for this edit. + # @param [String] track + # The track to read or modify. + # @param [Google::Apis::AndroidpublisherV3::Track] track_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AndroidpublisherV3::Track] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AndroidpublisherV3::Track] + # + # @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_edit_track(package_name, edit_id, track, track_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:put, '{packageName}/edits/{editId}/tracks/{track}', options) + command.request_representation = Google::Apis::AndroidpublisherV3::Track::Representation + command.request_object = track_object + command.response_representation = Google::Apis::AndroidpublisherV3::Track::Representation + command.response_class = Google::Apis::AndroidpublisherV3::Track + command.params['packageName'] = package_name unless package_name.nil? + command.params['editId'] = edit_id unless edit_id.nil? + command.params['track'] = track unless track.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Delete an in-app product for an app. + # @param [String] package_name + # Unique identifier for the Android app with the in-app product; for example, " + # com.spiffygame". + # @param [String] sku + # Unique identifier for the in-app product. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [NilClass] No result returned for this method + # @yieldparam err [StandardError] error object if request failed + # + # @return [void] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_inappproduct(package_name, sku, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, '{packageName}/inappproducts/{sku}', options) + command.params['packageName'] = package_name unless package_name.nil? + command.params['sku'] = sku unless sku.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 information about the in-app product specified. + # @param [String] package_name + # @param [String] sku + # Unique identifier for the in-app product. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AndroidpublisherV3::InAppProduct] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AndroidpublisherV3::InAppProduct] + # + # @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_inappproduct(package_name, sku, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{packageName}/inappproducts/{sku}', options) + command.response_representation = Google::Apis::AndroidpublisherV3::InAppProduct::Representation + command.response_class = Google::Apis::AndroidpublisherV3::InAppProduct + command.params['packageName'] = package_name unless package_name.nil? + command.params['sku'] = sku unless sku.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Creates a new in-app product for an app. + # @param [String] package_name + # Unique identifier for the Android app; for example, "com.spiffygame". + # @param [Google::Apis::AndroidpublisherV3::InAppProduct] in_app_product_object + # @param [Boolean] auto_convert_missing_prices + # If true the prices for all regions targeted by the parent app that don't have + # a price specified for this in-app product will be auto converted to the target + # currency based on the default price. Defaults to false. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AndroidpublisherV3::InAppProduct] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AndroidpublisherV3::InAppProduct] + # + # @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_inappproduct(package_name, in_app_product_object = nil, auto_convert_missing_prices: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{packageName}/inappproducts', options) + command.request_representation = Google::Apis::AndroidpublisherV3::InAppProduct::Representation + command.request_object = in_app_product_object + command.response_representation = Google::Apis::AndroidpublisherV3::InAppProduct::Representation + command.response_class = Google::Apis::AndroidpublisherV3::InAppProduct + command.params['packageName'] = package_name unless package_name.nil? + command.query['autoConvertMissingPrices'] = auto_convert_missing_prices unless auto_convert_missing_prices.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # List all the in-app products for an Android app, both subscriptions and + # managed in-app products.. + # @param [String] package_name + # Unique identifier for the Android app with in-app products; for example, "com. + # spiffygame". + # @param [Fixnum] max_results + # @param [Fixnum] start_index + # @param [String] token + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AndroidpublisherV3::InappproductsListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AndroidpublisherV3::InappproductsListResponse] + # + # @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_inappproducts(package_name, max_results: nil, start_index: nil, token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{packageName}/inappproducts', options) + command.response_representation = Google::Apis::AndroidpublisherV3::InappproductsListResponse::Representation + command.response_class = Google::Apis::AndroidpublisherV3::InappproductsListResponse + command.params['packageName'] = package_name unless package_name.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['startIndex'] = start_index unless start_index.nil? + command.query['token'] = token unless token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates the details of an in-app product. This method supports patch semantics. + # @param [String] package_name + # Unique identifier for the Android app with the in-app product; for example, " + # com.spiffygame". + # @param [String] sku + # Unique identifier for the in-app product. + # @param [Google::Apis::AndroidpublisherV3::InAppProduct] in_app_product_object + # @param [Boolean] auto_convert_missing_prices + # If true the prices for all regions targeted by the parent app that don't have + # a price specified for this in-app product will be auto converted to the target + # currency based on the default price. Defaults to false. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AndroidpublisherV3::InAppProduct] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AndroidpublisherV3::InAppProduct] + # + # @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_inappproduct(package_name, sku, in_app_product_object = nil, auto_convert_missing_prices: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, '{packageName}/inappproducts/{sku}', options) + command.request_representation = Google::Apis::AndroidpublisherV3::InAppProduct::Representation + command.request_object = in_app_product_object + command.response_representation = Google::Apis::AndroidpublisherV3::InAppProduct::Representation + command.response_class = Google::Apis::AndroidpublisherV3::InAppProduct + command.params['packageName'] = package_name unless package_name.nil? + command.params['sku'] = sku unless sku.nil? + command.query['autoConvertMissingPrices'] = auto_convert_missing_prices unless auto_convert_missing_prices.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Updates the details of an in-app product. + # @param [String] package_name + # Unique identifier for the Android app with the in-app product; for example, " + # com.spiffygame". + # @param [String] sku + # Unique identifier for the in-app product. + # @param [Google::Apis::AndroidpublisherV3::InAppProduct] in_app_product_object + # @param [Boolean] auto_convert_missing_prices + # If true the prices for all regions targeted by the parent app that don't have + # a price specified for this in-app product will be auto converted to the target + # currency based on the default price. Defaults to false. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AndroidpublisherV3::InAppProduct] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AndroidpublisherV3::InAppProduct] + # + # @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_inappproduct(package_name, sku, in_app_product_object = nil, auto_convert_missing_prices: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:put, '{packageName}/inappproducts/{sku}', options) + command.request_representation = Google::Apis::AndroidpublisherV3::InAppProduct::Representation + command.request_object = in_app_product_object + command.response_representation = Google::Apis::AndroidpublisherV3::InAppProduct::Representation + command.response_class = Google::Apis::AndroidpublisherV3::InAppProduct + command.params['packageName'] = package_name unless package_name.nil? + command.params['sku'] = sku unless sku.nil? + command.query['autoConvertMissingPrices'] = auto_convert_missing_prices unless auto_convert_missing_prices.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 + + # Checks the purchase and consumption status of an inapp item. + # @param [String] package_name + # The package name of the application the inapp product was sold in (for example, + # 'com.some.thing'). + # @param [String] product_id + # The inapp product SKU (for example, 'com.some.thing.inapp1'). + # @param [String] token + # The token provided to the user's device when the inapp product was purchased. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AndroidpublisherV3::ProductPurchase] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AndroidpublisherV3::ProductPurchase] + # + # @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_purchase_product(package_name, product_id, token, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{packageName}/purchases/products/{productId}/tokens/{token}', options) + command.response_representation = Google::Apis::AndroidpublisherV3::ProductPurchase::Representation + command.response_class = Google::Apis::AndroidpublisherV3::ProductPurchase + command.params['packageName'] = package_name unless package_name.nil? + command.params['productId'] = product_id unless product_id.nil? + command.params['token'] = token unless token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Cancels a user's subscription purchase. The subscription remains valid until + # its expiration time. + # @param [String] package_name + # The package name of the application for which this subscription was purchased ( + # for example, 'com.some.thing'). + # @param [String] subscription_id + # The purchased subscription ID (for example, 'monthly001'). + # @param [String] token + # The token provided to the user's device when the subscription was purchased. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [NilClass] No result returned for this method + # @yieldparam err [StandardError] error object if request failed + # + # @return [void] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def cancel_purchase_subscription(package_name, subscription_id, token, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:cancel', options) + command.params['packageName'] = package_name unless package_name.nil? + command.params['subscriptionId'] = subscription_id unless subscription_id.nil? + command.params['token'] = token unless token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Defers a user's subscription purchase until a specified future expiration time. + # @param [String] package_name + # The package name of the application for which this subscription was purchased ( + # for example, 'com.some.thing'). + # @param [String] subscription_id + # The purchased subscription ID (for example, 'monthly001'). + # @param [String] token + # The token provided to the user's device when the subscription was purchased. + # @param [Google::Apis::AndroidpublisherV3::SubscriptionPurchasesDeferRequest] subscription_purchases_defer_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AndroidpublisherV3::SubscriptionPurchasesDeferResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AndroidpublisherV3::SubscriptionPurchasesDeferResponse] + # + # @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 defer_purchase_subscription(package_name, subscription_id, token, subscription_purchases_defer_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:defer', options) + command.request_representation = Google::Apis::AndroidpublisherV3::SubscriptionPurchasesDeferRequest::Representation + command.request_object = subscription_purchases_defer_request_object + command.response_representation = Google::Apis::AndroidpublisherV3::SubscriptionPurchasesDeferResponse::Representation + command.response_class = Google::Apis::AndroidpublisherV3::SubscriptionPurchasesDeferResponse + command.params['packageName'] = package_name unless package_name.nil? + command.params['subscriptionId'] = subscription_id unless subscription_id.nil? + command.params['token'] = token unless token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Checks whether a user's subscription purchase is valid and returns its expiry + # time. + # @param [String] package_name + # The package name of the application for which this subscription was purchased ( + # for example, 'com.some.thing'). + # @param [String] subscription_id + # The purchased subscription ID (for example, 'monthly001'). + # @param [String] token + # The token provided to the user's device when the subscription was purchased. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AndroidpublisherV3::SubscriptionPurchase] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AndroidpublisherV3::SubscriptionPurchase] + # + # @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_purchase_subscription(package_name, subscription_id, token, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}', options) + command.response_representation = Google::Apis::AndroidpublisherV3::SubscriptionPurchase::Representation + command.response_class = Google::Apis::AndroidpublisherV3::SubscriptionPurchase + command.params['packageName'] = package_name unless package_name.nil? + command.params['subscriptionId'] = subscription_id unless subscription_id.nil? + command.params['token'] = token unless token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Refunds a user's subscription purchase, but the subscription remains valid + # until its expiration time and it will continue to recur. + # @param [String] package_name + # The package name of the application for which this subscription was purchased ( + # for example, 'com.some.thing'). + # @param [String] subscription_id + # The purchased subscription ID (for example, 'monthly001'). + # @param [String] token + # The token provided to the user's device when the subscription was purchased. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [NilClass] No result returned for this method + # @yieldparam err [StandardError] error object if request failed + # + # @return [void] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def refund_purchase_subscription(package_name, subscription_id, token, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:refund', options) + command.params['packageName'] = package_name unless package_name.nil? + command.params['subscriptionId'] = subscription_id unless subscription_id.nil? + command.params['token'] = token unless token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Refunds and immediately revokes a user's subscription purchase. Access to the + # subscription will be terminated immediately and it will stop recurring. + # @param [String] package_name + # The package name of the application for which this subscription was purchased ( + # for example, 'com.some.thing'). + # @param [String] subscription_id + # The purchased subscription ID (for example, 'monthly001'). + # @param [String] token + # The token provided to the user's device when the subscription was purchased. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [NilClass] No result returned for this method + # @yieldparam err [StandardError] error object if request failed + # + # @return [void] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def revoke_purchase_subscription(package_name, subscription_id, token, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:revoke', options) + command.params['packageName'] = package_name unless package_name.nil? + command.params['subscriptionId'] = subscription_id unless subscription_id.nil? + command.params['token'] = token unless token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Lists the purchases that were canceled, refunded or charged-back. + # @param [String] package_name + # The package name of the application for which voided purchases need to be + # returned (for example, 'com.some.thing'). + # @param [Fixnum] end_time + # The time, in milliseconds since the Epoch, of the newest voided in-app product + # purchase that you want to see in the response. The value of this parameter + # cannot be greater than the current time and is ignored if a pagination token + # is set. Default value is current time. Note: This filter is applied on the + # time at which the record is seen as voided by our systems and not the actual + # voided time returned in the response. + # @param [Fixnum] max_results + # @param [Fixnum] start_index + # @param [Fixnum] start_time + # The time, in milliseconds since the Epoch, of the oldest voided in-app product + # purchase that you want to see in the response. The value of this parameter + # cannot be older than 30 days and is ignored if a pagination token is set. + # Default value is current time minus 30 days. Note: This filter is applied on + # the time at which the record is seen as voided by our systems and not the + # actual voided time returned in the response. + # @param [String] token + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AndroidpublisherV3::VoidedPurchasesListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AndroidpublisherV3::VoidedPurchasesListResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_purchase_voidedpurchases(package_name, end_time: nil, max_results: nil, start_index: nil, start_time: nil, token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{packageName}/purchases/voidedpurchases', options) + command.response_representation = Google::Apis::AndroidpublisherV3::VoidedPurchasesListResponse::Representation + command.response_class = Google::Apis::AndroidpublisherV3::VoidedPurchasesListResponse + command.params['packageName'] = package_name unless package_name.nil? + command.query['endTime'] = end_time unless end_time.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['startIndex'] = start_index unless start_index.nil? + command.query['startTime'] = start_time unless start_time.nil? + command.query['token'] = token unless token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Returns a single review. + # @param [String] package_name + # Unique identifier for the Android app for which we want reviews; for example, " + # com.spiffygame". + # @param [String] review_id + # @param [String] translation_language + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AndroidpublisherV3::Review] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AndroidpublisherV3::Review] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_review(package_name, review_id, translation_language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{packageName}/reviews/{reviewId}', options) + command.response_representation = Google::Apis::AndroidpublisherV3::Review::Representation + command.response_class = Google::Apis::AndroidpublisherV3::Review + command.params['packageName'] = package_name unless package_name.nil? + command.params['reviewId'] = review_id unless review_id.nil? + command.query['translationLanguage'] = translation_language unless translation_language.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Returns a list of reviews. Only reviews from last week will be returned. + # @param [String] package_name + # Unique identifier for the Android app for which we want reviews; for example, " + # com.spiffygame". + # @param [Fixnum] max_results + # @param [Fixnum] start_index + # @param [String] token + # @param [String] translation_language + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AndroidpublisherV3::ReviewsListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AndroidpublisherV3::ReviewsListResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_reviews(package_name, max_results: nil, start_index: nil, token: nil, translation_language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{packageName}/reviews', options) + command.response_representation = Google::Apis::AndroidpublisherV3::ReviewsListResponse::Representation + command.response_class = Google::Apis::AndroidpublisherV3::ReviewsListResponse + command.params['packageName'] = package_name unless package_name.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['startIndex'] = start_index unless start_index.nil? + command.query['token'] = token unless token.nil? + command.query['translationLanguage'] = translation_language unless translation_language.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Reply to a single review, or update an existing reply. + # @param [String] package_name + # Unique identifier for the Android app for which we want reviews; for example, " + # com.spiffygame". + # @param [String] review_id + # @param [Google::Apis::AndroidpublisherV3::ReviewsReplyRequest] reviews_reply_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AndroidpublisherV3::ReviewsReplyResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AndroidpublisherV3::ReviewsReplyResponse] + # + # @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 reply_review(package_name, review_id, reviews_reply_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{packageName}/reviews/{reviewId}:reply', options) + command.request_representation = Google::Apis::AndroidpublisherV3::ReviewsReplyRequest::Representation + command.request_object = reviews_reply_request_object + command.response_representation = Google::Apis::AndroidpublisherV3::ReviewsReplyResponse::Representation + command.response_class = Google::Apis::AndroidpublisherV3::ReviewsReplyResponse + command.params['packageName'] = package_name unless package_name.nil? + command.params['reviewId'] = review_id unless review_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 + + def apply_command_defaults(command) + command.query['key'] = key unless key.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + end + end + end + end +end diff --git a/generated/google/apis/cloudiot_v1.rb b/generated/google/apis/cloudiot_v1.rb index 74f058067..f5cafe476 100644 --- a/generated/google/apis/cloudiot_v1.rb +++ b/generated/google/apis/cloudiot_v1.rb @@ -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' diff --git a/generated/google/apis/cloudiot_v1/service.rb b/generated/google/apis/cloudiot_v1/service.rb index 9075692e0..0d471f910 100644 --- a/generated/google/apis/cloudiot_v1/service.rb +++ b/generated/google/apis/cloudiot_v1/service.rb @@ -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? diff --git a/generated/google/apis/content_v2.rb b/generated/google/apis/content_v2.rb index 51e1481ee..f8e5810ce 100644 --- a/generated/google/apis/content_v2.rb +++ b/generated/google/apis/content_v2.rb @@ -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' diff --git a/generated/google/apis/content_v2/classes.rb b/generated/google/apis/content_v2/classes.rb index 1759c36d3..09c627117 100644 --- a/generated/google/apis/content_v2/classes.rb +++ b/generated/google/apis/content_v2/classes.rb @@ -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] + 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] + 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 diff --git a/generated/google/apis/content_v2/representations.rb b/generated/google/apis/content_v2/representations.rb index b8055855a..5d87fcad1 100644 --- a/generated/google/apis/content_v2/representations.rb +++ b/generated/google/apis/content_v2/representations.rb @@ -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 diff --git a/generated/google/apis/photoslibrary_v1.rb b/generated/google/apis/photoslibrary_v1.rb new file mode 100644 index 000000000..b170e4550 --- /dev/null +++ b/generated/google/apis/photoslibrary_v1.rb @@ -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 diff --git a/generated/google/apis/photoslibrary_v1/classes.rb b/generated/google/apis/photoslibrary_v1/classes.rb new file mode 100644 index 000000000..484078444 --- /dev/null +++ b/generated/google/apis/photoslibrary_v1/classes.rb @@ -0,0 +1,1330 @@ +# 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 + + # Request to add an enrichment to a specific album at a specific position. + class AddEnrichmentToAlbumRequest + include Google::Apis::Core::Hashable + + # Specifies a position in an album. + # Corresponds to the JSON property `albumPosition` + # @return [Google::Apis::PhotoslibraryV1::AlbumPosition] + attr_accessor :album_position + + # A new enrichment item to be added to an album, used by the + # AddEnrichmentToAlbum call. + # Corresponds to the JSON property `newEnrichmentItem` + # @return [Google::Apis::PhotoslibraryV1::NewEnrichmentItem] + attr_accessor :new_enrichment_item + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @album_position = args[:album_position] if args.key?(:album_position) + @new_enrichment_item = args[:new_enrichment_item] if args.key?(:new_enrichment_item) + end + end + + # + class AddEnrichmentToAlbumResponse + include Google::Apis::Core::Hashable + + # An enrichment item. + # Corresponds to the JSON property `enrichmentItem` + # @return [Google::Apis::PhotoslibraryV1::EnrichmentItem] + attr_accessor :enrichment_item + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @enrichment_item = args[:enrichment_item] if args.key?(:enrichment_item) + end + end + + # Representation of an album in Google Photos. + # Albums are a container for media items. They contain an additional + # shareInfo property if they have been shared by the application. + class Album + include Google::Apis::Core::Hashable + + # [Output only] A URL to the cover photo's bytes. This should not be used as + # is. Parameters should be appended to this URL before use. For example, + # '=w2048-h1024' will set the dimensions of the cover photo to have a width + # of 2048 px and height of 1024 px. + # Corresponds to the JSON property `coverPhotoBaseUrl` + # @return [String] + attr_accessor :cover_photo_base_url + + # [Ouput only] Identifier for the album. This is a persistent identifier that + # can be used between sessions to identify this album. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # [Output only] True if media items can be created in the album. + # This field is based on the scopes granted and permissions of the album. If + # the scopes are changed or permissions of the album are changed, this field + # will be updated. + # Corresponds to the JSON property `isWriteable` + # @return [Boolean] + attr_accessor :is_writeable + alias_method :is_writeable?, :is_writeable + + # [Output only] Google Photos URL for the album. The user needs to be signed + # in to their Google Photos account to access this link. + # Corresponds to the JSON property `productUrl` + # @return [String] + attr_accessor :product_url + + # Information about albums that are shared. Note that this + # information is only included if the album was created by you and you have the + # sharing scope. + # Corresponds to the JSON property `shareInfo` + # @return [Google::Apis::PhotoslibraryV1::ShareInfo] + attr_accessor :share_info + + # Name of the album displayed to the user in their Google Photos account. + # This string should not be more than 500 characters. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + # [Output only] The number of media items in the album + # Corresponds to the JSON property `totalMediaItems` + # @return [Fixnum] + attr_accessor :total_media_items + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cover_photo_base_url = args[:cover_photo_base_url] if args.key?(:cover_photo_base_url) + @id = args[:id] if args.key?(:id) + @is_writeable = args[:is_writeable] if args.key?(:is_writeable) + @product_url = args[:product_url] if args.key?(:product_url) + @share_info = args[:share_info] if args.key?(:share_info) + @title = args[:title] if args.key?(:title) + @total_media_items = args[:total_media_items] if args.key?(:total_media_items) + end + end + + # Specifies a position in an album. + class AlbumPosition + include Google::Apis::Core::Hashable + + # Type of position, for a media or enrichment item. + # Corresponds to the JSON property `position` + # @return [String] + attr_accessor :position + + # The enrichment item to which the position is relative to. + # Only used when position type is AFTER_ENRICHMENT_ITEM. + # Corresponds to the JSON property `relativeEnrichmentItemId` + # @return [String] + attr_accessor :relative_enrichment_item_id + + # The media item to which the position is relative to. + # Only used when position type is AFTER_MEDIA_ITEM. + # Corresponds to the JSON property `relativeMediaItemId` + # @return [String] + attr_accessor :relative_media_item_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @position = args[:position] if args.key?(:position) + @relative_enrichment_item_id = args[:relative_enrichment_item_id] if args.key?(:relative_enrichment_item_id) + @relative_media_item_id = args[:relative_media_item_id] if args.key?(:relative_media_item_id) + end + end + + # Request to create one or more media items in a user's Google Photos library. + # If an albumid is specified, the media items are also added to + # that album. albumPosition is optional and can only be specified + # if an albumId is set. + class BatchCreateMediaItemsRequest + include Google::Apis::Core::Hashable + + # Identifier of the album where the media item(s) will be added. They will + # also be added to the user's library. This is an optional field. + # Corresponds to the JSON property `albumId` + # @return [String] + attr_accessor :album_id + + # Specifies a position in an album. + # Corresponds to the JSON property `albumPosition` + # @return [Google::Apis::PhotoslibraryV1::AlbumPosition] + attr_accessor :album_position + + # List of media items to be created. + # Corresponds to the JSON property `newMediaItems` + # @return [Array] + attr_accessor :new_media_items + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @album_id = args[:album_id] if args.key?(:album_id) + @album_position = args[:album_position] if args.key?(:album_position) + @new_media_items = args[:new_media_items] if args.key?(:new_media_items) + end + end + + # + class BatchCreateMediaItemsResponse + include Google::Apis::Core::Hashable + + # [Output only] List of media items which were created. + # Corresponds to the JSON property `newMediaItemResults` + # @return [Array] + attr_accessor :new_media_item_results + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @new_media_item_results = args[:new_media_item_results] if args.key?(:new_media_item_results) + end + end + + # This filter is used to define which results to return based on the contents + # of the media item. + # It is possible to specify a list of categories to include, and/or a list of + # categories to exclude. Within each list, the categories are combined with an + # OR. For example, if the content filter looks like: + # included_content_categories: [c1, c2, c3] + # It would get media items that contain (c1 OR c2 OR c3). + # And if the content filter looks like: + # excluded_content_categories: [c1, c2, c3] + # It would get media items that contain NOT (c1 OR c2 OR c3). + # You can also include some categories while excluding others, as in this + # proto: + # included_content_categories: [c1, c2], + # excluded_content_category: [c3, c4] + # It would get media items that contain (c1 OR c2) AND NOT (c3 OR c4). + # A category that appears in includedContentategories must not + # appear in excludedContentCategories. + class ContentFilter + include Google::Apis::Core::Hashable + + # The set of categories that must NOT be present in the media items in the + # result. The items in the set are ORed. There is a maximum of 10 + # excludedContentCategories per request. + # Corresponds to the JSON property `excludedContentCategories` + # @return [Array] + attr_accessor :excluded_content_categories + + # The set of categories that must be present in the media items in the + # result. The items in the set are ORed. There is a maximum of 10 + # includedContentCategories per request. + # Corresponds to the JSON property `includedContentCategories` + # @return [Array] + attr_accessor :included_content_categories + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @excluded_content_categories = args[:excluded_content_categories] if args.key?(:excluded_content_categories) + @included_content_categories = args[:included_content_categories] if args.key?(:included_content_categories) + end + end + + # Information about a user who contributed the media item. Note that this + # information is only included if the album containing the media item is + # shared, was created by you and you have the sharing scope. + class ContributorInfo + include Google::Apis::Core::Hashable + + # Display name of the contributor. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # URL to the profile picture of the contributor. + # Corresponds to the JSON property `profilePictureBaseUrl` + # @return [String] + attr_accessor :profile_picture_base_url + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @display_name = args[:display_name] if args.key?(:display_name) + @profile_picture_base_url = args[:profile_picture_base_url] if args.key?(:profile_picture_base_url) + end + end + + # Request to create an album in Google Photos. + class CreateAlbumRequest + include Google::Apis::Core::Hashable + + # Representation of an album in Google Photos. + # Albums are a container for media items. They contain an additional + # shareInfo property if they have been shared by the application. + # Corresponds to the JSON property `album` + # @return [Google::Apis::PhotoslibraryV1::Album] + attr_accessor :album + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @album = args[:album] if args.key?(:album) + end + end + + # Represents a whole calendar date. The day may be 0 to represent a year and + # month where the day is not significant, e.g. a whole calendar month. The month + # may be 0 to represent a a day and a year where the month is not signficant, e. + # g. when you want to specify the same day in every month of a year or a + # specific year. The year may be 0 to represent a month and day independent of + # year, e.g. anniversary date. + class Date + include Google::Apis::Core::Hashable + + # Day of month. Must be from 1 to 31 and valid for the year and month, or 0 + # if specifying a year/month where the day is not significant. + # Corresponds to the JSON property `day` + # @return [Fixnum] + attr_accessor :day + + # Month of year. Must be from 1 to 12, or 0 if specifying a date without a + # month. + # Corresponds to the JSON property `month` + # @return [Fixnum] + attr_accessor :month + + # Year of date. Must be from 1 to 9999, or 0 if specifying a date without + # a year. + # Corresponds to the JSON property `year` + # @return [Fixnum] + attr_accessor :year + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @day = args[:day] if args.key?(:day) + @month = args[:month] if args.key?(:month) + @year = args[:year] if args.key?(:year) + end + end + + # This filter defines the allowed dates or date ranges for the media returned. + # It is possible to pick a set of specific dates and a set of date ranges. + class DateFilter + include Google::Apis::Core::Hashable + + # List of dates that the media items must have been created on. There is a + # maximum of 5 dates that can be included per request. + # Corresponds to the JSON property `dates` + # @return [Array] + attr_accessor :dates + + # List of dates ranges that the media items must have been created in. There + # is a maximum of 5 dates ranges that can be included per request. + # Corresponds to the JSON property `ranges` + # @return [Array] + attr_accessor :ranges + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @dates = args[:dates] if args.key?(:dates) + @ranges = args[:ranges] if args.key?(:ranges) + end + end + + # Defines a range of dates. Both dates must be of the same format (see Date + # definition for more). + class DateRange + include Google::Apis::Core::Hashable + + # Represents a whole calendar date. The day may be 0 to represent a year and + # month where the day is not significant, e.g. a whole calendar month. The month + # may be 0 to represent a a day and a year where the month is not signficant, e. + # g. when you want to specify the same day in every month of a year or a + # specific year. The year may be 0 to represent a month and day independent of + # year, e.g. anniversary date. + # Corresponds to the JSON property `endDate` + # @return [Google::Apis::PhotoslibraryV1::Date] + attr_accessor :end_date + + # Represents a whole calendar date. The day may be 0 to represent a year and + # month where the day is not significant, e.g. a whole calendar month. The month + # may be 0 to represent a a day and a year where the month is not signficant, e. + # g. when you want to specify the same day in every month of a year or a + # specific year. The year may be 0 to represent a month and day independent of + # year, e.g. anniversary date. + # Corresponds to the JSON property `startDate` + # @return [Google::Apis::PhotoslibraryV1::Date] + attr_accessor :start_date + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @end_date = args[:end_date] if args.key?(:end_date) + @start_date = args[:start_date] if args.key?(:start_date) + end + end + + # An enrichment item. + class EnrichmentItem + include Google::Apis::Core::Hashable + + # Identifier of the enrichment item. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + end + end + + # Filters that can be applied to a media item search. + # If multiple filter options are specified, they are treated as AND with each + # other. + class Filters + include Google::Apis::Core::Hashable + + # This filter is used to define which results to return based on the contents + # of the media item. + # It is possible to specify a list of categories to include, and/or a list of + # categories to exclude. Within each list, the categories are combined with an + # OR. For example, if the content filter looks like: + # included_content_categories: [c1, c2, c3] + # It would get media items that contain (c1 OR c2 OR c3). + # And if the content filter looks like: + # excluded_content_categories: [c1, c2, c3] + # It would get media items that contain NOT (c1 OR c2 OR c3). + # You can also include some categories while excluding others, as in this + # proto: + # included_content_categories: [c1, c2], + # excluded_content_category: [c3, c4] + # It would get media items that contain (c1 OR c2) AND NOT (c3 OR c4). + # A category that appears in includedContentategories must not + # appear in excludedContentCategories. + # Corresponds to the JSON property `contentFilter` + # @return [Google::Apis::PhotoslibraryV1::ContentFilter] + attr_accessor :content_filter + + # This filter defines the allowed dates or date ranges for the media returned. + # It is possible to pick a set of specific dates and a set of date ranges. + # Corresponds to the JSON property `dateFilter` + # @return [Google::Apis::PhotoslibraryV1::DateFilter] + attr_accessor :date_filter + + # If set, the results will include media items that the user has archived. + # Defaults to false (archived media items are not included). + # Corresponds to the JSON property `includeArchivedMedia` + # @return [Boolean] + attr_accessor :include_archived_media + alias_method :include_archived_media?, :include_archived_media + + # This filter defines the type of media items to be returned, for example + # videos or photos. All the specified media types are treated as an OR with + # each other. + # Corresponds to the JSON property `mediaTypeFilter` + # @return [Google::Apis::PhotoslibraryV1::MediaTypeFilter] + attr_accessor :media_type_filter + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @content_filter = args[:content_filter] if args.key?(:content_filter) + @date_filter = args[:date_filter] if args.key?(:date_filter) + @include_archived_media = args[:include_archived_media] if args.key?(:include_archived_media) + @media_type_filter = args[:media_type_filter] if args.key?(:media_type_filter) + end + end + + # Request to join a shared album on behalf of the user. This uses a shareToken + # which can be acquired via the shareAlbum or listSharedAlbums calls. + class JoinSharedAlbumRequest + include Google::Apis::Core::Hashable + + # Token indicating the shared album to join on behalf of the user. + # Corresponds to the JSON property `shareToken` + # @return [String] + attr_accessor :share_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @share_token = args[:share_token] if args.key?(:share_token) + end + end + + # Response to successfully joining the shared album on behalf of the user. + class JoinSharedAlbumResponse + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # An object representing a latitude/longitude pair. This is expressed as a pair + # of doubles representing degrees latitude and degrees longitude. Unless + # specified otherwise, this must conform to the + # WGS84 + # standard. Values must be within normalized ranges. + class LatLng + include Google::Apis::Core::Hashable + + # The latitude in degrees. It must be in the range [-90.0, +90.0]. + # Corresponds to the JSON property `latitude` + # @return [Float] + attr_accessor :latitude + + # The longitude in degrees. It must be in the range [-180.0, +180.0]. + # Corresponds to the JSON property `longitude` + # @return [Float] + attr_accessor :longitude + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @latitude = args[:latitude] if args.key?(:latitude) + @longitude = args[:longitude] if args.key?(:longitude) + end + end + + # + class ListAlbumsResponse + include Google::Apis::Core::Hashable + + # [Output only] List of albums that were created by the user. + # Corresponds to the JSON property `albums` + # @return [Array] + attr_accessor :albums + + # [Output only] Token to use to get the next set of albums. Populated if + # there are more albums to retrieve for this request. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @albums = args[:albums] if args.key?(:albums) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # + class ListSharedAlbumsResponse + include Google::Apis::Core::Hashable + + # [Output only] Token to use to get the next set of shared albums. Populated + # if there are more shared albums to retrieve for this request. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # [Output only] List of shared albums that were requested. + # Corresponds to the JSON property `sharedAlbums` + # @return [Array] + attr_accessor :shared_albums + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @shared_albums = args[:shared_albums] if args.key?(:shared_albums) + end + end + + # Represents a physical location. + class Location + include Google::Apis::Core::Hashable + + # An object representing a latitude/longitude pair. This is expressed as a pair + # of doubles representing degrees latitude and degrees longitude. Unless + # specified otherwise, this must conform to the + # WGS84 + # standard. Values must be within normalized ranges. + # Corresponds to the JSON property `latlng` + # @return [Google::Apis::PhotoslibraryV1::LatLng] + attr_accessor :latlng + + # Name of the location to be displayed. + # Corresponds to the JSON property `locationName` + # @return [String] + attr_accessor :location_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @latlng = args[:latlng] if args.key?(:latlng) + @location_name = args[:location_name] if args.key?(:location_name) + end + end + + # An enrichment containing a single location. + class LocationEnrichment + include Google::Apis::Core::Hashable + + # Represents a physical location. + # Corresponds to the JSON property `location` + # @return [Google::Apis::PhotoslibraryV1::Location] + attr_accessor :location + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @location = args[:location] if args.key?(:location) + end + end + + # An enrichment containing a map, showing origin and destination locations. + class MapEnrichment + include Google::Apis::Core::Hashable + + # Represents a physical location. + # Corresponds to the JSON property `destination` + # @return [Google::Apis::PhotoslibraryV1::Location] + attr_accessor :destination + + # Represents a physical location. + # Corresponds to the JSON property `origin` + # @return [Google::Apis::PhotoslibraryV1::Location] + attr_accessor :origin + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @destination = args[:destination] if args.key?(:destination) + @origin = args[:origin] if args.key?(:origin) + end + end + + # Representation of a media item (e.g. photo, video etc.) in Google Photos. + class MediaItem + include Google::Apis::Core::Hashable + + # A URL to the media item's bytes. This should not be used as is. + # For example, '=w2048-h1024' will set the dimensions of a media item of type + # photo to have a width of 2048 px and height of 1024 px. + # Corresponds to the JSON property `baseUrl` + # @return [String] + attr_accessor :base_url + + # Information about a user who contributed the media item. Note that this + # information is only included if the album containing the media item is + # shared, was created by you and you have the sharing scope. + # Corresponds to the JSON property `contributorInfo` + # @return [Google::Apis::PhotoslibraryV1::ContributorInfo] + attr_accessor :contributor_info + + # Description of the media item. This is shown to the user in the item's + # info section in the Google Photos app. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Identifier for the media item. This is a persistent identifier that can be + # used between sessions to identify this media item. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Metadata for a media item. + # Corresponds to the JSON property `mediaMetadata` + # @return [Google::Apis::PhotoslibraryV1::MediaMetadata] + attr_accessor :media_metadata + + # MIME type of the media item. + # Corresponds to the JSON property `mimeType` + # @return [String] + attr_accessor :mime_type + + # Google Photos URL for the media item. This link will only be available to + # the user if they're signed in. + # Corresponds to the JSON property `productUrl` + # @return [String] + attr_accessor :product_url + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @base_url = args[:base_url] if args.key?(:base_url) + @contributor_info = args[:contributor_info] if args.key?(:contributor_info) + @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) + @media_metadata = args[:media_metadata] if args.key?(:media_metadata) + @mime_type = args[:mime_type] if args.key?(:mime_type) + @product_url = args[:product_url] if args.key?(:product_url) + end + end + + # Metadata for a media item. + class MediaMetadata + include Google::Apis::Core::Hashable + + # Time when the media item was first created (not when it was uploaded to + # Google Photos). + # Corresponds to the JSON property `creationTime` + # @return [String] + attr_accessor :creation_time + + # Original height (in pixels) of the media item. + # Corresponds to the JSON property `height` + # @return [Fixnum] + attr_accessor :height + + # Metadata that is specific to a photo, for example, ISO, focal length and + # exposure time. Some of these fields may be null or not included. + # Corresponds to the JSON property `photo` + # @return [Google::Apis::PhotoslibraryV1::Photo] + attr_accessor :photo + + # Metadata that is specific to a video, for example, fps and processing status. + # Some of these fields may be null or not included. + # Corresponds to the JSON property `video` + # @return [Google::Apis::PhotoslibraryV1::Video] + attr_accessor :video + + # Original width (in pixels) of the media item. + # Corresponds to the JSON property `width` + # @return [Fixnum] + attr_accessor :width + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @creation_time = args[:creation_time] if args.key?(:creation_time) + @height = args[:height] if args.key?(:height) + @photo = args[:photo] if args.key?(:photo) + @video = args[:video] if args.key?(:video) + @width = args[:width] if args.key?(:width) + end + end + + # This filter defines the type of media items to be returned, for example + # videos or photos. All the specified media types are treated as an OR with + # each other. + class MediaTypeFilter + include Google::Apis::Core::Hashable + + # The types of media items to be included. This field should only be + # populated with one media type, multiple media types will result in an error + # response. + # Corresponds to the JSON property `mediaTypes` + # @return [Array] + attr_accessor :media_types + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @media_types = args[:media_types] if args.key?(:media_types) + end + end + + # A new enrichment item to be added to an album, used by the + # AddEnrichmentToAlbum call. + class NewEnrichmentItem + include Google::Apis::Core::Hashable + + # An enrichment containing a single location. + # Corresponds to the JSON property `locationEnrichment` + # @return [Google::Apis::PhotoslibraryV1::LocationEnrichment] + attr_accessor :location_enrichment + + # An enrichment containing a map, showing origin and destination locations. + # Corresponds to the JSON property `mapEnrichment` + # @return [Google::Apis::PhotoslibraryV1::MapEnrichment] + attr_accessor :map_enrichment + + # An enrichment containing text. + # Corresponds to the JSON property `textEnrichment` + # @return [Google::Apis::PhotoslibraryV1::TextEnrichment] + attr_accessor :text_enrichment + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @location_enrichment = args[:location_enrichment] if args.key?(:location_enrichment) + @map_enrichment = args[:map_enrichment] if args.key?(:map_enrichment) + @text_enrichment = args[:text_enrichment] if args.key?(:text_enrichment) + end + end + + # New media item that will be created in a user's Google Photos account. + class NewMediaItem + include Google::Apis::Core::Hashable + + # Description of the media item. This will be shown to the user in the item's + # info section in the Google Photos app. + # This string should not be more than 1000 characters. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # A simple media item to be created in Google Photos via an upload token. + # Corresponds to the JSON property `simpleMediaItem` + # @return [Google::Apis::PhotoslibraryV1::SimpleMediaItem] + attr_accessor :simple_media_item + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @simple_media_item = args[:simple_media_item] if args.key?(:simple_media_item) + end + end + + # Result of creating a new media item. + class NewMediaItemResult + include Google::Apis::Core::Hashable + + # Representation of a media item (e.g. photo, video etc.) in Google Photos. + # Corresponds to the JSON property `mediaItem` + # @return [Google::Apis::PhotoslibraryV1::MediaItem] + attr_accessor :media_item + + # The `Status` type defines a logical error model that is suitable for different + # programming environments, including REST APIs and RPC APIs. It is used by + # [gRPC](https://github.com/grpc). The error model is designed to be: + # - Simple to use and understand for most users + # - Flexible enough to meet unexpected needs + # # Overview + # The `Status` message contains three pieces of data: error code, error message, + # and error details. The error code should be an enum value of + # google.rpc.Code, but it may accept additional error codes if needed. The + # error message should be a developer-facing English message that helps + # developers *understand* and *resolve* the error. If a localized user-facing + # error message is needed, put the localized message in the error details or + # localize it in the client. The optional error details may contain arbitrary + # information about the error. There is a predefined set of error detail types + # in the package `google.rpc` that can be used for common error conditions. + # # Language mapping + # The `Status` message is the logical representation of the error model, but it + # is not necessarily the actual wire format. When the `Status` message is + # exposed in different client libraries and different wire protocols, it can be + # mapped differently. For example, it will likely be mapped to some exceptions + # in Java, but more likely mapped to some error codes in C. + # # Other uses + # The error model and the `Status` message can be used in a variety of + # environments, either with or without APIs, to provide a + # consistent developer experience across different environments. + # Example uses of this error model include: + # - Partial errors. If a service needs to return partial errors to the client, + # it may embed the `Status` in the normal response to indicate the partial + # errors. + # - Workflow errors. A typical workflow has multiple steps. Each step may + # have a `Status` message for error reporting. + # - Batch operations. If a client uses batch request and batch response, the + # `Status` message should be used directly inside batch response, one for + # each error sub-response. + # - Asynchronous operations. If an API call embeds asynchronous operation + # results in its response, the status of those operations should be + # represented directly using the `Status` message. + # - Logging. If some API errors are stored in logs, the message `Status` could + # be used directly after any stripping needed for security/privacy reasons. + # Corresponds to the JSON property `status` + # @return [Google::Apis::PhotoslibraryV1::Status] + attr_accessor :status + + # The upload token used to create this new media item. + # Corresponds to the JSON property `uploadToken` + # @return [String] + attr_accessor :upload_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @media_item = args[:media_item] if args.key?(:media_item) + @status = args[:status] if args.key?(:status) + @upload_token = args[:upload_token] if args.key?(:upload_token) + end + end + + # Metadata that is specific to a photo, for example, ISO, focal length and + # exposure time. Some of these fields may be null or not included. + class Photo + include Google::Apis::Core::Hashable + + # Apeture f number of the photo. + # Corresponds to the JSON property `apertureFNumber` + # @return [Float] + attr_accessor :aperture_f_number + + # Brand of the camera which took the photo. + # Corresponds to the JSON property `cameraMake` + # @return [String] + attr_accessor :camera_make + + # Model of the camera which took the photo. + # Corresponds to the JSON property `cameraModel` + # @return [String] + attr_accessor :camera_model + + # Exposure time of the photo. + # Corresponds to the JSON property `exposureTime` + # @return [String] + attr_accessor :exposure_time + + # Focal length of the photo. + # Corresponds to the JSON property `focalLength` + # @return [Float] + attr_accessor :focal_length + + # ISO of the photo. + # Corresponds to the JSON property `isoEquivalent` + # @return [Fixnum] + attr_accessor :iso_equivalent + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @aperture_f_number = args[:aperture_f_number] if args.key?(:aperture_f_number) + @camera_make = args[:camera_make] if args.key?(:camera_make) + @camera_model = args[:camera_model] if args.key?(:camera_model) + @exposure_time = args[:exposure_time] if args.key?(:exposure_time) + @focal_length = args[:focal_length] if args.key?(:focal_length) + @iso_equivalent = args[:iso_equivalent] if args.key?(:iso_equivalent) + end + end + + # Request to search for media items in a user's library. + # If the album id is specified, this call will return the list of media items + # in the album. If neither filters nor album id are + # specified, this call will return all media items in a user's Google Photos + # library. + # If filters are specified, this call will return all media items in + # the user's library which fulfills the criteria based upon the filters. + # Filters and album id must not both be set, as this will result in an + # invalid request. + class SearchMediaItemsRequest + include Google::Apis::Core::Hashable + + # Identifier of an album. If populated will list all media items in + # specified album. Cannot be set in conjunction with any filters. + # Corresponds to the JSON property `albumId` + # @return [String] + attr_accessor :album_id + + # Filters that can be applied to a media item search. + # If multiple filter options are specified, they are treated as AND with each + # other. + # Corresponds to the JSON property `filters` + # @return [Google::Apis::PhotoslibraryV1::Filters] + attr_accessor :filters + + # Maximum number of media items to return in the response. The default number + # of media items to return at a time is 100. The maximum page size is 500. + # Corresponds to the JSON property `pageSize` + # @return [Fixnum] + attr_accessor :page_size + + # 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 + # searchMediaItems request. + # Corresponds to the JSON property `pageToken` + # @return [String] + attr_accessor :page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @album_id = args[:album_id] if args.key?(:album_id) + @filters = args[:filters] if args.key?(:filters) + @page_size = args[:page_size] if args.key?(:page_size) + @page_token = args[:page_token] if args.key?(:page_token) + end + end + + # + class SearchMediaItemsResponse + include Google::Apis::Core::Hashable + + # [Output only] List of media items that match the search parameters. + # Corresponds to the JSON property `mediaItems` + # @return [Array] + attr_accessor :media_items + + # [Output only] Token to use to get the next set of media items. Its presence + # is the only reliable indicator of more media items being available in the + # next request. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @media_items = args[:media_items] if args.key?(:media_items) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Request to make an album shared in Google Photos. + class ShareAlbumRequest + include Google::Apis::Core::Hashable + + # Options that control the sharing of an album. + # Corresponds to the JSON property `sharedAlbumOptions` + # @return [Google::Apis::PhotoslibraryV1::SharedAlbumOptions] + attr_accessor :shared_album_options + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @shared_album_options = args[:shared_album_options] if args.key?(:shared_album_options) + end + end + + # + class ShareAlbumResponse + include Google::Apis::Core::Hashable + + # Information about albums that are shared. Note that this + # information is only included if the album was created by you and you have the + # sharing scope. + # Corresponds to the JSON property `shareInfo` + # @return [Google::Apis::PhotoslibraryV1::ShareInfo] + attr_accessor :share_info + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @share_info = args[:share_info] if args.key?(:share_info) + end + end + + # Information about albums that are shared. Note that this + # information is only included if the album was created by you and you have the + # sharing scope. + class ShareInfo + include Google::Apis::Core::Hashable + + # A token which can be used to join this shared album on behalf of other + # users via the API. + # Corresponds to the JSON property `shareToken` + # @return [String] + attr_accessor :share_token + + # A link to the album that's now shared on the Google Photos website and app. + # Anyone with the link can access this shared album and see all of the items + # present in the album. + # Corresponds to the JSON property `shareableUrl` + # @return [String] + attr_accessor :shareable_url + + # Options that control the sharing of an album. + # Corresponds to the JSON property `sharedAlbumOptions` + # @return [Google::Apis::PhotoslibraryV1::SharedAlbumOptions] + attr_accessor :shared_album_options + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @share_token = args[:share_token] if args.key?(:share_token) + @shareable_url = args[:shareable_url] if args.key?(:shareable_url) + @shared_album_options = args[:shared_album_options] if args.key?(:shared_album_options) + end + end + + # Options that control the sharing of an album. + class SharedAlbumOptions + include Google::Apis::Core::Hashable + + # True if the shared album allows collaborators (users who have joined + # the album) to add media items to it. Defaults to false. + # Corresponds to the JSON property `isCollaborative` + # @return [Boolean] + attr_accessor :is_collaborative + alias_method :is_collaborative?, :is_collaborative + + # True if the shared album allows the owner and the collaborators (users + # who have joined the album) to add comments to the album. Defaults to false. + # Corresponds to the JSON property `isCommentable` + # @return [Boolean] + attr_accessor :is_commentable + alias_method :is_commentable?, :is_commentable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @is_collaborative = args[:is_collaborative] if args.key?(:is_collaborative) + @is_commentable = args[:is_commentable] if args.key?(:is_commentable) + end + end + + # A simple media item to be created in Google Photos via an upload token. + class SimpleMediaItem + include Google::Apis::Core::Hashable + + # Token identifying the media bytes which have been uploaded to Google. + # Corresponds to the JSON property `uploadToken` + # @return [String] + attr_accessor :upload_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @upload_token = args[:upload_token] if args.key?(:upload_token) + end + end + + # The `Status` type defines a logical error model that is suitable for different + # programming environments, including REST APIs and RPC APIs. It is used by + # [gRPC](https://github.com/grpc). The error model is designed to be: + # - Simple to use and understand for most users + # - Flexible enough to meet unexpected needs + # # Overview + # The `Status` message contains three pieces of data: error code, error message, + # and error details. The error code should be an enum value of + # google.rpc.Code, but it may accept additional error codes if needed. The + # error message should be a developer-facing English message that helps + # developers *understand* and *resolve* the error. If a localized user-facing + # error message is needed, put the localized message in the error details or + # localize it in the client. The optional error details may contain arbitrary + # information about the error. There is a predefined set of error detail types + # in the package `google.rpc` that can be used for common error conditions. + # # Language mapping + # The `Status` message is the logical representation of the error model, but it + # is not necessarily the actual wire format. When the `Status` message is + # exposed in different client libraries and different wire protocols, it can be + # mapped differently. For example, it will likely be mapped to some exceptions + # in Java, but more likely mapped to some error codes in C. + # # Other uses + # The error model and the `Status` message can be used in a variety of + # environments, either with or without APIs, to provide a + # consistent developer experience across different environments. + # Example uses of this error model include: + # - Partial errors. If a service needs to return partial errors to the client, + # it may embed the `Status` in the normal response to indicate the partial + # errors. + # - Workflow errors. A typical workflow has multiple steps. Each step may + # have a `Status` message for error reporting. + # - Batch operations. If a client uses batch request and batch response, the + # `Status` message should be used directly inside batch response, one for + # each error sub-response. + # - Asynchronous operations. If an API call embeds asynchronous operation + # results in its response, the status of those operations should be + # represented directly using the `Status` message. + # - Logging. If some API errors are stored in logs, the message `Status` could + # be used directly after any stripping needed for security/privacy reasons. + class Status + include Google::Apis::Core::Hashable + + # The status code, which should be an enum value of google.rpc.Code. + # Corresponds to the JSON property `code` + # @return [Fixnum] + attr_accessor :code + + # A list of messages that carry the error details. There is a common set of + # message types for APIs to use. + # Corresponds to the JSON property `details` + # @return [Array>] + attr_accessor :details + + # A developer-facing error message, which should be in English. Any + # user-facing error message should be localized and sent in the + # google.rpc.Status.details field, or localized by the client. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @details = args[:details] if args.key?(:details) + @message = args[:message] if args.key?(:message) + end + end + + # An enrichment containing text. + class TextEnrichment + include Google::Apis::Core::Hashable + + # Text for this text enrichment item. + # Corresponds to the JSON property `text` + # @return [String] + attr_accessor :text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @text = args[:text] if args.key?(:text) + end + end + + # Metadata that is specific to a video, for example, fps and processing status. + # Some of these fields may be null or not included. + class Video + include Google::Apis::Core::Hashable + + # Brand of the camera which took the video. + # Corresponds to the JSON property `cameraMake` + # @return [String] + attr_accessor :camera_make + + # Model of the camera which took the video. + # Corresponds to the JSON property `cameraModel` + # @return [String] + attr_accessor :camera_model + + # Frame rate of the video. + # Corresponds to the JSON property `fps` + # @return [Float] + attr_accessor :fps + + # Processing status of the video. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @camera_make = args[:camera_make] if args.key?(:camera_make) + @camera_model = args[:camera_model] if args.key?(:camera_model) + @fps = args[:fps] if args.key?(:fps) + @status = args[:status] if args.key?(:status) + end + end + end + end +end diff --git a/generated/google/apis/photoslibrary_v1/representations.rb b/generated/google/apis/photoslibrary_v1/representations.rb new file mode 100644 index 000000000..535931571 --- /dev/null +++ b/generated/google/apis/photoslibrary_v1/representations.rb @@ -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 diff --git a/generated/google/apis/photoslibrary_v1/service.rb b/generated/google/apis/photoslibrary_v1/service.rb new file mode 100644 index 000000000..65e001dd3 --- /dev/null +++ b/generated/google/apis/photoslibrary_v1/service.rb @@ -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 diff --git a/generated/google/apis/spanner_v1.rb b/generated/google/apis/spanner_v1.rb index 4250305d9..d0606dfec 100644 --- a/generated/google/apis/spanner_v1.rb +++ b/generated/google/apis/spanner_v1.rb @@ -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' diff --git a/generated/google/apis/spanner_v1/classes.rb b/generated/google/apis/spanner_v1/classes.rb index 2cd4bcca7..c0d822cab 100644 --- a/generated/google/apis/spanner_v1/classes.rb +++ b/generated/google/apis/spanner_v1/classes.rb @@ -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` diff --git a/generated/google/apis/storage_v1.rb b/generated/google/apis/storage_v1.rb index 22495165f..5b7b4763d 100644 --- a/generated/google/apis/storage_v1.rb +++ b/generated/google/apis/storage_v1.rb @@ -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' diff --git a/generated/google/apis/storage_v1/classes.rb b/generated/google/apis/storage_v1/classes.rb index 33304dc8b..8f2f76f5d 100644 --- a/generated/google/apis/storage_v1/classes.rb +++ b/generated/google/apis/storage_v1/classes.rb @@ -61,8 +61,7 @@ module Google # @return [Array] 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