From 557057c754d446b18f08cf719a84b68d7e55bd15 Mon Sep 17 00:00:00 2001 From: Steve Bazyl Date: Wed, 25 May 2016 09:16:15 -0700 Subject: [PATCH] Regen APIs, add mybusiness_v3 --- api_names.yaml | 11 + api_names_out.yaml | 606 +++++- generated/google/apis/adsense_v1_4.rb | 2 +- generated/google/apis/adsensehost_v4_1.rb | 2 +- generated/google/apis/androidenterprise_v1.rb | 2 +- generated/google/apis/androidpublisher_v2.rb | 2 +- .../apis/androidpublisher_v2/classes.rb | 268 +++ .../androidpublisher_v2/representations.rb | 142 ++ .../apis/androidpublisher_v2/service.rb | 121 ++ generated/google/apis/appstate_v1.rb | 2 +- generated/google/apis/calendar_v3.rb | 2 +- generated/google/apis/classroom_v1.rb | 23 +- generated/google/apis/classroom_v1/classes.rb | 926 +++++++- .../apis/classroom_v1/representations.rb | 419 ++++ generated/google/apis/classroom_v1/service.rb | 506 +++++ generated/google/apis/cloudbuild_v1.rb | 2 +- .../google/apis/cloudbuild_v1/classes.rb | 2 +- .../google/apis/cloudresourcemanager_v1.rb | 2 +- .../apis/cloudresourcemanager_v1beta1.rb | 2 +- .../cloudresourcemanager_v1beta1/classes.rb | 55 + .../representations.rb | 40 + .../cloudresourcemanager_v1beta1/service.rb | 35 + generated/google/apis/cloudtrace_v1.rb | 14 +- .../google/apis/cloudtrace_v1/classes.rb | 10 +- .../google/apis/cloudtrace_v1/service.rb | 14 +- generated/google/apis/compute_beta.rb | 2 +- generated/google/apis/compute_beta/classes.rb | 13 +- generated/google/apis/compute_v1.rb | 2 +- generated/google/apis/compute_v1/classes.rb | 10 +- generated/google/apis/content_v2.rb | 2 +- generated/google/apis/content_v2/classes.rb | 7 + .../google/apis/content_v2/representations.rb | 1 + generated/google/apis/dns_v1.rb | 2 +- generated/google/apis/doubleclicksearch_v2.rb | 2 +- generated/google/apis/drive_v2.rb | 2 +- generated/google/apis/drive_v3.rb | 2 +- .../games_configuration_v1configuration.rb | 2 +- .../apis/games_management_v1management.rb | 2 +- generated/google/apis/games_v1.rb | 2 +- generated/google/apis/games_v1/service.rb | 265 ++- generated/google/apis/genomics_v1.rb | 2 +- generated/google/apis/gmail_v1.rb | 2 +- generated/google/apis/identitytoolkit_v3.rb | 2 +- .../google/apis/identitytoolkit_v3/classes.rb | 7 + .../identitytoolkit_v3/representations.rb | 1 + generated/google/apis/mybusiness_v3.rb | 32 + .../google/apis/mybusiness_v3/classes.rb | 1864 +++++++++++++++++ .../apis/mybusiness_v3/representations.rb | 741 +++++++ .../google/apis/mybusiness_v3/service.rb | 960 +++++++++ generated/google/apis/pagespeedonline_v2.rb | 2 +- generated/google/apis/plus_domains_v1.rb | 2 +- generated/google/apis/plus_v1.rb | 2 +- generated/google/apis/prediction_v1_6.rb | 5 +- .../google/apis/resourceviews_v1beta2.rb | 2 +- generated/google/apis/sheets_v4.rb | 4 +- generated/google/apis/sheets_v4/classes.rb | 539 +++-- generated/google/apis/sheets_v4/service.rb | 39 +- generated/google/apis/storage_v1.rb | 2 +- generated/google/apis/storage_v1/classes.rb | 3 +- generated/google/apis/vision_v1.rb | 2 +- generated/google/apis/vision_v1/classes.rb | 134 +- .../google/apis/vision_v1/representations.rb | 30 +- generated/google/apis/youtubereporting_v1.rb | 6 +- .../apis/youtubereporting_v1/classes.rb | 19 + .../youtubereporting_v1/representations.rb | 3 + .../apis/youtubereporting_v1/service.rb | 7 +- script/generate | 1 + 67 files changed, 7410 insertions(+), 529 deletions(-) create mode 100644 generated/google/apis/mybusiness_v3.rb create mode 100644 generated/google/apis/mybusiness_v3/classes.rb create mode 100644 generated/google/apis/mybusiness_v3/representations.rb create mode 100644 generated/google/apis/mybusiness_v3/service.rb diff --git a/api_names.yaml b/api_names.yaml index 7f3087824..4199e41be 100644 --- a/api_names.yaml +++ b/api_names.yaml @@ -1094,3 +1094,14 @@ "/youtube:v3/VideoListResponse": list_videos_response "/youtubeAnalytics:v1/GroupItemListResponse": list_group_item_response "/youtubeAnalytics:v1/GroupListResponse": list_groups_response +"/mybusiness:v3/mybusiness.accounts.locations.getGoogleUpdated": get_google_updated_account_location +"/mybusiness:v3/mybusiness.accounts.locations.reviews.deleteReply": delete_reply +"/mybusiness:v3/mybusiness.accounts.locations.reviews.reply": reply_to_review +"/mybusiness:v3/mybusiness.accounts.locations.reviews.get": get_review +"/mybusiness:v3/mybusiness.accounts.locations.reviews.list": list_reviews +"/classroom:v1/classroom.courses.courseWork.create": create_course_work +"/classroom:v1/classroom.courses.courseWork.get": get_course_work +"/classroom:v1/classroom.courses.courseWork.list": list_course_works +"/classroom:v1/classroom.courses.courseWork.studentSubmissions.get": get_student_submission +"/classroom:v1/classroom.courses.courseWork.studentSubmissions.patch": patch_student_submission +"/classroom:v1/classroom.courses.courseWork.studentSubmissions.list": list_student_submissions diff --git a/api_names_out.yaml b/api_names_out.yaml index 5625cfaa8..293bc194a 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -1070,6 +1070,17 @@ "/youtube:v3/VideoListResponse": list_videos_response "/youtubeAnalytics:v1/GroupItemListResponse": list_group_item_response "/youtubeAnalytics:v1/GroupListResponse": list_groups_response +"/mybusiness:v3/mybusiness.accounts.locations.getGoogleUpdated": get_google_updated_account_location +"/mybusiness:v3/mybusiness.accounts.locations.reviews.deleteReply": delete_reply +"/mybusiness:v3/mybusiness.accounts.locations.reviews.reply": reply_to_review +"/mybusiness:v3/mybusiness.accounts.locations.reviews.get": get_review +"/mybusiness:v3/mybusiness.accounts.locations.reviews.list": list_reviews +"/classroom:v1/classroom.courses.courseWork.create": create_course_work +"/classroom:v1/classroom.courses.courseWork.get": get_course_work +"/classroom:v1/classroom.courses.courseWork.list": list_course_works +"/classroom:v1/classroom.courses.courseWork.studentSubmissions.get": get_student_submission +"/classroom:v1/classroom.courses.courseWork.studentSubmissions.patch": patch_student_submission +"/classroom:v1/classroom.courses.courseWork.studentSubmissions.list": list_student_submissions "/youtubePartner:v1/fields": fields "/youtubePartner:v1/key": key "/youtubePartner:v1/quotaUser": quota_user @@ -4107,6 +4118,284 @@ "/compute:beta/ZoneSetLabelsRequest/labelFingerprint": label_fingerprint "/compute:beta/ZoneSetLabelsRequest/labels": labels "/compute:beta/ZoneSetLabelsRequest/labels/label": label +"/mybusiness:v3/fields": fields +"/mybusiness:v3/key": key +"/mybusiness:v3/quotaUser": quota_user +"/mybusiness:v3/mybusiness.accounts.list": list_accounts +"/mybusiness:v3/mybusiness.accounts.list/pageSize": page_size +"/mybusiness:v3/mybusiness.accounts.list/pageToken": page_token +"/mybusiness:v3/mybusiness.accounts.get": get_account +"/mybusiness:v3/mybusiness.accounts.get/name": name +"/mybusiness:v3/mybusiness.accounts.update": update_account +"/mybusiness:v3/mybusiness.accounts.update/name": name +"/mybusiness:v3/mybusiness.accounts.update/languageCode": language_code +"/mybusiness:v3/mybusiness.accounts.update/validateOnly": validate_only +"/mybusiness:v3/mybusiness.accounts.admins.list": list_account_admins +"/mybusiness:v3/mybusiness.accounts.admins.list/name": name +"/mybusiness:v3/mybusiness.accounts.admins.create": create_account_admin +"/mybusiness:v3/mybusiness.accounts.admins.create/name": name +"/mybusiness:v3/mybusiness.accounts.admins.delete": delete_account_admin +"/mybusiness:v3/mybusiness.accounts.admins.delete/name": name +"/mybusiness:v3/mybusiness.accounts.locations.list": list_account_locations +"/mybusiness:v3/mybusiness.accounts.locations.list/name": name +"/mybusiness:v3/mybusiness.accounts.locations.list/pageSize": page_size +"/mybusiness:v3/mybusiness.accounts.locations.list/pageToken": page_token +"/mybusiness:v3/mybusiness.accounts.locations.list/filter": filter +"/mybusiness:v3/mybusiness.accounts.locations.get": get_account_location +"/mybusiness:v3/mybusiness.accounts.locations.get/name": name +"/mybusiness:v3/mybusiness.accounts.locations.batchGet": batch_get_locations +"/mybusiness:v3/mybusiness.accounts.locations.batchGet/name": name +"/mybusiness:v3/mybusiness.accounts.locations.getGoogleUpdated/name": name +"/mybusiness:v3/mybusiness.accounts.locations.create": create_account_location +"/mybusiness:v3/mybusiness.accounts.locations.create/name": name +"/mybusiness:v3/mybusiness.accounts.locations.create/languageCode": language_code +"/mybusiness:v3/mybusiness.accounts.locations.create/validateOnly": validate_only +"/mybusiness:v3/mybusiness.accounts.locations.create/requestId": request_id +"/mybusiness:v3/mybusiness.accounts.locations.patch": patch_account_location +"/mybusiness:v3/mybusiness.accounts.locations.patch/name": name +"/mybusiness:v3/mybusiness.accounts.locations.patch/languageCode": language_code +"/mybusiness:v3/mybusiness.accounts.locations.patch/fieldMask": field_mask +"/mybusiness:v3/mybusiness.accounts.locations.patch/validateOnly": validate_only +"/mybusiness:v3/mybusiness.accounts.locations.delete": delete_account_location +"/mybusiness:v3/mybusiness.accounts.locations.delete/name": name +"/mybusiness:v3/mybusiness.accounts.locations.findMatches": find_account_location_matches +"/mybusiness:v3/mybusiness.accounts.locations.findMatches/name": name +"/mybusiness:v3/mybusiness.accounts.locations.associate": associate_location +"/mybusiness:v3/mybusiness.accounts.locations.associate/name": name +"/mybusiness:v3/mybusiness.accounts.locations.clearAssociation": clear_account_location_association +"/mybusiness:v3/mybusiness.accounts.locations.clearAssociation/name": name +"/mybusiness:v3/mybusiness.accounts.locations.transfer": transfer_location +"/mybusiness:v3/mybusiness.accounts.locations.transfer/name": name +"/mybusiness:v3/mybusiness.accounts.locations.admins.list": list_account_location_admins +"/mybusiness:v3/mybusiness.accounts.locations.admins.list/name": name +"/mybusiness:v3/mybusiness.accounts.locations.admins.create": create_account_location_admin +"/mybusiness:v3/mybusiness.accounts.locations.admins.create/name": name +"/mybusiness:v3/mybusiness.accounts.locations.admins.delete": delete_account_location_admin +"/mybusiness:v3/mybusiness.accounts.locations.admins.delete/name": name +"/mybusiness:v3/mybusiness.accounts.locations.reviews.list/name": name +"/mybusiness:v3/mybusiness.accounts.locations.reviews.list/pageSize": page_size +"/mybusiness:v3/mybusiness.accounts.locations.reviews.list/pageToken": page_token +"/mybusiness:v3/mybusiness.accounts.locations.reviews.list/orderBy": order_by +"/mybusiness:v3/mybusiness.accounts.locations.reviews.get/name": name +"/mybusiness:v3/mybusiness.accounts.locations.reviews.reply/name": name +"/mybusiness:v3/mybusiness.accounts.locations.reviews.deleteReply/name": name +"/mybusiness:v3/mybusiness.attributes.list": list_attributes +"/mybusiness:v3/mybusiness.attributes.list/name": name +"/mybusiness:v3/mybusiness.attributes.list/categoryId": category_id +"/mybusiness:v3/mybusiness.attributes.list/country": country +"/mybusiness:v3/mybusiness.attributes.list/languageCode": language_code +"/mybusiness:v3/ListAccountsResponse": list_accounts_response +"/mybusiness:v3/ListAccountsResponse/accounts": accounts +"/mybusiness:v3/ListAccountsResponse/accounts/account": account +"/mybusiness:v3/ListAccountsResponse/nextPageToken": next_page_token +"/mybusiness:v3/Account": account +"/mybusiness:v3/Account/name": name +"/mybusiness:v3/Account/accountName": account_name +"/mybusiness:v3/Account/type": type +"/mybusiness:v3/Account/role": role +"/mybusiness:v3/Account/state": state +"/mybusiness:v3/AccountState": account_state +"/mybusiness:v3/AccountState/status": status +"/mybusiness:v3/ListAccountAdminsResponse": list_account_admins_response +"/mybusiness:v3/ListAccountAdminsResponse/admins": admins +"/mybusiness:v3/ListAccountAdminsResponse/admins/admin": admin +"/mybusiness:v3/Admin": admin +"/mybusiness:v3/Admin/name": name +"/mybusiness:v3/Admin/adminName": admin_name +"/mybusiness:v3/Admin/role": role +"/mybusiness:v3/Admin/pendingInvitation": pending_invitation +"/mybusiness:v3/Empty": empty +"/mybusiness:v3/ListLocationsResponse": list_locations_response +"/mybusiness:v3/ListLocationsResponse/locations": locations +"/mybusiness:v3/ListLocationsResponse/locations/location": location +"/mybusiness:v3/ListLocationsResponse/nextPageToken": next_page_token +"/mybusiness:v3/Location": location +"/mybusiness:v3/Location/name": name +"/mybusiness:v3/Location/storeCode": store_code +"/mybusiness:v3/Location/locationName": location_name +"/mybusiness:v3/Location/primaryPhone": primary_phone +"/mybusiness:v3/Location/additionalPhones": additional_phones +"/mybusiness:v3/Location/additionalPhones/additional_phone": additional_phone +"/mybusiness:v3/Location/address": address +"/mybusiness:v3/Location/primaryCategory": primary_category +"/mybusiness:v3/Location/additionalCategories": additional_categories +"/mybusiness:v3/Location/additionalCategories/additional_category": additional_category +"/mybusiness:v3/Location/websiteUrl": website_url +"/mybusiness:v3/Location/regularHours": regular_hours +"/mybusiness:v3/Location/specialHours": special_hours +"/mybusiness:v3/Location/serviceArea": service_area +"/mybusiness:v3/Location/locationKey": location_key +"/mybusiness:v3/Location/labels": labels +"/mybusiness:v3/Location/labels/label": label +"/mybusiness:v3/Location/adWordsLocationExtensions": ad_words_location_extensions +"/mybusiness:v3/Location/photos": photos +"/mybusiness:v3/Location/latlng": latlng +"/mybusiness:v3/Location/openInfo": open_info +"/mybusiness:v3/Location/locationState": location_state +"/mybusiness:v3/Location/attributes": attributes +"/mybusiness:v3/Location/attributes/attribute": attribute +"/mybusiness:v3/Location/metadata": metadata +"/mybusiness:v3/Address": address +"/mybusiness:v3/Address/addressLines": address_lines +"/mybusiness:v3/Address/addressLines/address_line": address_line +"/mybusiness:v3/Address/subLocality": sub_locality +"/mybusiness:v3/Address/locality": locality +"/mybusiness:v3/Address/administrativeArea": administrative_area +"/mybusiness:v3/Address/country": country +"/mybusiness:v3/Address/postalCode": postal_code +"/mybusiness:v3/Category": category +"/mybusiness:v3/Category/name": name +"/mybusiness:v3/Category/categoryId": category_id +"/mybusiness:v3/BusinessHours": business_hours +"/mybusiness:v3/BusinessHours/periods": periods +"/mybusiness:v3/BusinessHours/periods/period": period +"/mybusiness:v3/TimePeriod": time_period +"/mybusiness:v3/TimePeriod/openDay": open_day +"/mybusiness:v3/TimePeriod/openTime": open_time +"/mybusiness:v3/TimePeriod/closeDay": close_day +"/mybusiness:v3/TimePeriod/closeTime": close_time +"/mybusiness:v3/SpecialHours": special_hours +"/mybusiness:v3/SpecialHours/specialHourPeriods": special_hour_periods +"/mybusiness:v3/SpecialHours/specialHourPeriods/special_hour_period": special_hour_period +"/mybusiness:v3/SpecialHourPeriod": special_hour_period +"/mybusiness:v3/SpecialHourPeriod/startDate": start_date +"/mybusiness:v3/SpecialHourPeriod/openTime": open_time +"/mybusiness:v3/SpecialHourPeriod/endDate": end_date +"/mybusiness:v3/SpecialHourPeriod/closeTime": close_time +"/mybusiness:v3/SpecialHourPeriod/isClosed": is_closed +"/mybusiness:v3/Date": date +"/mybusiness:v3/Date/year": year +"/mybusiness:v3/Date/month": month +"/mybusiness:v3/Date/day": day +"/mybusiness:v3/ServiceAreaBusiness": service_area_business +"/mybusiness:v3/ServiceAreaBusiness/businessType": business_type +"/mybusiness:v3/ServiceAreaBusiness/radius": radius +"/mybusiness:v3/ServiceAreaBusiness/places": places +"/mybusiness:v3/PointRadius": point_radius +"/mybusiness:v3/PointRadius/latlng": latlng +"/mybusiness:v3/PointRadius/radiusKm": radius_km +"/mybusiness:v3/LatLng": lat_lng +"/mybusiness:v3/LatLng/latitude": latitude +"/mybusiness:v3/LatLng/longitude": longitude +"/mybusiness:v3/Places": places +"/mybusiness:v3/Places/placeInfos": place_infos +"/mybusiness:v3/Places/placeInfos/place_info": place_info +"/mybusiness:v3/PlaceInfo": place_info +"/mybusiness:v3/PlaceInfo/name": name +"/mybusiness:v3/PlaceInfo/placeId": place_id +"/mybusiness:v3/LocationKey": location_key +"/mybusiness:v3/LocationKey/plusPageId": plus_page_id +"/mybusiness:v3/LocationKey/placeId": place_id +"/mybusiness:v3/LocationKey/explicitNoPlaceId": explicit_no_place_id +"/mybusiness:v3/AdWordsLocationExtensions": ad_words_location_extensions +"/mybusiness:v3/AdWordsLocationExtensions/adPhone": ad_phone +"/mybusiness:v3/Photos": photos +"/mybusiness:v3/Photos/profilePhotoUrl": profile_photo_url +"/mybusiness:v3/Photos/coverPhotoUrl": cover_photo_url +"/mybusiness:v3/Photos/logoPhotoUrl": logo_photo_url +"/mybusiness:v3/Photos/exteriorPhotoUrls": exterior_photo_urls +"/mybusiness:v3/Photos/exteriorPhotoUrls/exterior_photo_url": exterior_photo_url +"/mybusiness:v3/Photos/interiorPhotoUrls": interior_photo_urls +"/mybusiness:v3/Photos/interiorPhotoUrls/interior_photo_url": interior_photo_url +"/mybusiness:v3/Photos/productPhotoUrls": product_photo_urls +"/mybusiness:v3/Photos/productPhotoUrls/product_photo_url": product_photo_url +"/mybusiness:v3/Photos/photosAtWorkUrls": photos_at_work_urls +"/mybusiness:v3/Photos/photosAtWorkUrls/photos_at_work_url": photos_at_work_url +"/mybusiness:v3/Photos/foodAndDrinkPhotoUrls": food_and_drink_photo_urls +"/mybusiness:v3/Photos/foodAndDrinkPhotoUrls/food_and_drink_photo_url": food_and_drink_photo_url +"/mybusiness:v3/Photos/menuPhotoUrls": menu_photo_urls +"/mybusiness:v3/Photos/menuPhotoUrls/menu_photo_url": menu_photo_url +"/mybusiness:v3/Photos/commonAreasPhotoUrls": common_areas_photo_urls +"/mybusiness:v3/Photos/commonAreasPhotoUrls/common_areas_photo_url": common_areas_photo_url +"/mybusiness:v3/Photos/roomsPhotoUrls": rooms_photo_urls +"/mybusiness:v3/Photos/roomsPhotoUrls/rooms_photo_url": rooms_photo_url +"/mybusiness:v3/Photos/teamPhotoUrls": team_photo_urls +"/mybusiness:v3/Photos/teamPhotoUrls/team_photo_url": team_photo_url +"/mybusiness:v3/Photos/additionalPhotoUrls": additional_photo_urls +"/mybusiness:v3/Photos/additionalPhotoUrls/additional_photo_url": additional_photo_url +"/mybusiness:v3/Photos/preferredPhoto": preferred_photo +"/mybusiness:v3/OpenInfo": open_info +"/mybusiness:v3/OpenInfo/status": status +"/mybusiness:v3/LocationState": location_state +"/mybusiness:v3/LocationState/isGoogleUpdated": is_google_updated +"/mybusiness:v3/LocationState/isDuplicate": is_duplicate +"/mybusiness:v3/LocationState/isSuspended": is_suspended +"/mybusiness:v3/LocationState/canUpdate": can_update +"/mybusiness:v3/LocationState/canDelete": can_delete +"/mybusiness:v3/LocationState/isVerified": is_verified +"/mybusiness:v3/LocationState/needsReverification": needs_reverification +"/mybusiness:v3/Attribute": attribute +"/mybusiness:v3/Attribute/attributeId": attribute_id +"/mybusiness:v3/Attribute/valueType": value_type +"/mybusiness:v3/Attribute/values": values +"/mybusiness:v3/Attribute/values/value": value +"/mybusiness:v3/Metadata": metadata +"/mybusiness:v3/Metadata/duplicate": duplicate +"/mybusiness:v3/Duplicate": duplicate +"/mybusiness:v3/Duplicate/locationName": location_name +"/mybusiness:v3/Duplicate/ownership": ownership +"/mybusiness:v3/BatchGetLocationsRequest": batch_get_locations_request +"/mybusiness:v3/BatchGetLocationsRequest/locationNames": location_names +"/mybusiness:v3/BatchGetLocationsRequest/locationNames/location_name": location_name +"/mybusiness:v3/BatchGetLocationsResponse": batch_get_locations_response +"/mybusiness:v3/BatchGetLocationsResponse/locations": locations +"/mybusiness:v3/BatchGetLocationsResponse/locations/location": location +"/mybusiness:v3/GoogleUpdatedLocation": google_updated_location +"/mybusiness:v3/GoogleUpdatedLocation/location": location +"/mybusiness:v3/GoogleUpdatedLocation/diffMask": diff_mask +"/mybusiness:v3/ListLocationAdminsResponse": list_location_admins_response +"/mybusiness:v3/ListLocationAdminsResponse/admins": admins +"/mybusiness:v3/ListLocationAdminsResponse/admins/admin": admin +"/mybusiness:v3/FindMatchingLocationsRequest": find_matching_locations_request +"/mybusiness:v3/FindMatchingLocationsRequest/languageCode": language_code +"/mybusiness:v3/FindMatchingLocationsRequest/numResults": num_results +"/mybusiness:v3/FindMatchingLocationsRequest/maxCacheDuration": max_cache_duration +"/mybusiness:v3/FindMatchingLocationsResponse": find_matching_locations_response +"/mybusiness:v3/FindMatchingLocationsResponse/matchedLocations": matched_locations +"/mybusiness:v3/FindMatchingLocationsResponse/matchedLocations/matched_location": matched_location +"/mybusiness:v3/FindMatchingLocationsResponse/matchTime": match_time +"/mybusiness:v3/MatchedLocation": matched_location +"/mybusiness:v3/MatchedLocation/location": location +"/mybusiness:v3/MatchedLocation/isExactMatch": is_exact_match +"/mybusiness:v3/AssociateLocationRequest": associate_location_request +"/mybusiness:v3/AssociateLocationRequest/placeId": place_id +"/mybusiness:v3/ClearLocationAssociationRequest": clear_location_association_request +"/mybusiness:v3/TransferLocationRequest": transfer_location_request +"/mybusiness:v3/TransferLocationRequest/toAccount": to_account +"/mybusiness:v3/ListReviewsResponse": list_reviews_response +"/mybusiness:v3/ListReviewsResponse/reviews": reviews +"/mybusiness:v3/ListReviewsResponse/reviews/review": review +"/mybusiness:v3/ListReviewsResponse/averageRating": average_rating +"/mybusiness:v3/ListReviewsResponse/totalReviewCount": total_review_count +"/mybusiness:v3/ListReviewsResponse/nextPageToken": next_page_token +"/mybusiness:v3/Review": review +"/mybusiness:v3/Review/reviewId": review_id +"/mybusiness:v3/Review/reviewer": reviewer +"/mybusiness:v3/Review/starRating": star_rating +"/mybusiness:v3/Review/comment": comment +"/mybusiness:v3/Review/createTime": create_time +"/mybusiness:v3/Review/updateTime": update_time +"/mybusiness:v3/Review/reviewReply": review_reply +"/mybusiness:v3/Reviewer": reviewer +"/mybusiness:v3/Reviewer/displayName": display_name +"/mybusiness:v3/Reviewer/isAnonymous": is_anonymous +"/mybusiness:v3/ReviewReply": review_reply +"/mybusiness:v3/ReviewReply/comment": comment +"/mybusiness:v3/ReviewReply/updateTime": update_time +"/mybusiness:v3/ListLocationAttributeMetadataResponse": list_location_attribute_metadata_response +"/mybusiness:v3/ListLocationAttributeMetadataResponse/attributes": attributes +"/mybusiness:v3/ListLocationAttributeMetadataResponse/attributes/attribute": attribute +"/mybusiness:v3/AttributeMetadata": attribute_metadata +"/mybusiness:v3/AttributeMetadata/attributeId": attribute_id +"/mybusiness:v3/AttributeMetadata/valueType": value_type +"/mybusiness:v3/AttributeMetadata/displayName": display_name +"/mybusiness:v3/AttributeMetadata/groupDisplayName": group_display_name +"/mybusiness:v3/AttributeMetadata/isRepeatable": is_repeatable +"/mybusiness:v3/AttributeMetadata/valueMetadata": value_metadata +"/mybusiness:v3/AttributeMetadata/valueMetadata/value_metadatum": value_metadatum +"/mybusiness:v3/AttributeValueMetadata": attribute_value_metadata +"/mybusiness:v3/AttributeValueMetadata/value": value +"/mybusiness:v3/AttributeValueMetadata/displayName": display_name "/adexchangebuyer:v1.4/fields": fields "/adexchangebuyer:v1.4/key": key "/adexchangebuyer:v1.4/quotaUser": quota_user @@ -7966,6 +8255,17 @@ "/androidpublisher:v2/androidpublisher.purchases.subscriptions.revoke/packageName": package_name "/androidpublisher:v2/androidpublisher.purchases.subscriptions.revoke/subscriptionId": subscription_id "/androidpublisher:v2/androidpublisher.purchases.subscriptions.revoke/token": token +"/androidpublisher:v2/androidpublisher.reviews.get": get_review +"/androidpublisher:v2/androidpublisher.reviews.get/packageName": package_name +"/androidpublisher:v2/androidpublisher.reviews.get/reviewId": review_id +"/androidpublisher:v2/androidpublisher.reviews.list": list_reviews +"/androidpublisher:v2/androidpublisher.reviews.list/maxResults": max_results +"/androidpublisher:v2/androidpublisher.reviews.list/packageName": package_name +"/androidpublisher:v2/androidpublisher.reviews.list/startIndex": start_index +"/androidpublisher:v2/androidpublisher.reviews.list/token": token +"/androidpublisher:v2/androidpublisher.reviews.reply": reply_review +"/androidpublisher:v2/androidpublisher.reviews.reply/packageName": package_name +"/androidpublisher:v2/androidpublisher.reviews.reply/reviewId": review_id "/androidpublisher:v2/Apk": apk "/androidpublisher:v2/Apk/binary": binary "/androidpublisher:v2/Apk/versionCode": version_code @@ -7990,6 +8290,12 @@ "/androidpublisher:v2/AppEdit": app_edit "/androidpublisher:v2/AppEdit/expiryTimeSeconds": expiry_time_seconds "/androidpublisher:v2/AppEdit/id": id +"/androidpublisher:v2/Comment": comment +"/androidpublisher:v2/Comment/developerComment": developer_comment +"/androidpublisher:v2/Comment/userComment": user_comment +"/androidpublisher:v2/DeveloperComment": developer_comment +"/androidpublisher:v2/DeveloperComment/lastModified": last_modified +"/androidpublisher:v2/DeveloperComment/text": text "/androidpublisher:v2/Entitlement": entitlement "/androidpublisher:v2/Entitlement/kind": kind "/androidpublisher:v2/Entitlement/productId": product_id @@ -8101,6 +8407,23 @@ "/androidpublisher:v2/Prorate": prorate "/androidpublisher:v2/Prorate/defaultPrice": default_price "/androidpublisher:v2/Prorate/start": start +"/androidpublisher:v2/Review": review +"/androidpublisher:v2/Review/authorName": author_name +"/androidpublisher:v2/Review/comments": comments +"/androidpublisher:v2/Review/comments/comment": comment +"/androidpublisher:v2/Review/reviewId": review_id +"/androidpublisher:v2/ReviewReplyResult": review_reply_result +"/androidpublisher:v2/ReviewReplyResult/lastEdited": last_edited +"/androidpublisher:v2/ReviewReplyResult/replyText": reply_text +"/androidpublisher:v2/ReviewsListResponse": reviews_list_response +"/androidpublisher:v2/ReviewsListResponse/pageInfo": page_info +"/androidpublisher:v2/ReviewsListResponse/reviews": reviews +"/androidpublisher:v2/ReviewsListResponse/reviews/review": review +"/androidpublisher:v2/ReviewsListResponse/tokenPagination": token_pagination +"/androidpublisher:v2/ReviewsReplyRequest": reviews_reply_request +"/androidpublisher:v2/ReviewsReplyRequest/replyText": reply_text +"/androidpublisher:v2/ReviewsReplyResponse": reviews_reply_response +"/androidpublisher:v2/ReviewsReplyResponse/result": result "/androidpublisher:v2/Season": season "/androidpublisher:v2/Season/end": end "/androidpublisher:v2/Season/prorations": prorations @@ -8127,6 +8450,9 @@ "/androidpublisher:v2/Testers/googleGroups/google_group": google_group "/androidpublisher:v2/Testers/googlePlusCommunities": google_plus_communities "/androidpublisher:v2/Testers/googlePlusCommunities/google_plus_community": google_plus_community +"/androidpublisher:v2/Timestamp": timestamp +"/androidpublisher:v2/Timestamp/nanos": nanos +"/androidpublisher:v2/Timestamp/seconds": seconds "/androidpublisher:v2/TokenPagination": token_pagination "/androidpublisher:v2/TokenPagination/nextPageToken": next_page_token "/androidpublisher:v2/TokenPagination/previousPageToken": previous_page_token @@ -8138,6 +8464,15 @@ "/androidpublisher:v2/TracksListResponse/kind": kind "/androidpublisher:v2/TracksListResponse/tracks": tracks "/androidpublisher:v2/TracksListResponse/tracks/track": track +"/androidpublisher:v2/UserComment": user_comment +"/androidpublisher:v2/UserComment/androidOsVersion": android_os_version +"/androidpublisher:v2/UserComment/appVersionCode": app_version_code +"/androidpublisher:v2/UserComment/appVersionName": app_version_name +"/androidpublisher:v2/UserComment/device": device +"/androidpublisher:v2/UserComment/lastModified": last_modified +"/androidpublisher:v2/UserComment/reviewerLanguage": reviewer_language +"/androidpublisher:v2/UserComment/starRating": star_rating +"/androidpublisher:v2/UserComment/text": text "/appsactivity:v1/fields": fields "/appsactivity:v1/key": key "/appsactivity:v1/quotaUser": quota_user @@ -10564,34 +10899,6 @@ "/cloudbuild:v1/ListBuildsResponse/nextPageToken": next_page_token "/cloudbuild:v1/ListBuildsResponse/builds": builds "/cloudbuild:v1/ListBuildsResponse/builds/build": build -"/cloudlatencytest:v2/fields": fields -"/cloudlatencytest:v2/key": key -"/cloudlatencytest:v2/quotaUser": quota_user -"/cloudlatencytest:v2/userIp": user_ip -"/cloudlatencytest:v2/AggregatedStats": aggregated_stats -"/cloudlatencytest:v2/AggregatedStats/stats": stats -"/cloudlatencytest:v2/AggregatedStats/stats/stat": stat -"/cloudlatencytest:v2/AggregatedStatsReply": aggregated_stats_reply -"/cloudlatencytest:v2/AggregatedStatsReply/testValue": test_value -"/cloudlatencytest:v2/DoubleValue": double_value -"/cloudlatencytest:v2/DoubleValue/label": label -"/cloudlatencytest:v2/DoubleValue/value": value -"/cloudlatencytest:v2/IntValue": int_value -"/cloudlatencytest:v2/IntValue/label": label -"/cloudlatencytest:v2/IntValue/value": value -"/cloudlatencytest:v2/Stats": stats -"/cloudlatencytest:v2/Stats/doubleValues": double_values -"/cloudlatencytest:v2/Stats/doubleValues/double_value": double_value -"/cloudlatencytest:v2/Stats/intValues": int_values -"/cloudlatencytest:v2/Stats/intValues/int_value": int_value -"/cloudlatencytest:v2/Stats/stringValues": string_values -"/cloudlatencytest:v2/Stats/stringValues/string_value": string_value -"/cloudlatencytest:v2/Stats/time": time -"/cloudlatencytest:v2/StatsReply": stats_reply -"/cloudlatencytest:v2/StatsReply/testValue": test_value -"/cloudlatencytest:v2/StringValue": string_value -"/cloudlatencytest:v2/StringValue/label": label -"/cloudlatencytest:v2/StringValue/value": value "/cloudmonitoring:v2beta2/fields": fields "/cloudmonitoring:v2beta2/key": key "/cloudmonitoring:v2beta2/quotaUser": quota_user @@ -13550,6 +13857,8 @@ "/content:v2/Product": product "/content:v2/Product/additionalImageLinks": additional_image_links "/content:v2/Product/additionalImageLinks/additional_image_link": additional_image_link +"/content:v2/Product/additionalProductTypes": additional_product_types +"/content:v2/Product/additionalProductTypes/additional_product_type": additional_product_type "/content:v2/Product/adult": adult "/content:v2/Product/adwordsGrouping": adwords_grouping "/content:v2/Product/adwordsLabels": adwords_labels @@ -18694,14 +19003,17 @@ "/games:v1/quotaUser": quota_user "/games:v1/userIp": user_ip "/games:v1/games.achievementDefinitions.list": list_achievement_definitions +"/games:v1/games.achievementDefinitions.list/consistencyToken": consistency_token "/games:v1/games.achievementDefinitions.list/language": language "/games:v1/games.achievementDefinitions.list/maxResults": max_results "/games:v1/games.achievementDefinitions.list/pageToken": page_token "/games:v1/games.achievements.increment": increment_achievement "/games:v1/games.achievements.increment/achievementId": achievement_id +"/games:v1/games.achievements.increment/consistencyToken": consistency_token "/games:v1/games.achievements.increment/requestId": request_id "/games:v1/games.achievements.increment/stepsToIncrement": steps_to_increment "/games:v1/games.achievements.list": list_achievements +"/games:v1/games.achievements.list/consistencyToken": consistency_token "/games:v1/games.achievements.list/language": language "/games:v1/games.achievements.list/maxResults": max_results "/games:v1/games.achievements.list/pageToken": page_token @@ -18709,87 +19021,118 @@ "/games:v1/games.achievements.list/state": state "/games:v1/games.achievements.reveal": reveal_achievement "/games:v1/games.achievements.reveal/achievementId": achievement_id +"/games:v1/games.achievements.reveal/consistencyToken": consistency_token "/games:v1/games.achievements.setStepsAtLeast": set_achievement_steps_at_least "/games:v1/games.achievements.setStepsAtLeast/achievementId": achievement_id +"/games:v1/games.achievements.setStepsAtLeast/consistencyToken": consistency_token "/games:v1/games.achievements.setStepsAtLeast/steps": steps "/games:v1/games.achievements.unlock": unlock_achievement "/games:v1/games.achievements.unlock/achievementId": achievement_id +"/games:v1/games.achievements.unlock/consistencyToken": consistency_token +"/games:v1/games.achievements.updateMultiple/consistencyToken": consistency_token "/games:v1/games.applications.get": get_application "/games:v1/games.applications.get/applicationId": application_id +"/games:v1/games.applications.get/consistencyToken": consistency_token "/games:v1/games.applications.get/language": language "/games:v1/games.applications.get/platformType": platform_type "/games:v1/games.applications.played": played_application +"/games:v1/games.applications.played/consistencyToken": consistency_token "/games:v1/games.applications.verify": verify_application "/games:v1/games.applications.verify/applicationId": application_id +"/games:v1/games.applications.verify/consistencyToken": consistency_token "/games:v1/games.events.listByPlayer": list_event_by_player +"/games:v1/games.events.listByPlayer/consistencyToken": consistency_token "/games:v1/games.events.listByPlayer/language": language "/games:v1/games.events.listByPlayer/maxResults": max_results "/games:v1/games.events.listByPlayer/pageToken": page_token +"/games:v1/games.events.listDefinitions/consistencyToken": consistency_token "/games:v1/games.events.listDefinitions/language": language "/games:v1/games.events.listDefinitions/maxResults": max_results "/games:v1/games.events.listDefinitions/pageToken": page_token "/games:v1/games.events.record": record_event +"/games:v1/games.events.record/consistencyToken": consistency_token "/games:v1/games.events.record/language": language "/games:v1/games.leaderboards.get": get_leaderboard +"/games:v1/games.leaderboards.get/consistencyToken": consistency_token "/games:v1/games.leaderboards.get/language": language "/games:v1/games.leaderboards.get/leaderboardId": leaderboard_id "/games:v1/games.leaderboards.list": list_leaderboards +"/games:v1/games.leaderboards.list/consistencyToken": consistency_token "/games:v1/games.leaderboards.list/language": language "/games:v1/games.leaderboards.list/maxResults": max_results "/games:v1/games.leaderboards.list/pageToken": page_token +"/games:v1/games.metagame.getMetagameConfig/consistencyToken": consistency_token "/games:v1/games.metagame.listCategoriesByPlayer": list_metagame_categories_by_player "/games:v1/games.metagame.listCategoriesByPlayer/collection": collection +"/games:v1/games.metagame.listCategoriesByPlayer/consistencyToken": consistency_token "/games:v1/games.metagame.listCategoriesByPlayer/language": language "/games:v1/games.metagame.listCategoriesByPlayer/maxResults": max_results "/games:v1/games.metagame.listCategoriesByPlayer/pageToken": page_token "/games:v1/games.metagame.listCategoriesByPlayer/playerId": player_id "/games:v1/games.players.get": get_player +"/games:v1/games.players.get/consistencyToken": consistency_token "/games:v1/games.players.get/language": language "/games:v1/games.players.get/playerId": player_id "/games:v1/games.players.list": list_players "/games:v1/games.players.list/collection": collection +"/games:v1/games.players.list/consistencyToken": consistency_token "/games:v1/games.players.list/language": language "/games:v1/games.players.list/maxResults": max_results "/games:v1/games.players.list/pageToken": page_token "/games:v1/games.pushtokens.remove": remove_pushtoken +"/games:v1/games.pushtokens.remove/consistencyToken": consistency_token "/games:v1/games.pushtokens.update": update_pushtoken +"/games:v1/games.pushtokens.update/consistencyToken": consistency_token "/games:v1/games.questMilestones.claim": claim_quest_milestone +"/games:v1/games.questMilestones.claim/consistencyToken": consistency_token "/games:v1/games.questMilestones.claim/milestoneId": milestone_id "/games:v1/games.questMilestones.claim/questId": quest_id "/games:v1/games.questMilestones.claim/requestId": request_id "/games:v1/games.quests.accept": accept_quest +"/games:v1/games.quests.accept/consistencyToken": consistency_token "/games:v1/games.quests.accept/language": language "/games:v1/games.quests.accept/questId": quest_id "/games:v1/games.quests.list": list_quests +"/games:v1/games.quests.list/consistencyToken": consistency_token "/games:v1/games.quests.list/language": language "/games:v1/games.quests.list/maxResults": max_results "/games:v1/games.quests.list/pageToken": page_token "/games:v1/games.quests.list/playerId": player_id "/games:v1/games.revisions.check": check_revision "/games:v1/games.revisions.check/clientRevision": client_revision +"/games:v1/games.revisions.check/consistencyToken": consistency_token "/games:v1/games.rooms.create": create_room +"/games:v1/games.rooms.create/consistencyToken": consistency_token "/games:v1/games.rooms.create/language": language "/games:v1/games.rooms.decline": decline_room +"/games:v1/games.rooms.decline/consistencyToken": consistency_token "/games:v1/games.rooms.decline/language": language "/games:v1/games.rooms.decline/roomId": room_id "/games:v1/games.rooms.dismiss": dismiss_room +"/games:v1/games.rooms.dismiss/consistencyToken": consistency_token "/games:v1/games.rooms.dismiss/roomId": room_id "/games:v1/games.rooms.get": get_room +"/games:v1/games.rooms.get/consistencyToken": consistency_token "/games:v1/games.rooms.get/language": language "/games:v1/games.rooms.get/roomId": room_id "/games:v1/games.rooms.join": join_room +"/games:v1/games.rooms.join/consistencyToken": consistency_token "/games:v1/games.rooms.join/language": language "/games:v1/games.rooms.join/roomId": room_id "/games:v1/games.rooms.leave": leave_room +"/games:v1/games.rooms.leave/consistencyToken": consistency_token "/games:v1/games.rooms.leave/language": language "/games:v1/games.rooms.leave/roomId": room_id "/games:v1/games.rooms.list": list_rooms +"/games:v1/games.rooms.list/consistencyToken": consistency_token "/games:v1/games.rooms.list/language": language "/games:v1/games.rooms.list/maxResults": max_results "/games:v1/games.rooms.list/pageToken": page_token +"/games:v1/games.rooms.reportStatus/consistencyToken": consistency_token "/games:v1/games.rooms.reportStatus/language": language "/games:v1/games.rooms.reportStatus/roomId": room_id "/games:v1/games.scores.get": get_score +"/games:v1/games.scores.get/consistencyToken": consistency_token "/games:v1/games.scores.get/includeRankType": include_rank_type "/games:v1/games.scores.get/language": language "/games:v1/games.scores.get/leaderboardId": leaderboard_id @@ -18799,6 +19142,7 @@ "/games:v1/games.scores.get/timeSpan": time_span "/games:v1/games.scores.list": list_scores "/games:v1/games.scores.list/collection": collection +"/games:v1/games.scores.list/consistencyToken": consistency_token "/games:v1/games.scores.list/language": language "/games:v1/games.scores.list/leaderboardId": leaderboard_id "/games:v1/games.scores.list/maxResults": max_results @@ -18806,6 +19150,7 @@ "/games:v1/games.scores.list/timeSpan": time_span "/games:v1/games.scores.listWindow": list_score_window "/games:v1/games.scores.listWindow/collection": collection +"/games:v1/games.scores.listWindow/consistencyToken": consistency_token "/games:v1/games.scores.listWindow/language": language "/games:v1/games.scores.listWindow/leaderboardId": leaderboard_id "/games:v1/games.scores.listWindow/maxResults": max_results @@ -18814,62 +19159,79 @@ "/games:v1/games.scores.listWindow/returnTopIfAbsent": return_top_if_absent "/games:v1/games.scores.listWindow/timeSpan": time_span "/games:v1/games.scores.submit": submit_score +"/games:v1/games.scores.submit/consistencyToken": consistency_token "/games:v1/games.scores.submit/language": language "/games:v1/games.scores.submit/leaderboardId": leaderboard_id "/games:v1/games.scores.submit/score": score "/games:v1/games.scores.submit/scoreTag": score_tag "/games:v1/games.scores.submitMultiple": submit_score_multiple +"/games:v1/games.scores.submitMultiple/consistencyToken": consistency_token "/games:v1/games.scores.submitMultiple/language": language "/games:v1/games.snapshots.get": get_snapshot +"/games:v1/games.snapshots.get/consistencyToken": consistency_token "/games:v1/games.snapshots.get/language": language "/games:v1/games.snapshots.get/snapshotId": snapshot_id "/games:v1/games.snapshots.list": list_snapshots +"/games:v1/games.snapshots.list/consistencyToken": consistency_token "/games:v1/games.snapshots.list/language": language "/games:v1/games.snapshots.list/maxResults": max_results "/games:v1/games.snapshots.list/pageToken": page_token "/games:v1/games.snapshots.list/playerId": player_id "/games:v1/games.turnBasedMatches.cancel": cancel_turn_based_match +"/games:v1/games.turnBasedMatches.cancel/consistencyToken": consistency_token "/games:v1/games.turnBasedMatches.cancel/matchId": match_id "/games:v1/games.turnBasedMatches.create": create_turn_based_match +"/games:v1/games.turnBasedMatches.create/consistencyToken": consistency_token "/games:v1/games.turnBasedMatches.create/language": language "/games:v1/games.turnBasedMatches.decline": decline_turn_based_match +"/games:v1/games.turnBasedMatches.decline/consistencyToken": consistency_token "/games:v1/games.turnBasedMatches.decline/language": language "/games:v1/games.turnBasedMatches.decline/matchId": match_id "/games:v1/games.turnBasedMatches.dismiss": dismiss_turn_based_match +"/games:v1/games.turnBasedMatches.dismiss/consistencyToken": consistency_token "/games:v1/games.turnBasedMatches.dismiss/matchId": match_id "/games:v1/games.turnBasedMatches.finish": finish_turn_based_match +"/games:v1/games.turnBasedMatches.finish/consistencyToken": consistency_token "/games:v1/games.turnBasedMatches.finish/language": language "/games:v1/games.turnBasedMatches.finish/matchId": match_id "/games:v1/games.turnBasedMatches.get": get_turn_based_match +"/games:v1/games.turnBasedMatches.get/consistencyToken": consistency_token "/games:v1/games.turnBasedMatches.get/includeMatchData": include_match_data "/games:v1/games.turnBasedMatches.get/language": language "/games:v1/games.turnBasedMatches.get/matchId": match_id "/games:v1/games.turnBasedMatches.join": join_turn_based_match +"/games:v1/games.turnBasedMatches.join/consistencyToken": consistency_token "/games:v1/games.turnBasedMatches.join/language": language "/games:v1/games.turnBasedMatches.join/matchId": match_id "/games:v1/games.turnBasedMatches.leave": leave_turn_based_match +"/games:v1/games.turnBasedMatches.leave/consistencyToken": consistency_token "/games:v1/games.turnBasedMatches.leave/language": language "/games:v1/games.turnBasedMatches.leave/matchId": match_id +"/games:v1/games.turnBasedMatches.leaveTurn/consistencyToken": consistency_token "/games:v1/games.turnBasedMatches.leaveTurn/language": language "/games:v1/games.turnBasedMatches.leaveTurn/matchId": match_id "/games:v1/games.turnBasedMatches.leaveTurn/matchVersion": match_version "/games:v1/games.turnBasedMatches.leaveTurn/pendingParticipantId": pending_participant_id "/games:v1/games.turnBasedMatches.list": list_turn_based_matches +"/games:v1/games.turnBasedMatches.list/consistencyToken": consistency_token "/games:v1/games.turnBasedMatches.list/includeMatchData": include_match_data "/games:v1/games.turnBasedMatches.list/language": language "/games:v1/games.turnBasedMatches.list/maxCompletedMatches": max_completed_matches "/games:v1/games.turnBasedMatches.list/maxResults": max_results "/games:v1/games.turnBasedMatches.list/pageToken": page_token "/games:v1/games.turnBasedMatches.rematch": rematch_turn_based_match +"/games:v1/games.turnBasedMatches.rematch/consistencyToken": consistency_token "/games:v1/games.turnBasedMatches.rematch/language": language "/games:v1/games.turnBasedMatches.rematch/matchId": match_id "/games:v1/games.turnBasedMatches.rematch/requestId": request_id "/games:v1/games.turnBasedMatches.sync": sync_turn_based_match +"/games:v1/games.turnBasedMatches.sync/consistencyToken": consistency_token "/games:v1/games.turnBasedMatches.sync/includeMatchData": include_match_data "/games:v1/games.turnBasedMatches.sync/language": language "/games:v1/games.turnBasedMatches.sync/maxCompletedMatches": max_completed_matches "/games:v1/games.turnBasedMatches.sync/maxResults": max_results "/games:v1/games.turnBasedMatches.sync/pageToken": page_token +"/games:v1/games.turnBasedMatches.takeTurn/consistencyToken": consistency_token "/games:v1/games.turnBasedMatches.takeTurn/language": language "/games:v1/games.turnBasedMatches.takeTurn/matchId": match_id "/games:v1/AchievementDefinition": achievement_definition @@ -20295,6 +20657,44 @@ "/classroom:v1/classroom.courses.students.list/courseId": course_id "/classroom:v1/classroom.courses.students.list/pageSize": page_size "/classroom:v1/classroom.courses.students.list/pageToken": page_token +"/classroom:v1/classroom.courses.courseWork.create/courseId": course_id +"/classroom:v1/classroom.courses.courseWork.get/courseId": course_id +"/classroom:v1/classroom.courses.courseWork.get/id": id +"/classroom:v1/classroom.courses.courseWork.list/courseId": course_id +"/classroom:v1/classroom.courses.courseWork.list/courseWorkStates": course_work_states +"/classroom:v1/classroom.courses.courseWork.list/orderBy": order_by +"/classroom:v1/classroom.courses.courseWork.list/pageSize": page_size +"/classroom:v1/classroom.courses.courseWork.list/pageToken": page_token +"/classroom:v1/classroom.courses.courseWork.studentSubmissions.get/courseId": course_id +"/classroom:v1/classroom.courses.courseWork.studentSubmissions.get/courseWorkId": course_work_id +"/classroom:v1/classroom.courses.courseWork.studentSubmissions.get/id": id +"/classroom:v1/classroom.courses.courseWork.studentSubmissions.patch/courseId": course_id +"/classroom:v1/classroom.courses.courseWork.studentSubmissions.patch/courseWorkId": course_work_id +"/classroom:v1/classroom.courses.courseWork.studentSubmissions.patch/id": id +"/classroom:v1/classroom.courses.courseWork.studentSubmissions.patch/updateMask": update_mask +"/classroom:v1/classroom.courses.courseWork.studentSubmissions.list/courseId": course_id +"/classroom:v1/classroom.courses.courseWork.studentSubmissions.list/courseWorkId": course_work_id +"/classroom:v1/classroom.courses.courseWork.studentSubmissions.list/userId": user_id +"/classroom:v1/classroom.courses.courseWork.studentSubmissions.list/states": states +"/classroom:v1/classroom.courses.courseWork.studentSubmissions.list/late": late +"/classroom:v1/classroom.courses.courseWork.studentSubmissions.list/pageSize": page_size +"/classroom:v1/classroom.courses.courseWork.studentSubmissions.list/pageToken": page_token +"/classroom:v1/classroom.courses.courseWork.studentSubmissions.turnIn": turn_in_student_submission +"/classroom:v1/classroom.courses.courseWork.studentSubmissions.turnIn/courseId": course_id +"/classroom:v1/classroom.courses.courseWork.studentSubmissions.turnIn/courseWorkId": course_work_id +"/classroom:v1/classroom.courses.courseWork.studentSubmissions.turnIn/id": id +"/classroom:v1/classroom.courses.courseWork.studentSubmissions.reclaim": reclaim_student_submission +"/classroom:v1/classroom.courses.courseWork.studentSubmissions.reclaim/courseId": course_id +"/classroom:v1/classroom.courses.courseWork.studentSubmissions.reclaim/courseWorkId": course_work_id +"/classroom:v1/classroom.courses.courseWork.studentSubmissions.reclaim/id": id +"/classroom:v1/classroom.courses.courseWork.studentSubmissions.return": return_student_submission +"/classroom:v1/classroom.courses.courseWork.studentSubmissions.return/courseId": course_id +"/classroom:v1/classroom.courses.courseWork.studentSubmissions.return/courseWorkId": course_work_id +"/classroom:v1/classroom.courses.courseWork.studentSubmissions.return/id": id +"/classroom:v1/classroom.courses.courseWork.studentSubmissions.modifyAttachments": modify_student_submission_attachments +"/classroom:v1/classroom.courses.courseWork.studentSubmissions.modifyAttachments/courseId": course_id +"/classroom:v1/classroom.courses.courseWork.studentSubmissions.modifyAttachments/courseWorkId": course_work_id +"/classroom:v1/classroom.courses.courseWork.studentSubmissions.modifyAttachments/id": id "/classroom:v1/classroom.invitations.create": create_invitation "/classroom:v1/classroom.invitations.get": get_invitation "/classroom:v1/classroom.invitations.get/id": id @@ -20322,6 +20722,43 @@ "/classroom:v1/Course/enrollmentCode": enrollment_code "/classroom:v1/Course/courseState": course_state "/classroom:v1/Course/alternateLink": alternate_link +"/classroom:v1/Course/teacherGroupEmail": teacher_group_email +"/classroom:v1/Course/courseGroupEmail": course_group_email +"/classroom:v1/Course/teacherFolder": teacher_folder +"/classroom:v1/Course/courseMaterialSets": course_material_sets +"/classroom:v1/Course/courseMaterialSets/course_material_set": course_material_set +"/classroom:v1/DriveFolder": drive_folder +"/classroom:v1/DriveFolder/id": id +"/classroom:v1/DriveFolder/title": title +"/classroom:v1/DriveFolder/alternateLink": alternate_link +"/classroom:v1/CourseMaterialSet": course_material_set +"/classroom:v1/CourseMaterialSet/title": title +"/classroom:v1/CourseMaterialSet/materials": materials +"/classroom:v1/CourseMaterialSet/materials/material": material +"/classroom:v1/CourseMaterial": course_material +"/classroom:v1/CourseMaterial/driveFile": drive_file +"/classroom:v1/CourseMaterial/youTubeVideo": you_tube_video +"/classroom:v1/CourseMaterial/link": link +"/classroom:v1/CourseMaterial/form": form +"/classroom:v1/DriveFile": drive_file +"/classroom:v1/DriveFile/id": id +"/classroom:v1/DriveFile/title": title +"/classroom:v1/DriveFile/alternateLink": alternate_link +"/classroom:v1/DriveFile/thumbnailUrl": thumbnail_url +"/classroom:v1/YouTubeVideo": you_tube_video +"/classroom:v1/YouTubeVideo/id": id +"/classroom:v1/YouTubeVideo/title": title +"/classroom:v1/YouTubeVideo/alternateLink": alternate_link +"/classroom:v1/YouTubeVideo/thumbnailUrl": thumbnail_url +"/classroom:v1/Link": link +"/classroom:v1/Link/url": url +"/classroom:v1/Link/title": title +"/classroom:v1/Link/thumbnailUrl": thumbnail_url +"/classroom:v1/Form": form +"/classroom:v1/Form/formUrl": form_url +"/classroom:v1/Form/responseUrl": response_url +"/classroom:v1/Form/title": title +"/classroom:v1/Form/thumbnailUrl": thumbnail_url "/classroom:v1/Empty": empty "/classroom:v1/ListCoursesResponse": list_courses_response "/classroom:v1/ListCoursesResponse/courses": courses @@ -20367,10 +20804,95 @@ "/classroom:v1/Student/courseId": course_id "/classroom:v1/Student/userId": user_id "/classroom:v1/Student/profile": profile +"/classroom:v1/Student/studentWorkFolder": student_work_folder "/classroom:v1/ListStudentsResponse": list_students_response "/classroom:v1/ListStudentsResponse/students": students "/classroom:v1/ListStudentsResponse/students/student": student "/classroom:v1/ListStudentsResponse/nextPageToken": next_page_token +"/classroom:v1/CourseWork": course_work +"/classroom:v1/CourseWork/courseId": course_id +"/classroom:v1/CourseWork/id": id +"/classroom:v1/CourseWork/title": title +"/classroom:v1/CourseWork/description": description +"/classroom:v1/CourseWork/materials": materials +"/classroom:v1/CourseWork/materials/material": material +"/classroom:v1/CourseWork/state": state +"/classroom:v1/CourseWork/alternateLink": alternate_link +"/classroom:v1/CourseWork/creationTime": creation_time +"/classroom:v1/CourseWork/updateTime": update_time +"/classroom:v1/CourseWork/dueDate": due_date +"/classroom:v1/CourseWork/dueTime": due_time +"/classroom:v1/CourseWork/maxPoints": max_points +"/classroom:v1/CourseWork/workType": work_type +"/classroom:v1/CourseWork/associatedWithDeveloper": associated_with_developer +"/classroom:v1/CourseWork/submissionModificationMode": submission_modification_mode +"/classroom:v1/CourseWork/assignment": assignment +"/classroom:v1/CourseWork/multipleChoiceQuestion": multiple_choice_question +"/classroom:v1/Material": material +"/classroom:v1/Material/driveFile": drive_file +"/classroom:v1/Material/youtubeVideo": youtube_video +"/classroom:v1/Material/link": link +"/classroom:v1/Material/form": form +"/classroom:v1/SharedDriveFile": shared_drive_file +"/classroom:v1/SharedDriveFile/driveFile": drive_file +"/classroom:v1/SharedDriveFile/shareMode": share_mode +"/classroom:v1/Date": date +"/classroom:v1/Date/year": year +"/classroom:v1/Date/month": month +"/classroom:v1/Date/day": day +"/classroom:v1/TimeOfDay": time_of_day +"/classroom:v1/TimeOfDay/hours": hours +"/classroom:v1/TimeOfDay/minutes": minutes +"/classroom:v1/TimeOfDay/seconds": seconds +"/classroom:v1/TimeOfDay/nanos": nanos +"/classroom:v1/Assignment": assignment +"/classroom:v1/Assignment/studentWorkFolder": student_work_folder +"/classroom:v1/MultipleChoiceQuestion": multiple_choice_question +"/classroom:v1/MultipleChoiceQuestion/choices": choices +"/classroom:v1/MultipleChoiceQuestion/choices/choice": choice +"/classroom:v1/ListCourseWorkResponse": list_course_work_response +"/classroom:v1/ListCourseWorkResponse/courseWork": course_work +"/classroom:v1/ListCourseWorkResponse/courseWork/course_work": course_work +"/classroom:v1/ListCourseWorkResponse/nextPageToken": next_page_token +"/classroom:v1/StudentSubmission": student_submission +"/classroom:v1/StudentSubmission/courseId": course_id +"/classroom:v1/StudentSubmission/courseWorkId": course_work_id +"/classroom:v1/StudentSubmission/id": id +"/classroom:v1/StudentSubmission/userId": user_id +"/classroom:v1/StudentSubmission/creationTime": creation_time +"/classroom:v1/StudentSubmission/updateTime": update_time +"/classroom:v1/StudentSubmission/state": state +"/classroom:v1/StudentSubmission/late": late +"/classroom:v1/StudentSubmission/draftGrade": draft_grade +"/classroom:v1/StudentSubmission/assignedGrade": assigned_grade +"/classroom:v1/StudentSubmission/alternateLink": alternate_link +"/classroom:v1/StudentSubmission/courseWorkType": course_work_type +"/classroom:v1/StudentSubmission/associatedWithDeveloper": associated_with_developer +"/classroom:v1/StudentSubmission/assignmentSubmission": assignment_submission +"/classroom:v1/StudentSubmission/shortAnswerSubmission": short_answer_submission +"/classroom:v1/StudentSubmission/multipleChoiceSubmission": multiple_choice_submission +"/classroom:v1/AssignmentSubmission": assignment_submission +"/classroom:v1/AssignmentSubmission/attachments": attachments +"/classroom:v1/AssignmentSubmission/attachments/attachment": attachment +"/classroom:v1/Attachment": attachment +"/classroom:v1/Attachment/driveFile": drive_file +"/classroom:v1/Attachment/youTubeVideo": you_tube_video +"/classroom:v1/Attachment/link": link +"/classroom:v1/Attachment/form": form +"/classroom:v1/ShortAnswerSubmission": short_answer_submission +"/classroom:v1/ShortAnswerSubmission/answer": answer +"/classroom:v1/MultipleChoiceSubmission": multiple_choice_submission +"/classroom:v1/MultipleChoiceSubmission/answer": answer +"/classroom:v1/ListStudentSubmissionsResponse": list_student_submissions_response +"/classroom:v1/ListStudentSubmissionsResponse/studentSubmissions": student_submissions +"/classroom:v1/ListStudentSubmissionsResponse/studentSubmissions/student_submission": student_submission +"/classroom:v1/ListStudentSubmissionsResponse/nextPageToken": next_page_token +"/classroom:v1/TurnInStudentSubmissionRequest": turn_in_student_submission_request +"/classroom:v1/ReclaimStudentSubmissionRequest": reclaim_student_submission_request +"/classroom:v1/ReturnStudentSubmissionRequest": return_student_submission_request +"/classroom:v1/ModifyAttachmentsRequest": modify_attachments_request +"/classroom:v1/ModifyAttachmentsRequest/addAttachments": add_attachments +"/classroom:v1/ModifyAttachmentsRequest/addAttachments/add_attachment": add_attachment "/cloudbilling:v1/fields": fields "/cloudbilling:v1/key": key "/cloudbilling:v1/quotaUser": quota_user @@ -20636,6 +21158,8 @@ "/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.delete/projectId": project_id "/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.undelete": undelete_project "/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.undelete/projectId": project_id +"/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.getAncestry": get_project_ancestry +"/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.getAncestry/projectId": project_id "/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.getIamPolicy": get_project_iam_policy "/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.getIamPolicy/resource": resource "/cloudresourcemanager:v1beta1/cloudresourcemanager.projects.setIamPolicy": set_project_iam_policy @@ -20674,6 +21198,12 @@ "/cloudresourcemanager:v1beta1/ListProjectsResponse/nextPageToken": next_page_token "/cloudresourcemanager:v1beta1/Empty": empty "/cloudresourcemanager:v1beta1/UndeleteProjectRequest": undelete_project_request +"/cloudresourcemanager:v1beta1/GetAncestryRequest": get_ancestry_request +"/cloudresourcemanager:v1beta1/GetAncestryResponse": get_ancestry_response +"/cloudresourcemanager:v1beta1/GetAncestryResponse/ancestor": ancestor +"/cloudresourcemanager:v1beta1/GetAncestryResponse/ancestor/ancestor": ancestor +"/cloudresourcemanager:v1beta1/Ancestor": ancestor +"/cloudresourcemanager:v1beta1/Ancestor/resourceId": resource_id "/cloudresourcemanager:v1beta1/GetIamPolicyRequest": get_iam_policy_request "/cloudresourcemanager:v1beta1/Policy": policy "/cloudresourcemanager:v1beta1/Policy/version": version @@ -22918,12 +23448,14 @@ "/youtubereporting:v1/ReportType": report_type "/youtubereporting:v1/ReportType/id": id "/youtubereporting:v1/ReportType/name": name +"/youtubereporting:v1/ReportType/deprecateTime": deprecate_time "/youtubereporting:v1/ReportType/systemManaged": system_managed "/youtubereporting:v1/Job": job "/youtubereporting:v1/Job/id": id "/youtubereporting:v1/Job/reportTypeId": report_type_id "/youtubereporting:v1/Job/name": name "/youtubereporting:v1/Job/createTime": create_time +"/youtubereporting:v1/Job/expireTime": expire_time "/youtubereporting:v1/Job/systemManaged": system_managed "/youtubereporting:v1/ListJobsResponse": list_jobs_response "/youtubereporting:v1/ListJobsResponse/jobs": jobs @@ -22937,6 +23469,7 @@ "/youtubereporting:v1/Report": report "/youtubereporting:v1/Report/id": id "/youtubereporting:v1/Report/jobId": job_id +"/youtubereporting:v1/Report/jobExpireTime": job_expire_time "/youtubereporting:v1/Report/startTime": start_time "/youtubereporting:v1/Report/endTime": end_time "/youtubereporting:v1/Report/createTime": create_time @@ -23087,6 +23620,7 @@ "/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyAssertionRequest/returnRefreshToken": return_refresh_token "/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyAssertionRequest/returnSecureToken": return_secure_token "/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyAssertionRequest/sessionId": session_id +"/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyCustomTokenRequest/delegatedProjectNumber": delegated_project_number "/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyCustomTokenRequest/instanceId": instance_id "/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyCustomTokenRequest/returnSecureToken": return_secure_token "/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyCustomTokenRequest/token": token @@ -27100,8 +27634,8 @@ "/vision:v1/FaceAnnotation/surpriseLikelihood": surprise_likelihood "/vision:v1/FaceAnnotation/angerLikelihood": anger_likelihood "/vision:v1/FaceAnnotation/headwearLikelihood": headwear_likelihood -"/vision:v1/FaceAnnotation/boundingPoly": bounding_poly "/vision:v1/FaceAnnotation/panAngle": pan_angle +"/vision:v1/FaceAnnotation/boundingPoly": bounding_poly "/vision:v1/FaceAnnotation/landmarks": landmarks "/vision:v1/FaceAnnotation/landmarks/landmark": landmark "/vision:v1/FaceAnnotation/blurredLikelihood": blurred_likelihood @@ -27121,9 +27655,9 @@ "/vision:v1/Landmark/position": position "/vision:v1/Landmark/type": type "/vision:v1/ImageContext": image_context +"/vision:v1/ImageContext/latLongRect": lat_long_rect "/vision:v1/ImageContext/languageHints": language_hints "/vision:v1/ImageContext/languageHints/language_hint": language_hint -"/vision:v1/ImageContext/latLongRect": lat_long_rect "/vision:v1/BatchAnnotateImagesRequest": batch_annotate_images_request "/vision:v1/BatchAnnotateImagesRequest/requests": requests "/vision:v1/BatchAnnotateImagesRequest/requests/request": request @@ -27151,8 +27685,8 @@ "/vision:v1/LocationInfo/latLng": lat_lng "/vision:v1/SafeSearchAnnotation": safe_search_annotation "/vision:v1/SafeSearchAnnotation/medical": medical -"/vision:v1/SafeSearchAnnotation/violence": violence "/vision:v1/SafeSearchAnnotation/spoof": spoof +"/vision:v1/SafeSearchAnnotation/violence": violence "/vision:v1/SafeSearchAnnotation/adult": adult "/vision:v1/Image": image "/vision:v1/Image/source": source @@ -27161,20 +27695,20 @@ "/vision:v1/DominantColorsAnnotation/colors": colors "/vision:v1/DominantColorsAnnotation/colors/color": color "/vision:v1/Feature": feature -"/vision:v1/Feature/maxResults": max_results "/vision:v1/Feature/type": type +"/vision:v1/Feature/maxResults": max_results "/vision:v1/BatchAnnotateImagesResponse": batch_annotate_images_response "/vision:v1/BatchAnnotateImagesResponse/responses": responses "/vision:v1/BatchAnnotateImagesResponse/responses/response": response "/vision:v1/ImageProperties": image_properties "/vision:v1/ImageProperties/dominantColors": dominant_colors +"/vision:v1/LatLng": lat_lng +"/vision:v1/LatLng/latitude": latitude +"/vision:v1/LatLng/longitude": longitude "/vision:v1/Position": position "/vision:v1/Position/y": y -"/vision:v1/Position/z": z "/vision:v1/Position/x": x -"/vision:v1/LatLng": lat_lng -"/vision:v1/LatLng/longitude": longitude -"/vision:v1/LatLng/latitude": latitude +"/vision:v1/Position/z": z "/webmasters:v3/fields": fields "/webmasters:v3/key": key "/webmasters:v3/quotaUser": quota_user diff --git a/generated/google/apis/adsense_v1_4.rb b/generated/google/apis/adsense_v1_4.rb index 45fc57372..8ad83dc10 100644 --- a/generated/google/apis/adsense_v1_4.rb +++ b/generated/google/apis/adsense_v1_4.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/adsense/management/ module AdsenseV1_4 VERSION = 'V1_4' - REVISION = '20160507' + REVISION = '20160523' # View and manage your AdSense data AUTH_ADSENSE = 'https://www.googleapis.com/auth/adsense' diff --git a/generated/google/apis/adsensehost_v4_1.rb b/generated/google/apis/adsensehost_v4_1.rb index 7d5830f65..32f574a53 100644 --- a/generated/google/apis/adsensehost_v4_1.rb +++ b/generated/google/apis/adsensehost_v4_1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/adsense/host/ module AdsensehostV4_1 VERSION = 'V4_1' - REVISION = '20160507' + REVISION = '20160523' # View and manage your AdSense host data and associated accounts AUTH_ADSENSEHOST = 'https://www.googleapis.com/auth/adsensehost' diff --git a/generated/google/apis/androidenterprise_v1.rb b/generated/google/apis/androidenterprise_v1.rb index 91934db6b..a4214cee0 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 = '20160511' + REVISION = '20160519' # Manage corporate Android devices AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise' diff --git a/generated/google/apis/androidpublisher_v2.rb b/generated/google/apis/androidpublisher_v2.rb index 9af343c0d..0aef51e19 100644 --- a/generated/google/apis/androidpublisher_v2.rb +++ b/generated/google/apis/androidpublisher_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/android-publisher module AndroidpublisherV2 VERSION = 'V2' - REVISION = '20160507' + REVISION = '20160516' # View and manage your Google Play Developer account AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher' diff --git a/generated/google/apis/androidpublisher_v2/classes.rb b/generated/google/apis/androidpublisher_v2/classes.rb index 62f8c22d4..bde3a7822 100644 --- a/generated/google/apis/androidpublisher_v2/classes.rb +++ b/generated/google/apis/androidpublisher_v2/classes.rb @@ -252,6 +252,56 @@ module Google end end + # + class Comment + include Google::Apis::Core::Hashable + + # A comment from a developer. + # Corresponds to the JSON property `developerComment` + # @return [Google::Apis::AndroidpublisherV2::DeveloperComment] + attr_accessor :developer_comment + + # A comment from a user. + # Corresponds to the JSON property `userComment` + # @return [Google::Apis::AndroidpublisherV2::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 + + # + 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::AndroidpublisherV2::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 + # An Entitlement resource indicates a user's current entitlement to an inapp # item or subscription. class Entitlement @@ -1159,6 +1209,132 @@ module Google 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::AndroidpublisherV2::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::AndroidpublisherV2::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::AndroidpublisherV2::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::AndroidpublisherV2::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 @@ -1372,6 +1548,31 @@ module Google 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 [String] + 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 @@ -1453,6 +1654,73 @@ module Google @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 + + # The last time at which this comment was updated. + # Corresponds to the JSON property `lastModified` + # @return [Google::Apis::AndroidpublisherV2::Timestamp] + attr_accessor :last_modified + + # 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 + + 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) + @last_modified = args[:last_modified] if args.key?(:last_modified) + @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) + end + end end end end diff --git a/generated/google/apis/androidpublisher_v2/representations.rb b/generated/google/apis/androidpublisher_v2/representations.rb index 4b148d48d..7576c4912 100644 --- a/generated/google/apis/androidpublisher_v2/representations.rb +++ b/generated/google/apis/androidpublisher_v2/representations.rb @@ -76,6 +76,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Comment + 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 Entitlement class Representation < Google::Apis::Core::JsonRepresentation; end @@ -244,6 +256,36 @@ module Google 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 @@ -280,6 +322,12 @@ module Google 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 @@ -298,6 +346,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class UserComment + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Apk # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -374,6 +428,25 @@ module Google end end + class Comment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :developer_comment, as: 'developerComment', class: Google::Apis::AndroidpublisherV2::DeveloperComment, decorator: Google::Apis::AndroidpublisherV2::DeveloperComment::Representation + + property :user_comment, as: 'userComment', class: Google::Apis::AndroidpublisherV2::UserComment, decorator: Google::Apis::AndroidpublisherV2::UserComment::Representation + + end + end + + class DeveloperComment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :last_modified, as: 'lastModified', class: Google::Apis::AndroidpublisherV2::Timestamp, decorator: Google::Apis::AndroidpublisherV2::Timestamp::Representation + + property :text, as: 'text' + end + end + class Entitlement # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -655,6 +728,52 @@ module Google end end + class Review + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :author_name, as: 'authorName' + collection :comments, as: 'comments', class: Google::Apis::AndroidpublisherV2::Comment, decorator: Google::Apis::AndroidpublisherV2::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::AndroidpublisherV2::Timestamp, decorator: Google::Apis::AndroidpublisherV2::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::AndroidpublisherV2::PageInfo, decorator: Google::Apis::AndroidpublisherV2::PageInfo::Representation + + collection :reviews, as: 'reviews', class: Google::Apis::AndroidpublisherV2::Review, decorator: Google::Apis::AndroidpublisherV2::Review::Representation + + property :token_pagination, as: 'tokenPagination', class: Google::Apis::AndroidpublisherV2::TokenPagination, decorator: Google::Apis::AndroidpublisherV2::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::AndroidpublisherV2::ReviewReplyResult, decorator: Google::Apis::AndroidpublisherV2::ReviewReplyResult::Representation + + end + end + class Season # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -714,6 +833,14 @@ module Google end end + class Timestamp + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :nanos, as: 'nanos' + property :seconds, as: 'seconds' + end + end + class TokenPagination # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -739,6 +866,21 @@ module Google 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 :last_modified, as: 'lastModified', class: Google::Apis::AndroidpublisherV2::Timestamp, decorator: Google::Apis::AndroidpublisherV2::Timestamp::Representation + + property :reviewer_language, as: 'reviewerLanguage' + property :star_rating, as: 'starRating' + property :text, as: 'text' + end + end end end end diff --git a/generated/google/apis/androidpublisher_v2/service.rb b/generated/google/apis/androidpublisher_v2/service.rb index 519a5c92d..2f1048b0d 100644 --- a/generated/google/apis/androidpublisher_v2/service.rb +++ b/generated/google/apis/androidpublisher_v2/service.rb @@ -2324,6 +2324,127 @@ module Google 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] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AndroidpublisherV2::Review] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AndroidpublisherV2::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, 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::AndroidpublisherV2::Review::Representation + command.response_class = Google::Apis::AndroidpublisherV2::Review + 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 + + # Returns a list of reviews. + # @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] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AndroidpublisherV2::ReviewsListResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AndroidpublisherV2::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, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{packageName}/reviews', options) + command.response_representation = Google::Apis::AndroidpublisherV2::ReviewsListResponse::Representation + command.response_class = Google::Apis::AndroidpublisherV2::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['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::AndroidpublisherV2::ReviewsReplyRequest] reviews_reply_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AndroidpublisherV2::ReviewsReplyResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AndroidpublisherV2::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::AndroidpublisherV2::ReviewsReplyRequest::Representation + command.request_object = reviews_reply_request_object + command.response_representation = Google::Apis::AndroidpublisherV2::ReviewsReplyResponse::Representation + command.response_class = Google::Apis::AndroidpublisherV2::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 diff --git a/generated/google/apis/appstate_v1.rb b/generated/google/apis/appstate_v1.rb index 6a9e47d49..e2b8f0899 100644 --- a/generated/google/apis/appstate_v1.rb +++ b/generated/google/apis/appstate_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/games/services/web/api/states module AppstateV1 VERSION = 'V1' - REVISION = '20160509' + REVISION = '20160519' # View and manage your data for this application AUTH_APPSTATE = 'https://www.googleapis.com/auth/appstate' diff --git a/generated/google/apis/calendar_v3.rb b/generated/google/apis/calendar_v3.rb index b6eaa9372..deae89757 100644 --- a/generated/google/apis/calendar_v3.rb +++ b/generated/google/apis/calendar_v3.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/google-apps/calendar/firstapp module CalendarV3 VERSION = 'V3' - REVISION = '20160510' + REVISION = '20160517' # Manage your calendars AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar' diff --git a/generated/google/apis/classroom_v1.rb b/generated/google/apis/classroom_v1.rb index 04aecaebc..a656baebe 100644 --- a/generated/google/apis/classroom_v1.rb +++ b/generated/google/apis/classroom_v1.rb @@ -25,7 +25,10 @@ module Google # @see https://developers.google.com/classroom/ module ClassroomV1 VERSION = 'V1' - REVISION = '20160428' + REVISION = '20160517' + + # View instructions for teacher-assigned work in your Google Classroom classes + AUTH_CLASSROOM_COURSE_WORK_READONLY = 'https://www.googleapis.com/auth/classroom.course-work.readonly' # Manage your Google Classroom classes AUTH_CLASSROOM_COURSES = 'https://www.googleapis.com/auth/classroom.courses' @@ -33,6 +36,18 @@ module Google # View your Google Classroom classes AUTH_CLASSROOM_COURSES_READONLY = 'https://www.googleapis.com/auth/classroom.courses.readonly' + # Manage your course work and view your grades in Google Classroom + AUTH_CLASSROOM_COURSEWORK_ME = 'https://www.googleapis.com/auth/classroom.coursework.me' + + # View your course work and grades in Google Classroom + AUTH_CLASSROOM_COURSEWORK_ME_READONLY = 'https://www.googleapis.com/auth/classroom.coursework.me.readonly' + + # Manage course work and grades for students in the Google Classroom classes you teach and view the course work and grades for classes you administer + AUTH_CLASSROOM_COURSEWORK_STUDENTS = 'https://www.googleapis.com/auth/classroom.coursework.students' + + # View course work and grades for students in the Google Classroom classes you teach or administer + AUTH_CLASSROOM_COURSEWORK_STUDENTS_READONLY = 'https://www.googleapis.com/auth/classroom.coursework.students.readonly' + # View the email addresses of people in your classes AUTH_CLASSROOM_PROFILE_EMAILS = 'https://www.googleapis.com/auth/classroom.profile.emails' @@ -44,6 +59,12 @@ module Google # View your Google Classroom class rosters AUTH_CLASSROOM_ROSTERS_READONLY = 'https://www.googleapis.com/auth/classroom.rosters.readonly' + + # View your course work and grades in Google Classroom + AUTH_CLASSROOM_STUDENT_SUBMISSIONS_ME_READONLY = 'https://www.googleapis.com/auth/classroom.student-submissions.me.readonly' + + # View course work and grades for students in the Google Classroom classes you teach or administer + AUTH_CLASSROOM_STUDENT_SUBMISSIONS_STUDENTS_READONLY = 'https://www.googleapis.com/auth/classroom.student-submissions.students.readonly' end end end diff --git a/generated/google/apis/classroom_v1/classes.rb b/generated/google/apis/classroom_v1/classes.rb index cd9bbc572..4155a8cd2 100644 --- a/generated/google/apis/classroom_v1/classes.rb +++ b/generated/google/apis/classroom_v1/classes.rb @@ -30,7 +30,7 @@ module Google # may optionally set this identifier to an alias string in the request to create # a corresponding alias. The `id` is still assigned by Classroom and cannot be # updated after the course is created. Specifying this field in a course update - # mask will result in an error. + # mask results in an error. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id @@ -72,26 +72,26 @@ module Google # create course request, this field is required. The identifier can be one of # the following: * the numeric identifier for the user * the email address of # the user * the string literal `"me"`, indicating the requesting user This must - # be set in a create request. Specifying this field in a course update mask will - # result in an `INVALID_ARGUMENT` error. + # be set in a create request. Specifying this field in a course update mask + # results in an `INVALID_ARGUMENT` error. # Corresponds to the JSON property `ownerId` # @return [String] attr_accessor :owner_id # Creation time of the course. Specifying this field in a course update mask - # will result in an error. Read-only. + # results in an error. Read-only. # Corresponds to the JSON property `creationTime` # @return [String] attr_accessor :creation_time # Time of the most recent update to this course. Specifying this field in a - # course update mask will result in an error. Read-only. + # course update mask results in an error. Read-only. # Corresponds to the JSON property `updateTime` # @return [String] attr_accessor :update_time # Enrollment code to use when joining this course. Specifying this field in a - # course update mask will result in an error. Read-only. + # course update mask results in an error. Read-only. # Corresponds to the JSON property `enrollmentCode` # @return [String] attr_accessor :enrollment_code @@ -106,6 +106,29 @@ module Google # @return [String] attr_accessor :alternate_link + # The email address of a Google group containing all teachers of the course. + # This group does not accept email and can only be used for permissions. Read- + # only. + # Corresponds to the JSON property `teacherGroupEmail` + # @return [String] + attr_accessor :teacher_group_email + + # The email address of a Google group containing all members of the course. This + # group does not accept email and can only be used for permissions. Read-only. + # Corresponds to the JSON property `courseGroupEmail` + # @return [String] + attr_accessor :course_group_email + + # Representation of a Google Drive folder. + # Corresponds to the JSON property `teacherFolder` + # @return [Google::Apis::ClassroomV1::DriveFolder] + attr_accessor :teacher_folder + + # Sets of materials that appear on the "about" page of this course. Read-only. + # Corresponds to the JSON property `courseMaterialSets` + # @return [Array] + attr_accessor :course_material_sets + def initialize(**args) update!(**args) end @@ -124,6 +147,249 @@ module Google @enrollment_code = args[:enrollment_code] if args.key?(:enrollment_code) @course_state = args[:course_state] if args.key?(:course_state) @alternate_link = args[:alternate_link] if args.key?(:alternate_link) + @teacher_group_email = args[:teacher_group_email] if args.key?(:teacher_group_email) + @course_group_email = args[:course_group_email] if args.key?(:course_group_email) + @teacher_folder = args[:teacher_folder] if args.key?(:teacher_folder) + @course_material_sets = args[:course_material_sets] if args.key?(:course_material_sets) + end + end + + # Representation of a Google Drive folder. + class DriveFolder + include Google::Apis::Core::Hashable + + # Drive API resource ID. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Title of the Drive folder. Read-only. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + # URL that can be used to access the Drive folder. Read-only. + # Corresponds to the JSON property `alternateLink` + # @return [String] + attr_accessor :alternate_link + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @title = args[:title] if args.key?(:title) + @alternate_link = args[:alternate_link] if args.key?(:alternate_link) + end + end + + # A set of materials that appears on the "About" page of the course. These + # materials might include a syllabus, schedule, or other background information + # relating to the course as a whole. + class CourseMaterialSet + include Google::Apis::Core::Hashable + + # Title for this set. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + # Materials attached to this set. + # Corresponds to the JSON property `materials` + # @return [Array] + attr_accessor :materials + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @title = args[:title] if args.key?(:title) + @materials = args[:materials] if args.key?(:materials) + end + end + + # A material attached to a course as part of a material set. + class CourseMaterial + include Google::Apis::Core::Hashable + + # Representation of a Google Drive file. + # Corresponds to the JSON property `driveFile` + # @return [Google::Apis::ClassroomV1::DriveFile] + attr_accessor :drive_file + + # YouTube video item. + # Corresponds to the JSON property `youTubeVideo` + # @return [Google::Apis::ClassroomV1::YouTubeVideo] + attr_accessor :you_tube_video + + # URL item. + # Corresponds to the JSON property `link` + # @return [Google::Apis::ClassroomV1::Link] + attr_accessor :link + + # Google Forms item. + # Corresponds to the JSON property `form` + # @return [Google::Apis::ClassroomV1::Form] + attr_accessor :form + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @drive_file = args[:drive_file] if args.key?(:drive_file) + @you_tube_video = args[:you_tube_video] if args.key?(:you_tube_video) + @link = args[:link] if args.key?(:link) + @form = args[:form] if args.key?(:form) + end + end + + # Representation of a Google Drive file. + class DriveFile + include Google::Apis::Core::Hashable + + # Drive API resource ID. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Title of the Drive item. Read-only. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + # URL that can be used to access the Drive item. Read-only. + # Corresponds to the JSON property `alternateLink` + # @return [String] + attr_accessor :alternate_link + + # URL of a thumbnail image of the Drive item. Read-only. + # Corresponds to the JSON property `thumbnailUrl` + # @return [String] + attr_accessor :thumbnail_url + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @title = args[:title] if args.key?(:title) + @alternate_link = args[:alternate_link] if args.key?(:alternate_link) + @thumbnail_url = args[:thumbnail_url] if args.key?(:thumbnail_url) + end + end + + # YouTube video item. + class YouTubeVideo + include Google::Apis::Core::Hashable + + # YouTube API resource ID. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Title of the YouTube video. Read-only. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + # URL that can be used to view the YouTube video. Read-only. + # Corresponds to the JSON property `alternateLink` + # @return [String] + attr_accessor :alternate_link + + # URL of a thumbnail image of the YouTube video. Read-only. + # Corresponds to the JSON property `thumbnailUrl` + # @return [String] + attr_accessor :thumbnail_url + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @title = args[:title] if args.key?(:title) + @alternate_link = args[:alternate_link] if args.key?(:alternate_link) + @thumbnail_url = args[:thumbnail_url] if args.key?(:thumbnail_url) + end + end + + # URL item. + class Link + include Google::Apis::Core::Hashable + + # URL to link to. This must be a valid UTF-8 string containing between 1 and + # 2024 characters. + # Corresponds to the JSON property `url` + # @return [String] + attr_accessor :url + + # Title of the target of the URL. Read-only. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + # URL of a thumbnail image of the target URL. Read-only. + # Corresponds to the JSON property `thumbnailUrl` + # @return [String] + attr_accessor :thumbnail_url + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @url = args[:url] if args.key?(:url) + @title = args[:title] if args.key?(:title) + @thumbnail_url = args[:thumbnail_url] if args.key?(:thumbnail_url) + end + end + + # Google Forms item. + class Form + include Google::Apis::Core::Hashable + + # URL of the form. + # Corresponds to the JSON property `formUrl` + # @return [String] + attr_accessor :form_url + + # URL of the form responses document. Only set if respsonses have been recorded + # and only when the requesting user is an editor of the form. Read-only. + # Corresponds to the JSON property `responseUrl` + # @return [String] + attr_accessor :response_url + + # Title of the Form. Read-only. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + # URL of a thumbnail image of the Form. Read-only. + # Corresponds to the JSON property `thumbnailUrl` + # @return [String] + attr_accessor :thumbnail_url + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @form_url = args[:form_url] if args.key?(:form_url) + @response_url = args[:response_url] if args.key?(:response_url) + @title = args[:title] if args.key?(:title) + @thumbnail_url = args[:thumbnail_url] if args.key?(:thumbnail_url) end end @@ -470,6 +736,11 @@ module Google # @return [Google::Apis::ClassroomV1::UserProfile] attr_accessor :profile + # Representation of a Google Drive folder. + # Corresponds to the JSON property `studentWorkFolder` + # @return [Google::Apis::ClassroomV1::DriveFolder] + attr_accessor :student_work_folder + def initialize(**args) update!(**args) end @@ -479,6 +750,7 @@ module Google @course_id = args[:course_id] if args.key?(:course_id) @user_id = args[:user_id] if args.key?(:user_id) @profile = args[:profile] if args.key?(:profile) + @student_work_folder = args[:student_work_folder] if args.key?(:student_work_folder) end end @@ -507,6 +779,648 @@ module Google @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end + + # Course work created by a teacher for students of the course. + class CourseWork + include Google::Apis::Core::Hashable + + # Identifier of the course. Read-only. + # Corresponds to the JSON property `courseId` + # @return [String] + attr_accessor :course_id + + # Classroom-assigned identifier of this course work, unique per course. Read- + # only. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Title of this course work. The title must be a valid UTF-8 string containing + # between 1 and 3000 characters. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + # Optional description of this course work. If set, the description must be a + # valid UTF-8 string containing no more than 30,000 characters. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Additional materials. + # Corresponds to the JSON property `materials` + # @return [Array] + attr_accessor :materials + + # Status of this course work.. If unspecified, the default state is `DRAFT`. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # Absolute link to this course work in the Classroom web UI. This is only + # populated if `state` is `PUBLISHED`. Read-only. + # Corresponds to the JSON property `alternateLink` + # @return [String] + attr_accessor :alternate_link + + # Timestamp when this course work was created. Read-only. + # Corresponds to the JSON property `creationTime` + # @return [String] + attr_accessor :creation_time + + # Timestamp of the most recent change to this course work. Read-only. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + # Represents a whole calendar date, e.g. date of birth. The time of day and time + # zone are either specified elsewhere or are not significant. The date is + # relative to the Proleptic Gregorian Calendar. The day may be 0 to represent a + # year and month where the day is not significant, e.g. credit card expiration + # date. The year may be 0 to represent a month and day independent of year, e.g. + # anniversary date. Related types are google.type.TimeOfDay and `google.protobuf. + # Timestamp`. + # Corresponds to the JSON property `dueDate` + # @return [Google::Apis::ClassroomV1::Date] + attr_accessor :due_date + + # Represents a time of day. The date and time zone are either not significant or + # are specified elsewhere. An API may chose to allow leap seconds. Related types + # are google.type.Date and `google.protobuf.Timestamp`. + # Corresponds to the JSON property `dueTime` + # @return [Google::Apis::ClassroomV1::TimeOfDay] + attr_accessor :due_time + + # Maximum grade for this course work. If zero or unspecified, this assignment is + # considered ungraded. This must be an integer value. + # Corresponds to the JSON property `maxPoints` + # @return [Float] + attr_accessor :max_points + + # Type of this course work. The type is set when the course work is created and + # cannot be changed. When creating course work, this must be `ASSIGNMENT`. + # Corresponds to the JSON property `workType` + # @return [String] + attr_accessor :work_type + + # Whether this course work item is associated with the Developer Console project + # making the request. See google.classroom.Work.CreateCourseWork for more + # details. Read-only. + # Corresponds to the JSON property `associatedWithDeveloper` + # @return [Boolean] + attr_accessor :associated_with_developer + alias_method :associated_with_developer?, :associated_with_developer + + # Setting to determine when students are allowed to modify submissions. If + # unspecified, the default value is `MODIFIABLE_UNTIL_TURNED_IN`. + # Corresponds to the JSON property `submissionModificationMode` + # @return [String] + attr_accessor :submission_modification_mode + + # Additional details for assignments. + # Corresponds to the JSON property `assignment` + # @return [Google::Apis::ClassroomV1::Assignment] + attr_accessor :assignment + + # Additional details for multiple-choice questions. + # Corresponds to the JSON property `multipleChoiceQuestion` + # @return [Google::Apis::ClassroomV1::MultipleChoiceQuestion] + attr_accessor :multiple_choice_question + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @course_id = args[:course_id] if args.key?(:course_id) + @id = args[:id] if args.key?(:id) + @title = args[:title] if args.key?(:title) + @description = args[:description] if args.key?(:description) + @materials = args[:materials] if args.key?(:materials) + @state = args[:state] if args.key?(:state) + @alternate_link = args[:alternate_link] if args.key?(:alternate_link) + @creation_time = args[:creation_time] if args.key?(:creation_time) + @update_time = args[:update_time] if args.key?(:update_time) + @due_date = args[:due_date] if args.key?(:due_date) + @due_time = args[:due_time] if args.key?(:due_time) + @max_points = args[:max_points] if args.key?(:max_points) + @work_type = args[:work_type] if args.key?(:work_type) + @associated_with_developer = args[:associated_with_developer] if args.key?(:associated_with_developer) + @submission_modification_mode = args[:submission_modification_mode] if args.key?(:submission_modification_mode) + @assignment = args[:assignment] if args.key?(:assignment) + @multiple_choice_question = args[:multiple_choice_question] if args.key?(:multiple_choice_question) + end + end + + # Material attached to course work. When creating attachments, only the Link + # field may be specified. + class Material + include Google::Apis::Core::Hashable + + # Drive file that is used as material for course work. + # Corresponds to the JSON property `driveFile` + # @return [Google::Apis::ClassroomV1::SharedDriveFile] + attr_accessor :drive_file + + # YouTube video item. + # Corresponds to the JSON property `youtubeVideo` + # @return [Google::Apis::ClassroomV1::YouTubeVideo] + attr_accessor :youtube_video + + # URL item. + # Corresponds to the JSON property `link` + # @return [Google::Apis::ClassroomV1::Link] + attr_accessor :link + + # Google Forms item. + # Corresponds to the JSON property `form` + # @return [Google::Apis::ClassroomV1::Form] + attr_accessor :form + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @drive_file = args[:drive_file] if args.key?(:drive_file) + @youtube_video = args[:youtube_video] if args.key?(:youtube_video) + @link = args[:link] if args.key?(:link) + @form = args[:form] if args.key?(:form) + end + end + + # Drive file that is used as material for course work. + class SharedDriveFile + include Google::Apis::Core::Hashable + + # Representation of a Google Drive file. + # Corresponds to the JSON property `driveFile` + # @return [Google::Apis::ClassroomV1::DriveFile] + attr_accessor :drive_file + + # Mechanism by which students access the Drive item. + # Corresponds to the JSON property `shareMode` + # @return [String] + attr_accessor :share_mode + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @drive_file = args[:drive_file] if args.key?(:drive_file) + @share_mode = args[:share_mode] if args.key?(:share_mode) + end + end + + # Represents a whole calendar date, e.g. date of birth. The time of day and time + # zone are either specified elsewhere or are not significant. The date is + # relative to the Proleptic Gregorian Calendar. The day may be 0 to represent a + # year and month where the day is not significant, e.g. credit card expiration + # date. The year may be 0 to represent a month and day independent of year, e.g. + # anniversary date. Related types are google.type.TimeOfDay and `google.protobuf. + # Timestamp`. + class Date + include Google::Apis::Core::Hashable + + # 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 + + # Month of year. Must be from 1 to 12. + # Corresponds to the JSON property `month` + # @return [Fixnum] + attr_accessor :month + + # 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @year = args[:year] if args.key?(:year) + @month = args[:month] if args.key?(:month) + @day = args[:day] if args.key?(:day) + end + end + + # Represents a time of day. The date and time zone are either not significant or + # are specified elsewhere. An API may chose to allow leap seconds. Related types + # are google.type.Date and `google.protobuf.Timestamp`. + class TimeOfDay + include Google::Apis::Core::Hashable + + # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to + # allow the value "24:00:00" for scenarios like business closing time. + # Corresponds to the JSON property `hours` + # @return [Fixnum] + attr_accessor :hours + + # Minutes of hour of day. Must be from 0 to 59. + # Corresponds to the JSON property `minutes` + # @return [Fixnum] + attr_accessor :minutes + + # Seconds of minutes of the time. Must normally be from 0 to 59. An API may + # allow the value 60 if it allows leap-seconds. + # Corresponds to the JSON property `seconds` + # @return [Fixnum] + attr_accessor :seconds + + # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. + # Corresponds to the JSON property `nanos` + # @return [Fixnum] + attr_accessor :nanos + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @hours = args[:hours] if args.key?(:hours) + @minutes = args[:minutes] if args.key?(:minutes) + @seconds = args[:seconds] if args.key?(:seconds) + @nanos = args[:nanos] if args.key?(:nanos) + end + end + + # Additional details for assignments. + class Assignment + include Google::Apis::Core::Hashable + + # Representation of a Google Drive folder. + # Corresponds to the JSON property `studentWorkFolder` + # @return [Google::Apis::ClassroomV1::DriveFolder] + attr_accessor :student_work_folder + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @student_work_folder = args[:student_work_folder] if args.key?(:student_work_folder) + end + end + + # Additional details for multiple-choice questions. + class MultipleChoiceQuestion + include Google::Apis::Core::Hashable + + # Possible choices. + # Corresponds to the JSON property `choices` + # @return [Array] + attr_accessor :choices + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @choices = args[:choices] if args.key?(:choices) + end + end + + # Response when listing course work. + class ListCourseWorkResponse + include Google::Apis::Core::Hashable + + # Course work items that match the request. + # Corresponds to the JSON property `courseWork` + # @return [Array] + attr_accessor :course_work + + # Token identifying the next page of results to return. If empty, no further + # results are available. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @course_work = args[:course_work] if args.key?(:course_work) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Student submission for course work. StudentSubmission items are generated when + # a CourseWork item is created. StudentSubmissions that have never been accessed + # (i.e. with `state` = NEW) may not have a creation time or update time. + class StudentSubmission + include Google::Apis::Core::Hashable + + # Identifier of the course. Read-only. + # Corresponds to the JSON property `courseId` + # @return [String] + attr_accessor :course_id + + # Identifier for the course work this corresponds to. Read-only. + # Corresponds to the JSON property `courseWorkId` + # @return [String] + attr_accessor :course_work_id + + # Classroom-assigned Identifier for the student submission. This is unique among + # submissions for the relevant course work. Read-only. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Identifier for the student that owns this submission. Read-only. + # Corresponds to the JSON property `userId` + # @return [String] + attr_accessor :user_id + + # Creation time of this submission.. This may be unset if the student has not + # accessed this item. Read-only. + # Corresponds to the JSON property `creationTime` + # @return [String] + attr_accessor :creation_time + + # Last update time of this submission. This may be unset if the student has not + # accessed this item. Read-only. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + # State of this submission. Read-only. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # Whether this submission is late. Read-only. + # Corresponds to the JSON property `late` + # @return [Boolean] + attr_accessor :late + alias_method :late?, :late + + # Optional pending grade. If unset, no grade was set. This must be an integer + # value. This is only visible to and modifiable by course teachers. + # Corresponds to the JSON property `draftGrade` + # @return [Float] + attr_accessor :draft_grade + + # Optional grade. If unset, no grade was set. This must be an integer value. + # This may be modified only by course teachers. + # Corresponds to the JSON property `assignedGrade` + # @return [Float] + attr_accessor :assigned_grade + + # Absolute link to the submission in the Classroom web UI. Read-only. + # Corresponds to the JSON property `alternateLink` + # @return [String] + attr_accessor :alternate_link + + # Type of course work this submission is for. Read-only. + # Corresponds to the JSON property `courseWorkType` + # @return [String] + attr_accessor :course_work_type + + # Whether this student submission is associated with the Developer Console + # project making the request. See google.classroom.Work.CreateCourseWork for + # more details. Read-only. + # Corresponds to the JSON property `associatedWithDeveloper` + # @return [Boolean] + attr_accessor :associated_with_developer + alias_method :associated_with_developer?, :associated_with_developer + + # Student work for an assignment. + # Corresponds to the JSON property `assignmentSubmission` + # @return [Google::Apis::ClassroomV1::AssignmentSubmission] + attr_accessor :assignment_submission + + # Student work for a short answer question. + # Corresponds to the JSON property `shortAnswerSubmission` + # @return [Google::Apis::ClassroomV1::ShortAnswerSubmission] + attr_accessor :short_answer_submission + + # Student work for a multiple-choice question. + # Corresponds to the JSON property `multipleChoiceSubmission` + # @return [Google::Apis::ClassroomV1::MultipleChoiceSubmission] + attr_accessor :multiple_choice_submission + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @course_id = args[:course_id] if args.key?(:course_id) + @course_work_id = args[:course_work_id] if args.key?(:course_work_id) + @id = args[:id] if args.key?(:id) + @user_id = args[:user_id] if args.key?(:user_id) + @creation_time = args[:creation_time] if args.key?(:creation_time) + @update_time = args[:update_time] if args.key?(:update_time) + @state = args[:state] if args.key?(:state) + @late = args[:late] if args.key?(:late) + @draft_grade = args[:draft_grade] if args.key?(:draft_grade) + @assigned_grade = args[:assigned_grade] if args.key?(:assigned_grade) + @alternate_link = args[:alternate_link] if args.key?(:alternate_link) + @course_work_type = args[:course_work_type] if args.key?(:course_work_type) + @associated_with_developer = args[:associated_with_developer] if args.key?(:associated_with_developer) + @assignment_submission = args[:assignment_submission] if args.key?(:assignment_submission) + @short_answer_submission = args[:short_answer_submission] if args.key?(:short_answer_submission) + @multiple_choice_submission = args[:multiple_choice_submission] if args.key?(:multiple_choice_submission) + end + end + + # Student work for an assignment. + class AssignmentSubmission + include Google::Apis::Core::Hashable + + # Attachments added by the student. Drive files that correspond to materials + # with a share mode of SUBMISSION_COPY may not exist yet if the student has not + # accessed the assignment in Classroom. Some attachment metadata is only + # populated if the requesting user has permission to access it. Identifier and + # alternate_link fields are available, but others (e.g. title) may not be. + # Corresponds to the JSON property `attachments` + # @return [Array] + attr_accessor :attachments + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @attachments = args[:attachments] if args.key?(:attachments) + end + end + + # Attachment added to student assignment work. When creating attachments, only + # the Link field may be specified. + class Attachment + include Google::Apis::Core::Hashable + + # Representation of a Google Drive file. + # Corresponds to the JSON property `driveFile` + # @return [Google::Apis::ClassroomV1::DriveFile] + attr_accessor :drive_file + + # YouTube video item. + # Corresponds to the JSON property `youTubeVideo` + # @return [Google::Apis::ClassroomV1::YouTubeVideo] + attr_accessor :you_tube_video + + # URL item. + # Corresponds to the JSON property `link` + # @return [Google::Apis::ClassroomV1::Link] + attr_accessor :link + + # Google Forms item. + # Corresponds to the JSON property `form` + # @return [Google::Apis::ClassroomV1::Form] + attr_accessor :form + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @drive_file = args[:drive_file] if args.key?(:drive_file) + @you_tube_video = args[:you_tube_video] if args.key?(:you_tube_video) + @link = args[:link] if args.key?(:link) + @form = args[:form] if args.key?(:form) + end + end + + # Student work for a short answer question. + class ShortAnswerSubmission + include Google::Apis::Core::Hashable + + # Student response to a short-answer question. + # Corresponds to the JSON property `answer` + # @return [String] + attr_accessor :answer + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @answer = args[:answer] if args.key?(:answer) + end + end + + # Student work for a multiple-choice question. + class MultipleChoiceSubmission + include Google::Apis::Core::Hashable + + # Student's select choice. + # Corresponds to the JSON property `answer` + # @return [String] + attr_accessor :answer + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @answer = args[:answer] if args.key?(:answer) + end + end + + # Response when listing student submissions. + class ListStudentSubmissionsResponse + include Google::Apis::Core::Hashable + + # Student work that matches the request. + # Corresponds to the JSON property `studentSubmissions` + # @return [Array] + attr_accessor :student_submissions + + # Token identifying the next page of results to return. If empty, no further + # results are available. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @student_submissions = args[:student_submissions] if args.key?(:student_submissions) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Request to turn in a student submission. + class TurnInStudentSubmissionRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Request to reclaim a student submission. + class ReclaimStudentSubmissionRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Request to return a student submission. + class ReturnStudentSubmissionRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Request to modify the attachments of a student submission. + class ModifyAttachmentsRequest + include Google::Apis::Core::Hashable + + # Attachments to add. This may only contain link attachments. + # Corresponds to the JSON property `addAttachments` + # @return [Array] + attr_accessor :add_attachments + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @add_attachments = args[:add_attachments] if args.key?(:add_attachments) + end + end end end end diff --git a/generated/google/apis/classroom_v1/representations.rb b/generated/google/apis/classroom_v1/representations.rb index 7cfed967a..ac5eeb0f0 100644 --- a/generated/google/apis/classroom_v1/representations.rb +++ b/generated/google/apis/classroom_v1/representations.rb @@ -28,6 +28,48 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class DriveFolder + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CourseMaterialSet + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CourseMaterial + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DriveFile + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class YouTubeVideo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Link + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Form + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Empty class Representation < Google::Apis::Core::JsonRepresentation; end @@ -106,6 +148,114 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class CourseWork + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Material + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SharedDriveFile + 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 TimeOfDay + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Assignment + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class MultipleChoiceQuestion + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListCourseWorkResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class StudentSubmission + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AssignmentSubmission + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Attachment + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ShortAnswerSubmission + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class MultipleChoiceSubmission + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListStudentSubmissionsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TurnInStudentSubmissionRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ReclaimStudentSubmissionRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ReturnStudentSubmissionRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ModifyAttachmentsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Course # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -121,6 +271,83 @@ module Google property :enrollment_code, as: 'enrollmentCode' property :course_state, as: 'courseState' property :alternate_link, as: 'alternateLink' + property :teacher_group_email, as: 'teacherGroupEmail' + property :course_group_email, as: 'courseGroupEmail' + property :teacher_folder, as: 'teacherFolder', class: Google::Apis::ClassroomV1::DriveFolder, decorator: Google::Apis::ClassroomV1::DriveFolder::Representation + + collection :course_material_sets, as: 'courseMaterialSets', class: Google::Apis::ClassroomV1::CourseMaterialSet, decorator: Google::Apis::ClassroomV1::CourseMaterialSet::Representation + + end + end + + class DriveFolder + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + property :title, as: 'title' + property :alternate_link, as: 'alternateLink' + end + end + + class CourseMaterialSet + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :title, as: 'title' + collection :materials, as: 'materials', class: Google::Apis::ClassroomV1::CourseMaterial, decorator: Google::Apis::ClassroomV1::CourseMaterial::Representation + + end + end + + class CourseMaterial + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :drive_file, as: 'driveFile', class: Google::Apis::ClassroomV1::DriveFile, decorator: Google::Apis::ClassroomV1::DriveFile::Representation + + property :you_tube_video, as: 'youTubeVideo', class: Google::Apis::ClassroomV1::YouTubeVideo, decorator: Google::Apis::ClassroomV1::YouTubeVideo::Representation + + property :link, as: 'link', class: Google::Apis::ClassroomV1::Link, decorator: Google::Apis::ClassroomV1::Link::Representation + + property :form, as: 'form', class: Google::Apis::ClassroomV1::Form, decorator: Google::Apis::ClassroomV1::Form::Representation + + end + end + + class DriveFile + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + property :title, as: 'title' + property :alternate_link, as: 'alternateLink' + property :thumbnail_url, as: 'thumbnailUrl' + end + end + + class YouTubeVideo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + property :title, as: 'title' + property :alternate_link, as: 'alternateLink' + property :thumbnail_url, as: 'thumbnailUrl' + end + end + + class Link + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :url, as: 'url' + property :title, as: 'title' + property :thumbnail_url, as: 'thumbnailUrl' + end + end + + class Form + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :form_url, as: 'formUrl' + property :response_url, as: 'responseUrl' + property :title, as: 'title' + property :thumbnail_url, as: 'thumbnailUrl' end end @@ -229,6 +456,8 @@ module Google property :user_id, as: 'userId' property :profile, as: 'profile', class: Google::Apis::ClassroomV1::UserProfile, decorator: Google::Apis::ClassroomV1::UserProfile::Representation + property :student_work_folder, as: 'studentWorkFolder', class: Google::Apis::ClassroomV1::DriveFolder, decorator: Google::Apis::ClassroomV1::DriveFolder::Representation + end end @@ -240,6 +469,196 @@ module Google property :next_page_token, as: 'nextPageToken' end end + + class CourseWork + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :course_id, as: 'courseId' + property :id, as: 'id' + property :title, as: 'title' + property :description, as: 'description' + collection :materials, as: 'materials', class: Google::Apis::ClassroomV1::Material, decorator: Google::Apis::ClassroomV1::Material::Representation + + property :state, as: 'state' + property :alternate_link, as: 'alternateLink' + property :creation_time, as: 'creationTime' + property :update_time, as: 'updateTime' + property :due_date, as: 'dueDate', class: Google::Apis::ClassroomV1::Date, decorator: Google::Apis::ClassroomV1::Date::Representation + + property :due_time, as: 'dueTime', class: Google::Apis::ClassroomV1::TimeOfDay, decorator: Google::Apis::ClassroomV1::TimeOfDay::Representation + + property :max_points, as: 'maxPoints' + property :work_type, as: 'workType' + property :associated_with_developer, as: 'associatedWithDeveloper' + property :submission_modification_mode, as: 'submissionModificationMode' + property :assignment, as: 'assignment', class: Google::Apis::ClassroomV1::Assignment, decorator: Google::Apis::ClassroomV1::Assignment::Representation + + property :multiple_choice_question, as: 'multipleChoiceQuestion', class: Google::Apis::ClassroomV1::MultipleChoiceQuestion, decorator: Google::Apis::ClassroomV1::MultipleChoiceQuestion::Representation + + end + end + + class Material + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :drive_file, as: 'driveFile', class: Google::Apis::ClassroomV1::SharedDriveFile, decorator: Google::Apis::ClassroomV1::SharedDriveFile::Representation + + property :youtube_video, as: 'youtubeVideo', class: Google::Apis::ClassroomV1::YouTubeVideo, decorator: Google::Apis::ClassroomV1::YouTubeVideo::Representation + + property :link, as: 'link', class: Google::Apis::ClassroomV1::Link, decorator: Google::Apis::ClassroomV1::Link::Representation + + property :form, as: 'form', class: Google::Apis::ClassroomV1::Form, decorator: Google::Apis::ClassroomV1::Form::Representation + + end + end + + class SharedDriveFile + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :drive_file, as: 'driveFile', class: Google::Apis::ClassroomV1::DriveFile, decorator: Google::Apis::ClassroomV1::DriveFile::Representation + + property :share_mode, as: 'shareMode' + end + end + + class Date + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :year, as: 'year' + property :month, as: 'month' + property :day, as: 'day' + end + end + + class TimeOfDay + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :hours, as: 'hours' + property :minutes, as: 'minutes' + property :seconds, as: 'seconds' + property :nanos, as: 'nanos' + end + end + + class Assignment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :student_work_folder, as: 'studentWorkFolder', class: Google::Apis::ClassroomV1::DriveFolder, decorator: Google::Apis::ClassroomV1::DriveFolder::Representation + + end + end + + class MultipleChoiceQuestion + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :choices, as: 'choices' + end + end + + class ListCourseWorkResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :course_work, as: 'courseWork', class: Google::Apis::ClassroomV1::CourseWork, decorator: Google::Apis::ClassroomV1::CourseWork::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class StudentSubmission + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :course_id, as: 'courseId' + property :course_work_id, as: 'courseWorkId' + property :id, as: 'id' + property :user_id, as: 'userId' + property :creation_time, as: 'creationTime' + property :update_time, as: 'updateTime' + property :state, as: 'state' + property :late, as: 'late' + property :draft_grade, as: 'draftGrade' + property :assigned_grade, as: 'assignedGrade' + property :alternate_link, as: 'alternateLink' + property :course_work_type, as: 'courseWorkType' + property :associated_with_developer, as: 'associatedWithDeveloper' + property :assignment_submission, as: 'assignmentSubmission', class: Google::Apis::ClassroomV1::AssignmentSubmission, decorator: Google::Apis::ClassroomV1::AssignmentSubmission::Representation + + property :short_answer_submission, as: 'shortAnswerSubmission', class: Google::Apis::ClassroomV1::ShortAnswerSubmission, decorator: Google::Apis::ClassroomV1::ShortAnswerSubmission::Representation + + property :multiple_choice_submission, as: 'multipleChoiceSubmission', class: Google::Apis::ClassroomV1::MultipleChoiceSubmission, decorator: Google::Apis::ClassroomV1::MultipleChoiceSubmission::Representation + + end + end + + class AssignmentSubmission + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :attachments, as: 'attachments', class: Google::Apis::ClassroomV1::Attachment, decorator: Google::Apis::ClassroomV1::Attachment::Representation + + end + end + + class Attachment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :drive_file, as: 'driveFile', class: Google::Apis::ClassroomV1::DriveFile, decorator: Google::Apis::ClassroomV1::DriveFile::Representation + + property :you_tube_video, as: 'youTubeVideo', class: Google::Apis::ClassroomV1::YouTubeVideo, decorator: Google::Apis::ClassroomV1::YouTubeVideo::Representation + + property :link, as: 'link', class: Google::Apis::ClassroomV1::Link, decorator: Google::Apis::ClassroomV1::Link::Representation + + property :form, as: 'form', class: Google::Apis::ClassroomV1::Form, decorator: Google::Apis::ClassroomV1::Form::Representation + + end + end + + class ShortAnswerSubmission + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :answer, as: 'answer' + end + end + + class MultipleChoiceSubmission + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :answer, as: 'answer' + end + end + + class ListStudentSubmissionsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :student_submissions, as: 'studentSubmissions', class: Google::Apis::ClassroomV1::StudentSubmission, decorator: Google::Apis::ClassroomV1::StudentSubmission::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class TurnInStudentSubmissionRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class ReclaimStudentSubmissionRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class ReturnStudentSubmissionRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class ModifyAttachmentsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :add_attachments, as: 'addAttachments', class: Google::Apis::ClassroomV1::Attachment, decorator: Google::Apis::ClassroomV1::Attachment::Representation + + end + end end end end diff --git a/generated/google/apis/classroom_v1/service.rb b/generated/google/apis/classroom_v1/service.rb index 8bffe53a5..590719ef4 100644 --- a/generated/google/apis/classroom_v1/service.rb +++ b/generated/google/apis/classroom_v1/service.rb @@ -733,6 +733,512 @@ module Google execute_or_queue_command(command, &block) end + # Creates course work. The resulting course work (and corresponding student + # submissions) are associated with the Developer Console project of the [OAuth + # client ID](https://support.google.com/cloud/answer/6158849) used to make the + # request. Classroom API requests to modify course work and student submissions + # must be made with an OAuth client ID from the associated Developer Console + # project. This method returns the following error codes: * `PERMISSION_DENIED` + # if the requesting user is not permitted to access the requested course, create + # course work in the requested course, or for access errors. * `INVALID_ARGUMENT` + # if the request is malformed. * `NOT_FOUND` if the requested course does not + # exist. + # @param [String] course_id + # Identifier of the course. This identifier can be either the Classroom-assigned + # identifier or an alias. + # @param [Google::Apis::ClassroomV1::CourseWork] course_work_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::ClassroomV1::CourseWork] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1::CourseWork] + # + # @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_course_work(course_id, course_work_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/courses/{courseId}/courseWork', options) + command.request_representation = Google::Apis::ClassroomV1::CourseWork::Representation + command.request_object = course_work_object + command.response_representation = Google::Apis::ClassroomV1::CourseWork::Representation + command.response_class = Google::Apis::ClassroomV1::CourseWork + command.params['courseId'] = course_id unless course_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 + + # Returns course work. This method returns the following error codes: * ` + # PERMISSION_DENIED` if the requesting user is not permitted to access the + # requested course or course work, or for access errors. * `INVALID_ARGUMENT` if + # the request is malformed. * `NOT_FOUND` if the requested course or course work + # does not exist. + # @param [String] course_id + # Identifier of the course. This identifier can be either the Classroom-assigned + # identifier or an alias. + # @param [String] id + # Identifier of the course work. + # @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::ClassroomV1::CourseWork] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1::CourseWork] + # + # @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_course_work(course_id, id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/courses/{courseId}/courseWork/{id}', options) + command.response_representation = Google::Apis::ClassroomV1::CourseWork::Representation + command.response_class = Google::Apis::ClassroomV1::CourseWork + command.params['courseId'] = course_id unless course_id.nil? + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns a list of course work that the requester is permitted to view. Course + # students may only view `PUBLISHED` course work. Course teachers and domain + # administrators may view all course work. This method returns the following + # error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to + # access the requested course or for access errors. * `INVALID_ARGUMENT` if the + # request is malformed. * `NOT_FOUND` if the requested course does not exist. + # @param [String] course_id + # Identifier of the course. This identifier can be either the Classroom-assigned + # identifier or an alias. + # @param [Array, String] course_work_states + # Restriction on the work status to return. Only courseWork that matches is + # returned. If unspecified, items with a work status of `PUBLISHED` is returned. + # @param [String] order_by + # Optional sort ordering for results. A comma-separated list of fields with an + # optional sort direction keyword. Supported fields are `updateTime` and ` + # dueDate`. Supported direction keywords are `asc` and `desc`. If not specified, + # `updateTime desc` is the default behavior. Examples: `dueDate asc,updateTime + # desc`, `updateTime,dueDate desc` + # @param [Fixnum] page_size + # Maximum number of items to return. Zero or unspecified indicates that the + # server may assign a maximum. The server may return fewer than the specified + # number of results. + # @param [String] page_token + # nextPageToken value returned from a previous list call, indicating that the + # subsequent page of results should be returned. The list request must be + # otherwise identical to the one that resulted in this token. + # @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::ClassroomV1::ListCourseWorkResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1::ListCourseWorkResponse] + # + # @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_course_works(course_id, course_work_states: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/courses/{courseId}/courseWork', options) + command.response_representation = Google::Apis::ClassroomV1::ListCourseWorkResponse::Representation + command.response_class = Google::Apis::ClassroomV1::ListCourseWorkResponse + command.params['courseId'] = course_id unless course_id.nil? + command.query['courseWorkStates'] = course_work_states unless course_work_states.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns a student submission. * `PERMISSION_DENIED` if the requesting user is + # not permitted to access the requested course, course work, or student + # submission or for access errors. * `INVALID_ARGUMENT` if the request is + # malformed. * `NOT_FOUND` if the requested course, course work, or student + # submission does not exist. + # @param [String] course_id + # Identifier of the course. This identifier can be either the Classroom-assigned + # identifier or an alias. + # @param [String] course_work_id + # Identifier of the course work. + # @param [String] id + # Identifier of the student submission. + # @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::ClassroomV1::StudentSubmission] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1::StudentSubmission] + # + # @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_student_submission(course_id, course_work_id, id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}', options) + command.response_representation = Google::Apis::ClassroomV1::StudentSubmission::Representation + command.response_class = Google::Apis::ClassroomV1::StudentSubmission + command.params['courseId'] = course_id unless course_id.nil? + command.params['courseWorkId'] = course_work_id unless course_work_id.nil? + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates one or more fields of a student submission. See google.classroom.v1. + # StudentSubmission for details of which fields may be updated and who may + # change them. This request must be made by the Developer Console project of the + # [OAuth client ID](https://support.google.com/cloud/answer/6158849) used to + # create the corresponding course work item. This method returns the following + # error codes: * `PERMISSION_DENIED` if the requesting developer project did not + # create the corresponding course work, if the user is not permitted to make the + # requested modification to the student submission, or for access errors. * ` + # INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the requested + # course, course work, or student submission does not exist. + # @param [String] course_id + # Identifier of the course. This identifier can be either the Classroom-assigned + # identifier or an alias. + # @param [String] course_work_id + # Identifier of the course work. + # @param [String] id + # Identifier of the student submission. + # @param [Google::Apis::ClassroomV1::StudentSubmission] student_submission_object + # @param [String] update_mask + # Mask that identifies which fields on the student submission to update. This + # field is required to do an update. The update fails if invalid fields are + # specified. The following fields may be specified by teachers: * `draft_grade` * + # `assigned_grade` + # @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::ClassroomV1::StudentSubmission] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1::StudentSubmission] + # + # @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_student_submission(course_id, course_work_id, id, student_submission_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}', options) + command.request_representation = Google::Apis::ClassroomV1::StudentSubmission::Representation + command.request_object = student_submission_object + command.response_representation = Google::Apis::ClassroomV1::StudentSubmission::Representation + command.response_class = Google::Apis::ClassroomV1::StudentSubmission + command.params['courseId'] = course_id unless course_id.nil? + command.params['courseWorkId'] = course_work_id unless course_work_id.nil? + command.params['id'] = id unless id.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns a list of student submissions that the requester is permitted to view, + # factoring in the OAuth scopes of the request. `-` may be specified as the ` + # course_work_id` to include student submissions for multiple course work items. + # Course students may only view their own work. Course teachers and domain + # administrators may view all student submissions. This method returns the + # following error codes: * `PERMISSION_DENIED` if the requesting user is not + # permitted to access the requested course or course work, or for access errors. + # * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the + # requested course does not exist. + # @param [String] course_id + # Identifier of the course. This identifier can be either the Classroom-assigned + # identifier or an alias. + # @param [String] course_work_id + # Identifer of the student work to request. If `user_id` is specified, this may + # be set to the string literal `"-"` to request student work for all course work + # in the specified course. + # @param [String] user_id + # Optional argument to restrict returned student work to those owned by the + # student with the specified identifier. The identifier can be one of the + # following: * the numeric identifier for the user * the email address of the + # user * the string literal `"me"`, indicating the requesting user + # @param [Array, String] states + # Requested submission states. If specified, returned student submissions match + # one of the specified submission states. + # @param [String] late + # Requested lateness value. If specified, returned student submissions are + # restricted by the requested value. If unspecified, submissions are returned + # regardless of `late` value. + # @param [Fixnum] page_size + # Maximum number of items to return. Zero or unspecified indicates that the + # server may assign a maximum. The server may return fewer than the specified + # number of results. + # @param [String] page_token + # nextPageToken value returned from a previous list call, indicating that the + # subsequent page of results should be returned. The list request must be + # otherwise identical to the one that resulted in this token. + # @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::ClassroomV1::ListStudentSubmissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1::ListStudentSubmissionsResponse] + # + # @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_student_submissions(course_id, course_work_id, user_id: nil, states: nil, late: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions', options) + command.response_representation = Google::Apis::ClassroomV1::ListStudentSubmissionsResponse::Representation + command.response_class = Google::Apis::ClassroomV1::ListStudentSubmissionsResponse + command.params['courseId'] = course_id unless course_id.nil? + command.params['courseWorkId'] = course_work_id unless course_work_id.nil? + command.query['userId'] = user_id unless user_id.nil? + command.query['states'] = states unless states.nil? + command.query['late'] = late unless late.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Turns in a student submission. Turning in a student submission transfers + # ownership of attached Drive files to the teacher and may also update the + # submission state. This may only be called by the student that owns the + # specified student submission. This request must be made by the Developer + # Console project of the [OAuth client ID](https://support.google.com/cloud/ + # answer/6158849) used to create the corresponding course work item. This method + # returns the following error codes: * `PERMISSION_DENIED` if the requesting + # user is not permitted to access the requested course or course work, turn in + # the requested student submission, or for access errors. * `INVALID_ARGUMENT` + # if the request is malformed. * `NOT_FOUND` if the requested course, course + # work, or student submission does not exist. + # @param [String] course_id + # Identifier of the course. This identifier can be either the Classroom-assigned + # identifier or an alias. + # @param [String] course_work_id + # Identifier of the course work. + # @param [String] id + # Identifier of the student submission. + # @param [Google::Apis::ClassroomV1::TurnInStudentSubmissionRequest] turn_in_student_submission_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::ClassroomV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def turn_in_student_submission(course_id, course_work_id, id, turn_in_student_submission_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:turnIn', options) + command.request_representation = Google::Apis::ClassroomV1::TurnInStudentSubmissionRequest::Representation + command.request_object = turn_in_student_submission_request_object + command.response_representation = Google::Apis::ClassroomV1::Empty::Representation + command.response_class = Google::Apis::ClassroomV1::Empty + command.params['courseId'] = course_id unless course_id.nil? + command.params['courseWorkId'] = course_work_id unless course_work_id.nil? + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Reclaims a student submission on behalf of the student that owns it. + # Reclaiming a student submission transfers ownership of attached Drive files to + # the student and update the submission state. Only the student that ownes the + # requested student submission may call this method, and only for a student + # submission that has been turned in. This request must be made by the Developer + # Console project of the [OAuth client ID](https://support.google.com/cloud/ + # answer/6158849) used to create the corresponding course work item. This method + # returns the following error codes: * `PERMISSION_DENIED` if the requesting + # user is not permitted to access the requested course or course work, unsubmit + # the requested student submission, or for access errors. * `FAILED_PRECONDITION` + # if the student submission has not been turned in. * `INVALID_ARGUMENT` if the + # request is malformed. * `NOT_FOUND` if the requested course, course work, or + # student submission does not exist. + # @param [String] course_id + # Identifier of the course. This identifier can be either the Classroom-assigned + # identifier or an alias. + # @param [String] course_work_id + # Identifier of the course work. + # @param [String] id + # Identifier of the student submission. + # @param [Google::Apis::ClassroomV1::ReclaimStudentSubmissionRequest] reclaim_student_submission_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::ClassroomV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def reclaim_student_submission(course_id, course_work_id, id, reclaim_student_submission_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:reclaim', options) + command.request_representation = Google::Apis::ClassroomV1::ReclaimStudentSubmissionRequest::Representation + command.request_object = reclaim_student_submission_request_object + command.response_representation = Google::Apis::ClassroomV1::Empty::Representation + command.response_class = Google::Apis::ClassroomV1::Empty + command.params['courseId'] = course_id unless course_id.nil? + command.params['courseWorkId'] = course_work_id unless course_work_id.nil? + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns a student submission. Returning a student submission transfers + # ownership of attached Drive files to the student and may also update the + # submission state. Unlike the Classroom application, returning a student + # submission does not set assignedGrade to the draftGrade value. Only a teacher + # of the course that contains the requested student submission may call this + # method. This request must be made by the Developer Console project of the [ + # OAuth client ID](https://support.google.com/cloud/answer/6158849) used to + # create the corresponding course work item. This method returns the following + # error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to + # access the requested course or course work, return the requested student + # submission, or for access errors. * `INVALID_ARGUMENT` if the request is + # malformed. * `NOT_FOUND` if the requested course, course work, or student + # submission does not exist. + # @param [String] course_id + # Identifier of the course. This identifier can be either the Classroom-assigned + # identifier or an alias. + # @param [String] course_work_id + # Identifier of the course work. + # @param [String] id + # Identifier of the student submission. + # @param [Google::Apis::ClassroomV1::ReturnStudentSubmissionRequest] return_student_submission_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::ClassroomV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def return_student_submission(course_id, course_work_id, id, return_student_submission_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:return', options) + command.request_representation = Google::Apis::ClassroomV1::ReturnStudentSubmissionRequest::Representation + command.request_object = return_student_submission_request_object + command.response_representation = Google::Apis::ClassroomV1::Empty::Representation + command.response_class = Google::Apis::ClassroomV1::Empty + command.params['courseId'] = course_id unless course_id.nil? + command.params['courseWorkId'] = course_work_id unless course_work_id.nil? + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Modifies attachments of student submission. Attachments may only be added to + # student submissions whose type is `ASSIGNMENT`. This request must be made by + # the Developer Console project of the [OAuth client ID](https://support.google. + # com/cloud/answer/6158849) used to create the corresponding course work item. + # This method returns the following error codes: * `PERMISSION_DENIED` if the + # requesting user is not permitted to access the requested course or course work, + # if the user is not permitted to modify attachments on the requested student + # submission, or for access errors. * `INVALID_ARGUMENT` if the request is + # malformed. * `NOT_FOUND` if the requested course, course work, or student + # submission does not exist. + # @param [String] course_id + # Identifier of the course. This identifier can be either the Classroom-assigned + # identifier or an alias. + # @param [String] course_work_id + # Identifier of the course work. + # @param [String] id + # Identifier of the student submission. + # @param [Google::Apis::ClassroomV1::ModifyAttachmentsRequest] modify_attachments_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::ClassroomV1::StudentSubmission] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ClassroomV1::StudentSubmission] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def modify_student_submission_attachments(course_id, course_work_id, id, modify_attachments_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:modifyAttachments', options) + command.request_representation = Google::Apis::ClassroomV1::ModifyAttachmentsRequest::Representation + command.request_object = modify_attachments_request_object + command.response_representation = Google::Apis::ClassroomV1::StudentSubmission::Representation + command.response_class = Google::Apis::ClassroomV1::StudentSubmission + command.params['courseId'] = course_id unless course_id.nil? + command.params['courseWorkId'] = course_work_id unless course_work_id.nil? + command.params['id'] = id unless id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Creates an invitation. Only one invitation for a user and course may exist at # a time. Delete and re-create an invitation to make changes. This method # returns the following error codes: * `PERMISSION_DENIED` if the requesting diff --git a/generated/google/apis/cloudbuild_v1.rb b/generated/google/apis/cloudbuild_v1.rb index 2273c408c..db98e5df3 100644 --- a/generated/google/apis/cloudbuild_v1.rb +++ b/generated/google/apis/cloudbuild_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/container-builder/docs/ module CloudbuildV1 VERSION = 'V1' - REVISION = '20160512' + REVISION = '20160525' # 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/cloudbuild_v1/classes.rb b/generated/google/apis/cloudbuild_v1/classes.rb index 0c5a755bd..afc8e7c22 100644 --- a/generated/google/apis/cloudbuild_v1/classes.rb +++ b/generated/google/apis/cloudbuild_v1/classes.rb @@ -341,7 +341,7 @@ module Google # @return [String] attr_accessor :status - # Time at whihc execution of the build was finished. + # Time at which execution of the build was finished. # @OutputOnly # Corresponds to the JSON property `finishTime` # @return [String] diff --git a/generated/google/apis/cloudresourcemanager_v1.rb b/generated/google/apis/cloudresourcemanager_v1.rb index 1dd6e8f62..34bdea1a3 100644 --- a/generated/google/apis/cloudresourcemanager_v1.rb +++ b/generated/google/apis/cloudresourcemanager_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/resource-manager module CloudresourcemanagerV1 VERSION = 'V1' - REVISION = '20160316' + REVISION = '20160518' # 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/cloudresourcemanager_v1beta1.rb b/generated/google/apis/cloudresourcemanager_v1beta1.rb index b99594383..2e92638e1 100644 --- a/generated/google/apis/cloudresourcemanager_v1beta1.rb +++ b/generated/google/apis/cloudresourcemanager_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/resource-manager module CloudresourcemanagerV1beta1 VERSION = 'V1beta1' - REVISION = '20160316' + REVISION = '20160518' # 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/cloudresourcemanager_v1beta1/classes.rb b/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb index 33791e2c4..1b52a4d6c 100644 --- a/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +++ b/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb @@ -184,6 +184,61 @@ module Google end end + # The request sent to the GetAncestry method. + class GetAncestryRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Response from the GetAncestry method. + class GetAncestryResponse + include Google::Apis::Core::Hashable + + # Ancestors are ordered from bottom to top of the resource hierarchy. The first + # ancestor is the project itself, followed by the project's parent, etc. + # Corresponds to the JSON property `ancestor` + # @return [Array] + attr_accessor :ancestor + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ancestor = args[:ancestor] if args.key?(:ancestor) + end + end + + # Identifying information for a single ancestor of a project. + class Ancestor + include Google::Apis::Core::Hashable + + # A container to reference an id for any resource type. A `resource` in Google + # Cloud Platform is a generic term for something you (a developer) may want to + # interact with through one of our API's. Some examples are an AppEngine app, a + # Compute Engine instance, a Cloud SQL database, and so on. + # Corresponds to the JSON property `resourceId` + # @return [Google::Apis::CloudresourcemanagerV1beta1::ResourceId] + attr_accessor :resource_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @resource_id = args[:resource_id] if args.key?(:resource_id) + end + end + # Request message for `GetIamPolicy` method. class GetIamPolicyRequest include Google::Apis::Core::Hashable diff --git a/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb b/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb index 3b1498d44..ded905450 100644 --- a/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +++ b/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb @@ -52,6 +52,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GetAncestryRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GetAncestryResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Ancestor + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GetIamPolicyRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -149,6 +167,28 @@ module Google end end + class GetAncestryRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class GetAncestryResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :ancestor, as: 'ancestor', class: Google::Apis::CloudresourcemanagerV1beta1::Ancestor, decorator: Google::Apis::CloudresourcemanagerV1beta1::Ancestor::Representation + + end + end + + class Ancestor + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :resource_id, as: 'resourceId', class: Google::Apis::CloudresourcemanagerV1beta1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1beta1::ResourceId::Representation + + end + end + class GetIamPolicyRequest # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/cloudresourcemanager_v1beta1/service.rb b/generated/google/apis/cloudresourcemanager_v1beta1/service.rb index c29b9b15b..dabeec7f1 100644 --- a/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +++ b/generated/google/apis/cloudresourcemanager_v1beta1/service.rb @@ -273,6 +273,41 @@ module Google execute_or_queue_command(command, &block) end + # Gets a list of ancestors in the resource hierarchy for the Project identified + # by the specified `project_id` (for example, `my-project-123`). The caller must + # have read permissions for this Project. + # @param [String] project_id + # The Project ID (for example, `my-project-123`). Required. + # @param [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryRequest] get_ancestry_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::CloudresourcemanagerV1beta1::GetAncestryResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_ancestry(project_id, get_ancestry_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/projects/{projectId}:getAncestry', options) + command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryRequest::Representation + command.request_object = get_ancestry_request_object + command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse::Representation + command.response_class = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse + command.params['projectId'] = project_id unless project_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 + # Returns the IAM access control policy for the specified Project. Permission is # denied if the policy or the resource does not exist. # @param [String] resource diff --git a/generated/google/apis/cloudtrace_v1.rb b/generated/google/apis/cloudtrace_v1.rb index 1ded3e0a9..351ea3a09 100644 --- a/generated/google/apis/cloudtrace_v1.rb +++ b/generated/google/apis/cloudtrace_v1.rb @@ -20,16 +20,24 @@ module Google module Apis # Google Cloud Trace API # - # The Cloud Trace API allows you to send traces to and retrieve traces from - # Google Cloud Trace. + # Send and retrieve trace data from Google Cloud Trace. Data is generated and + # available by default for all App Engine applications. Data from other + # applications can be written to Cloud Trace for display, reporting, and + # analysis. # # @see https://cloud.google.com/tools/cloud-trace module CloudtraceV1 VERSION = 'V1' - REVISION = '20151207' + REVISION = '20160518' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + + # Write Trace data for a project or application + AUTH_TRACE_APPEND = 'https://www.googleapis.com/auth/trace.append' + + # Read Trace data for a project or application + AUTH_TRACE_READONLY = 'https://www.googleapis.com/auth/trace.readonly' end end end diff --git a/generated/google/apis/cloudtrace_v1/classes.rb b/generated/google/apis/cloudtrace_v1/classes.rb index 2d1ac3f95..b13d580a3 100644 --- a/generated/google/apis/cloudtrace_v1/classes.rb +++ b/generated/google/apis/cloudtrace_v1/classes.rb @@ -103,11 +103,11 @@ module Google # @return [String] attr_accessor :kind - # Name of the trace. The trace name is sanitized and displayed in the Cloud - # Trace tool in the Google Developers Console. The name may be a method name or - # some other per-call site name. For the same executable and the same call point, - # a best practice is to use a consistent name, which makes it easier to - # correlate cross-trace spans. + # Name of the trace. The trace name is sanitized and displayed in the + # Stackdriver Trace tool in the `% dynamic print site_values.console_name %`. + # The name may be a method name or some other per-call site name. For the same + # executable and the same call point, a best practice is to use a consistent + # name, which makes it easier to correlate cross-trace spans. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name diff --git a/generated/google/apis/cloudtrace_v1/service.rb b/generated/google/apis/cloudtrace_v1/service.rb index 874ea707c..7525bce52 100644 --- a/generated/google/apis/cloudtrace_v1/service.rb +++ b/generated/google/apis/cloudtrace_v1/service.rb @@ -22,17 +22,19 @@ module Google module CloudtraceV1 # Google Cloud Trace API # - # The Cloud Trace API allows you to send traces to and retrieve traces from - # Google Cloud Trace. + # Send and retrieve trace data from Google Cloud Trace. Data is generated and + # available by default for all App Engine applications. Data from other + # applications can be written to Cloud Trace for display, reporting, and + # analysis. # # @example # require 'google/apis/cloudtrace_v1' # # Cloudtrace = Google::Apis::CloudtraceV1 # Alias the module - # service = Cloudtrace::CloudtraceService.new + # service = Cloudtrace::CloudTraceService.new # # @see https://cloud.google.com/tools/cloud-trace - class CloudtraceService < Google::Apis::Core::BaseService + class CloudTraceService < 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. @@ -47,8 +49,8 @@ module Google super('https://cloudtrace.googleapis.com/', '') end - # Sends new traces to Cloud Trace or updates existing traces. If the ID of a - # trace that you send matches that of an existing trace, any fields in the + # Sends new traces to Stackdriver Trace or updates existing traces. If the ID of + # a trace that you send matches that of an existing trace, any fields in the # existing trace and its spans are overwritten by the provided values, and any # new fields provided are merged with the existing trace data. If the ID does # not match, a new trace is created. diff --git a/generated/google/apis/compute_beta.rb b/generated/google/apis/compute_beta.rb index b083289ef..13a16ae2e 100644 --- a/generated/google/apis/compute_beta.rb +++ b/generated/google/apis/compute_beta.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/compute/docs/reference/latest/ module ComputeBeta VERSION = 'Beta' - REVISION = '20160426' + REVISION = '20160519' # 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/compute_beta/classes.rb b/generated/google/apis/compute_beta/classes.rb index 01dd408a2..27780269b 100644 --- a/generated/google/apis/compute_beta/classes.rb +++ b/generated/google/apis/compute_beta/classes.rb @@ -2139,6 +2139,10 @@ module Google # If both properties are set, an inbound connection is allowed if the range # matches the sourceRanges OR the tag of the source matches the sourceTags # property. The connection does not need to match both properties. + # Source tags cannot be used to allow access to an instance's external IP + # address. Because tags are associated with an instance, not an IP address, + # source tags can only be used to control traffic traveling from an instance + # inside the same network as the firewall. # Corresponds to the JSON property `sourceTags` # @return [Array] attr_accessor :source_tags @@ -5043,7 +5047,8 @@ module Google # @return [String] attr_accessor :id - # [Output Only] Whether this machine type has a shared CPU. + # [Output Only] Whether this machine type has a shared CPU. See Shared-core + # machine types for more information. # Corresponds to the JSON property `isSharedCpu` # @return [Boolean] attr_accessor :is_shared_cpu @@ -5648,9 +5653,9 @@ module Google # @return [String] attr_accessor :network - # An IPV4 internal network address to assign to the instance for this network - # interface. If not specified by user an unused internal IP is assigned by - # system. + # An IPv4 internal network address to assign to the instance for this network + # interface. If not specified by the user, an unused internal IP is assigned by + # the system. # Corresponds to the JSON property `networkIP` # @return [String] attr_accessor :network_ip diff --git a/generated/google/apis/compute_v1.rb b/generated/google/apis/compute_v1.rb index 78396136e..dc3748178 100644 --- a/generated/google/apis/compute_v1.rb +++ b/generated/google/apis/compute_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/compute/docs/reference/latest/ module ComputeV1 VERSION = 'V1' - REVISION = '20160426' + REVISION = '20160519' # 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/compute_v1/classes.rb b/generated/google/apis/compute_v1/classes.rb index 9a0352e1b..2c2effe71 100644 --- a/generated/google/apis/compute_v1/classes.rb +++ b/generated/google/apis/compute_v1/classes.rb @@ -1986,6 +1986,10 @@ module Google # If both properties are set, an inbound connection is allowed if the range # matches the sourceRanges OR the tag of the source matches the sourceTags # property. The connection does not need to match both properties. + # Source tags cannot be used to allow access to an instance's external IP + # address. Because tags are associated with an instance, not an IP address, + # source tags can only be used to control traffic traveling from an instance + # inside the same network as the firewall. # Corresponds to the JSON property `sourceTags` # @return [Array] attr_accessor :source_tags @@ -5273,9 +5277,9 @@ module Google # @return [String] attr_accessor :network - # An IPV4 internal network address to assign to the instance for this network - # interface. If not specified by user an unused internal IP is assigned by - # system. + # An IPv4 internal network address to assign to the instance for this network + # interface. If not specified by the user, an unused internal IP is assigned by + # the system. # Corresponds to the JSON property `networkIP` # @return [String] attr_accessor :network_ip diff --git a/generated/google/apis/content_v2.rb b/generated/google/apis/content_v2.rb index a56a84502..9418df3db 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 = '20160419' + REVISION = '20160520' # 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 9a58567b2..0248214bb 100644 --- a/generated/google/apis/content_v2/classes.rb +++ b/generated/google/apis/content_v2/classes.rb @@ -4554,6 +4554,12 @@ module Google # @return [Array] attr_accessor :additional_image_links + # Additional categories of the item (formatted as in products feed specification) + # . + # Corresponds to the JSON property `additionalProductTypes` + # @return [Array] + attr_accessor :additional_product_types + # Set to true if the item is targeted towards adults. # Corresponds to the JSON property `adult` # @return [Boolean] @@ -4931,6 +4937,7 @@ module Google # Update properties of this object def update!(**args) @additional_image_links = args[:additional_image_links] if args.key?(:additional_image_links) + @additional_product_types = args[:additional_product_types] if args.key?(:additional_product_types) @adult = args[:adult] if args.key?(:adult) @adwords_grouping = args[:adwords_grouping] if args.key?(:adwords_grouping) @adwords_labels = args[:adwords_labels] if args.key?(:adwords_labels) diff --git a/generated/google/apis/content_v2/representations.rb b/generated/google/apis/content_v2/representations.rb index d75998eb0..42ec9a51f 100644 --- a/generated/google/apis/content_v2/representations.rb +++ b/generated/google/apis/content_v2/representations.rb @@ -2212,6 +2212,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation collection :additional_image_links, as: 'additionalImageLinks' + collection :additional_product_types, as: 'additionalProductTypes' property :adult, as: 'adult' property :adwords_grouping, as: 'adwordsGrouping' collection :adwords_labels, as: 'adwordsLabels' diff --git a/generated/google/apis/dns_v1.rb b/generated/google/apis/dns_v1.rb index bd9a2b74d..1fb6c0ef3 100644 --- a/generated/google/apis/dns_v1.rb +++ b/generated/google/apis/dns_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/cloud-dns module DnsV1 VERSION = 'V1' - REVISION = '20160509' + REVISION = '20160513' # 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/doubleclicksearch_v2.rb b/generated/google/apis/doubleclicksearch_v2.rb index 65d671c28..b135850c7 100644 --- a/generated/google/apis/doubleclicksearch_v2.rb +++ b/generated/google/apis/doubleclicksearch_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/doubleclick-search/ module DoubleclicksearchV2 VERSION = 'V2' - REVISION = '20160506' + REVISION = '20160519' # View and manage your advertising data in DoubleClick Search AUTH_DOUBLECLICKSEARCH = 'https://www.googleapis.com/auth/doubleclicksearch' diff --git a/generated/google/apis/drive_v2.rb b/generated/google/apis/drive_v2.rb index f29641917..9db623f45 100644 --- a/generated/google/apis/drive_v2.rb +++ b/generated/google/apis/drive_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/drive/ module DriveV2 VERSION = 'V2' - REVISION = '20160506' + REVISION = '20160520' # View and manage the files in your Google Drive AUTH_DRIVE = 'https://www.googleapis.com/auth/drive' diff --git a/generated/google/apis/drive_v3.rb b/generated/google/apis/drive_v3.rb index a09fbd69d..2fc4e4d0c 100644 --- a/generated/google/apis/drive_v3.rb +++ b/generated/google/apis/drive_v3.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/drive/ module DriveV3 VERSION = 'V3' - REVISION = '20160506' + REVISION = '20160520' # View and manage the files in your Google Drive AUTH_DRIVE = 'https://www.googleapis.com/auth/drive' diff --git a/generated/google/apis/games_configuration_v1configuration.rb b/generated/google/apis/games_configuration_v1configuration.rb index bd16c2285..0835669e5 100644 --- a/generated/google/apis/games_configuration_v1configuration.rb +++ b/generated/google/apis/games_configuration_v1configuration.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/games/services module GamesConfigurationV1configuration VERSION = 'V1configuration' - REVISION = '20160509' + REVISION = '20160519' # View and manage your Google Play Developer account AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher' diff --git a/generated/google/apis/games_management_v1management.rb b/generated/google/apis/games_management_v1management.rb index 7b43fa529..13e2f7bd8 100644 --- a/generated/google/apis/games_management_v1management.rb +++ b/generated/google/apis/games_management_v1management.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/games/services module GamesManagementV1management VERSION = 'V1management' - REVISION = '20160509' + REVISION = '20160519' # Share your Google+ profile information and view and manage your game activity AUTH_GAMES = 'https://www.googleapis.com/auth/games' diff --git a/generated/google/apis/games_v1.rb b/generated/google/apis/games_v1.rb index db24ff29d..d4e9afcdf 100644 --- a/generated/google/apis/games_v1.rb +++ b/generated/google/apis/games_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/games/services/ module GamesV1 VERSION = 'V1' - REVISION = '20160509' + REVISION = '20160519' # View and manage its own configuration data in your Google Drive AUTH_DRIVE_APPDATA = 'https://www.googleapis.com/auth/drive.appdata' diff --git a/generated/google/apis/games_v1/service.rb b/generated/google/apis/games_v1/service.rb index 4d58c33b7..26241a64b 100644 --- a/generated/google/apis/games_v1/service.rb +++ b/generated/google/apis/games_v1/service.rb @@ -53,6 +53,8 @@ module Google end # Lists all the achievement definitions for your application. + # @param [String] consistency_token + # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [Fixnum] max_results @@ -82,10 +84,11 @@ 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_achievement_definitions(language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_achievement_definitions(consistency_token: nil, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'achievements', options) command.response_representation = Google::Apis::GamesV1::ListAchievementDefinitionsResponse::Representation command.response_class = Google::Apis::GamesV1::ListAchievementDefinitionsResponse + command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['pageToken'] = page_token unless page_token.nil? @@ -101,6 +104,8 @@ module Google # The ID of the achievement used by this method. # @param [Fixnum] steps_to_increment # The number of steps to increment. + # @param [String] consistency_token + # The last-seen mutation timestamp. # @param [String] request_id # A randomly generated numeric ID for each request specified by the caller. This # number is used at the server to ensure that the request is handled correctly @@ -126,11 +131,12 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def increment_achievement(achievement_id, steps_to_increment, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def increment_achievement(achievement_id, steps_to_increment, consistency_token: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'achievements/{achievementId}/increment', options) command.response_representation = Google::Apis::GamesV1::AchievementIncrementResponse::Representation command.response_class = Google::Apis::GamesV1::AchievementIncrementResponse command.params['achievementId'] = achievement_id unless achievement_id.nil? + command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['stepsToIncrement'] = steps_to_increment unless steps_to_increment.nil? command.query['fields'] = fields unless fields.nil? @@ -144,6 +150,8 @@ module Google # @param [String] player_id # A player ID. A value of me may be used in place of the authenticated player's # ID. + # @param [String] consistency_token + # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [Fixnum] max_results @@ -176,11 +184,12 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_achievements(player_id, language: nil, max_results: nil, page_token: nil, state: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_achievements(player_id, consistency_token: nil, language: nil, max_results: nil, page_token: nil, state: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'players/{playerId}/achievements', options) command.response_representation = Google::Apis::GamesV1::ListPlayerAchievementResponse::Representation command.response_class = Google::Apis::GamesV1::ListPlayerAchievementResponse command.params['playerId'] = player_id unless player_id.nil? + command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['pageToken'] = page_token unless page_token.nil? @@ -195,6 +204,8 @@ module Google # currently authenticated player. # @param [String] achievement_id # The ID of the achievement used by this method. + # @param [String] consistency_token + # The last-seen mutation timestamp. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -216,11 +227,12 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def reveal_achievement(achievement_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def reveal_achievement(achievement_id, consistency_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'achievements/{achievementId}/reveal', options) command.response_representation = Google::Apis::GamesV1::AchievementRevealResponse::Representation command.response_class = Google::Apis::GamesV1::AchievementRevealResponse command.params['achievementId'] = achievement_id unless achievement_id.nil? + command.query['consistencyToken'] = consistency_token unless consistency_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? @@ -235,6 +247,8 @@ module Google # The ID of the achievement used by this method. # @param [Fixnum] steps # The minimum value to set the steps to. + # @param [String] consistency_token + # The last-seen mutation timestamp. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -256,11 +270,12 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def set_achievement_steps_at_least(achievement_id, steps, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def set_achievement_steps_at_least(achievement_id, steps, consistency_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'achievements/{achievementId}/setStepsAtLeast', options) command.response_representation = Google::Apis::GamesV1::AchievementSetStepsAtLeastResponse::Representation command.response_class = Google::Apis::GamesV1::AchievementSetStepsAtLeastResponse command.params['achievementId'] = achievement_id unless achievement_id.nil? + command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['steps'] = steps unless steps.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -271,6 +286,8 @@ module Google # Unlocks this achievement for the currently authenticated player. # @param [String] achievement_id # The ID of the achievement used by this method. + # @param [String] consistency_token + # The last-seen mutation timestamp. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -292,11 +309,12 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def unlock_achievement(achievement_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def unlock_achievement(achievement_id, consistency_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'achievements/{achievementId}/unlock', options) command.response_representation = Google::Apis::GamesV1::AchievementUnlockResponse::Representation command.response_class = Google::Apis::GamesV1::AchievementUnlockResponse command.params['achievementId'] = achievement_id unless achievement_id.nil? + command.query['consistencyToken'] = consistency_token unless consistency_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? @@ -305,6 +323,8 @@ module Google # Updates multiple achievements for the currently authenticated player. # @param [Google::Apis::GamesV1::AchievementUpdateMultipleRequest] achievement_update_multiple_request_object + # @param [String] consistency_token + # The last-seen mutation timestamp. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -326,12 +346,13 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_multiple_achievements(achievement_update_multiple_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def update_multiple_achievements(achievement_update_multiple_request_object = nil, consistency_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'achievements/updateMultiple', options) command.request_representation = Google::Apis::GamesV1::AchievementUpdateMultipleRequest::Representation command.request_object = achievement_update_multiple_request_object command.response_representation = Google::Apis::GamesV1::AchievementUpdateMultipleResponse::Representation command.response_class = Google::Apis::GamesV1::AchievementUpdateMultipleResponse + command.query['consistencyToken'] = consistency_token unless consistency_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? @@ -343,6 +364,8 @@ module Google # response will not include any instance data. # @param [String] application_id # The application ID from the Google Play developer console. + # @param [String] consistency_token + # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [String] platform_type @@ -368,11 +391,12 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_application(application_id, language: nil, platform_type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_application(application_id, consistency_token: nil, language: nil, platform_type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'applications/{applicationId}', options) command.response_representation = Google::Apis::GamesV1::Application::Representation command.response_class = Google::Apis::GamesV1::Application command.params['applicationId'] = application_id unless application_id.nil? + command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['platformType'] = platform_type unless platform_type.nil? command.query['fields'] = fields unless fields.nil? @@ -382,6 +406,8 @@ module Google end # Indicate that the the currently authenticated user is playing your application. + # @param [String] consistency_token + # The last-seen mutation timestamp. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -403,8 +429,9 @@ 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 played_application(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def played_application(consistency_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'applications/played', options) + command.query['consistencyToken'] = consistency_token unless consistency_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? @@ -415,6 +442,8 @@ module Google # the specified ID, and returns the ID of the player it was granted for. # @param [String] application_id # The application ID from the Google Play developer console. + # @param [String] consistency_token + # The last-seen mutation timestamp. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -436,11 +465,12 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def verify_application(application_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def verify_application(application_id, consistency_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'applications/{applicationId}/verify', options) command.response_representation = Google::Apis::GamesV1::ApplicationVerifyResponse::Representation command.response_class = Google::Apis::GamesV1::ApplicationVerifyResponse command.params['applicationId'] = application_id unless application_id.nil? + command.query['consistencyToken'] = consistency_token unless consistency_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? @@ -449,6 +479,8 @@ module Google # Returns a list showing the current progress on events in this application for # the currently authenticated user. + # @param [String] consistency_token + # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [Fixnum] max_results @@ -478,10 +510,11 @@ 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_event_by_player(language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_event_by_player(consistency_token: nil, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'events', options) command.response_representation = Google::Apis::GamesV1::ListPlayerEventResponse::Representation command.response_class = Google::Apis::GamesV1::ListPlayerEventResponse + command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['pageToken'] = page_token unless page_token.nil? @@ -492,6 +525,8 @@ module Google end # Returns a list of the event definitions in this application. + # @param [String] consistency_token + # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [Fixnum] max_results @@ -521,10 +556,11 @@ 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_event_definitions(language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_event_definitions(consistency_token: nil, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'eventDefinitions', options) command.response_representation = Google::Apis::GamesV1::ListEventDefinitionResponse::Representation command.response_class = Google::Apis::GamesV1::ListEventDefinitionResponse + command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['pageToken'] = page_token unless page_token.nil? @@ -537,6 +573,8 @@ module Google # Records a batch of changes to the number of times events have occurred for the # currently authenticated user of this application. # @param [Google::Apis::GamesV1::EventRecordRequest] event_record_request_object + # @param [String] consistency_token + # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [String] fields @@ -560,12 +598,13 @@ 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 record_event(event_record_request_object = nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def record_event(event_record_request_object = nil, consistency_token: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'events', options) command.request_representation = Google::Apis::GamesV1::EventRecordRequest::Representation command.request_object = event_record_request_object command.response_representation = Google::Apis::GamesV1::UpdateEventResponse::Representation command.response_class = Google::Apis::GamesV1::UpdateEventResponse + command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -576,6 +615,8 @@ module Google # Retrieves the metadata of the leaderboard with the given ID. # @param [String] leaderboard_id # The ID of the leaderboard. + # @param [String] consistency_token + # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [String] fields @@ -599,11 +640,12 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_leaderboard(leaderboard_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_leaderboard(leaderboard_id, consistency_token: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'leaderboards/{leaderboardId}', options) command.response_representation = Google::Apis::GamesV1::Leaderboard::Representation command.response_class = Google::Apis::GamesV1::Leaderboard command.params['leaderboardId'] = leaderboard_id unless leaderboard_id.nil? + command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -612,6 +654,8 @@ module Google end # Lists all the leaderboard metadata for your application. + # @param [String] consistency_token + # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [Fixnum] max_results @@ -641,10 +685,11 @@ 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_leaderboards(language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_leaderboards(consistency_token: nil, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'leaderboards', options) command.response_representation = Google::Apis::GamesV1::ListLeaderboardResponse::Representation command.response_class = Google::Apis::GamesV1::ListLeaderboardResponse + command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['pageToken'] = page_token unless page_token.nil? @@ -655,6 +700,8 @@ module Google end # Return the metagame configuration data for the calling application. + # @param [String] consistency_token + # The last-seen mutation timestamp. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -676,10 +723,11 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_metagame_config(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_metagame_config(consistency_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'metagameConfig', options) command.response_representation = Google::Apis::GamesV1::MetagameConfig::Representation command.response_class = Google::Apis::GamesV1::MetagameConfig + command.query['consistencyToken'] = consistency_token unless consistency_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? @@ -693,6 +741,8 @@ module Google # ID. # @param [String] collection # The collection of categories for which data will be returned. + # @param [String] consistency_token + # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [Fixnum] max_results @@ -722,12 +772,13 @@ 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_metagame_categories_by_player(player_id, collection, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_metagame_categories_by_player(player_id, collection, consistency_token: nil, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'players/{playerId}/categories/{collection}', options) command.response_representation = Google::Apis::GamesV1::ListCategoryResponse::Representation command.response_class = Google::Apis::GamesV1::ListCategoryResponse command.params['playerId'] = player_id unless player_id.nil? command.params['collection'] = collection unless collection.nil? + command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['pageToken'] = page_token unless page_token.nil? @@ -742,6 +793,8 @@ module Google # @param [String] player_id # A player ID. A value of me may be used in place of the authenticated player's # ID. + # @param [String] consistency_token + # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [String] fields @@ -765,11 +818,12 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_player(player_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_player(player_id, consistency_token: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'players/{playerId}', options) command.response_representation = Google::Apis::GamesV1::Player::Representation command.response_class = Google::Apis::GamesV1::Player command.params['playerId'] = player_id unless player_id.nil? + command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -780,6 +834,8 @@ module Google # Get the collection of players for the currently authenticated user. # @param [String] collection # Collection of players being retrieved + # @param [String] consistency_token + # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [Fixnum] max_results @@ -809,11 +865,12 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_players(collection, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_players(collection, consistency_token: nil, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'players/me/players/{collection}', options) command.response_representation = Google::Apis::GamesV1::ListPlayerResponse::Representation command.response_class = Google::Apis::GamesV1::ListPlayerResponse command.params['collection'] = collection unless collection.nil? + command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['pageToken'] = page_token unless page_token.nil? @@ -826,6 +883,8 @@ module Google # Removes a push token for the current user and application. Removing a non- # existent push token will report success. # @param [Google::Apis::GamesV1::PushTokenId] push_token_id_object + # @param [String] consistency_token + # The last-seen mutation timestamp. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -847,10 +906,11 @@ 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 remove_pushtoken(push_token_id_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def remove_pushtoken(push_token_id_object = nil, consistency_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'pushtokens/remove', options) command.request_representation = Google::Apis::GamesV1::PushTokenId::Representation command.request_object = push_token_id_object + command.query['consistencyToken'] = consistency_token unless consistency_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? @@ -859,6 +919,8 @@ module Google # Registers a push token for the current user and application. # @param [Google::Apis::GamesV1::PushToken] push_token_object + # @param [String] consistency_token + # The last-seen mutation timestamp. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -880,10 +942,11 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_pushtoken(push_token_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def update_pushtoken(push_token_object = nil, consistency_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:put, 'pushtokens', options) command.request_representation = Google::Apis::GamesV1::PushToken::Representation command.request_object = push_token_object + command.query['consistencyToken'] = consistency_token unless consistency_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? @@ -900,6 +963,8 @@ module Google # @param [String] request_id # A numeric ID to ensure that the request is handled correctly across retries. # Your client application must generate this ID randomly. + # @param [String] consistency_token + # The last-seen mutation timestamp. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -921,10 +986,11 @@ 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 claim_quest_milestone(quest_id, milestone_id, request_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def claim_quest_milestone(quest_id, milestone_id, request_id, consistency_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:put, 'quests/{questId}/milestones/{milestoneId}/claim', options) command.params['questId'] = quest_id unless quest_id.nil? command.params['milestoneId'] = milestone_id unless milestone_id.nil? + command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -935,6 +1001,8 @@ module Google # Indicates that the currently authorized user will participate in the quest. # @param [String] quest_id # The ID of the quest. + # @param [String] consistency_token + # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [String] fields @@ -958,11 +1026,12 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def accept_quest(quest_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def accept_quest(quest_id, consistency_token: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'quests/{questId}/accept', options) command.response_representation = Google::Apis::GamesV1::Quest::Representation command.response_class = Google::Apis::GamesV1::Quest command.params['questId'] = quest_id unless quest_id.nil? + command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -975,6 +1044,8 @@ module Google # @param [String] player_id # A player ID. A value of me may be used in place of the authenticated player's # ID. + # @param [String] consistency_token + # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [Fixnum] max_results @@ -1005,11 +1076,12 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_quests(player_id, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_quests(player_id, consistency_token: nil, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'players/{playerId}/quests', options) command.response_representation = Google::Apis::GamesV1::ListQuestResponse::Representation command.response_class = Google::Apis::GamesV1::ListQuestResponse command.params['playerId'] = player_id unless player_id.nil? + command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['pageToken'] = page_token unless page_token.nil? @@ -1027,6 +1099,8 @@ module Google # - "ANDROID" - Client is running the Android SDK. # - "IOS" - Client is running the iOS SDK. # - "WEB_APP" - Client is running as a Web App. + # @param [String] consistency_token + # The last-seen mutation timestamp. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1048,11 +1122,12 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def check_revision(client_revision, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def check_revision(client_revision, consistency_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'revisions/check', options) command.response_representation = Google::Apis::GamesV1::CheckRevisionResponse::Representation command.response_class = Google::Apis::GamesV1::CheckRevisionResponse command.query['clientRevision'] = client_revision unless client_revision.nil? + command.query['consistencyToken'] = consistency_token unless consistency_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? @@ -1062,6 +1137,8 @@ module Google # Create a room. For internal use by the Games SDK only. Calling this method # directly is unsupported. # @param [Google::Apis::GamesV1::CreateRoomRequest] create_room_request_object + # @param [String] consistency_token + # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [String] fields @@ -1085,12 +1162,13 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def create_room(create_room_request_object = nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def create_room(create_room_request_object = nil, consistency_token: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'rooms/create', options) command.request_representation = Google::Apis::GamesV1::CreateRoomRequest::Representation command.request_object = create_room_request_object command.response_representation = Google::Apis::GamesV1::Room::Representation command.response_class = Google::Apis::GamesV1::Room + command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -1102,6 +1180,8 @@ module Google # Calling this method directly is unsupported. # @param [String] room_id # The ID of the room. + # @param [String] consistency_token + # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [String] fields @@ -1125,11 +1205,12 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def decline_room(room_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def decline_room(room_id, consistency_token: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'rooms/{roomId}/decline', options) command.response_representation = Google::Apis::GamesV1::Room::Representation command.response_class = Google::Apis::GamesV1::Room command.params['roomId'] = room_id unless room_id.nil? + command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -1141,6 +1222,8 @@ module Google # Calling this method directly is unsupported. # @param [String] room_id # The ID of the room. + # @param [String] consistency_token + # The last-seen mutation timestamp. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1162,9 +1245,10 @@ 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 dismiss_room(room_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def dismiss_room(room_id, consistency_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'rooms/{roomId}/dismiss', options) command.params['roomId'] = room_id unless room_id.nil? + command.query['consistencyToken'] = consistency_token unless consistency_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? @@ -1174,6 +1258,8 @@ module Google # Get the data for a room. # @param [String] room_id # The ID of the room. + # @param [String] consistency_token + # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [String] fields @@ -1197,11 +1283,12 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_room(room_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_room(room_id, consistency_token: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'rooms/{roomId}', options) command.response_representation = Google::Apis::GamesV1::Room::Representation command.response_class = Google::Apis::GamesV1::Room command.params['roomId'] = room_id unless room_id.nil? + command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -1214,6 +1301,8 @@ module Google # @param [String] room_id # The ID of the room. # @param [Google::Apis::GamesV1::JoinRoomRequest] join_room_request_object + # @param [String] consistency_token + # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [String] fields @@ -1237,13 +1326,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def join_room(room_id, join_room_request_object = nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def join_room(room_id, join_room_request_object = nil, consistency_token: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'rooms/{roomId}/join', options) command.request_representation = Google::Apis::GamesV1::JoinRoomRequest::Representation command.request_object = join_room_request_object command.response_representation = Google::Apis::GamesV1::Room::Representation command.response_class = Google::Apis::GamesV1::Room command.params['roomId'] = room_id unless room_id.nil? + command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -1256,6 +1346,8 @@ module Google # @param [String] room_id # The ID of the room. # @param [Google::Apis::GamesV1::LeaveRoomRequest] leave_room_request_object + # @param [String] consistency_token + # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [String] fields @@ -1279,13 +1371,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def leave_room(room_id, leave_room_request_object = nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def leave_room(room_id, leave_room_request_object = nil, consistency_token: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'rooms/{roomId}/leave', options) command.request_representation = Google::Apis::GamesV1::LeaveRoomRequest::Representation command.request_object = leave_room_request_object command.response_representation = Google::Apis::GamesV1::Room::Representation command.response_class = Google::Apis::GamesV1::Room command.params['roomId'] = room_id unless room_id.nil? + command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -1294,6 +1387,8 @@ module Google end # Returns invitations to join rooms. + # @param [String] consistency_token + # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [Fixnum] max_results @@ -1323,10 +1418,11 @@ 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_rooms(language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_rooms(consistency_token: nil, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'rooms', options) command.response_representation = Google::Apis::GamesV1::RoomList::Representation command.response_class = Google::Apis::GamesV1::RoomList + command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['pageToken'] = page_token unless page_token.nil? @@ -1341,6 +1437,8 @@ module Google # @param [String] room_id # The ID of the room. # @param [Google::Apis::GamesV1::RoomP2PStatuses] room_p2_p_statuses_object + # @param [String] consistency_token + # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [String] fields @@ -1364,13 +1462,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def report_room_status(room_id, room_p2_p_statuses_object = nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def report_room_status(room_id, room_p2_p_statuses_object = nil, consistency_token: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'rooms/{roomId}/reportstatus', options) command.request_representation = Google::Apis::GamesV1::RoomP2PStatuses::Representation command.request_object = room_p2_p_statuses_object command.response_representation = Google::Apis::GamesV1::RoomStatus::Representation command.response_class = Google::Apis::GamesV1::RoomStatus command.params['roomId'] = room_id unless room_id.nil? + command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -1391,6 +1490,8 @@ module Google # leaderboards for this application. # @param [String] time_span # The time span for the scores and ranks you're requesting. + # @param [String] consistency_token + # The last-seen mutation timestamp. # @param [String] include_rank_type # The types of ranks to return. If the parameter is omitted, no ranks will be # returned. @@ -1423,13 +1524,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_score(player_id, leaderboard_id, time_span, include_rank_type: nil, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_score(player_id, leaderboard_id, time_span, consistency_token: nil, include_rank_type: nil, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'players/{playerId}/leaderboards/{leaderboardId}/scores/{timeSpan}', options) command.response_representation = Google::Apis::GamesV1::ListPlayerLeaderboardScoreResponse::Representation command.response_class = Google::Apis::GamesV1::ListPlayerLeaderboardScoreResponse command.params['playerId'] = player_id unless player_id.nil? command.params['leaderboardId'] = leaderboard_id unless leaderboard_id.nil? command.params['timeSpan'] = time_span unless time_span.nil? + command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['includeRankType'] = include_rank_type unless include_rank_type.nil? command.query['language'] = language unless language.nil? command.query['maxResults'] = max_results unless max_results.nil? @@ -1447,6 +1549,8 @@ module Google # The collection of scores you're requesting. # @param [String] time_span # The time span for the scores and ranks you're requesting. + # @param [String] consistency_token + # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [Fixnum] max_results @@ -1476,12 +1580,13 @@ 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_scores(leaderboard_id, collection, time_span, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_scores(leaderboard_id, collection, time_span, consistency_token: nil, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'leaderboards/{leaderboardId}/scores/{collection}', options) command.response_representation = Google::Apis::GamesV1::LeaderboardScores::Representation command.response_class = Google::Apis::GamesV1::LeaderboardScores command.params['leaderboardId'] = leaderboard_id unless leaderboard_id.nil? command.params['collection'] = collection unless collection.nil? + command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['pageToken'] = page_token unless page_token.nil? @@ -1499,6 +1604,8 @@ module Google # The collection of scores you're requesting. # @param [String] time_span # The time span for the scores and ranks you're requesting. + # @param [String] consistency_token + # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [Fixnum] max_results @@ -1536,12 +1643,13 @@ 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_score_window(leaderboard_id, collection, time_span, language: nil, max_results: nil, page_token: nil, results_above: nil, return_top_if_absent: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_score_window(leaderboard_id, collection, time_span, consistency_token: nil, language: nil, max_results: nil, page_token: nil, results_above: nil, return_top_if_absent: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'leaderboards/{leaderboardId}/window/{collection}', options) command.response_representation = Google::Apis::GamesV1::LeaderboardScores::Representation command.response_class = Google::Apis::GamesV1::LeaderboardScores command.params['leaderboardId'] = leaderboard_id unless leaderboard_id.nil? command.params['collection'] = collection unless collection.nil? + command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['pageToken'] = page_token unless page_token.nil? @@ -1564,6 +1672,8 @@ module Google # For fixed-point, the score represents the raw value. For time, the score # represents elapsed time in milliseconds. For currency, the score represents a # value in micro units. + # @param [String] consistency_token + # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [String] score_tag @@ -1590,11 +1700,12 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def submit_score(leaderboard_id, score, language: nil, score_tag: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def submit_score(leaderboard_id, score, consistency_token: nil, language: nil, score_tag: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'leaderboards/{leaderboardId}/scores', options) command.response_representation = Google::Apis::GamesV1::PlayerScoreResponse::Representation command.response_class = Google::Apis::GamesV1::PlayerScoreResponse command.params['leaderboardId'] = leaderboard_id unless leaderboard_id.nil? + command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['score'] = score unless score.nil? command.query['scoreTag'] = score_tag unless score_tag.nil? @@ -1606,6 +1717,8 @@ module Google # Submits multiple scores to leaderboards. # @param [Google::Apis::GamesV1::PlayerScoreSubmissionList] player_score_submission_list_object + # @param [String] consistency_token + # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [String] fields @@ -1629,12 +1742,13 @@ 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 submit_score_multiple(player_score_submission_list_object = nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def submit_score_multiple(player_score_submission_list_object = nil, consistency_token: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'leaderboards/scores', options) command.request_representation = Google::Apis::GamesV1::PlayerScoreSubmissionList::Representation command.request_object = player_score_submission_list_object command.response_representation = Google::Apis::GamesV1::ListPlayerScoreResponse::Representation command.response_class = Google::Apis::GamesV1::ListPlayerScoreResponse + command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -1645,6 +1759,8 @@ module Google # Retrieves the metadata for a given snapshot ID. # @param [String] snapshot_id # The ID of the snapshot. + # @param [String] consistency_token + # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [String] fields @@ -1668,11 +1784,12 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_snapshot(snapshot_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_snapshot(snapshot_id, consistency_token: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'snapshots/{snapshotId}', options) command.response_representation = Google::Apis::GamesV1::Snapshot::Representation command.response_class = Google::Apis::GamesV1::Snapshot command.params['snapshotId'] = snapshot_id unless snapshot_id.nil? + command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -1685,6 +1802,8 @@ module Google # @param [String] player_id # A player ID. A value of me may be used in place of the authenticated player's # ID. + # @param [String] consistency_token + # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [Fixnum] max_results @@ -1714,11 +1833,12 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_snapshots(player_id, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_snapshots(player_id, consistency_token: nil, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'players/{playerId}/snapshots', options) command.response_representation = Google::Apis::GamesV1::ListSnapshotResponse::Representation command.response_class = Google::Apis::GamesV1::ListSnapshotResponse command.params['playerId'] = player_id unless player_id.nil? + command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['pageToken'] = page_token unless page_token.nil? @@ -1731,6 +1851,8 @@ module Google # Cancel a turn-based match. # @param [String] match_id # The ID of the match. + # @param [String] consistency_token + # The last-seen mutation timestamp. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1752,9 +1874,10 @@ 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 cancel_turn_based_match(match_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def cancel_turn_based_match(match_id, consistency_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:put, 'turnbasedmatches/{matchId}/cancel', options) command.params['matchId'] = match_id unless match_id.nil? + command.query['consistencyToken'] = consistency_token unless consistency_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? @@ -1763,6 +1886,8 @@ module Google # Create a turn-based match. # @param [Google::Apis::GamesV1::CreateTurnBasedMatchRequest] create_turn_based_match_request_object + # @param [String] consistency_token + # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [String] fields @@ -1786,12 +1911,13 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def create_turn_based_match(create_turn_based_match_request_object = nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def create_turn_based_match(create_turn_based_match_request_object = nil, consistency_token: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'turnbasedmatches/create', options) command.request_representation = Google::Apis::GamesV1::CreateTurnBasedMatchRequest::Representation command.request_object = create_turn_based_match_request_object command.response_representation = Google::Apis::GamesV1::TurnBasedMatch::Representation command.response_class = Google::Apis::GamesV1::TurnBasedMatch + command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -1802,6 +1928,8 @@ module Google # Decline an invitation to play a turn-based match. # @param [String] match_id # The ID of the match. + # @param [String] consistency_token + # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [String] fields @@ -1825,11 +1953,12 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def decline_turn_based_match(match_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def decline_turn_based_match(match_id, consistency_token: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:put, 'turnbasedmatches/{matchId}/decline', options) command.response_representation = Google::Apis::GamesV1::TurnBasedMatch::Representation command.response_class = Google::Apis::GamesV1::TurnBasedMatch command.params['matchId'] = match_id unless match_id.nil? + command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -1841,6 +1970,8 @@ module Google # up in the list and will not generate notifications. # @param [String] match_id # The ID of the match. + # @param [String] consistency_token + # The last-seen mutation timestamp. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1862,9 +1993,10 @@ 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 dismiss_turn_based_match(match_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def dismiss_turn_based_match(match_id, consistency_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:put, 'turnbasedmatches/{matchId}/dismiss', options) command.params['matchId'] = match_id unless match_id.nil? + command.query['consistencyToken'] = consistency_token unless consistency_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? @@ -1877,6 +2009,8 @@ module Google # @param [String] match_id # The ID of the match. # @param [Google::Apis::GamesV1::TurnBasedMatchResults] turn_based_match_results_object + # @param [String] consistency_token + # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [String] fields @@ -1900,13 +2034,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def finish_turn_based_match(match_id, turn_based_match_results_object = nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def finish_turn_based_match(match_id, turn_based_match_results_object = nil, consistency_token: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:put, 'turnbasedmatches/{matchId}/finish', options) command.request_representation = Google::Apis::GamesV1::TurnBasedMatchResults::Representation command.request_object = turn_based_match_results_object command.response_representation = Google::Apis::GamesV1::TurnBasedMatch::Representation command.response_class = Google::Apis::GamesV1::TurnBasedMatch command.params['matchId'] = match_id unless match_id.nil? + command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -1917,6 +2052,8 @@ module Google # Get the data for a turn-based match. # @param [String] match_id # The ID of the match. + # @param [String] consistency_token + # The last-seen mutation timestamp. # @param [Boolean] include_match_data # Get match data along with metadata. # @param [String] language @@ -1942,11 +2079,12 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_turn_based_match(match_id, include_match_data: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_turn_based_match(match_id, consistency_token: nil, include_match_data: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'turnbasedmatches/{matchId}', options) command.response_representation = Google::Apis::GamesV1::TurnBasedMatch::Representation command.response_class = Google::Apis::GamesV1::TurnBasedMatch command.params['matchId'] = match_id unless match_id.nil? + command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['includeMatchData'] = include_match_data unless include_match_data.nil? command.query['language'] = language unless language.nil? command.query['fields'] = fields unless fields.nil? @@ -1958,6 +2096,8 @@ module Google # Join a turn-based match. # @param [String] match_id # The ID of the match. + # @param [String] consistency_token + # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [String] fields @@ -1981,11 +2121,12 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def join_turn_based_match(match_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def join_turn_based_match(match_id, consistency_token: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:put, 'turnbasedmatches/{matchId}/join', options) command.response_representation = Google::Apis::GamesV1::TurnBasedMatch::Representation command.response_class = Google::Apis::GamesV1::TurnBasedMatch command.params['matchId'] = match_id unless match_id.nil? + command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -1997,6 +2138,8 @@ module Google # canceling the match. # @param [String] match_id # The ID of the match. + # @param [String] consistency_token + # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [String] fields @@ -2020,11 +2163,12 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def leave_turn_based_match(match_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def leave_turn_based_match(match_id, consistency_token: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:put, 'turnbasedmatches/{matchId}/leave', options) command.response_representation = Google::Apis::GamesV1::TurnBasedMatch::Representation command.response_class = Google::Apis::GamesV1::TurnBasedMatch command.params['matchId'] = match_id unless match_id.nil? + command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -2038,6 +2182,8 @@ module Google # The ID of the match. # @param [Fixnum] match_version # The version of the match being updated. + # @param [String] consistency_token + # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [String] pending_participant_id @@ -2066,11 +2212,12 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def leave_turn(match_id, match_version, language: nil, pending_participant_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def leave_turn(match_id, match_version, consistency_token: nil, language: nil, pending_participant_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:put, 'turnbasedmatches/{matchId}/leaveTurn', options) command.response_representation = Google::Apis::GamesV1::TurnBasedMatch::Representation command.response_class = Google::Apis::GamesV1::TurnBasedMatch command.params['matchId'] = match_id unless match_id.nil? + command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['matchVersion'] = match_version unless match_version.nil? command.query['pendingParticipantId'] = pending_participant_id unless pending_participant_id.nil? @@ -2081,6 +2228,8 @@ module Google end # Returns turn-based matches the player is or was involved in. + # @param [String] consistency_token + # The last-seen mutation timestamp. # @param [Boolean] include_match_data # True if match data should be returned in the response. Note that not all data # will necessarily be returned if include_match_data is true; the server may @@ -2119,10 +2268,11 @@ 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_turn_based_matches(include_match_data: nil, language: nil, max_completed_matches: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_turn_based_matches(consistency_token: nil, include_match_data: nil, language: nil, max_completed_matches: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'turnbasedmatches', options) command.response_representation = Google::Apis::GamesV1::TurnBasedMatchList::Representation command.response_class = Google::Apis::GamesV1::TurnBasedMatchList + command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['includeMatchData'] = include_match_data unless include_match_data.nil? command.query['language'] = language unless language.nil? command.query['maxCompletedMatches'] = max_completed_matches unless max_completed_matches.nil? @@ -2140,6 +2290,8 @@ module Google # match; it will be the caller's turn. # @param [String] match_id # The ID of the match. + # @param [String] consistency_token + # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [String] request_id @@ -2167,11 +2319,12 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def rematch_turn_based_match(match_id, language: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def rematch_turn_based_match(match_id, consistency_token: nil, language: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'turnbasedmatches/{matchId}/rematch', options) command.response_representation = Google::Apis::GamesV1::TurnBasedMatchRematch::Representation command.response_class = Google::Apis::GamesV1::TurnBasedMatchRematch command.params['matchId'] = match_id unless match_id.nil? + command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['fields'] = fields unless fields.nil? @@ -2183,6 +2336,8 @@ module Google # Returns turn-based matches the player is or was involved in that changed since # the last sync call, with the least recent changes coming first. Matches that # should be removed from the local cache will have a status of MATCH_DELETED. + # @param [String] consistency_token + # The last-seen mutation timestamp. # @param [Boolean] include_match_data # True if match data should be returned in the response. Note that not all data # will necessarily be returned if include_match_data is true; the server may @@ -2221,10 +2376,11 @@ 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 sync_turn_based_match(include_match_data: nil, language: nil, max_completed_matches: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def sync_turn_based_match(consistency_token: nil, include_match_data: nil, language: nil, max_completed_matches: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'turnbasedmatches/sync', options) command.response_representation = Google::Apis::GamesV1::TurnBasedMatchSync::Representation command.response_class = Google::Apis::GamesV1::TurnBasedMatchSync + command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['includeMatchData'] = include_match_data unless include_match_data.nil? command.query['language'] = language unless language.nil? command.query['maxCompletedMatches'] = max_completed_matches unless max_completed_matches.nil? @@ -2240,6 +2396,8 @@ module Google # @param [String] match_id # The ID of the match. # @param [Google::Apis::GamesV1::TurnBasedMatchTurn] turn_based_match_turn_object + # @param [String] consistency_token + # The last-seen mutation timestamp. # @param [String] language # The preferred language to use for strings returned by this method. # @param [String] fields @@ -2263,13 +2421,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def take_turn(match_id, turn_based_match_turn_object = nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def take_turn(match_id, turn_based_match_turn_object = nil, consistency_token: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:put, 'turnbasedmatches/{matchId}/turn', options) command.request_representation = Google::Apis::GamesV1::TurnBasedMatchTurn::Representation command.request_object = turn_based_match_turn_object command.response_representation = Google::Apis::GamesV1::TurnBasedMatch::Representation command.response_class = Google::Apis::GamesV1::TurnBasedMatch command.params['matchId'] = match_id unless match_id.nil? + command.query['consistencyToken'] = consistency_token unless consistency_token.nil? command.query['language'] = language unless language.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? diff --git a/generated/google/apis/genomics_v1.rb b/generated/google/apis/genomics_v1.rb index 69656d682..9a2a214ae 100644 --- a/generated/google/apis/genomics_v1.rb +++ b/generated/google/apis/genomics_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/genomics/ module GenomicsV1 VERSION = 'V1' - REVISION = '20160512' + REVISION = '20160524' # View and manage your data in Google BigQuery AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery' diff --git a/generated/google/apis/gmail_v1.rb b/generated/google/apis/gmail_v1.rb index 891b11ebe..3c8714ced 100644 --- a/generated/google/apis/gmail_v1.rb +++ b/generated/google/apis/gmail_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/gmail/api/ module GmailV1 VERSION = 'V1' - REVISION = '20160316' + REVISION = '20160522' # View and manage your mail AUTH_SCOPE = 'https://mail.google.com/' diff --git a/generated/google/apis/identitytoolkit_v3.rb b/generated/google/apis/identitytoolkit_v3.rb index 43a843fea..5180021e9 100644 --- a/generated/google/apis/identitytoolkit_v3.rb +++ b/generated/google/apis/identitytoolkit_v3.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/identity-toolkit/v3/ module IdentitytoolkitV3 VERSION = 'V3' - REVISION = '20160420' + REVISION = '20160510' end end end diff --git a/generated/google/apis/identitytoolkit_v3/classes.rb b/generated/google/apis/identitytoolkit_v3/classes.rb index c0cf66fe5..136463426 100644 --- a/generated/google/apis/identitytoolkit_v3/classes.rb +++ b/generated/google/apis/identitytoolkit_v3/classes.rb @@ -1037,6 +1037,12 @@ module Google class VerifyCustomTokenRequest include Google::Apis::Core::Hashable + # GCP project number of the requesting delegated app. Currently only intended + # for Firebase V1 migration. + # Corresponds to the JSON property `delegatedProjectNumber` + # @return [String] + attr_accessor :delegated_project_number + # Instance id token of the app. # Corresponds to the JSON property `instanceId` # @return [String] @@ -1059,6 +1065,7 @@ module Google # Update properties of this object def update!(**args) + @delegated_project_number = args[:delegated_project_number] if args.key?(:delegated_project_number) @instance_id = args[:instance_id] if args.key?(:instance_id) @return_secure_token = args[:return_secure_token] if args.key?(:return_secure_token) @token = args[:token] if args.key?(:token) diff --git a/generated/google/apis/identitytoolkit_v3/representations.rb b/generated/google/apis/identitytoolkit_v3/representations.rb index 9dc7aff62..3fb89618b 100644 --- a/generated/google/apis/identitytoolkit_v3/representations.rb +++ b/generated/google/apis/identitytoolkit_v3/representations.rb @@ -498,6 +498,7 @@ module Google class VerifyCustomTokenRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + property :delegated_project_number, as: 'delegatedProjectNumber' property :instance_id, as: 'instanceId' property :return_secure_token, as: 'returnSecureToken' property :token, as: 'token' diff --git a/generated/google/apis/mybusiness_v3.rb b/generated/google/apis/mybusiness_v3.rb new file mode 100644 index 000000000..75fd91ef9 --- /dev/null +++ b/generated/google/apis/mybusiness_v3.rb @@ -0,0 +1,32 @@ +# 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/mybusiness_v3/service.rb' +require 'google/apis/mybusiness_v3/classes.rb' +require 'google/apis/mybusiness_v3/representations.rb' + +module Google + module Apis + # Google My Business API + # + # The Google My Business API provides an interface for managing business + # location information on Google. + # + # @see https://developers.google.com/my-business/ + module MybusinessV3 + VERSION = 'V3' + REVISION = '0' + end + end +end diff --git a/generated/google/apis/mybusiness_v3/classes.rb b/generated/google/apis/mybusiness_v3/classes.rb new file mode 100644 index 000000000..d2916df0d --- /dev/null +++ b/generated/google/apis/mybusiness_v3/classes.rb @@ -0,0 +1,1864 @@ +# 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 MybusinessV3 + + # + class ListAccountsResponse + include Google::Apis::Core::Hashable + + # A collection of accounts to which the user has access. + # Corresponds to the JSON property `accounts` + # @return [Array] + attr_accessor :accounts + + # If the number of accounts exceeds the requested page size, this field is + # populated with a token to fetch the next page of accounts on a + # subsequent call to `accounts.list`. If there are no more accounts, this field + # is not present in the response. + # 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) + @accounts = args[:accounts] if args.key?(:accounts) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # An account is a container for your business's locations. If you are the only + # user who manages locations for your business, you can use your personal + # Google Account. To share management of locations with multiple users, + # [create a business account] + # (https://support.google.com/business/answer/6085339?hl=en&ref_topic=6085325). + class Account + include Google::Apis::Core::Hashable + + # The resource name, in the format `accounts/`account_id``. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The name of the account. Note: For an account with AccountType `PERSONAL`, + # this is the first + # and last name of the user account. + # Corresponds to the JSON property `accountName` + # @return [String] + attr_accessor :account_name + + # Specifies the AccountType + # of this account. + # @OutputOnly + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # Specifies the AccountRole + # the caller has for this account. + # @OutputOnly + # Corresponds to the JSON property `role` + # @return [String] + attr_accessor :role + + # Indicates status of the account, such as whether the account + # has been verified by Google. + # Corresponds to the JSON property `state` + # @return [Google::Apis::MybusinessV3::AccountState] + attr_accessor :state + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @account_name = args[:account_name] if args.key?(:account_name) + @type = args[:type] if args.key?(:type) + @role = args[:role] if args.key?(:role) + @state = args[:state] if args.key?(:state) + end + end + + # Indicates status of the account, such as whether the account + # has been verified by Google. + class AccountState + include Google::Apis::Core::Hashable + + # If verified, future locations that are created are automatically + # be connected to maps, and have Google+ pages created, without requiring + # moderation. + # 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) + @status = args[:status] if args.key?(:status) + end + end + + # + class ListAccountAdminsResponse + include Google::Apis::Core::Hashable + + # A collection of Admin instances. + # Corresponds to the JSON property `admins` + # @return [Array] + attr_accessor :admins + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @admins = args[:admins] if args.key?(:admins) + end + end + + # An administrator of an Account, or a + # Location. + class Admin + include Google::Apis::Core::Hashable + + # The resource name. For account admins, this is in the form: + # `accounts/`account_id`/admins/`admin_id`` + # For location admins, this is in the form: + # `accounts/`account_id`/locations/`location_id`/admins/`admin_id`` + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The name of the admin. When making the initial invitation, this is the + # invitee's email address. On `GET` calls, the user's email address is + # returned if the invitation is still pending. Otherwise, it contains + # the user's first and last names. + # Corresponds to the JSON property `adminName` + # @return [String] + attr_accessor :admin_name + + # Specifies the AdminRole that this + # admin uses with the specified Account + # or Location resource. + # Corresponds to the JSON property `role` + # @return [String] + attr_accessor :role + + # Indicates whether this admin has a pending invitation for the specified + # resource. + # @OutputOnly + # Corresponds to the JSON property `pendingInvitation` + # @return [Boolean] + attr_accessor :pending_invitation + alias_method :pending_invitation?, :pending_invitation + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @admin_name = args[:admin_name] if args.key?(:admin_name) + @role = args[:role] if args.key?(:role) + @pending_invitation = args[:pending_invitation] if args.key?(:pending_invitation) + end + end + + # A generic empty message that you can re-use to avoid defining duplicated + # empty messages in your APIs. A typical example is to use it as the request + # or the response type of an API method. For instance: + # service Foo ` + # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); + # ` + # The JSON representation for `Empty` is empty JSON object ````. + class Empty + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # + class ListLocationsResponse + include Google::Apis::Core::Hashable + + # The locations + # Corresponds to the JSON property `locations` + # @return [Array] + attr_accessor :locations + + # If the number of locations exceeded the requested page size, this field + # is populated with a token to fetch the next page of locations on a + # subsequent call to ListLocations. If there are no more locations, this + # field is not be present in the response. + # 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) + @locations = args[:locations] if args.key?(:locations) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # A location. + # See the [help center article] + # (https://support.google.com/business/answer/3038177) for a detailed + # description of these fields, or the [category + # list](/my-business/content/categories] for a list of valid business + # categories. + class Location + include Google::Apis::Core::Hashable + + # Google identifier for this location in the form: + # `accounts/`account_id`/locations/`location_id`` + # In the context of matches, this field will not be populated. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # External identifier for this location, which must be unique inside a given + # account. This is a means of associating the location with your own records. + # Corresponds to the JSON property `storeCode` + # @return [String] + attr_accessor :store_code + + # Location name should reflect your business's real-world name, as used + # consistently on your storefront, website, and stationery, and as known to + # customers. + # Any additional information, when relevant, can be included in other + # fields of the resource (for example, `Address`, `Categories`). + # Do not add unnecessary information to your name (for example, prefer "Google" + # over + # "Google Inc. - Mountain View Corporate Headquarters"). + # It is NOT permitted to include marketing taglines, store codes, special + # characters, hours or + # closed/open status, phone numbers, website URLs, service/product + # information, location/address or directions, or containment information + # (for example, "Chase ATM in Duane Reade"). + # Corresponds to the JSON property `locationName` + # @return [String] + attr_accessor :location_name + + # A phone number that connects to your individual business location + # as directly as possible. Use a local phone number instead of a central, + # call center helpline number whenever possible. + # Corresponds to the JSON property `primaryPhone` + # @return [String] + attr_accessor :primary_phone + + # Up to two phone numbers (mobile or landline, no fax) at which your business + # can be called, in addition to your primary phone number. + # Corresponds to the JSON property `additionalPhones` + # @return [Array] + attr_accessor :additional_phones + + # Represents the physical location of the business. + # Example addresses: + # address_lines: "1600 Amphitheatre Parkway" + # locality: Mountain View + # administrative_area: CA + # country: US + # postal_code: 94043 + # address_lines: "A-205, Natasha Apartments", "2, Inner Ring Road" + # sub_locality: Domlur + # locality: Bangalore + # administrative_area: Karnataka + # country: IN + # postal_code: 560071 + # Corresponds to the JSON property `address` + # @return [Google::Apis::MybusinessV3::Address] + attr_accessor :address + + # A category describing what this business is (not what it does). For a list of + # valid category IDs, and the mappings to their human readable names, see + # the [category list](/my-business/content/categories). + # Corresponds to the JSON property `primaryCategory` + # @return [Google::Apis::MybusinessV3::Category] + attr_accessor :primary_category + + # Additional categories to describe your business. + # Categories help your customers find accurate, specific results for services + # they're interested in. In order to keep your business information accurate + # and live, make sure that you use as few categories as possible to describe + # your overall core business. + # Choose categories that are as specific as possible, but representative of + # your main business. + # Corresponds to the JSON property `additionalCategories` + # @return [Array] + attr_accessor :additional_categories + + # A URL for this business. If possible, use a URL that represents this + # individual business location instead of a generic website/URL that represents + # all locations, or the brand. + # Corresponds to the JSON property `websiteUrl` + # @return [String] + attr_accessor :website_url + + # Represents the time periods that this location is open for business. + # Holds a collection of TimePeriod + # instances. + # Corresponds to the JSON property `regularHours` + # @return [Google::Apis::MybusinessV3::BusinessHours] + attr_accessor :regular_hours + + # Represents a set of time periods when a location's operational hours differ + # from its normal business hours. + # Corresponds to the JSON property `specialHours` + # @return [Google::Apis::MybusinessV3::SpecialHours] + attr_accessor :special_hours + + # Service area businesses provide their service at the customer's location (for + # example a locksmith or plumber). + # Corresponds to the JSON property `serviceArea` + # @return [Google::Apis::MybusinessV3::ServiceAreaBusiness] + attr_accessor :service_area + + # Alternate / surrogate key references for a location. + # Corresponds to the JSON property `locationKey` + # @return [Google::Apis::MybusinessV3::LocationKey] + attr_accessor :location_key + + # A collection of free-form strings to allow you to tag your business. These + # labels are NOT user facing, and are only be seen by you. + # Limited to 255 characters (per label). + # Corresponds to the JSON property `labels` + # @return [Array] + attr_accessor :labels + + # Additional information that is surfaced in AdWords. + # Corresponds to the JSON property `adWordsLocationExtensions` + # @return [Google::Apis::MybusinessV3::AdWordsLocationExtensions] + attr_accessor :ad_words_location_extensions + + # A collection of photos representing the business, categorized by photo type. + # The URL for each photo should point to a publicly accessible image. + # Photos should be supplied in either JPG or PNG format unless specified + # otherwise. If the photo was added by using Google My Business Locations or + # this API, the user-provided URL is used. If the photo was uploaded via the + # Google My Business Photos App, the photo uses a generated URL hosted by + # Google. Exceptions: `profile_photo_url` and `cover_photo_url` are always + # under a Google domain. + # With the exception of profile_photo_url and cover_photo_url, all photos + # must measure a minimum of 250px on the short edge, with a file size of at + # least 10240 bytes. + # Corresponds to the JSON property `photos` + # @return [Google::Apis::MybusinessV3::Photos] + attr_accessor :photos + + # 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. + # Example of normalization code in Python: + # def NormalizeLongitude(longitude): + # """Wraps decimal degrees longitude to [-180.0, 180.0].""" + # q, r = divmod(longitude, 360.0) + # if r > 180.0 or (r == 180.0 and q <= -1.0): + # return r - 360.0 + # return r + # def NormalizeLatLng(latitude, longitude): + # """Wraps decimal degrees latitude and longitude to + # [-90.0, 90.0] and [-180.0, 180.0], respectively.""" + # r = latitude % 360.0 + # if r <= 90.0: + # return r, NormalizeLongitude(longitude) + # elif r >= 270.0: + # return r - 360, NormalizeLongitude(longitude) + # else: + # return 180 - r, NormalizeLongitude(longitude + 180.0) + # assert 180.0 == NormalizeLongitude(180.0) + # assert -180.0 == NormalizeLongitude(-180.0) + # assert -179.0 == NormalizeLongitude(181.0) + # assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0) + # assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0) + # assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0) + # assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0) + # assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0) + # assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0) + # assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0) + # assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0) + # assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0) + # assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0) + # Corresponds to the JSON property `latlng` + # @return [Google::Apis::MybusinessV3::LatLng] + attr_accessor :latlng + + # Indicates whether the location is currently open for business. + # All locations are open by default, unless updated to be closed. + # Corresponds to the JSON property `openInfo` + # @return [Google::Apis::MybusinessV3::OpenInfo] + attr_accessor :open_info + + # Contains a set of booleans that reflect the state of a Location. + # Corresponds to the JSON property `locationState` + # @return [Google::Apis::MybusinessV3::LocationState] + attr_accessor :location_state + + # Attributes for this location. + # Corresponds to the JSON property `attributes` + # @return [Array] + attr_accessor :attributes + + # Additional non-user-editable information about the location. + # Corresponds to the JSON property `metadata` + # @return [Google::Apis::MybusinessV3::Metadata] + attr_accessor :metadata + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @store_code = args[:store_code] if args.key?(:store_code) + @location_name = args[:location_name] if args.key?(:location_name) + @primary_phone = args[:primary_phone] if args.key?(:primary_phone) + @additional_phones = args[:additional_phones] if args.key?(:additional_phones) + @address = args[:address] if args.key?(:address) + @primary_category = args[:primary_category] if args.key?(:primary_category) + @additional_categories = args[:additional_categories] if args.key?(:additional_categories) + @website_url = args[:website_url] if args.key?(:website_url) + @regular_hours = args[:regular_hours] if args.key?(:regular_hours) + @special_hours = args[:special_hours] if args.key?(:special_hours) + @service_area = args[:service_area] if args.key?(:service_area) + @location_key = args[:location_key] if args.key?(:location_key) + @labels = args[:labels] if args.key?(:labels) + @ad_words_location_extensions = args[:ad_words_location_extensions] if args.key?(:ad_words_location_extensions) + @photos = args[:photos] if args.key?(:photos) + @latlng = args[:latlng] if args.key?(:latlng) + @open_info = args[:open_info] if args.key?(:open_info) + @location_state = args[:location_state] if args.key?(:location_state) + @attributes = args[:attributes] if args.key?(:attributes) + @metadata = args[:metadata] if args.key?(:metadata) + end + end + + # Represents the physical location of the business. + # Example addresses: + # address_lines: "1600 Amphitheatre Parkway" + # locality: Mountain View + # administrative_area: CA + # country: US + # postal_code: 94043 + # address_lines: "A-205, Natasha Apartments", "2, Inner Ring Road" + # sub_locality: Domlur + # locality: Bangalore + # administrative_area: Karnataka + # country: IN + # postal_code: 560071 + class Address + include Google::Apis::Core::Hashable + + # The precise address information for the business below the sub-locality + # level. For most countries, the first line should include a street number + # and street name. Suite numbers, floors, building numbers, etc., may also be + # included. Imprecise information like cross-streets and nearby landmarks + # should only be included in regions where the official street address does + # not accurately pinpoint the business's location. Maximum 80 characters. + # Corresponds to the JSON property `addressLines` + # @return [Array] + attr_accessor :address_lines + + # The suburb where the business is located. This is the division just smaller + # than a locality (city). Previously referred to in Google My Business + # Locations as "district". Maximum 80 characters. + # Also known as: "district" (South Korea), "neighborhood" (Brazil, Mexico), + # "village / township" (Malaysia). + # Examples: + # Manhattan (United States), + # Centro (Mexico), + # Songpa District (South Korea.) + # Corresponds to the JSON property `subLocality` + # @return [String] + attr_accessor :sub_locality + + # The city or town where the business is located. + # Also known as: + # "district" (Hong Kong, Turkey), "post town" (United Kingdom). + # Examples: + # Chicago (United States), Berlin (Germany), London (United Kingdom). + # Maximum 80 characters. + # Corresponds to the JSON property `locality` + # @return [String] + attr_accessor :locality + + # The state or province where the business is located. Using the common + # abbreviation is generally preferred, such as CA for California or NSW + # for New South Wales. + # Not all countries require this field. Use the address editor in the + # product to determine whether it is appropriate for an address in a + # particular country. + # Also known as: + # "area" (Hong Kong), "county" (Ireland, Taiwan, United Kingdom), + # "department" (Colombia, Nicaragua), "district" (Indonesia), + # "do/si" (South Korea), "emirate" (United Arab Emirates), "island," + # "oblast" (Russia, Ukraine), "parish," "prefecture" (Japan). + # Examples: + # California (United States), Ontario (Canada), Uttar Pradesh (India). + # Maximum 80 characters. + # Corresponds to the JSON property `administrativeArea` + # @return [String] + attr_accessor :administrative_area + + # The ISO 3166-1 alpha-2 country code where the business is located. Once + # a location is created, the country cannot be changed. + # Corresponds to the JSON property `country` + # @return [String] + attr_accessor :country + + # The postal code of the business. If the postal code begins with zero, make + # sure that your formatting does not remove the zero as the first digit. + # Also known as: "zip code" (United States), "PIN code" (India). + # Corresponds to the JSON property `postalCode` + # @return [String] + attr_accessor :postal_code + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @address_lines = args[:address_lines] if args.key?(:address_lines) + @sub_locality = args[:sub_locality] if args.key?(:sub_locality) + @locality = args[:locality] if args.key?(:locality) + @administrative_area = args[:administrative_area] if args.key?(:administrative_area) + @country = args[:country] if args.key?(:country) + @postal_code = args[:postal_code] if args.key?(:postal_code) + end + end + + # A category describing what this business is (not what it does). For a list of + # valid category IDs, and the mappings to their human readable names, see + # the [category list](/my-business/content/categories). + class Category + include Google::Apis::Core::Hashable + + # The human-readable name of the category. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # A stable ID (provided by Google) for this category. While it is possible + # to populate only the `name` field in a category, setting the `category_id` + # field is + # preferred. + # If both fields are populated, the `category_id` takes precedence, and + # the supplied `name` field is ignored, and populated based on the + # value of this field. + # Corresponds to the JSON property `categoryId` + # @return [String] + attr_accessor :category_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @category_id = args[:category_id] if args.key?(:category_id) + end + end + + # Represents the time periods that this location is open for business. + # Holds a collection of TimePeriod + # instances. + class BusinessHours + include Google::Apis::Core::Hashable + + # A collection of times that this location is open for business. Each period + # represents a range of hours when the location is open during the week. + # Corresponds to the JSON property `periods` + # @return [Array] + attr_accessor :periods + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @periods = args[:periods] if args.key?(:periods) + end + end + + # Represents a span of time that the business is open, starting on the + # specified open + # day/time and closing on the specified close day/time. + # The closing time must occur after the opening time, for example later in the + # same day, or on a subsequent day. + class TimePeriod + include Google::Apis::Core::Hashable + + # Indicates the day of the week this period starts + # on. + # Corresponds to the JSON property `openDay` + # @return [String] + attr_accessor :open_day + + # Time in 24hr ISO 8601 extended format (hh:mm). Valid values are 00:00-24:00, + # where 24:00 represents midnight at the end of the specified day field. + # Corresponds to the JSON property `openTime` + # @return [String] + attr_accessor :open_time + + # Indicates the day of the week this period ends + # on. + # Corresponds to the JSON property `closeDay` + # @return [String] + attr_accessor :close_day + + # Time in 24hr ISO 8601 extended format (hh:mm). Valid values are + # 00:00-24:00, where 24:00 represents midnight at the end of the specified day + # field. + # Corresponds to the JSON property `closeTime` + # @return [String] + attr_accessor :close_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @open_day = args[:open_day] if args.key?(:open_day) + @open_time = args[:open_time] if args.key?(:open_time) + @close_day = args[:close_day] if args.key?(:close_day) + @close_time = args[:close_time] if args.key?(:close_time) + end + end + + # Represents a set of time periods when a location's operational hours differ + # from its normal business hours. + class SpecialHours + include Google::Apis::Core::Hashable + + # A list of exceptions to the business's regular hours. + # Corresponds to the JSON property `specialHourPeriods` + # @return [Array] + attr_accessor :special_hour_periods + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @special_hour_periods = args[:special_hour_periods] if args.key?(:special_hour_periods) + end + end + + # Represents a single time period when a location's operational hours differ + # from its normal business hours. + # A special hour period must represent a range of less than 24 hours. + # The `open_time` and `start_date` must predate the `close_time` and `end_date`. + # The `close_time` and `end_date` can extend to 11:59 a.m. on the day after + # the specified `start_date`. + # For example, the following inputs are valid: + # start_date=2015-11-23, open_time=08:00, close_time=18:00 + # start_date=2015-11-23, end_date=2015-11-23, open_time=08:00, close_time=18: + # 00 + # start_date=2015-11-23, end_date=2015-11-24, open_time=13:00, close_time=11: + # 59 + # The following inputs are NOT valid: + # start_date=2015-11-23, open_time=13:00, close_time=11:59 + # start_date=2015-11-23, end_date=2015-11-24, open_time=13:00, close_time=12: + # 00 + # start_date=2015-11-23, end_date=2015-11-25, open_time=08:00, close_time=18: + # 00 + class SpecialHourPeriod + include Google::Apis::Core::Hashable + + # Represents a whole calendar date, e.g. date of birth. The time of day and + # time zone are either specified elsewhere or are not significant. The date + # is relative to the Proleptic Gregorian Calendar. The day may be 0 to + # represent a year and month where the day is not significant, e.g. credit card + # expiration date. The year may be 0 to represent a month and day independent + # of year, e.g. anniversary date. Related types are google.type.TimeOfDay + # and `google.protobuf.Timestamp`. + # Corresponds to the JSON property `startDate` + # @return [Google::Apis::MybusinessV3::Date] + attr_accessor :start_date + + # The wall time on `start_date` when a location opens, expressed in + # 24hr ISO 8601 extended format. (hh:mm) Valid values are 00:00-24:00, + # where 24:00 represents midnight at the end of the specified day field. + # Must be specified if `is_closed` is false. + # Corresponds to the JSON property `openTime` + # @return [String] + attr_accessor :open_time + + # Represents a whole calendar date, e.g. date of birth. The time of day and + # time zone are either specified elsewhere or are not significant. The date + # is relative to the Proleptic Gregorian Calendar. The day may be 0 to + # represent a year and month where the day is not significant, e.g. credit card + # expiration date. The year may be 0 to represent a month and day independent + # of year, e.g. anniversary date. Related types are google.type.TimeOfDay + # and `google.protobuf.Timestamp`. + # Corresponds to the JSON property `endDate` + # @return [Google::Apis::MybusinessV3::Date] + attr_accessor :end_date + + # The wall time on end_date when a location closes, expressed in + # 24hr ISO 8601 extended format. (hh:mm) Valid values are 00:00-24:00, + # where 24:00 represents midnight at the end of the specified day field. + # Must be specified if is_closed is false. + # Corresponds to the JSON property `closeTime` + # @return [String] + attr_accessor :close_time + + # If true, end_date, open_time, and close_time are ignored, + # and the date specified in start_date is treated as the location being + # closed for the entire day. + # Corresponds to the JSON property `isClosed` + # @return [Boolean] + attr_accessor :is_closed + alias_method :is_closed?, :is_closed + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @start_date = args[:start_date] if args.key?(:start_date) + @open_time = args[:open_time] if args.key?(:open_time) + @end_date = args[:end_date] if args.key?(:end_date) + @close_time = args[:close_time] if args.key?(:close_time) + @is_closed = args[:is_closed] if args.key?(:is_closed) + end + end + + # Represents a whole calendar date, e.g. date of birth. The time of day and + # time zone are either specified elsewhere or are not significant. The date + # is relative to the Proleptic Gregorian Calendar. The day may be 0 to + # represent a year and month where the day is not significant, e.g. credit card + # expiration date. The year may be 0 to represent a month and day independent + # of year, e.g. anniversary date. Related types are google.type.TimeOfDay + # and `google.protobuf.Timestamp`. + class Date + include Google::Apis::Core::Hashable + + # 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 + + # Month of year. Must be from 1 to 12. + # Corresponds to the JSON property `month` + # @return [Fixnum] + attr_accessor :month + + # 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @year = args[:year] if args.key?(:year) + @month = args[:month] if args.key?(:month) + @day = args[:day] if args.key?(:day) + end + end + + # Service area businesses provide their service at the customer's location (for + # example a locksmith or plumber). + class ServiceAreaBusiness + include Google::Apis::Core::Hashable + + # Indicates the type of the service area + # business. + # Corresponds to the JSON property `businessType` + # @return [String] + attr_accessor :business_type + + # A radius around a particular point (latitude/longitude). + # Corresponds to the JSON property `radius` + # @return [Google::Apis::MybusinessV3::PointRadius] + attr_accessor :radius + + # Defines the union of areas represented by a set of places. + # Corresponds to the JSON property `places` + # @return [Google::Apis::MybusinessV3::Places] + attr_accessor :places + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @business_type = args[:business_type] if args.key?(:business_type) + @radius = args[:radius] if args.key?(:radius) + @places = args[:places] if args.key?(:places) + end + end + + # A radius around a particular point (latitude/longitude). + class PointRadius + 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. + # Example of normalization code in Python: + # def NormalizeLongitude(longitude): + # """Wraps decimal degrees longitude to [-180.0, 180.0].""" + # q, r = divmod(longitude, 360.0) + # if r > 180.0 or (r == 180.0 and q <= -1.0): + # return r - 360.0 + # return r + # def NormalizeLatLng(latitude, longitude): + # """Wraps decimal degrees latitude and longitude to + # [-90.0, 90.0] and [-180.0, 180.0], respectively.""" + # r = latitude % 360.0 + # if r <= 90.0: + # return r, NormalizeLongitude(longitude) + # elif r >= 270.0: + # return r - 360, NormalizeLongitude(longitude) + # else: + # return 180 - r, NormalizeLongitude(longitude + 180.0) + # assert 180.0 == NormalizeLongitude(180.0) + # assert -180.0 == NormalizeLongitude(-180.0) + # assert -179.0 == NormalizeLongitude(181.0) + # assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0) + # assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0) + # assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0) + # assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0) + # assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0) + # assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0) + # assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0) + # assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0) + # assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0) + # assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0) + # Corresponds to the JSON property `latlng` + # @return [Google::Apis::MybusinessV3::LatLng] + attr_accessor :latlng + + # The distance in kilometers of the area around the point. + # Corresponds to the JSON property `radiusKm` + # @return [Float] + attr_accessor :radius_km + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @latlng = args[:latlng] if args.key?(:latlng) + @radius_km = args[:radius_km] if args.key?(:radius_km) + 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. + # Example of normalization code in Python: + # def NormalizeLongitude(longitude): + # """Wraps decimal degrees longitude to [-180.0, 180.0].""" + # q, r = divmod(longitude, 360.0) + # if r > 180.0 or (r == 180.0 and q <= -1.0): + # return r - 360.0 + # return r + # def NormalizeLatLng(latitude, longitude): + # """Wraps decimal degrees latitude and longitude to + # [-90.0, 90.0] and [-180.0, 180.0], respectively.""" + # r = latitude % 360.0 + # if r <= 90.0: + # return r, NormalizeLongitude(longitude) + # elif r >= 270.0: + # return r - 360, NormalizeLongitude(longitude) + # else: + # return 180 - r, NormalizeLongitude(longitude + 180.0) + # assert 180.0 == NormalizeLongitude(180.0) + # assert -180.0 == NormalizeLongitude(-180.0) + # assert -179.0 == NormalizeLongitude(181.0) + # assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0) + # assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0) + # assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0) + # assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0) + # assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0) + # assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0) + # assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0) + # assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0) + # assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0) + # assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0) + 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 + + # Defines the union of areas represented by a set of places. + class Places + include Google::Apis::Core::Hashable + + # The areas represented by place IDs. + # Corresponds to the JSON property `placeInfos` + # @return [Array] + attr_accessor :place_infos + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @place_infos = args[:place_infos] if args.key?(:place_infos) + end + end + + # Defines an area that's represented by a place ID. + class PlaceInfo + include Google::Apis::Core::Hashable + + # The localized name of the place. For example, `Scottsdale, AZ`. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The ID of the place. + # Corresponds to the JSON property `placeId` + # @return [String] + attr_accessor :place_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @place_id = args[:place_id] if args.key?(:place_id) + end + end + + # Alternate / surrogate key references for a location. + class LocationKey + include Google::Apis::Core::Hashable + + # If this location has a Google+ page associated with it, this is + # populated with the Google+ page ID for this location. + # @OutputOnly + # Corresponds to the JSON property `plusPageId` + # @return [String] + attr_accessor :plus_page_id + + # If this location has been verified and is connected to/appears on Google + # Maps, this field is populated with the place ID for the location. + # This ID can be used in various Places APIs. + # If this location is unverified, this field may be populated if the location + # has been associated with a place that appears on Google Maps. + # This field can be set during Create calls, but not for Update. + # The additional explicit_no_place_id bool qualifies whether an unset + # place ID is deliberate or not. + # Corresponds to the JSON property `placeId` + # @return [String] + attr_accessor :place_id + + # A value of true indicates that an unset place ID is deliberate, + # which is different from no association being made yet. + # @OutputOnly + # Corresponds to the JSON property `explicitNoPlaceId` + # @return [Boolean] + attr_accessor :explicit_no_place_id + alias_method :explicit_no_place_id?, :explicit_no_place_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @plus_page_id = args[:plus_page_id] if args.key?(:plus_page_id) + @place_id = args[:place_id] if args.key?(:place_id) + @explicit_no_place_id = args[:explicit_no_place_id] if args.key?(:explicit_no_place_id) + end + end + + # Additional information that is surfaced in AdWords. + class AdWordsLocationExtensions + include Google::Apis::Core::Hashable + + # An alternate phone number to display on AdWords location extensions + # instead of the location's primary phone number. + # Corresponds to the JSON property `adPhone` + # @return [String] + attr_accessor :ad_phone + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ad_phone = args[:ad_phone] if args.key?(:ad_phone) + end + end + + # A collection of photos representing the business, categorized by photo type. + # The URL for each photo should point to a publicly accessible image. + # Photos should be supplied in either JPG or PNG format unless specified + # otherwise. If the photo was added by using Google My Business Locations or + # this API, the user-provided URL is used. If the photo was uploaded via the + # Google My Business Photos App, the photo uses a generated URL hosted by + # Google. Exceptions: `profile_photo_url` and `cover_photo_url` are always + # under a Google domain. + # With the exception of profile_photo_url and cover_photo_url, all photos + # must measure a minimum of 250px on the short edge, with a file size of at + # least 10240 bytes. + class Photos + include Google::Apis::Core::Hashable + + # The profile photo helps people recognize your business across Google. + # Profile photos must be square, with a minimum size of 250px and a maximum + # size of 500px. Allowed formats are JPG, PNG, and GIF. + # Corresponds to the JSON property `profilePhotoUrl` + # @return [String] + attr_accessor :profile_photo_url + + # The cover photo showcases the personality of your business. + # Cover photos must have a 16:9 aspect ratio, with a minimum size of 480px + # x 270px, and a maximum size of 2120px x 1192px. + # Corresponds to the JSON property `coverPhotoUrl` + # @return [String] + attr_accessor :cover_photo_url + + # The logo photo helps customers to recognize your brand. Upon upload, logo + # images are fitted into a square (transparent vertical or horizontal lines + # are added on two sides of the image if the original image is not square). + # Corresponds to the JSON property `logoPhotoUrl` + # @return [String] + attr_accessor :logo_photo_url + + # Exterior photos help customers to recognize your business as they approach + # from different directions. + # Corresponds to the JSON property `exteriorPhotoUrls` + # @return [Array] + attr_accessor :exterior_photo_urls + + # Interior photos show customers what your business location looks like + # inside. + # Corresponds to the JSON property `interiorPhotoUrls` + # @return [Array] + attr_accessor :interior_photo_urls + + # Product photos showcase the products sold by your business. + # Corresponds to the JSON property `productPhotoUrls` + # @return [Array] + attr_accessor :product_photo_urls + + # At work photos show you and your employees serving your customers. + # Corresponds to the JSON property `photosAtWorkUrls` + # @return [Array] + attr_accessor :photos_at_work_urls + + # Food and drink photos display the food and drink items served by your + # business. + # Corresponds to the JSON property `foodAndDrinkPhotoUrls` + # @return [Array] + attr_accessor :food_and_drink_photo_urls + + # Menu photos show customers what your food menu looks like. + # Corresponds to the JSON property `menuPhotoUrls` + # @return [Array] + attr_accessor :menu_photo_urls + + # Common area photos show customers the common areas of your business + # location. + # Corresponds to the JSON property `commonAreasPhotoUrls` + # @return [Array] + attr_accessor :common_areas_photo_urls + + # Room photos show customers the inside of your guest rooms. + # Corresponds to the JSON property `roomsPhotoUrls` + # @return [Array] + attr_accessor :rooms_photo_urls + + # Team photos show your management team and your employees. + # Corresponds to the JSON property `teamPhotoUrls` + # @return [Array] + attr_accessor :team_photo_urls + + # Use the additional photos category for images that don't fit in any of the + # other categories. + # Corresponds to the JSON property `additionalPhotoUrls` + # @return [Array] + attr_accessor :additional_photo_urls + + # Indicate which photo should be shown first in Google Maps and Search. + # Corresponds to the JSON property `preferredPhoto` + # @return [String] + attr_accessor :preferred_photo + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @profile_photo_url = args[:profile_photo_url] if args.key?(:profile_photo_url) + @cover_photo_url = args[:cover_photo_url] if args.key?(:cover_photo_url) + @logo_photo_url = args[:logo_photo_url] if args.key?(:logo_photo_url) + @exterior_photo_urls = args[:exterior_photo_urls] if args.key?(:exterior_photo_urls) + @interior_photo_urls = args[:interior_photo_urls] if args.key?(:interior_photo_urls) + @product_photo_urls = args[:product_photo_urls] if args.key?(:product_photo_urls) + @photos_at_work_urls = args[:photos_at_work_urls] if args.key?(:photos_at_work_urls) + @food_and_drink_photo_urls = args[:food_and_drink_photo_urls] if args.key?(:food_and_drink_photo_urls) + @menu_photo_urls = args[:menu_photo_urls] if args.key?(:menu_photo_urls) + @common_areas_photo_urls = args[:common_areas_photo_urls] if args.key?(:common_areas_photo_urls) + @rooms_photo_urls = args[:rooms_photo_urls] if args.key?(:rooms_photo_urls) + @team_photo_urls = args[:team_photo_urls] if args.key?(:team_photo_urls) + @additional_photo_urls = args[:additional_photo_urls] if args.key?(:additional_photo_urls) + @preferred_photo = args[:preferred_photo] if args.key?(:preferred_photo) + end + end + + # Indicates whether the location is currently open for business. + # All locations are open by default, unless updated to be closed. + class OpenInfo + include Google::Apis::Core::Hashable + + # Indicates the Location OpenForBusiness status. + # 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) + @status = args[:status] if args.key?(:status) + end + end + + # Contains a set of booleans that reflect the state of a Location. + class LocationState + include Google::Apis::Core::Hashable + + # Indicates whether the place ID associated with this location has updates. + # @OutputOnly + # Corresponds to the JSON property `isGoogleUpdated` + # @return [Boolean] + attr_accessor :is_google_updated + alias_method :is_google_updated?, :is_google_updated + + # Indicates whether the location is a duplicate of another location. + # See metadata.duplicate for more information. + # @OutputOnly + # Corresponds to the JSON property `isDuplicate` + # @return [Boolean] + attr_accessor :is_duplicate + alias_method :is_duplicate?, :is_duplicate + + # Indicates whether the location is suspended. + # Suspended locations are not visible to end users in Google products. + # If you believe this was a mistake, see the [help center article] + # (https://support.google.com/business/answer/4569145). + # @OutputOnly + # Corresponds to the JSON property `isSuspended` + # @return [Boolean] + attr_accessor :is_suspended + alias_method :is_suspended?, :is_suspended + + # Indicates whether the location can be updated. + # @OutputOnly + # Corresponds to the JSON property `canUpdate` + # @return [Boolean] + attr_accessor :can_update + alias_method :can_update?, :can_update + + # Indicates whether the location can be deleted using the Google My Business + # UI. + # @OutputOnly + # Corresponds to the JSON property `canDelete` + # @return [Boolean] + attr_accessor :can_delete + alias_method :can_delete?, :can_delete + + # Indicates whether the location is verified. + # @OutputOnly + # Corresponds to the JSON property `isVerified` + # @return [Boolean] + attr_accessor :is_verified + alias_method :is_verified?, :is_verified + + # Indicates whether the location requires reverification. + # @OutputOnly + # Corresponds to the JSON property `needsReverification` + # @return [Boolean] + attr_accessor :needs_reverification + alias_method :needs_reverification?, :needs_reverification + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @is_google_updated = args[:is_google_updated] if args.key?(:is_google_updated) + @is_duplicate = args[:is_duplicate] if args.key?(:is_duplicate) + @is_suspended = args[:is_suspended] if args.key?(:is_suspended) + @can_update = args[:can_update] if args.key?(:can_update) + @can_delete = args[:can_delete] if args.key?(:can_delete) + @is_verified = args[:is_verified] if args.key?(:is_verified) + @needs_reverification = args[:needs_reverification] if args.key?(:needs_reverification) + end + end + + # A location attribute. Attributes provide additional, information about a + # location. The attributes that can be set on a location may vary based on + # the properties of that location (e.g. category). Available attributes are + # determined by Google and may be added and removed without API changes. + class Attribute + include Google::Apis::Core::Hashable + + # The id of the attribute. Attribute ids are provided by Google. + # Corresponds to the JSON property `attributeId` + # @return [String] + attr_accessor :attribute_id + + # The type of value that this attribute contains. This should be used to + # determine how to interpret the value. + # @OutputOnly + # Corresponds to the JSON property `valueType` + # @return [String] + attr_accessor :value_type + + # The values for this attribute. The type of the values supplied must match + # that expected for that attribute, see AttributeValueType. This is a + # repeated field where multiple attribute values may be provided. Current + # attribute types only support one value, but future types may support + # multiple values. + # Corresponds to the JSON property `values` + # @return [Array] + attr_accessor :values + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @attribute_id = args[:attribute_id] if args.key?(:attribute_id) + @value_type = args[:value_type] if args.key?(:value_type) + @values = args[:values] if args.key?(:values) + end + end + + # Additional non-user-editable information about the location. + class Metadata + include Google::Apis::Core::Hashable + + # Information about the location that this location duplicates. + # Corresponds to the JSON property `duplicate` + # @return [Google::Apis::MybusinessV3::Duplicate] + attr_accessor :duplicate + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @duplicate = args[:duplicate] if args.key?(:duplicate) + end + end + + # Information about the location that this location duplicates. + class Duplicate + include Google::Apis::Core::Hashable + + # The resource name of the location that this duplicates. Only populated + # if the authenticated user has access rights to that location and that + # location is not deleted. + # Corresponds to the JSON property `locationName` + # @return [String] + attr_accessor :location_name + + # Indicates the ownership status between this location and the location + # that it duplicates. + # Corresponds to the JSON property `ownership` + # @return [String] + attr_accessor :ownership + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @location_name = args[:location_name] if args.key?(:location_name) + @ownership = args[:ownership] if args.key?(:ownership) + end + end + + # + class BatchGetLocationsRequest + include Google::Apis::Core::Hashable + + # A collection of locations to fetch, specified by their names. + # Corresponds to the JSON property `locationNames` + # @return [Array] + attr_accessor :location_names + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @location_names = args[:location_names] if args.key?(:location_names) + end + end + + # + class BatchGetLocationsResponse + include Google::Apis::Core::Hashable + + # A collection of locations. + # Corresponds to the JSON property `locations` + # @return [Array] + attr_accessor :locations + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @locations = args[:locations] if args.key?(:locations) + end + end + + # Represents a location that was modified by Google. + class GoogleUpdatedLocation + include Google::Apis::Core::Hashable + + # A location. + # See the [help center article] + # (https://support.google.com/business/answer/3038177) for a detailed + # description of these fields, or the [category + # list](/my-business/content/categories] for a list of valid business + # categories. + # Corresponds to the JSON property `location` + # @return [Google::Apis::MybusinessV3::Location] + attr_accessor :location + + # The fields that Google updated. + # Corresponds to the JSON property `diffMask` + # @return [String] + attr_accessor :diff_mask + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @location = args[:location] if args.key?(:location) + @diff_mask = args[:diff_mask] if args.key?(:diff_mask) + end + end + + # + class ListLocationAdminsResponse + include Google::Apis::Core::Hashable + + # A collection of Admin instances. + # Corresponds to the JSON property `admins` + # @return [Array] + attr_accessor :admins + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @admins = args[:admins] if args.key?(:admins) + end + end + + # Request message for MyBusiness.FindMatchingLocations. + class FindMatchingLocationsRequest + include Google::Apis::Core::Hashable + + # The preferred language for the matching location. + # Corresponds to the JSON property `languageCode` + # @return [String] + attr_accessor :language_code + + # The number of matches to return. The default value is 3, with a maximum + # of 10. Note that latency may increase if more are requested. There is no + # pagination. This field is only respected if the cache needs to be updated. + # Corresponds to the JSON property `numResults` + # @return [Fixnum] + attr_accessor :num_results + + # Indicates the duration of acceptable cache-age. If omitted, will always + # return the cached data (if available). If the cache is older than the + # provided duration, or if a cached value is not available, results will be + # re-calculated and re-cached. + # Corresponds to the JSON property `maxCacheDuration` + # @return [String] + attr_accessor :max_cache_duration + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @language_code = args[:language_code] if args.key?(:language_code) + @num_results = args[:num_results] if args.key?(:num_results) + @max_cache_duration = args[:max_cache_duration] if args.key?(:max_cache_duration) + end + end + + # Response message for MyBusiness.FindMatchingLocations + class FindMatchingLocationsResponse + include Google::Apis::Core::Hashable + + # A collection of locations that are potential matches to the specified + # location, listed in order from best to least match. If there is an exact + # match, it will be in the first position. + # Corresponds to the JSON property `matchedLocations` + # @return [Array] + attr_accessor :matched_locations + + # When the matching algorithm was last executed for this location. + # Corresponds to the JSON property `matchTime` + # @return [String] + attr_accessor :match_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @matched_locations = args[:matched_locations] if args.key?(:matched_locations) + @match_time = args[:match_time] if args.key?(:match_time) + end + end + + # Represents a possible match to a location. + class MatchedLocation + include Google::Apis::Core::Hashable + + # A location. + # See the [help center article] + # (https://support.google.com/business/answer/3038177) for a detailed + # description of these fields, or the [category + # list](/my-business/content/categories] for a list of valid business + # categories. + # Corresponds to the JSON property `location` + # @return [Google::Apis::MybusinessV3::Location] + attr_accessor :location + + # Is this an exact match? + # Corresponds to the JSON property `isExactMatch` + # @return [Boolean] + attr_accessor :is_exact_match + alias_method :is_exact_match?, :is_exact_match + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @location = args[:location] if args.key?(:location) + @is_exact_match = args[:is_exact_match] if args.key?(:is_exact_match) + end + end + + # Request message for MyBusiness.AssociateLocationRequest to associate a + # location to a place or indicate no match. + class AssociateLocationRequest + include Google::Apis::Core::Hashable + + # The association to establish. If not set, it indicates no match. + # Corresponds to the JSON property `placeId` + # @return [String] + attr_accessor :place_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @place_id = args[:place_id] if args.key?(:place_id) + end + end + + # Request message for MyBusiness.ClearLocationAssociationRequest to clear + # the association between a location to its place ID. + class ClearLocationAssociationRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Request message for MyBusiness.TransferLocation to transfer a location from + # its current account to another. + class TransferLocationRequest + include Google::Apis::Core::Hashable + + # Name of the account resource to transfer the location to (e.g. + # "accounts/8675309") + # Corresponds to the JSON property `toAccount` + # @return [String] + attr_accessor :to_account + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @to_account = args[:to_account] if args.key?(:to_account) + end + end + + # Response message for MyBusiness.ListReviews. + class ListReviewsResponse + include Google::Apis::Core::Hashable + + # The reviews. + # Corresponds to the JSON property `reviews` + # @return [Array] + attr_accessor :reviews + + # The average star rating of all reviews for this location + # on a scale of 1 to 5. + # Corresponds to the JSON property `averageRating` + # @return [Float] + attr_accessor :average_rating + + # The total number of reviews for this location. + # Corresponds to the JSON property `totalReviewCount` + # @return [Fixnum] + attr_accessor :total_review_count + + # If the number of reviews exceeded the requested page size, this field + # is populated with a token to fetch the next page of reviews on a + # subsequent call to ListReviews. If there are no more reviews, this + # field is not be present in the response. + # 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) + @reviews = args[:reviews] if args.key?(:reviews) + @average_rating = args[:average_rating] if args.key?(:average_rating) + @total_review_count = args[:total_review_count] if args.key?(:total_review_count) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Represents a review for a location. + # @OutputOnly + class Review + include Google::Apis::Core::Hashable + + # The encrypted unique identifier. + # Corresponds to the JSON property `reviewId` + # @return [String] + attr_accessor :review_id + + # Represents the author of reviews. + # Corresponds to the JSON property `reviewer` + # @return [Google::Apis::MybusinessV3::Reviewer] + attr_accessor :reviewer + + # Star rating of the review. + # Corresponds to the JSON property `starRating` + # @return [String] + attr_accessor :star_rating + + # The body of the review as plain text with markups. + # Corresponds to the JSON property `comment` + # @return [String] + attr_accessor :comment + + # The timestamp for when the review was written. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # The timestamp for when the review was last modified. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + # Represents the location owner/manager's reply to a review + # Corresponds to the JSON property `reviewReply` + # @return [Google::Apis::MybusinessV3::ReviewReply] + attr_accessor :review_reply + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @review_id = args[:review_id] if args.key?(:review_id) + @reviewer = args[:reviewer] if args.key?(:reviewer) + @star_rating = args[:star_rating] if args.key?(:star_rating) + @comment = args[:comment] if args.key?(:comment) + @create_time = args[:create_time] if args.key?(:create_time) + @update_time = args[:update_time] if args.key?(:update_time) + @review_reply = args[:review_reply] if args.key?(:review_reply) + end + end + + # Represents the author of reviews. + class Reviewer + include Google::Apis::Core::Hashable + + # The name of the reviewer. + # Only populated with the reviewer's real name if is_anonymous is false. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Indicates whether the reviewer has opted to remain anonymous. + # Corresponds to the JSON property `isAnonymous` + # @return [Boolean] + attr_accessor :is_anonymous + alias_method :is_anonymous?, :is_anonymous + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @display_name = args[:display_name] if args.key?(:display_name) + @is_anonymous = args[:is_anonymous] if args.key?(:is_anonymous) + end + end + + # Represents the location owner/manager's reply to a review + class ReviewReply + include Google::Apis::Core::Hashable + + # The body of the review as plain text with markups. + # The maximum length is 4096 bytes. + # Corresponds to the JSON property `comment` + # @return [String] + attr_accessor :comment + + # The timestamp for when the review was last modified. + # @OutputOnly + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @comment = args[:comment] if args.key?(:comment) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + + # + class ListLocationAttributeMetadataResponse + include Google::Apis::Core::Hashable + + # A collection of attribute metadata for the available attributes. + # Corresponds to the JSON property `attributes` + # @return [Array] + attr_accessor :attributes + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @attributes = args[:attributes] if args.key?(:attributes) + end + end + + # Metadata for an attribute. Contains display information for the attribute, + # including a localised name and a heading for grouping related attributes + # together. + class AttributeMetadata + include Google::Apis::Core::Hashable + + # The id of the attribute. + # Corresponds to the JSON property `attributeId` + # @return [String] + attr_accessor :attribute_id + + # The value type for the attribute. Values set and retrieved should be + # expected to be of this type. + # Corresponds to the JSON property `valueType` + # @return [String] + attr_accessor :value_type + + # The localised display name for the attribute, if available, otherwise + # the English display name. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # The localised display name of the group that contains this attribute, if + # available, otherwise the English group name. Related attributes are + # collected into group and should be displayed together under the heading + # given here. + # Corresponds to the JSON property `groupDisplayName` + # @return [String] + attr_accessor :group_display_name + + # If true, the attribute supports multiple values. If false only a single + # value should be provided. + # Corresponds to the JSON property `isRepeatable` + # @return [Boolean] + attr_accessor :is_repeatable + alias_method :is_repeatable?, :is_repeatable + + # For some types of attributes (e.g. enums) a list of supported values and + # corresponding display names for those values is provided. + # Corresponds to the JSON property `valueMetadata` + # @return [Array] + attr_accessor :value_metadata + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @attribute_id = args[:attribute_id] if args.key?(:attribute_id) + @value_type = args[:value_type] if args.key?(:value_type) + @display_name = args[:display_name] if args.key?(:display_name) + @group_display_name = args[:group_display_name] if args.key?(:group_display_name) + @is_repeatable = args[:is_repeatable] if args.key?(:is_repeatable) + @value_metadata = args[:value_metadata] if args.key?(:value_metadata) + end + end + + # Metadata for supported attribute values + class AttributeValueMetadata + include Google::Apis::Core::Hashable + + # The attribute value + # Corresponds to the JSON property `value` + # @return [Object] + attr_accessor :value + + # The display name for this value, localised where available otherwise in + # English. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @value = args[:value] if args.key?(:value) + @display_name = args[:display_name] if args.key?(:display_name) + end + end + end + end +end diff --git a/generated/google/apis/mybusiness_v3/representations.rb b/generated/google/apis/mybusiness_v3/representations.rb new file mode 100644 index 000000000..7d6f08e72 --- /dev/null +++ b/generated/google/apis/mybusiness_v3/representations.rb @@ -0,0 +1,741 @@ +# 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 MybusinessV3 + + class ListAccountsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Account + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AccountState + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListAccountAdminsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Admin + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Empty + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListLocationsResponse + 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 Address + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Category + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class BusinessHours + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TimePeriod + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SpecialHours + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SpecialHourPeriod + 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 ServiceAreaBusiness + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PointRadius + 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 Places + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PlaceInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class LocationKey + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AdWordsLocationExtensions + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Photos + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OpenInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class LocationState + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Attribute + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Metadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Duplicate + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class BatchGetLocationsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class BatchGetLocationsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleUpdatedLocation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListLocationAdminsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class FindMatchingLocationsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class FindMatchingLocationsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class MatchedLocation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AssociateLocationRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ClearLocationAssociationRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TransferLocationRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListReviewsResponse + 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 Reviewer + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ReviewReply + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListLocationAttributeMetadataResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AttributeMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AttributeValueMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListAccountsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :accounts, as: 'accounts', class: Google::Apis::MybusinessV3::Account, decorator: Google::Apis::MybusinessV3::Account::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class Account + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :account_name, as: 'accountName' + property :type, as: 'type' + property :role, as: 'role' + property :state, as: 'state', class: Google::Apis::MybusinessV3::AccountState, decorator: Google::Apis::MybusinessV3::AccountState::Representation + + end + end + + class AccountState + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :status, as: 'status' + end + end + + class ListAccountAdminsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :admins, as: 'admins', class: Google::Apis::MybusinessV3::Admin, decorator: Google::Apis::MybusinessV3::Admin::Representation + + end + end + + class Admin + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :admin_name, as: 'adminName' + property :role, as: 'role' + property :pending_invitation, as: 'pendingInvitation' + end + end + + class Empty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class ListLocationsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :locations, as: 'locations', class: Google::Apis::MybusinessV3::Location, decorator: Google::Apis::MybusinessV3::Location::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class Location + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :store_code, as: 'storeCode' + property :location_name, as: 'locationName' + property :primary_phone, as: 'primaryPhone' + collection :additional_phones, as: 'additionalPhones' + property :address, as: 'address', class: Google::Apis::MybusinessV3::Address, decorator: Google::Apis::MybusinessV3::Address::Representation + + property :primary_category, as: 'primaryCategory', class: Google::Apis::MybusinessV3::Category, decorator: Google::Apis::MybusinessV3::Category::Representation + + collection :additional_categories, as: 'additionalCategories', class: Google::Apis::MybusinessV3::Category, decorator: Google::Apis::MybusinessV3::Category::Representation + + property :website_url, as: 'websiteUrl' + property :regular_hours, as: 'regularHours', class: Google::Apis::MybusinessV3::BusinessHours, decorator: Google::Apis::MybusinessV3::BusinessHours::Representation + + property :special_hours, as: 'specialHours', class: Google::Apis::MybusinessV3::SpecialHours, decorator: Google::Apis::MybusinessV3::SpecialHours::Representation + + property :service_area, as: 'serviceArea', class: Google::Apis::MybusinessV3::ServiceAreaBusiness, decorator: Google::Apis::MybusinessV3::ServiceAreaBusiness::Representation + + property :location_key, as: 'locationKey', class: Google::Apis::MybusinessV3::LocationKey, decorator: Google::Apis::MybusinessV3::LocationKey::Representation + + collection :labels, as: 'labels' + property :ad_words_location_extensions, as: 'adWordsLocationExtensions', class: Google::Apis::MybusinessV3::AdWordsLocationExtensions, decorator: Google::Apis::MybusinessV3::AdWordsLocationExtensions::Representation + + property :photos, as: 'photos', class: Google::Apis::MybusinessV3::Photos, decorator: Google::Apis::MybusinessV3::Photos::Representation + + property :latlng, as: 'latlng', class: Google::Apis::MybusinessV3::LatLng, decorator: Google::Apis::MybusinessV3::LatLng::Representation + + property :open_info, as: 'openInfo', class: Google::Apis::MybusinessV3::OpenInfo, decorator: Google::Apis::MybusinessV3::OpenInfo::Representation + + property :location_state, as: 'locationState', class: Google::Apis::MybusinessV3::LocationState, decorator: Google::Apis::MybusinessV3::LocationState::Representation + + collection :attributes, as: 'attributes', class: Google::Apis::MybusinessV3::Attribute, decorator: Google::Apis::MybusinessV3::Attribute::Representation + + property :metadata, as: 'metadata', class: Google::Apis::MybusinessV3::Metadata, decorator: Google::Apis::MybusinessV3::Metadata::Representation + + end + end + + class Address + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :address_lines, as: 'addressLines' + property :sub_locality, as: 'subLocality' + property :locality, as: 'locality' + property :administrative_area, as: 'administrativeArea' + property :country, as: 'country' + property :postal_code, as: 'postalCode' + end + end + + class Category + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :category_id, as: 'categoryId' + end + end + + class BusinessHours + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :periods, as: 'periods', class: Google::Apis::MybusinessV3::TimePeriod, decorator: Google::Apis::MybusinessV3::TimePeriod::Representation + + end + end + + class TimePeriod + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :open_day, as: 'openDay' + property :open_time, as: 'openTime' + property :close_day, as: 'closeDay' + property :close_time, as: 'closeTime' + end + end + + class SpecialHours + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :special_hour_periods, as: 'specialHourPeriods', class: Google::Apis::MybusinessV3::SpecialHourPeriod, decorator: Google::Apis::MybusinessV3::SpecialHourPeriod::Representation + + end + end + + class SpecialHourPeriod + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :start_date, as: 'startDate', class: Google::Apis::MybusinessV3::Date, decorator: Google::Apis::MybusinessV3::Date::Representation + + property :open_time, as: 'openTime' + property :end_date, as: 'endDate', class: Google::Apis::MybusinessV3::Date, decorator: Google::Apis::MybusinessV3::Date::Representation + + property :close_time, as: 'closeTime' + property :is_closed, as: 'isClosed' + end + end + + class Date + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :year, as: 'year' + property :month, as: 'month' + property :day, as: 'day' + end + end + + class ServiceAreaBusiness + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :business_type, as: 'businessType' + property :radius, as: 'radius', class: Google::Apis::MybusinessV3::PointRadius, decorator: Google::Apis::MybusinessV3::PointRadius::Representation + + property :places, as: 'places', class: Google::Apis::MybusinessV3::Places, decorator: Google::Apis::MybusinessV3::Places::Representation + + end + end + + class PointRadius + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :latlng, as: 'latlng', class: Google::Apis::MybusinessV3::LatLng, decorator: Google::Apis::MybusinessV3::LatLng::Representation + + property :radius_km, as: 'radiusKm' + end + end + + class LatLng + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :latitude, as: 'latitude' + property :longitude, as: 'longitude' + end + end + + class Places + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :place_infos, as: 'placeInfos', class: Google::Apis::MybusinessV3::PlaceInfo, decorator: Google::Apis::MybusinessV3::PlaceInfo::Representation + + end + end + + class PlaceInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :place_id, as: 'placeId' + end + end + + class LocationKey + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :plus_page_id, as: 'plusPageId' + property :place_id, as: 'placeId' + property :explicit_no_place_id, as: 'explicitNoPlaceId' + end + end + + class AdWordsLocationExtensions + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :ad_phone, as: 'adPhone' + end + end + + class Photos + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :profile_photo_url, as: 'profilePhotoUrl' + property :cover_photo_url, as: 'coverPhotoUrl' + property :logo_photo_url, as: 'logoPhotoUrl' + collection :exterior_photo_urls, as: 'exteriorPhotoUrls' + collection :interior_photo_urls, as: 'interiorPhotoUrls' + collection :product_photo_urls, as: 'productPhotoUrls' + collection :photos_at_work_urls, as: 'photosAtWorkUrls' + collection :food_and_drink_photo_urls, as: 'foodAndDrinkPhotoUrls' + collection :menu_photo_urls, as: 'menuPhotoUrls' + collection :common_areas_photo_urls, as: 'commonAreasPhotoUrls' + collection :rooms_photo_urls, as: 'roomsPhotoUrls' + collection :team_photo_urls, as: 'teamPhotoUrls' + collection :additional_photo_urls, as: 'additionalPhotoUrls' + property :preferred_photo, as: 'preferredPhoto' + end + end + + class OpenInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :status, as: 'status' + end + end + + class LocationState + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :is_google_updated, as: 'isGoogleUpdated' + property :is_duplicate, as: 'isDuplicate' + property :is_suspended, as: 'isSuspended' + property :can_update, as: 'canUpdate' + property :can_delete, as: 'canDelete' + property :is_verified, as: 'isVerified' + property :needs_reverification, as: 'needsReverification' + end + end + + class Attribute + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :attribute_id, as: 'attributeId' + property :value_type, as: 'valueType' + collection :values, as: 'values' + end + end + + class Metadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :duplicate, as: 'duplicate', class: Google::Apis::MybusinessV3::Duplicate, decorator: Google::Apis::MybusinessV3::Duplicate::Representation + + end + end + + class Duplicate + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :location_name, as: 'locationName' + property :ownership, as: 'ownership' + end + end + + class BatchGetLocationsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :location_names, as: 'locationNames' + end + end + + class BatchGetLocationsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :locations, as: 'locations', class: Google::Apis::MybusinessV3::Location, decorator: Google::Apis::MybusinessV3::Location::Representation + + end + end + + class GoogleUpdatedLocation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :location, as: 'location', class: Google::Apis::MybusinessV3::Location, decorator: Google::Apis::MybusinessV3::Location::Representation + + property :diff_mask, as: 'diffMask' + end + end + + class ListLocationAdminsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :admins, as: 'admins', class: Google::Apis::MybusinessV3::Admin, decorator: Google::Apis::MybusinessV3::Admin::Representation + + end + end + + class FindMatchingLocationsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :language_code, as: 'languageCode' + property :num_results, as: 'numResults' + property :max_cache_duration, as: 'maxCacheDuration' + end + end + + class FindMatchingLocationsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :matched_locations, as: 'matchedLocations', class: Google::Apis::MybusinessV3::MatchedLocation, decorator: Google::Apis::MybusinessV3::MatchedLocation::Representation + + property :match_time, as: 'matchTime' + end + end + + class MatchedLocation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :location, as: 'location', class: Google::Apis::MybusinessV3::Location, decorator: Google::Apis::MybusinessV3::Location::Representation + + property :is_exact_match, as: 'isExactMatch' + end + end + + class AssociateLocationRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :place_id, as: 'placeId' + end + end + + class ClearLocationAssociationRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class TransferLocationRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :to_account, as: 'toAccount' + end + end + + class ListReviewsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :reviews, as: 'reviews', class: Google::Apis::MybusinessV3::Review, decorator: Google::Apis::MybusinessV3::Review::Representation + + property :average_rating, as: 'averageRating' + property :total_review_count, as: 'totalReviewCount' + property :next_page_token, as: 'nextPageToken' + end + end + + class Review + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :review_id, as: 'reviewId' + property :reviewer, as: 'reviewer', class: Google::Apis::MybusinessV3::Reviewer, decorator: Google::Apis::MybusinessV3::Reviewer::Representation + + property :star_rating, as: 'starRating' + property :comment, as: 'comment' + property :create_time, as: 'createTime' + property :update_time, as: 'updateTime' + property :review_reply, as: 'reviewReply', class: Google::Apis::MybusinessV3::ReviewReply, decorator: Google::Apis::MybusinessV3::ReviewReply::Representation + + end + end + + class Reviewer + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :display_name, as: 'displayName' + property :is_anonymous, as: 'isAnonymous' + end + end + + class ReviewReply + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :comment, as: 'comment' + property :update_time, as: 'updateTime' + end + end + + class ListLocationAttributeMetadataResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :attributes, as: 'attributes', class: Google::Apis::MybusinessV3::AttributeMetadata, decorator: Google::Apis::MybusinessV3::AttributeMetadata::Representation + + end + end + + class AttributeMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :attribute_id, as: 'attributeId' + property :value_type, as: 'valueType' + property :display_name, as: 'displayName' + property :group_display_name, as: 'groupDisplayName' + property :is_repeatable, as: 'isRepeatable' + collection :value_metadata, as: 'valueMetadata', class: Google::Apis::MybusinessV3::AttributeValueMetadata, decorator: Google::Apis::MybusinessV3::AttributeValueMetadata::Representation + + end + end + + class AttributeValueMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :value, as: 'value' + property :display_name, as: 'displayName' + end + end + end + end +end diff --git a/generated/google/apis/mybusiness_v3/service.rb b/generated/google/apis/mybusiness_v3/service.rb new file mode 100644 index 000000000..d46af8b01 --- /dev/null +++ b/generated/google/apis/mybusiness_v3/service.rb @@ -0,0 +1,960 @@ +# 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 MybusinessV3 + # Google My Business API + # + # The Google My Business API provides an interface for managing business + # location information on Google. + # + # @example + # require 'google/apis/mybusiness_v3' + # + # Mybusiness = Google::Apis::MybusinessV3 # Alias the module + # service = Mybusiness::MybusinessService.new + # + # @see https://developers.google.com/my-business/ + class MybusinessService < 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://mybusiness.googleapis.com/', '') + end + + # Lists all of the accounts for the authenticated user. This includes all + # accounts that the user owns, as well as any accounts for which the user + # has management rights. + # @param [Fixnum] page_size + # How many accounts to fetch per page. Default is 50, + # minimum is 1, and maximum page size is 50. + # @param [String] page_token + # If specified, the next page of accounts is retrieved. The `pageToken` is + # returned when a call to `accounts.list` returns more results than can fit + # into the requested page size. + # @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::MybusinessV3::ListAccountsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MybusinessV3::ListAccountsResponse] + # + # @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_accounts(page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v3/accounts', options) + command.response_representation = Google::Apis::MybusinessV3::ListAccountsResponse::Representation + command.response_class = Google::Apis::MybusinessV3::ListAccountsResponse + 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 + + # Gets the specified account. Returns `NOT_FOUND` if the + # account does not exist or if the caller does not have access rights to it. + # @param [String] name + # The name of the account to fetch. + # @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::MybusinessV3::Account] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MybusinessV3::Account] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_account(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v3/{+name}', options) + command.response_representation = Google::Apis::MybusinessV3::Account::Representation + command.response_class = Google::Apis::MybusinessV3::Account + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates the specified business account. Personal accounts cannot be + # updated using this method. + # Note: At this time the only editable field for an account is + # `account_name`. + # Any other fields passed in (such as `type`, `role`, and `verified`) is + # ignored. + # @param [String] name + # The name of the account to update. + # @param [Google::Apis::MybusinessV3::Account] account_object + # @param [String] language_code + # The language of the account update. + # @param [Boolean] validate_only + # If true, the request is validated without actually updating the account. + # @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::MybusinessV3::Account] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MybusinessV3::Account] + # + # @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_account(name, account_object = nil, language_code: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'v3/{+name}', options) + command.request_representation = Google::Apis::MybusinessV3::Account::Representation + command.request_object = account_object + command.response_representation = Google::Apis::MybusinessV3::Account::Representation + command.response_class = Google::Apis::MybusinessV3::Account + command.params['name'] = name unless name.nil? + command.query['languageCode'] = language_code unless language_code.nil? + command.query['validateOnly'] = validate_only unless validate_only.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists the admins for the specified account. + # @param [String] name + # The name of the account from which to retrieve a list of admins. + # @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::MybusinessV3::ListAccountAdminsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MybusinessV3::ListAccountAdminsResponse] + # + # @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_account_admins(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v3/{+name}/admins', options) + command.response_representation = Google::Apis::MybusinessV3::ListAccountAdminsResponse::Representation + command.response_class = Google::Apis::MybusinessV3::ListAccountAdminsResponse + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Invites the specified user to become an administrator on the specified + # account. The invitee must accept the invitation in order to be granted + # access to the account. + # @param [String] name + # The resource name. For account admins, this is in the form: + # `accounts/`account_id`/admins/`admin_id`` + # For location admins, this is in the form: + # `accounts/`account_id`/locations/`location_id`/admins/`admin_id`` + # @param [Google::Apis::MybusinessV3::Admin] admin_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::MybusinessV3::Admin] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MybusinessV3::Admin] + # + # @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_account_admin(name, admin_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v3/{+name}/admins', options) + command.request_representation = Google::Apis::MybusinessV3::Admin::Representation + command.request_object = admin_object + command.response_representation = Google::Apis::MybusinessV3::Admin::Representation + command.response_class = Google::Apis::MybusinessV3::Admin + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Removes the specified admin from the specified account. + # @param [String] name + # The resource name of the admin to remove from the account. + # @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::MybusinessV3::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MybusinessV3::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_account_admin(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v3/{+name}', options) + command.response_representation = Google::Apis::MybusinessV3::Empty::Representation + command.response_class = Google::Apis::MybusinessV3::Empty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists the locations for the specified account. + # @param [String] name + # The name of the account to fetch locations from. + # @param [Fixnum] page_size + # How many locations to fetch per page. Default is 100, + # minimum is 1, and maximum page size is 100. + # @param [String] page_token + # If specified, it fetches the next `page` of locations. The page token + # is returned by previous calls to ListLocations when there were more + # locations than could fit in the requested page size. + # @param [String] filter + # A filter constraining the locations to return. The response includes + # only entries that match the filter. If `filter` is empty, then + # constraints are applied and all locations (paginated) are retrieved for + # the requested account. + # Further information on valid filter fields and example usage is available + # [here](https://developers.google.com/my-business/content/location-data# + # filter_results_when_listing_locations) + # . + # @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::MybusinessV3::ListLocationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MybusinessV3::ListLocationsResponse] + # + # @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_account_locations(name, page_size: nil, page_token: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v3/{+name}/locations', options) + command.response_representation = Google::Apis::MybusinessV3::ListLocationsResponse::Representation + command.response_class = Google::Apis::MybusinessV3::ListLocationsResponse + command.params['name'] = name unless name.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['filter'] = filter unless filter.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the specified location. Returns `NOT_FOUND` if the + # location does not exist. + # @param [String] name + # The name of the location to fetch. + # @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::MybusinessV3::Location] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MybusinessV3::Location] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_account_location(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v3/{+name}', options) + command.response_representation = Google::Apis::MybusinessV3::Location::Representation + command.response_class = Google::Apis::MybusinessV3::Location + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets all of the specified locations in the given account. + # @param [String] name + # The name of the account from which to fetch locations. + # @param [Google::Apis::MybusinessV3::BatchGetLocationsRequest] batch_get_locations_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::MybusinessV3::BatchGetLocationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MybusinessV3::BatchGetLocationsResponse] + # + # @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_get_locations(name, batch_get_locations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v3/{+name}/locations:batchGet', options) + command.request_representation = Google::Apis::MybusinessV3::BatchGetLocationsRequest::Representation + command.request_object = batch_get_locations_request_object + command.response_representation = Google::Apis::MybusinessV3::BatchGetLocationsResponse::Representation + command.response_class = Google::Apis::MybusinessV3::BatchGetLocationsResponse + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the Google updated version of the specified location. + # Returns `NOT_FOUND` if the location does not exist. + # @param [String] name + # The name of the location to fetch. + # @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::MybusinessV3::GoogleUpdatedLocation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MybusinessV3::GoogleUpdatedLocation] + # + # @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_google_updated_account_location(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v3/{+name}:googleUpdated', options) + command.response_representation = Google::Apis::MybusinessV3::GoogleUpdatedLocation::Representation + command.response_class = Google::Apis::MybusinessV3::GoogleUpdatedLocation + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates a new location owned by the + # specified account, and returns it. + # @param [String] name + # The name of the account in which to create this location. + # @param [Google::Apis::MybusinessV3::Location] location_object + # @param [String] language_code + # The language of the location update. Currently this is used to disambiguate + # what localized categories are valid for this create request. + # @param [Boolean] validate_only + # If true, the request is validated without actually creating the location. + # @param [String] request_id + # A unique request ID for the server to detect duplicated requests. UUIDs are + # recommended. Max length is 50 characters. + # @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::MybusinessV3::Location] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MybusinessV3::Location] + # + # @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_account_location(name, location_object = nil, language_code: nil, validate_only: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v3/{+name}/locations', options) + command.request_representation = Google::Apis::MybusinessV3::Location::Representation + command.request_object = location_object + command.response_representation = Google::Apis::MybusinessV3::Location::Representation + command.response_class = Google::Apis::MybusinessV3::Location + command.params['name'] = name unless name.nil? + command.query['languageCode'] = language_code unless language_code.nil? + command.query['validateOnly'] = validate_only unless validate_only.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates the specified location. + # Photos are only allowed on a location that has a Google+ page. + # Returns `NOT_FOUND` if the location does not exist. + # @param [String] name + # The name of the location to update. + # @param [Google::Apis::MybusinessV3::Location] location_object + # @param [String] language_code + # The language of the location update. Currently this is used to disambiguate + # what localized categories are valid for this update request. + # @param [String] field_mask + # The specific fields to update. If no mask is specified, then this is + # treated as a full update and all fields are set to the values passed + # in, which may include unsetting empty fields in the request. + # @param [Boolean] validate_only + # If true, the request is validated without actually updating the location. + # @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::MybusinessV3::Location] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MybusinessV3::Location] + # + # @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_account_location(name, location_object = nil, language_code: nil, field_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v3/{+name}', options) + command.request_representation = Google::Apis::MybusinessV3::Location::Representation + command.request_object = location_object + command.response_representation = Google::Apis::MybusinessV3::Location::Representation + command.response_class = Google::Apis::MybusinessV3::Location + command.params['name'] = name unless name.nil? + command.query['languageCode'] = language_code unless language_code.nil? + command.query['fieldMask'] = field_mask unless field_mask.nil? + command.query['validateOnly'] = validate_only unless validate_only.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a location. Note: If this location has an associated Google+ page, as + # indicated by a `plus_page_id` in the LocationKey, it cannot be deleted using + # the API, it + # must be done using the [Google My Business] + # (https://www.google.com/local/manage/) website. + # Returns `NOT_FOUND` if the location does not exist. + # @param [String] name + # The name of the location to delete. + # @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::MybusinessV3::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MybusinessV3::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_account_location(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v3/{+name}', options) + command.response_representation = Google::Apis::MybusinessV3::Empty::Representation + command.response_class = Google::Apis::MybusinessV3::Empty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Finds all of the possible locations that are a match to the specified + # location. This operation is only valid if the location is unverified. + # @param [String] name + # The resource name of the location to find matches for. + # @param [Google::Apis::MybusinessV3::FindMatchingLocationsRequest] find_matching_locations_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::MybusinessV3::FindMatchingLocationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MybusinessV3::FindMatchingLocationsResponse] + # + # @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 find_account_location_matches(name, find_matching_locations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v3/{+name}:findMatches', options) + command.request_representation = Google::Apis::MybusinessV3::FindMatchingLocationsRequest::Representation + command.request_object = find_matching_locations_request_object + command.response_representation = Google::Apis::MybusinessV3::FindMatchingLocationsResponse::Representation + command.response_class = Google::Apis::MybusinessV3::FindMatchingLocationsResponse + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Associates a location to a place ID. Any previous association is + # overwritten. This operation is only valid if the location is unverified. + # The association must be valid, i.e. appear in the list of + # FindMatchingLocations. + # @param [String] name + # The resource name of the location to associate. + # @param [Google::Apis::MybusinessV3::AssociateLocationRequest] associate_location_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::MybusinessV3::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MybusinessV3::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def associate_location(name, associate_location_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v3/{+name}:associate', options) + command.request_representation = Google::Apis::MybusinessV3::AssociateLocationRequest::Representation + command.request_object = associate_location_request_object + command.response_representation = Google::Apis::MybusinessV3::Empty::Representation + command.response_class = Google::Apis::MybusinessV3::Empty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Clears an assocation between a location and its place ID. This + # operation is only valid if the location is unverified. + # @param [String] name + # The resource name of the location to disassociate. + # @param [Google::Apis::MybusinessV3::ClearLocationAssociationRequest] clear_location_association_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::MybusinessV3::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MybusinessV3::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def clear_account_location_association(name, clear_location_association_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v3/{+name}:clearAssociation', options) + command.request_representation = Google::Apis::MybusinessV3::ClearLocationAssociationRequest::Representation + command.request_object = clear_location_association_request_object + command.response_representation = Google::Apis::MybusinessV3::Empty::Representation + command.response_class = Google::Apis::MybusinessV3::Empty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Transfer a location from one account to another. The current account that + # the location is associated with and the destination account must have the + # same ultimate owner. Returns the Location with its new resource name. + # @param [String] name + # The name of the location to transfer. + # @param [Google::Apis::MybusinessV3::TransferLocationRequest] transfer_location_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::MybusinessV3::Location] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MybusinessV3::Location] + # + # @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 transfer_location(name, transfer_location_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v3/{+name}:transfer', options) + command.request_representation = Google::Apis::MybusinessV3::TransferLocationRequest::Representation + command.request_object = transfer_location_request_object + command.response_representation = Google::Apis::MybusinessV3::Location::Representation + command.response_class = Google::Apis::MybusinessV3::Location + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists all of the admins for the specified location. + # @param [String] name + # The name of the location to list admins of. + # @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::MybusinessV3::ListLocationAdminsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MybusinessV3::ListLocationAdminsResponse] + # + # @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_account_location_admins(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v3/{+name}/admins', options) + command.response_representation = Google::Apis::MybusinessV3::ListLocationAdminsResponse::Representation + command.response_class = Google::Apis::MybusinessV3::ListLocationAdminsResponse + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Invites the specified user to become an administrator on the specified + # location. The invitee must accept the invitation in order to be granted + # access to the location. + # @param [String] name + # The resource name. For account admins, this is in the form: + # `accounts/`account_id`/admins/`admin_id`` + # For location admins, this is in the form: + # `accounts/`account_id`/locations/`location_id`/admins/`admin_id`` + # @param [Google::Apis::MybusinessV3::Admin] admin_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::MybusinessV3::Admin] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MybusinessV3::Admin] + # + # @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_account_location_admin(name, admin_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v3/{+name}/admins', options) + command.request_representation = Google::Apis::MybusinessV3::Admin::Representation + command.request_object = admin_object + command.response_representation = Google::Apis::MybusinessV3::Admin::Representation + command.response_class = Google::Apis::MybusinessV3::Admin + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Removes the specified admin as a manager of the specified location. + # @param [String] name + # The resource name of the admin to remove from the location. + # @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::MybusinessV3::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MybusinessV3::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_account_location_admin(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v3/{+name}', options) + command.response_representation = Google::Apis::MybusinessV3::Empty::Representation + command.response_class = Google::Apis::MybusinessV3::Empty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns the paginated list of reviews for the specified location. + # This operation is only valid if the specified location is verified. + # @param [String] name + # The name of the location to fetch reviews for. + # @param [Fixnum] page_size + # How many reviews to fetch per page. The maximum page_size is 200. + # @param [String] page_token + # If specified, it fetches the next ‘page’ of reviews. + # @param [String] order_by + # Specifies the field to sort reviews by. + # If unspecified, the order of reviews returned will + # default to "update_timedesc". + # Valid orders to sort by are `rating` and `ratingdesc` and `update_timedesc`. + # @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::MybusinessV3::ListReviewsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MybusinessV3::ListReviewsResponse] + # + # @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(name, page_size: nil, page_token: nil, order_by: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v3/{+name}/reviews', options) + command.response_representation = Google::Apis::MybusinessV3::ListReviewsResponse::Representation + command.response_class = Google::Apis::MybusinessV3::ListReviewsResponse + command.params['name'] = name unless name.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns the specified review. + # This operation is only valid if the specified location is verified. + # Returns `NOT_FOUND` if the review does not exist, or has been deleted. + # @param [String] name + # The name of the review to fetch. + # @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::MybusinessV3::Review] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MybusinessV3::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(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v3/{+name}', options) + command.response_representation = Google::Apis::MybusinessV3::Review::Representation + command.response_class = Google::Apis::MybusinessV3::Review + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates the reply to the specified review. + # A reply is created if one does not exist. + # This operation is only valid if the specified location is verified. + # @param [String] name + # The name of the review to respond to. + # @param [Google::Apis::MybusinessV3::ReviewReply] review_reply_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::MybusinessV3::ReviewReply] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MybusinessV3::ReviewReply] + # + # @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_to_review(name, review_reply_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v3/{+name}/reply', options) + command.request_representation = Google::Apis::MybusinessV3::ReviewReply::Representation + command.request_object = review_reply_object + command.response_representation = Google::Apis::MybusinessV3::ReviewReply::Representation + command.response_class = Google::Apis::MybusinessV3::ReviewReply + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes the response to the specified review. + # This operation is only valid if the specified location is verified. + # @param [String] name + # The name of the review reply to delete. + # @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::MybusinessV3::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MybusinessV3::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_reply(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v3/{+name}/reply', options) + command.response_representation = Google::Apis::MybusinessV3::Empty::Representation + command.response_class = Google::Apis::MybusinessV3::Empty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns the list of available attributes that would be available for a + # location with the given primary category and country. + # @param [String] name + # Resource name of the location to lookup available attributes. + # @param [String] category_id + # The primary category stable id to find available attributes. + # @param [String] country + # The ISO 3166-1 alpha-2 country code to find available attributes. + # @param [String] language_code + # The BCP 47 code of language to get attribute display names in. If this + # language is not available, they will be provided in English. + # @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::MybusinessV3::ListLocationAttributeMetadataResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MybusinessV3::ListLocationAttributeMetadataResponse] + # + # @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_attributes(name: nil, category_id: nil, country: nil, language_code: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v3/attributes', options) + command.response_representation = Google::Apis::MybusinessV3::ListLocationAttributeMetadataResponse::Representation + command.response_class = Google::Apis::MybusinessV3::ListLocationAttributeMetadataResponse + command.query['name'] = name unless name.nil? + command.query['categoryId'] = category_id unless category_id.nil? + command.query['country'] = country unless country.nil? + command.query['languageCode'] = language_code unless language_code.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/pagespeedonline_v2.rb b/generated/google/apis/pagespeedonline_v2.rb index aa918ee10..35dd5cbbd 100644 --- a/generated/google/apis/pagespeedonline_v2.rb +++ b/generated/google/apis/pagespeedonline_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/speed/docs/insights/v2/getting-started module PagespeedonlineV2 VERSION = 'V2' - REVISION = '20160413' + REVISION = '20160516' end end end diff --git a/generated/google/apis/plus_domains_v1.rb b/generated/google/apis/plus_domains_v1.rb index 8b5671eea..d1123cc5d 100644 --- a/generated/google/apis/plus_domains_v1.rb +++ b/generated/google/apis/plus_domains_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/+/domains/ module PlusDomainsV1 VERSION = 'V1' - REVISION = '20160511' + REVISION = '20160523' # View your circles and the people and pages in them AUTH_PLUS_CIRCLES_READ = 'https://www.googleapis.com/auth/plus.circles.read' diff --git a/generated/google/apis/plus_v1.rb b/generated/google/apis/plus_v1.rb index a03e98d49..213d8f434 100644 --- a/generated/google/apis/plus_v1.rb +++ b/generated/google/apis/plus_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/+/api/ module PlusV1 VERSION = 'V1' - REVISION = '20160511' + REVISION = '20160523' # Know the list of people in your circles, your age range, and language AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login' diff --git a/generated/google/apis/prediction_v1_6.rb b/generated/google/apis/prediction_v1_6.rb index 0a27bd1c8..a9be0b7c6 100644 --- a/generated/google/apis/prediction_v1_6.rb +++ b/generated/google/apis/prediction_v1_6.rb @@ -26,7 +26,10 @@ module Google # @see https://developers.google.com/prediction/docs/developer-guide module PredictionV1_6 VERSION = 'V1_6' - REVISION = '20160304' + REVISION = '20160511' + + # View and manage your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' # Manage your data and permissions in Google Cloud Storage AUTH_DEVSTORAGE_FULL_CONTROL = 'https://www.googleapis.com/auth/devstorage.full_control' diff --git a/generated/google/apis/resourceviews_v1beta2.rb b/generated/google/apis/resourceviews_v1beta2.rb index 1ab0a0dd1..c5fd5e2c3 100644 --- a/generated/google/apis/resourceviews_v1beta2.rb +++ b/generated/google/apis/resourceviews_v1beta2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/compute/ module ResourceviewsV1beta2 VERSION = 'V1beta2' - REVISION = '20150708' + REVISION = '20160512' # 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/sheets_v4.rb b/generated/google/apis/sheets_v4.rb index 9f58eb5f4..72944c390 100644 --- a/generated/google/apis/sheets_v4.rb +++ b/generated/google/apis/sheets_v4.rb @@ -20,12 +20,12 @@ module Google module Apis # Google Sheets API # - # An API for reading and modifying Google Sheets. + # Reads and writes Google Sheets. # # @see https://developers.google.com/sheets/ module SheetsV4 VERSION = 'V4' - REVISION = '20160511' + REVISION = '20160519' # View the files in your Google Drive AUTH_DRIVE_READONLY = 'https://www.googleapis.com/auth/drive.readonly' diff --git a/generated/google/apis/sheets_v4/classes.rb b/generated/google/apis/sheets_v4/classes.rb index ec9ee1768..83954220d 100644 --- a/generated/google/apis/sheets_v4/classes.rb +++ b/generated/google/apis/sheets_v4/classes.rb @@ -121,19 +121,19 @@ module Google # Indexes are half open, e.g the start index is inclusive # and the end index is exclusive -- [start_index, end_index). # Missing indexes indicate the range is unbounded on that side. - # For example, if "Sheet1" is grid ID 0, then: - # Sheet1!A1:A1 == sheet_id: 0, + # For example, if `"Sheet1"` is sheet ID 0, then: + # `Sheet1!A1:A1 == sheet_id: 0, # start_row_index: 0, end_row_index: 1, - # start_column_index: 0, end_column_index: 1 - # Sheet1!A3:B4 == sheet_id: 0, + # start_column_index: 0, end_column_index: 1` + # `Sheet1!A3:B4 == sheet_id: 0, # start_row_index: 2, end_row_index: 4, - # start_column_index: 0, end_column_index: 2 - # Sheet1!A:B == sheet_id: 0, - # start_column_index: 0, end_column_index: 2 - # Sheet1!A5:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2` + # `Sheet1!A:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2` + # `Sheet1!A5:B == sheet_id: 0, # start_row_index: 4, - # start_column_index: 0, end_column_index: 2 - # Sheet1 == sheet_id:0 + # start_column_index: 0, end_column_index: 2` + # `Sheet1 == sheet_id:0` # The start index must always be less than or equal to the end index. # If the start index equals the end index, then the range is empty. # Empty ranges are typically not meaningful and are usually rendered in the @@ -222,7 +222,7 @@ module Google class UpdateConditionalFormatRuleRequest include Google::Apis::Core::Hashable - # The sheet of the rule to move. Required if newIndex is set, + # The sheet of the rule to move. Required if new_index is set, # unused otherwise. # Corresponds to the JSON property `sheetId` # @return [Fixnum] @@ -546,7 +546,6 @@ module Google # Updates properties of the named range with the specified # namedRangeId. - # It is an error to specify read only fields in the field mask. class UpdateNamedRangeRequest include Google::Apis::Core::Hashable @@ -712,12 +711,14 @@ module Google # @return [Google::Apis::SheetsV4::PivotTable] attr_accessor :pivot_table - # Runs of rich text applied to subsections of the cell. + # Runs of rich text applied to subsections of the cell. Runs are only valid + # on user entered strings, not formulas, bools, or numbers. # Runs start at specific indexes in the text and continue until the next # run. Properties of a run will continue unless explicitly changed # in a subsequent run (and properties of the first run will continue # the properties of the cell unless explicitly changed). - # When writing, the new runs will overwrite any prior runs. + # When writing, the new runs will overwrite any prior runs. When writing a + # new user_entered_value, previous runs will be erased. # Corresponds to the JSON property `textFormatRuns` # @return [Array] attr_accessor :text_format_runs @@ -755,19 +756,19 @@ module Google # Indexes are half open, e.g the start index is inclusive # and the end index is exclusive -- [start_index, end_index). # Missing indexes indicate the range is unbounded on that side. - # For example, if "Sheet1" is grid ID 0, then: - # Sheet1!A1:A1 == sheet_id: 0, + # For example, if `"Sheet1"` is sheet ID 0, then: + # `Sheet1!A1:A1 == sheet_id: 0, # start_row_index: 0, end_row_index: 1, - # start_column_index: 0, end_column_index: 1 - # Sheet1!A3:B4 == sheet_id: 0, + # start_column_index: 0, end_column_index: 1` + # `Sheet1!A3:B4 == sheet_id: 0, # start_row_index: 2, end_row_index: 4, - # start_column_index: 0, end_column_index: 2 - # Sheet1!A:B == sheet_id: 0, - # start_column_index: 0, end_column_index: 2 - # Sheet1!A5:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2` + # `Sheet1!A:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2` + # `Sheet1!A5:B == sheet_id: 0, # start_row_index: 4, - # start_column_index: 0, end_column_index: 2 - # Sheet1 == sheet_id:0 + # start_column_index: 0, end_column_index: 2` + # `Sheet1 == sheet_id:0` # The start index must always be less than or equal to the end index. # If the start index equals the end index, then the range is empty. # Empty ranges are typically not meaningful and are usually rendered in the @@ -796,19 +797,19 @@ module Google # Indexes are half open, e.g the start index is inclusive # and the end index is exclusive -- [start_index, end_index). # Missing indexes indicate the range is unbounded on that side. - # For example, if "Sheet1" is grid ID 0, then: - # Sheet1!A1:A1 == sheet_id: 0, + # For example, if `"Sheet1"` is sheet ID 0, then: + # `Sheet1!A1:A1 == sheet_id: 0, # start_row_index: 0, end_row_index: 1, - # start_column_index: 0, end_column_index: 1 - # Sheet1!A3:B4 == sheet_id: 0, + # start_column_index: 0, end_column_index: 1` + # `Sheet1!A3:B4 == sheet_id: 0, # start_row_index: 2, end_row_index: 4, - # start_column_index: 0, end_column_index: 2 - # Sheet1!A:B == sheet_id: 0, - # start_column_index: 0, end_column_index: 2 - # Sheet1!A5:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2` + # `Sheet1!A:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2` + # `Sheet1!A5:B == sheet_id: 0, # start_row_index: 4, - # start_column_index: 0, end_column_index: 2 - # Sheet1 == sheet_id:0 + # start_column_index: 0, end_column_index: 2` + # `Sheet1 == sheet_id:0` # The start index must always be less than or equal to the end index. # If the start index equals the end index, then the range is empty. # Empty ranges are typically not meaningful and are usually rendered in the @@ -889,7 +890,7 @@ module Google end end - # Deletes the protected range with the given id. + # Deletes the protected range with the given ID. class DeleteProtectedRangeRequest include Google::Apis::Core::Hashable @@ -1084,7 +1085,7 @@ module Google attr_accessor :title # The named range this filter view is backed by, if any. - # When writing, only one of range or namedRangeId + # When writing, only one of range or named_range_id # may be set. # Corresponds to the JSON property `namedRangeId` # @return [String] @@ -1101,19 +1102,19 @@ module Google # Indexes are half open, e.g the start index is inclusive # and the end index is exclusive -- [start_index, end_index). # Missing indexes indicate the range is unbounded on that side. - # For example, if "Sheet1" is grid ID 0, then: - # Sheet1!A1:A1 == sheet_id: 0, + # For example, if `"Sheet1"` is sheet ID 0, then: + # `Sheet1!A1:A1 == sheet_id: 0, # start_row_index: 0, end_row_index: 1, - # start_column_index: 0, end_column_index: 1 - # Sheet1!A3:B4 == sheet_id: 0, + # start_column_index: 0, end_column_index: 1` + # `Sheet1!A3:B4 == sheet_id: 0, # start_row_index: 2, end_row_index: 4, - # start_column_index: 0, end_column_index: 2 - # Sheet1!A:B == sheet_id: 0, - # start_column_index: 0, end_column_index: 2 - # Sheet1!A5:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2` + # `Sheet1!A:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2` + # `Sheet1!A5:B == sheet_id: 0, # start_row_index: 4, - # start_column_index: 0, end_column_index: 2 - # Sheet1 == sheet_id:0 + # start_column_index: 0, end_column_index: 2` + # `Sheet1 == sheet_id:0` # The start index must always be less than or equal to the end index. # If the start index equals the end index, then the range is empty. # Empty ranges are typically not meaningful and are usually rendered in the @@ -1158,19 +1159,19 @@ module Google # Indexes are half open, e.g the start index is inclusive # and the end index is exclusive -- [start_index, end_index). # Missing indexes indicate the range is unbounded on that side. - # For example, if "Sheet1" is grid ID 0, then: - # Sheet1!A1:A1 == sheet_id: 0, + # For example, if `"Sheet1"` is sheet ID 0, then: + # `Sheet1!A1:A1 == sheet_id: 0, # start_row_index: 0, end_row_index: 1, - # start_column_index: 0, end_column_index: 1 - # Sheet1!A3:B4 == sheet_id: 0, + # start_column_index: 0, end_column_index: 1` + # `Sheet1!A3:B4 == sheet_id: 0, # start_row_index: 2, end_row_index: 4, - # start_column_index: 0, end_column_index: 2 - # Sheet1!A:B == sheet_id: 0, - # start_column_index: 0, end_column_index: 2 - # Sheet1!A5:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2` + # `Sheet1!A:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2` + # `Sheet1!A5:B == sheet_id: 0, # start_row_index: 4, - # start_column_index: 0, end_column_index: 2 - # Sheet1 == sheet_id:0 + # start_column_index: 0, end_column_index: 2` + # `Sheet1 == sheet_id:0` # The start index must always be less than or equal to the end index. # If the start index equals the end index, then the range is empty. # Empty ranges are typically not meaningful and are usually rendered in the @@ -1196,8 +1197,8 @@ module Google end end - # A run of a text format. The format of this run continues until explicitly - # overridden in the next run. + # A run of a text format. The format of this run continues until the start + # index of the next run. # When updating, all fields must be set. class TextFormatRun include Google::Apis::Core::Hashable @@ -1256,7 +1257,7 @@ module Google include Google::Apis::Core::Hashable # The old index of the rule. Not set if a rule was replaced - # (because it is the same as newIndex). + # (because it is the same as new_index). # Corresponds to the JSON property `oldIndex` # @return [Fixnum] attr_accessor :old_index @@ -1289,7 +1290,7 @@ module Google end end - # Criteria for showing/hiding rows in a filter, filter view. + # Criteria for showing/hiding rows in a filter or filter view. class FilterCriteria include Google::Apis::Core::Hashable @@ -1359,19 +1360,19 @@ module Google # Indexes are half open, e.g the start index is inclusive # and the end index is exclusive -- [start_index, end_index). # Missing indexes indicate the range is unbounded on that side. - # For example, if "Sheet1" is grid ID 0, then: - # Sheet1!A1:A1 == sheet_id: 0, + # For example, if `"Sheet1"` is sheet ID 0, then: + # `Sheet1!A1:A1 == sheet_id: 0, # start_row_index: 0, end_row_index: 1, - # start_column_index: 0, end_column_index: 1 - # Sheet1!A3:B4 == sheet_id: 0, + # start_column_index: 0, end_column_index: 1` + # `Sheet1!A3:B4 == sheet_id: 0, # start_row_index: 2, end_row_index: 4, - # start_column_index: 0, end_column_index: 2 - # Sheet1!A:B == sheet_id: 0, - # start_column_index: 0, end_column_index: 2 - # Sheet1!A5:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2` + # `Sheet1!A:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2` + # `Sheet1!A5:B == sheet_id: 0, # start_row_index: 4, - # start_column_index: 0, end_column_index: 2 - # Sheet1 == sheet_id:0 + # start_column_index: 0, end_column_index: 2` + # `Sheet1 == sheet_id:0` # The start index must always be less than or equal to the end index. # If the start index equals the end index, then the range is empty. # Empty ranges are typically not meaningful and are usually rendered in the @@ -1394,7 +1395,7 @@ module Google # The filters will be applied before aggregating data into the pivot table. # The map's key is the column offset of the source range that you want to # filter, and the value is the criteria for that column. - # For example, if the source was `C10:E15', a key of `0` will have the filter + # For example, if the source was `C10:E15`, a key of `0` will have the filter # for column `C`, whereas the key `1` is for column `D`. # Corresponds to the JSON property `criteria` # @return [Hash] @@ -1458,7 +1459,6 @@ module Google end # Updates properties of a spreadsheet. - # It is an error to specify read only fields in the field mask. class UpdateSpreadsheetPropertiesRequest include Google::Apis::Core::Hashable @@ -1633,19 +1633,19 @@ module Google # Indexes are half open, e.g the start index is inclusive # and the end index is exclusive -- [start_index, end_index). # Missing indexes indicate the range is unbounded on that side. - # For example, if "Sheet1" is grid ID 0, then: - # Sheet1!A1:A1 == sheet_id: 0, + # For example, if `"Sheet1"` is sheet ID 0, then: + # `Sheet1!A1:A1 == sheet_id: 0, # start_row_index: 0, end_row_index: 1, - # start_column_index: 0, end_column_index: 1 - # Sheet1!A3:B4 == sheet_id: 0, + # start_column_index: 0, end_column_index: 1` + # `Sheet1!A3:B4 == sheet_id: 0, # start_row_index: 2, end_row_index: 4, - # start_column_index: 0, end_column_index: 2 - # Sheet1!A:B == sheet_id: 0, - # start_column_index: 0, end_column_index: 2 - # Sheet1!A5:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2` + # `Sheet1!A:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2` + # `Sheet1!A5:B == sheet_id: 0, # start_row_index: 4, - # start_column_index: 0, end_column_index: 2 - # Sheet1 == sheet_id:0 + # start_column_index: 0, end_column_index: 2` + # `Sheet1 == sheet_id:0` # The start index must always be less than or equal to the end index. # If the start index equals the end index, then the range is empty. # Empty ranges are typically not meaningful and are usually rendered in the @@ -1913,7 +1913,9 @@ module Google # Adds a new sheet. # When a sheet is added at a given index, # all subsequent sheets' indexes are incremented. - # To add an object sheet, use AddChartRequest instead. + # To add an object sheet, use AddChartRequest instead and specify + # EmbeddedObjectPosition.sheetId or + # EmbeddedObjectPosition.newSheet. class AddSheetRequest include Google::Apis::Core::Hashable @@ -1961,7 +1963,7 @@ module Google # corresponds with one cell. # For output, empty trailing rows and columns will not be included. # For input, supported value types are: bool, string, and double. - # Null and empty values will be skipped. + # Null values will be skipped. # To set a cell to an empty value, set the string value to an empty string. # Corresponds to the JSON property `values` # @return [Array>] @@ -1975,13 +1977,14 @@ module Google attr_accessor :range # The major dimension of the values. - # For output, if the spreadsheet data is: A1=1,B1=2,A2=3,B2=4, - # then requesting range=A1:B2,majorDimension=ROWS will return [[1,2],[3,4]], - # whereas requesting range=A1:B2,majorDimension=COLUMNS will return - # [[1,3],[2,4]]. - # For input, with range=A1:B2,majorDimension=ROWS then [[1,2],[3,4]] - # will set A1=1,B1=2,A2=3,B2=4. With range=A1:B2,majorDimension=COLUMNS - # then [[1,2],[3,4]] will set A1=1,B1=3,A2=2,B2=4. + # For output, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`, + # then requesting `range=A1:B2,majorDimension=ROWS` will return + # `[[1,2],[3,4]]`, + # whereas requesting `range=A1:B2,majorDimension=COLUMNS` will return + # `[[1,3],[2,4]]`. + # For input, with `range=A1:B2,majorDimension=ROWS` then `[[1,2],[3,4]]` + # will set `A1=1,B1=2,A2=3,B2=4`. With `range=A1:B2,majorDimension=COLUMNS` + # then `[[1,2],[3,4]]` will set `A1=1,B1=3,A2=2,B2=4`. # When writing, if this field is not set, it defaults to ROWS. # Corresponds to the JSON property `majorDimension` # @return [String] @@ -2014,8 +2017,8 @@ module Google attr_accessor :rows_changed # The number of occurrences (possibly multiple within a cell) changed. - # For example, if replacing "`e`" with "`o`" in "`Google Sheets`", this would - # be "`3`" because "`Google Sheets`" -> "`Googlo Shoots`". + # For example, if replacing `"e"` with `"o"` in `"Google Sheets"`, this would + # be `"3"` because `"Google Sheets"` -> `"Googlo Shoots"`. # Corresponds to the JSON property `occurrencesChanged` # @return [Fixnum] attr_accessor :occurrences_changed @@ -2048,7 +2051,7 @@ module Google class CellFormat include Google::Apis::Core::Hashable - # The horizontal alignment of the value in cell. + # The horizontal alignment of the value in the cell. # Corresponds to the JSON property `horizontalAlignment` # @return [String] attr_accessor :horizontal_alignment @@ -2081,7 +2084,6 @@ module Google attr_accessor :padding # The number format of a cell. - # When updating, all fields must be set. # Corresponds to the JSON property `numberFormat` # @return [Google::Apis::SheetsV4::NumberFormat] attr_accessor :number_format @@ -2194,7 +2196,7 @@ module Google # @return [Google::Apis::SheetsV4::Color] attr_accessor :background_color - # The vertical alignment of the value in cell. + # The vertical alignment of the value in the cell. # Corresponds to the JSON property `verticalAlignment` # @return [String] attr_accessor :vertical_alignment @@ -2238,8 +2240,8 @@ module Google # The source dimensions are removed from the grid, so the # the data may end up in a different index than specified. # For example, given `A1..A5` of `0, 1, 2, 3, 4` and wanting to move - # "`1`" and "`2`" to between "`3`" and "`4`", the source would be - # `ROWS [1..3)`,and the destination index would be "`4`" + # `"1"` and `"2"` to between `"3"` and `"4"`, the source would be + # `ROWS [1..3)`,and the destination index would be `"4"` # (the zero-based index of row 5). # The end result would be `A1..A5` of `0, 3, 1, 2, 4`. # Corresponds to the JSON property `destinationIndex` @@ -2308,7 +2310,7 @@ module Google # @return [Array] attr_accessor :buckets - # The offset in the [PivotTable.values] list which the values in this + # The offset in the PivotTable.values list which the values in this # grouping should be sorted by. # Corresponds to the JSON property `valuesIndex` # @return [Fixnum] @@ -2393,7 +2395,7 @@ module Google end end - # A single interpolation point a gradient conditional format. + # A single interpolation point on a gradient conditional format. # These pin the gradient color scale according to the color, # type and value chosen. class InterpolationPoint @@ -2772,7 +2774,7 @@ module Google attr_accessor :description # The named range this protected range is backed by, if any. - # When writing, only one of range or namedRangeId + # When writing, only one of range or named_range_id # may be set. # Corresponds to the JSON property `namedRangeId` # @return [String] @@ -2797,11 +2799,11 @@ module Google # @return [Fixnum] attr_accessor :protected_range_id - # True if this this protected range will show a warning when editing. + # True if this protected range will show a warning when editing. # Warning-based protection means that every user can edit data in the # protected range, except editing will prompt a warning asking the user # to confirm the edit. - # When warning: if this field is true, then editors is ignored. + # When writing: if this field is true, then editors is ignored. # Additionally, if this field is changed from true to false and the # `editors` field is not set (nor included in the field mask), then # the editors will be set to all the editors in the document. @@ -2815,19 +2817,19 @@ module Google # Indexes are half open, e.g the start index is inclusive # and the end index is exclusive -- [start_index, end_index). # Missing indexes indicate the range is unbounded on that side. - # For example, if "Sheet1" is grid ID 0, then: - # Sheet1!A1:A1 == sheet_id: 0, + # For example, if `"Sheet1"` is sheet ID 0, then: + # `Sheet1!A1:A1 == sheet_id: 0, # start_row_index: 0, end_row_index: 1, - # start_column_index: 0, end_column_index: 1 - # Sheet1!A3:B4 == sheet_id: 0, + # start_column_index: 0, end_column_index: 1` + # `Sheet1!A3:B4 == sheet_id: 0, # start_row_index: 2, end_row_index: 4, - # start_column_index: 0, end_column_index: 2 - # Sheet1!A:B == sheet_id: 0, - # start_column_index: 0, end_column_index: 2 - # Sheet1!A5:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2` + # `Sheet1!A:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2` + # `Sheet1!A5:B == sheet_id: 0, # start_row_index: 4, - # start_column_index: 0, end_column_index: 2 - # Sheet1 == sheet_id:0 + # start_column_index: 0, end_column_index: 2` + # `Sheet1 == sheet_id:0` # The start index must always be less than or equal to the end index. # If the start index equals the end index, then the range is empty. # Empty ranges are typically not meaningful and are usually rendered in the @@ -2884,9 +2886,6 @@ module Google include Google::Apis::Core::Hashable # Determines how the charts will use hidden rows or columns. - # This value is only meaningful if the - # ChartData.sourceRange - # is used for a domain or series. # Corresponds to the JSON property `hiddenDimensionStrategy` # @return [String] attr_accessor :hidden_dimension_strategy @@ -2929,19 +2928,19 @@ module Google # Indexes are half open, e.g the start index is inclusive # and the end index is exclusive -- [start_index, end_index). # Missing indexes indicate the range is unbounded on that side. - # For example, if "Sheet1" is grid ID 0, then: - # Sheet1!A1:A1 == sheet_id: 0, + # For example, if `"Sheet1"` is sheet ID 0, then: + # `Sheet1!A1:A1 == sheet_id: 0, # start_row_index: 0, end_row_index: 1, - # start_column_index: 0, end_column_index: 1 - # Sheet1!A3:B4 == sheet_id: 0, + # start_column_index: 0, end_column_index: 1` + # `Sheet1!A3:B4 == sheet_id: 0, # start_row_index: 2, end_row_index: 4, - # start_column_index: 0, end_column_index: 2 - # Sheet1!A:B == sheet_id: 0, - # start_column_index: 0, end_column_index: 2 - # Sheet1!A5:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2` + # `Sheet1!A:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2` + # `Sheet1!A5:B == sheet_id: 0, # start_row_index: 4, - # start_column_index: 0, end_column_index: 2 - # Sheet1 == sheet_id:0 + # start_column_index: 0, end_column_index: 2` + # `Sheet1 == sheet_id:0` # The start index must always be less than or equal to the end index. # If the start index equals the end index, then the range is empty. # Empty ranges are typically not meaningful and are usually rendered in the @@ -3073,10 +3072,10 @@ module Google # The regular expression and replacement should follow Java regex rules # at https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html. # The replacement string is allowed to refer to capturing groups. - # For example, if one cell has the contents "`Google Sheets`" and another - # has "`Google Docs`", then searching for `"o.* (.*)"` with a replacement of - # `"$1 Rocks`"` would change the contents of the cells to - # "`GSheets Rocks`" and "`GDocs Rocks`" respectively. + # For example, if one cell has the contents `"Google Sheets"` and another + # has `"Google Docs"`, then searching for `"o.* (.*)"` with a replacement of + # `"$1 Rocks"` would change the contents of the cells to + # `"GSheets Rocks"` and `"GDocs Rocks"` respectively. # Corresponds to the JSON property `searchByRegex` # @return [Boolean] attr_accessor :search_by_regex @@ -3111,19 +3110,19 @@ module Google # Indexes are half open, e.g the start index is inclusive # and the end index is exclusive -- [start_index, end_index). # Missing indexes indicate the range is unbounded on that side. - # For example, if "Sheet1" is grid ID 0, then: - # Sheet1!A1:A1 == sheet_id: 0, + # For example, if `"Sheet1"` is sheet ID 0, then: + # `Sheet1!A1:A1 == sheet_id: 0, # start_row_index: 0, end_row_index: 1, - # start_column_index: 0, end_column_index: 1 - # Sheet1!A3:B4 == sheet_id: 0, + # start_column_index: 0, end_column_index: 1` + # `Sheet1!A3:B4 == sheet_id: 0, # start_row_index: 2, end_row_index: 4, - # start_column_index: 0, end_column_index: 2 - # Sheet1!A:B == sheet_id: 0, - # start_column_index: 0, end_column_index: 2 - # Sheet1!A5:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2` + # `Sheet1!A:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2` + # `Sheet1!A5:B == sheet_id: 0, # start_row_index: 4, - # start_column_index: 0, end_column_index: 2 - # Sheet1 == sheet_id:0 + # start_column_index: 0, end_column_index: 2` + # `Sheet1 == sheet_id:0` # The start index must always be less than or equal to the end index. # If the start index equals the end index, then the range is empty. # Empty ranges are typically not meaningful and are usually rendered in the @@ -3201,16 +3200,17 @@ module Google end # The number format of a cell. - # When updating, all fields must be set. class NumberFormat include Google::Apis::Core::Hashable - # Pattern string used for formatting. + # Pattern string used for formatting. If not set, a default pattern based on + # the user's locale will be used if necessary for the given type. # Corresponds to the JSON property `pattern` # @return [String] attr_accessor :pattern # The type of the number format. + # When writing, this field must be set. # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -3227,7 +3227,6 @@ module Google end # Updates properties of dimensions within the specified range. - # It is an error to specify read only fields in the field mask. class UpdateDimensionPropertiesRequest include Google::Apis::Core::Hashable @@ -3340,7 +3339,7 @@ module Google include Google::Apis::Core::Hashable # Metadata about the requested columns in the grid, starting with the column - # in startColumn. + # in start_column. # Corresponds to the JSON property `columnMetadata` # @return [Array] attr_accessor :column_metadata @@ -3348,7 +3347,7 @@ module Google # The data in the grid, one entry per row, # starting with the row in startRow. # The values in RowData will correspond to columns starting - # at startColumn. + # at start_column. # Corresponds to the JSON property `rowData` # @return [Array] attr_accessor :row_data @@ -3359,7 +3358,7 @@ module Google attr_accessor :start_row # Metadata about the requested rows in the grid, starting with the row - # in startRow. + # in start_row. # Corresponds to the JSON property `rowMetadata` # @return [Array] attr_accessor :row_metadata @@ -3394,7 +3393,7 @@ module Google attr_accessor :formula # The column offset of the source range that this value reads from. - # For example, if the source was `C10:E15', a `sourceColumnOffset` of `0` + # For example, if the source was `C10:E15`, a `sourceColumnOffset` of `0` # means this value refers to column `C`, whereas the offset `1` would # refer to column `D`. # Corresponds to the JSON property `sourceColumnOffset` @@ -3446,19 +3445,19 @@ module Google # Indexes are half open, e.g the start index is inclusive # and the end index is exclusive -- [start_index, end_index). # Missing indexes indicate the range is unbounded on that side. - # For example, if "Sheet1" is grid ID 0, then: - # Sheet1!A1:A1 == sheet_id: 0, + # For example, if `"Sheet1"` is sheet ID 0, then: + # `Sheet1!A1:A1 == sheet_id: 0, # start_row_index: 0, end_row_index: 1, - # start_column_index: 0, end_column_index: 1 - # Sheet1!A3:B4 == sheet_id: 0, + # start_column_index: 0, end_column_index: 1` + # `Sheet1!A3:B4 == sheet_id: 0, # start_row_index: 2, end_row_index: 4, - # start_column_index: 0, end_column_index: 2 - # Sheet1!A:B == sheet_id: 0, - # start_column_index: 0, end_column_index: 2 - # Sheet1!A5:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2` + # `Sheet1!A:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2` + # `Sheet1!A5:B == sheet_id: 0, # start_row_index: 4, - # start_column_index: 0, end_column_index: 2 - # Sheet1 == sheet_id:0 + # start_column_index: 0, end_column_index: 2` + # `Sheet1 == sheet_id:0` # The start index must always be less than or equal to the end index. # If the start index equals the end index, then the range is empty. # Empty ranges are typically not meaningful and are usually rendered in the @@ -3496,6 +3495,7 @@ module Google # If set, the ID of the new sheet. If not set, an ID is chosen. # If set, the ID must not conflict with any existing sheet ID. + # If set, it must be non-negative. # Corresponds to the JSON property `newSheetId` # @return [Fixnum] attr_accessor :new_sheet_id @@ -3572,7 +3572,7 @@ module Google attr_accessor :style # The width of the border, in pixels. - # Border widths must be between 0 and 3 pixels. + # Border widths must be between 0 and 3 pixels, inclusive. # Corresponds to the JSON property `width` # @return [Fixnum] attr_accessor :width @@ -3730,7 +3730,7 @@ module Google end end - # Adds new cells to the last row with data in a sheet, + # Adds new cells after the last row with data in a sheet, # inserting new rows into the sheet if necessary. class AppendCellsRequest include Google::Apis::Core::Hashable @@ -3810,6 +3810,8 @@ module Google # chartType is # COMBO. # Different types will change the way the series is visualized. + # Only LINE, AREA, + # and COLUMN are supported. # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -3835,8 +3837,8 @@ module Google # B2 would be `=A1`, B3 would be `=A2`, B4 would be `=A3`, # C2 would be `=B1`, C3 would be `=B2`, C4 would be `=B3`. # To keep the formula's ranges static, use the `$` indicator. - # For example, using the formula was `=$A$1`, neither - # the row nor column would increment. + # For example, use the formula `=$A$1` to prevent both the row and the + # column from incrementing. class RepeatCellRequest include Google::Apis::Core::Hashable @@ -3857,19 +3859,19 @@ module Google # Indexes are half open, e.g the start index is inclusive # and the end index is exclusive -- [start_index, end_index). # Missing indexes indicate the range is unbounded on that side. - # For example, if "Sheet1" is grid ID 0, then: - # Sheet1!A1:A1 == sheet_id: 0, + # For example, if `"Sheet1"` is sheet ID 0, then: + # `Sheet1!A1:A1 == sheet_id: 0, # start_row_index: 0, end_row_index: 1, - # start_column_index: 0, end_column_index: 1 - # Sheet1!A3:B4 == sheet_id: 0, + # start_column_index: 0, end_column_index: 1` + # `Sheet1!A3:B4 == sheet_id: 0, # start_row_index: 2, end_row_index: 4, - # start_column_index: 0, end_column_index: 2 - # Sheet1!A:B == sheet_id: 0, - # start_column_index: 0, end_column_index: 2 - # Sheet1!A5:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2` + # `Sheet1!A:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2` + # `Sheet1!A5:B == sheet_id: 0, # start_row_index: 4, - # start_column_index: 0, end_column_index: 2 - # Sheet1 == sheet_id:0 + # start_column_index: 0, end_column_index: 2` + # `Sheet1 == sheet_id:0` # The start index must always be less than or equal to the end index. # If the start index equals the end index, then the range is empty. # Empty ranges are typically not meaningful and are usually rendered in the @@ -3959,19 +3961,19 @@ module Google # Indexes are half open, e.g the start index is inclusive # and the end index is exclusive -- [start_index, end_index). # Missing indexes indicate the range is unbounded on that side. - # For example, if "Sheet1" is grid ID 0, then: - # Sheet1!A1:A1 == sheet_id: 0, + # For example, if `"Sheet1"` is sheet ID 0, then: + # `Sheet1!A1:A1 == sheet_id: 0, # start_row_index: 0, end_row_index: 1, - # start_column_index: 0, end_column_index: 1 - # Sheet1!A3:B4 == sheet_id: 0, + # start_column_index: 0, end_column_index: 1` + # `Sheet1!A3:B4 == sheet_id: 0, # start_row_index: 2, end_row_index: 4, - # start_column_index: 0, end_column_index: 2 - # Sheet1!A:B == sheet_id: 0, - # start_column_index: 0, end_column_index: 2 - # Sheet1!A5:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2` + # `Sheet1!A:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2` + # `Sheet1!A5:B == sheet_id: 0, # start_row_index: 4, - # start_column_index: 0, end_column_index: 2 - # Sheet1 == sheet_id:0 + # start_column_index: 0, end_column_index: 2` + # `Sheet1 == sheet_id:0` # The start index must always be less than or equal to the end index. # If the start index equals the end index, then the range is empty. # Empty ranges are typically not meaningful and are usually rendered in the @@ -4026,13 +4028,13 @@ module Google # @return [Google::Apis::SheetsV4::EmbeddedObjectPosition] attr_accessor :new_position - # The id of the object to moved. + # The ID of the object to moved. # Corresponds to the JSON property `objectId` # @return [Fixnum] attr_accessor :object_id_prop - # The fields of OverlayPosition that should be updated when - # setting a new position. Used only if + # The fields of OverlayPosition + # that should be updated when setting a new position. Used only if # newPosition.overlayPosition # is set, in which case at least one field must # be specified. The root `newPosition.overlayPosition` is implied and @@ -4107,7 +4109,7 @@ module Google attr_accessor :sort_order # The column offset of the source range that this grouping is based on. - # For example, if the source was `C10:E15', a `sourceColumnOffset` of `0` + # For example, if the source was `C10:E15`, a `sourceColumnOffset` of `0` # means this group refers to column `C`, whereas the offset `1` would refer # to column `D`. # Corresponds to the JSON property `sourceColumnOffset` @@ -4149,19 +4151,19 @@ module Google # Indexes are half open, e.g the start index is inclusive # and the end index is exclusive -- [start_index, end_index). # Missing indexes indicate the range is unbounded on that side. - # For example, if "Sheet1" is grid ID 0, then: - # Sheet1!A1:A1 == sheet_id: 0, + # For example, if `"Sheet1"` is sheet ID 0, then: + # `Sheet1!A1:A1 == sheet_id: 0, # start_row_index: 0, end_row_index: 1, - # start_column_index: 0, end_column_index: 1 - # Sheet1!A3:B4 == sheet_id: 0, + # start_column_index: 0, end_column_index: 1` + # `Sheet1!A3:B4 == sheet_id: 0, # start_row_index: 2, end_row_index: 4, - # start_column_index: 0, end_column_index: 2 - # Sheet1!A:B == sheet_id: 0, - # start_column_index: 0, end_column_index: 2 - # Sheet1!A5:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2` + # `Sheet1!A:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2` + # `Sheet1!A5:B == sheet_id: 0, # start_row_index: 4, - # start_column_index: 0, end_column_index: 2 - # Sheet1 == sheet_id:0 + # start_column_index: 0, end_column_index: 2` + # `Sheet1 == sheet_id:0` # The start index must always be less than or equal to the end index. # If the start index equals the end index, then the range is empty. # Empty ranges are typically not meaningful and are usually rendered in the @@ -4333,19 +4335,19 @@ module Google # Indexes are half open, e.g the start index is inclusive # and the end index is exclusive -- [start_index, end_index). # Missing indexes indicate the range is unbounded on that side. - # For example, if "Sheet1" is grid ID 0, then: - # Sheet1!A1:A1 == sheet_id: 0, + # For example, if `"Sheet1"` is sheet ID 0, then: + # `Sheet1!A1:A1 == sheet_id: 0, # start_row_index: 0, end_row_index: 1, - # start_column_index: 0, end_column_index: 1 - # Sheet1!A3:B4 == sheet_id: 0, + # start_column_index: 0, end_column_index: 1` + # `Sheet1!A3:B4 == sheet_id: 0, # start_row_index: 2, end_row_index: 4, - # start_column_index: 0, end_column_index: 2 - # Sheet1!A:B == sheet_id: 0, - # start_column_index: 0, end_column_index: 2 - # Sheet1!A5:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2` + # `Sheet1!A:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2` + # `Sheet1!A5:B == sheet_id: 0, # start_row_index: 4, - # start_column_index: 0, end_column_index: 2 - # Sheet1 == sheet_id:0 + # start_column_index: 0, end_column_index: 2` + # `Sheet1 == sheet_id:0` # The start index must always be less than or equal to the end index. # If the start index equals the end index, then the range is empty. # Empty ranges are typically not meaningful and are usually rendered in the @@ -4359,19 +4361,19 @@ module Google # Indexes are half open, e.g the start index is inclusive # and the end index is exclusive -- [start_index, end_index). # Missing indexes indicate the range is unbounded on that side. - # For example, if "Sheet1" is grid ID 0, then: - # Sheet1!A1:A1 == sheet_id: 0, + # For example, if `"Sheet1"` is sheet ID 0, then: + # `Sheet1!A1:A1 == sheet_id: 0, # start_row_index: 0, end_row_index: 1, - # start_column_index: 0, end_column_index: 1 - # Sheet1!A3:B4 == sheet_id: 0, + # start_column_index: 0, end_column_index: 1` + # `Sheet1!A3:B4 == sheet_id: 0, # start_row_index: 2, end_row_index: 4, - # start_column_index: 0, end_column_index: 2 - # Sheet1!A:B == sheet_id: 0, - # start_column_index: 0, end_column_index: 2 - # Sheet1!A5:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2` + # `Sheet1!A:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2` + # `Sheet1!A5:B == sheet_id: 0, # start_row_index: 4, - # start_column_index: 0, end_column_index: 2 - # Sheet1 == sheet_id:0 + # start_column_index: 0, end_column_index: 2` + # `Sheet1 == sheet_id:0` # The start index must always be less than or equal to the end index. # If the start index equals the end index, then the range is empty. # Empty ranges are typically not meaningful and are usually rendered in the @@ -4421,19 +4423,19 @@ module Google # Indexes are half open, e.g the start index is inclusive # and the end index is exclusive -- [start_index, end_index). # Missing indexes indicate the range is unbounded on that side. - # For example, if "Sheet1" is grid ID 0, then: - # Sheet1!A1:A1 == sheet_id: 0, + # For example, if `"Sheet1"` is sheet ID 0, then: + # `Sheet1!A1:A1 == sheet_id: 0, # start_row_index: 0, end_row_index: 1, - # start_column_index: 0, end_column_index: 1 - # Sheet1!A3:B4 == sheet_id: 0, + # start_column_index: 0, end_column_index: 1` + # `Sheet1!A3:B4 == sheet_id: 0, # start_row_index: 2, end_row_index: 4, - # start_column_index: 0, end_column_index: 2 - # Sheet1!A:B == sheet_id: 0, - # start_column_index: 0, end_column_index: 2 - # Sheet1!A5:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2` + # `Sheet1!A:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2` + # `Sheet1!A5:B == sheet_id: 0, # start_row_index: 4, - # start_column_index: 0, end_column_index: 2 - # Sheet1 == sheet_id:0 + # start_column_index: 0, end_column_index: 2` + # `Sheet1 == sheet_id:0` # The start index must always be less than or equal to the end index. # If the start index equals the end index, then the range is empty. # Empty ranges are typically not meaningful and are usually rendered in the @@ -4537,21 +4539,21 @@ module Google class GradientRule include Google::Apis::Core::Hashable - # A single interpolation point a gradient conditional format. + # A single interpolation point on a gradient conditional format. # These pin the gradient color scale according to the color, # type and value chosen. # Corresponds to the JSON property `maxpoint` # @return [Google::Apis::SheetsV4::InterpolationPoint] attr_accessor :maxpoint - # A single interpolation point a gradient conditional format. + # A single interpolation point on a gradient conditional format. # These pin the gradient color scale according to the color, # type and value chosen. # Corresponds to the JSON property `midpoint` # @return [Google::Apis::SheetsV4::InterpolationPoint] attr_accessor :midpoint - # A single interpolation point a gradient conditional format. + # A single interpolation point on a gradient conditional format. # These pin the gradient color scale according to the color, # type and value chosen. # Corresponds to the JSON property `minpoint` @@ -4585,19 +4587,19 @@ module Google # Indexes are half open, e.g the start index is inclusive # and the end index is exclusive -- [start_index, end_index). # Missing indexes indicate the range is unbounded on that side. - # For example, if "Sheet1" is grid ID 0, then: - # Sheet1!A1:A1 == sheet_id: 0, + # For example, if `"Sheet1"` is sheet ID 0, then: + # `Sheet1!A1:A1 == sheet_id: 0, # start_row_index: 0, end_row_index: 1, - # start_column_index: 0, end_column_index: 1 - # Sheet1!A3:B4 == sheet_id: 0, + # start_column_index: 0, end_column_index: 1` + # `Sheet1!A3:B4 == sheet_id: 0, # start_row_index: 2, end_row_index: 4, - # start_column_index: 0, end_column_index: 2 - # Sheet1!A:B == sheet_id: 0, - # start_column_index: 0, end_column_index: 2 - # Sheet1!A5:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2` + # `Sheet1!A:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2` + # `Sheet1!A5:B == sheet_id: 0, # start_row_index: 4, - # start_column_index: 0, end_column_index: 2 - # Sheet1 == sheet_id:0 + # start_column_index: 0, end_column_index: 2` + # `Sheet1 == sheet_id:0` # The start index must always be less than or equal to the end index. # If the start index equals the end index, then the range is empty. # Empty ranges are typically not meaningful and are usually rendered in the @@ -4686,19 +4688,19 @@ module Google # Indexes are half open, e.g the start index is inclusive # and the end index is exclusive -- [start_index, end_index). # Missing indexes indicate the range is unbounded on that side. - # For example, if "Sheet1" is grid ID 0, then: - # Sheet1!A1:A1 == sheet_id: 0, + # For example, if `"Sheet1"` is sheet ID 0, then: + # `Sheet1!A1:A1 == sheet_id: 0, # start_row_index: 0, end_row_index: 1, - # start_column_index: 0, end_column_index: 1 - # Sheet1!A3:B4 == sheet_id: 0, + # start_column_index: 0, end_column_index: 1` + # `Sheet1!A3:B4 == sheet_id: 0, # start_row_index: 2, end_row_index: 4, - # start_column_index: 0, end_column_index: 2 - # Sheet1!A:B == sheet_id: 0, - # start_column_index: 0, end_column_index: 2 - # Sheet1!A5:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2` + # `Sheet1!A:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2` + # `Sheet1!A5:B == sheet_id: 0, # start_row_index: 4, - # start_column_index: 0, end_column_index: 2 - # Sheet1 == sheet_id:0 + # start_column_index: 0, end_column_index: 2` + # `Sheet1 == sheet_id:0` # The start index must always be less than or equal to the end index. # If the start index equals the end index, then the range is empty. # Empty ranges are typically not meaningful and are usually rendered in the @@ -4770,7 +4772,6 @@ module Google # Updates properties of the sheet with the specified # sheetId. - # It is an error to specify read only fields in the field mask. class UpdateSheetPropertiesRequest include Google::Apis::Core::Hashable @@ -4971,19 +4972,19 @@ module Google # Indexes are half open, e.g the start index is inclusive # and the end index is exclusive -- [start_index, end_index). # Missing indexes indicate the range is unbounded on that side. - # For example, if "Sheet1" is grid ID 0, then: - # Sheet1!A1:A1 == sheet_id: 0, + # For example, if `"Sheet1"` is sheet ID 0, then: + # `Sheet1!A1:A1 == sheet_id: 0, # start_row_index: 0, end_row_index: 1, - # start_column_index: 0, end_column_index: 1 - # Sheet1!A3:B4 == sheet_id: 0, + # start_column_index: 0, end_column_index: 1` + # `Sheet1!A3:B4 == sheet_id: 0, # start_row_index: 2, end_row_index: 4, - # start_column_index: 0, end_column_index: 2 - # Sheet1!A:B == sheet_id: 0, - # start_column_index: 0, end_column_index: 2 - # Sheet1!A5:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2` + # `Sheet1!A:B == sheet_id: 0, + # start_column_index: 0, end_column_index: 2` + # `Sheet1!A5:B == sheet_id: 0, # start_row_index: 4, - # start_column_index: 0, end_column_index: 2 - # Sheet1 == sheet_id:0 + # start_column_index: 0, end_column_index: 2` + # `Sheet1 == sheet_id:0` # The start index must always be less than or equal to the end index. # If the start index equals the end index, then the range is empty. # Empty ranges are typically not meaningful and are usually rendered in the @@ -5020,7 +5021,6 @@ module Google # Updates properties of the named range with the specified # namedRangeId. - # It is an error to specify read only fields in the field mask. # Corresponds to the JSON property `updateNamedRange` # @return [Google::Apis::SheetsV4::UpdateNamedRangeRequest] attr_accessor :update_named_range @@ -5031,7 +5031,6 @@ module Google attr_accessor :add_filter_view # Updates properties of a spreadsheet. - # It is an error to specify read only fields in the field mask. # Corresponds to the JSON property `updateSpreadsheetProperties` # @return [Google::Apis::SheetsV4::UpdateSpreadsheetPropertiesRequest] attr_accessor :update_spreadsheet_properties @@ -5076,8 +5075,8 @@ module Google # B2 would be `=A1`, B3 would be `=A2`, B4 would be `=A3`, # C2 would be `=B1`, C3 would be `=B2`, C4 would be `=B3`. # To keep the formula's ranges static, use the `$` indicator. - # For example, using the formula was `=$A$1`, neither - # the row nor column would increment. + # For example, use the formula `=$A$1` to prevent both the row and the + # column from incrementing. # Corresponds to the JSON property `repeatCell` # @return [Google::Apis::SheetsV4::RepeatCellRequest] attr_accessor :repeat_cell @@ -5096,7 +5095,9 @@ module Google # Adds a new sheet. # When a sheet is added at a given index, # all subsequent sheets' indexes are incremented. - # To add an object sheet, use AddChartRequest instead. + # To add an object sheet, use AddChartRequest instead and specify + # EmbeddedObjectPosition.sheetId or + # EmbeddedObjectPosition.newSheet. # Corresponds to the JSON property `addSheet` # @return [Google::Apis::SheetsV4::AddSheetRequest] attr_accessor :add_sheet @@ -5108,13 +5109,11 @@ module Google # Updates properties of the sheet with the specified # sheetId. - # It is an error to specify read only fields in the field mask. # Corresponds to the JSON property `updateSheetProperties` # @return [Google::Apis::SheetsV4::UpdateSheetPropertiesRequest] attr_accessor :update_sheet_properties # Updates properties of dimensions within the specified range. - # It is an error to specify read only fields in the field mask. # Corresponds to the JSON property `updateDimensionProperties` # @return [Google::Apis::SheetsV4::UpdateDimensionPropertiesRequest] attr_accessor :update_dimension_properties @@ -5134,7 +5133,7 @@ module Google # @return [Google::Apis::SheetsV4::AddProtectedRangeRequest] attr_accessor :add_protected_range - # Deletes the protected range with the given id. + # Deletes the protected range with the given ID. # Corresponds to the JSON property `deleteProtectedRange` # @return [Google::Apis::SheetsV4::DeleteProtectedRangeRequest] attr_accessor :delete_protected_range @@ -5228,7 +5227,7 @@ module Google # @return [Google::Apis::SheetsV4::CutPasteRequest] attr_accessor :cut_paste - # Adds new cells to the last row with data in a sheet, + # Adds new cells after the last row with data in a sheet, # inserting new rows into the sheet if necessary. # Corresponds to the JSON property `appendCells` # @return [Google::Apis::SheetsV4::AppendCellsRequest] @@ -5328,7 +5327,7 @@ module Google # @return [Array] attr_accessor :value_ranges - # The id of the spreadsheet to retrieve data from. + # The ID of the spreadsheet the data was retrieved from. # Corresponds to the JSON property `spreadsheetId` # @return [String] attr_accessor :spreadsheet_id @@ -5358,7 +5357,7 @@ module Google # either the green or red background. If `inheritFromBefore` is true, # the two new rows will be red (because the row before the insertion point # was red), whereas if `inheritFromBefore` is false, the two new rows will - # be green (because the rows after the insertion point were green). + # be green (because the row after the insertion point was green). # Corresponds to the JSON property `inheritFromBefore` # @return [Boolean] attr_accessor :inherit_from_before diff --git a/generated/google/apis/sheets_v4/service.rb b/generated/google/apis/sheets_v4/service.rb index 2dcb02cf0..b1d65cf32 100644 --- a/generated/google/apis/sheets_v4/service.rb +++ b/generated/google/apis/sheets_v4/service.rb @@ -22,7 +22,7 @@ module Google module SheetsV4 # Google Sheets API # - # An API for reading and modifying Google Sheets. + # Reads and writes Google Sheets. # # @example # require 'google/apis/sheets_v4' @@ -76,16 +76,15 @@ module Google execute_or_queue_command(command, &block) end - # Returns the spreadsheet at the given id. + # Returns the spreadsheet at the given ID. # The caller must specify the spreadsheet ID. # By default, data within grids will not be returned. - # You can include grid data one of two ways: specify a field mask listing - # your desired fields (using the `fields` URL parameter in HTTP, - # or `FieldMaskContext.response_mask` in the request extensions in an RPC), - # or by setting the - # includeGridData URL parameter - # to true. If a field mask is set, the `includeGridData` parameter is - # ignored. + # You can include grid data one of two ways: + # * Specify a field mask listing your desired fields using the `fields` URL + # parameter in HTTP + # * Set the includeGridData + # URL parameter to true. If a field mask is set, the `includeGridData` + # parameter is ignored # For large spreadsheets, it is recommended to retrieve only the specific # fields of the spreadsheet that you want. # To retrieve only subsets of the spreadsheet, use the @@ -135,14 +134,14 @@ module Google # fail and nothing will be applied. # Some requests have replies to # give you some information about how - # they applied. The replies will mirror the requests. For example, + # they are applied. The replies will mirror the requests. For example, # if you applied 4 updates and the 3rd one had a reply, then the # response will have 2 empty replies, the actual reply, and another empty # reply, in that order. # Due to the collaborative nature of spreadsheets, it is not guaranteed that # the spreadsheet will reflect exactly your changes after this completes, - # however it is guaranteed that all the updates in the request will be - # applied atomically. Your changes may be altered with respect to + # however it is guaranteed that the updates in the request will be + # applied together atomically. Your changes may be altered with respect to # collaborator changes. If there are no collaborators, the spreadsheet # should reflect your changes. # @param [String] spreadsheet_id @@ -181,7 +180,7 @@ module Google # The caller must specify the spreadsheet ID, range, and # a valueInputOption. # @param [String] spreadsheet_id - # The id of the spreadsheet to update. + # The ID of the spreadsheet to update. # @param [String] range # The A1 notation of the values to update. # @param [Google::Apis::SheetsV4::ValueRange] value_range_object @@ -221,14 +220,14 @@ module Google # Returns a range of values from a spreadsheet. # The caller must specify the spreadsheet ID and a range. # @param [String] spreadsheet_id - # The id of the spreadsheet to retrieve data from. + # The ID of the spreadsheet to retrieve data from. # @param [String] range # The A1 notation of the values to retrieve. # @param [String] value_render_option # How values should be represented in the output. # @param [String] date_time_render_option # How dates, times, and durations should be represented in the output. - # This is ignored if the ValueRenderOption option is + # This is ignored if value_render_option is # FORMATTED_VALUE. # @param [String] major_dimension # The major dimension that results should use. @@ -271,14 +270,14 @@ module Google # Returns one or more ranges of values from a spreadsheet. # The caller must specify the spreadsheet ID and one or more ranges. # @param [String] spreadsheet_id - # The id of the spreadsheet to retrieve data from. + # The ID of the spreadsheet to retrieve data from. # @param [Array, String] ranges # The A1 notation of the values to retrieve. # @param [String] value_render_option # How values should be represented in the output. # @param [String] date_time_render_option # How dates, times, and durations should be represented in the output. - # This is ignored if ValueRenderOption option is + # This is ignored if value_render_option is # FORMATTED_VALUE. # @param [String] major_dimension # The major dimension that results should use. @@ -318,12 +317,12 @@ module Google execute_or_queue_command(command, &block) end - # Sets values in a range of a spreadsheet. + # Sets values in one or more ranges of a spreadsheet. # The caller must specify the spreadsheet ID, # a valueInputOption, and one or more # ValueRanges. # @param [String] spreadsheet_id - # The id of the spreadsheet to update. + # The ID of the spreadsheet to update. # @param [Google::Apis::SheetsV4::BatchUpdateValuesRequest] batch_update_values_request_object # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any @@ -357,7 +356,7 @@ module Google # Copies a single sheet from a spreadsheet to another spreadsheet. # Returns the properties of the newly created sheet. # @param [String] spreadsheet_id - # The id of the spreadsheet containing the sheet to copy. + # The ID of the spreadsheet containing the sheet to copy. # @param [Fixnum] sheet_id # The ID of the sheet to copy. # @param [Google::Apis::SheetsV4::CopySheetToAnotherSpreadsheetRequest] copy_sheet_to_another_spreadsheet_request_object diff --git a/generated/google/apis/storage_v1.rb b/generated/google/apis/storage_v1.rb index 448767faf..9cceacfe0 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 = '20160427' + REVISION = '20160504' # 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 b4f647927..a55880f03 100644 --- a/generated/google/apis/storage_v1/classes.rb +++ b/generated/google/apis/storage_v1/classes.rb @@ -781,7 +781,8 @@ module Google # @return [String] attr_accessor :content_language - # Content-Type of the object data. + # Content-Type of the object data. If contentType is not specified, object + # downloads will be served as application/octet-stream. # Corresponds to the JSON property `contentType` # @return [String] attr_accessor :content_type diff --git a/generated/google/apis/vision_v1.rb b/generated/google/apis/vision_v1.rb index 8774e07cb..42fb14228 100644 --- a/generated/google/apis/vision_v1.rb +++ b/generated/google/apis/vision_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/vision/ module VisionV1 VERSION = 'V1' - REVISION = '20160420' + REVISION = '20160519' # 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/vision_v1/classes.rb b/generated/google/apis/vision_v1/classes.rb index a1d548568..57d635d46 100644 --- a/generated/google/apis/vision_v1/classes.rb +++ b/generated/google/apis/vision_v1/classes.rb @@ -195,7 +195,7 @@ module Google # return r # def NormalizeLatLng(latitude, longitude): # """Wraps decimal degrees latitude and longitude to - # [-180.0, 180.0] and [-90.0, 90.0], respectively.""" + # [-90.0, 90.0] and [-180.0, 180.0], respectively.""" # r = latitude % 360.0 # if r <= 90.0: # return r, NormalizeLongitude(longitude) @@ -234,7 +234,7 @@ module Google # return r # def NormalizeLatLng(latitude, longitude): # """Wraps decimal degrees latitude and longitude to - # [-180.0, 180.0] and [-90.0, 90.0], respectively.""" + # [-90.0, 90.0] and [-180.0, 180.0], respectively.""" # r = latitude % 360.0 # if r <= 90.0: # return r, NormalizeLongitude(longitude) @@ -393,11 +393,6 @@ module Google # @return [String] attr_accessor :headwear_likelihood - # A bounding polygon for the detected image annotation. - # Corresponds to the JSON property `boundingPoly` - # @return [Google::Apis::VisionV1::BoundingPoly] - attr_accessor :bounding_poly - # Yaw angle. Indicates the leftward/rightward angle that the face is # pointing, relative to the vertical plane perpendicular to the image. Range # [-180,180]. @@ -405,6 +400,11 @@ module Google # @return [Float] attr_accessor :pan_angle + # A bounding polygon for the detected image annotation. + # Corresponds to the JSON property `boundingPoly` + # @return [Google::Apis::VisionV1::BoundingPoly] + attr_accessor :bounding_poly + # Detected face landmarks. # Corresponds to the JSON property `landmarks` # @return [Array] @@ -443,8 +443,8 @@ module Google @surprise_likelihood = args[:surprise_likelihood] if args.key?(:surprise_likelihood) @anger_likelihood = args[:anger_likelihood] if args.key?(:anger_likelihood) @headwear_likelihood = args[:headwear_likelihood] if args.key?(:headwear_likelihood) - @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly) @pan_angle = args[:pan_angle] if args.key?(:pan_angle) + @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly) @landmarks = args[:landmarks] if args.key?(:landmarks) @blurred_likelihood = args[:blurred_likelihood] if args.key?(:blurred_likelihood) @roll_angle = args[:roll_angle] if args.key?(:roll_angle) @@ -662,6 +662,11 @@ module Google class ImageContext include Google::Apis::Core::Hashable + # Rectangle determined by min and max LatLng pairs. + # Corresponds to the JSON property `latLongRect` + # @return [Google::Apis::VisionV1::LatLongRect] + attr_accessor :lat_long_rect + # List of languages to use for TEXT_DETECTION. In most cases, an empty value # will yield the best results as it will allow text detection to # automatically detect the text language. For languages based on the latin @@ -676,19 +681,14 @@ module Google # @return [Array] attr_accessor :language_hints - # Rectangle determined by min and max LatLng pairs. - # Corresponds to the JSON property `latLongRect` - # @return [Google::Apis::VisionV1::LatLongRect] - attr_accessor :lat_long_rect - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @language_hints = args[:language_hints] if args.key?(:language_hints) @lat_long_rect = args[:lat_long_rect] if args.key?(:lat_long_rect) + @language_hints = args[:language_hints] if args.key?(:language_hints) end end @@ -978,7 +978,7 @@ module Google # return r # def NormalizeLatLng(latitude, longitude): # """Wraps decimal degrees latitude and longitude to - # [-180.0, 180.0] and [-90.0, 90.0], respectively.""" + # [-90.0, 90.0] and [-180.0, 180.0], respectively.""" # r = latitude % 360.0 # if r <= 90.0: # return r, NormalizeLongitude(longitude) @@ -1024,11 +1024,6 @@ module Google # @return [String] attr_accessor :medical - # Violence likelihood. - # Corresponds to the JSON property `violence` - # @return [String] - attr_accessor :violence - # Spoof likelihood. The likelihood that an obvious modification # was made to the image's canonical version to make it appear # funny or offensive. @@ -1036,6 +1031,11 @@ module Google # @return [String] attr_accessor :spoof + # Violence likelihood. + # Corresponds to the JSON property `violence` + # @return [String] + attr_accessor :violence + # Represents the adult contents likelihood for the image. # Corresponds to the JSON property `adult` # @return [String] @@ -1048,8 +1048,8 @@ module Google # Update properties of this object def update!(**args) @medical = args[:medical] if args.key?(:medical) - @violence = args[:violence] if args.key?(:violence) @spoof = args[:spoof] if args.key?(:spoof) + @violence = args[:violence] if args.key?(:violence) @adult = args[:adult] if args.key?(:adult) end end @@ -1105,24 +1105,24 @@ module Google class Feature include Google::Apis::Core::Hashable - # Maximum number of results of this type. - # Corresponds to the JSON property `maxResults` - # @return [Fixnum] - attr_accessor :max_results - # The feature type. # Corresponds to the JSON property `type` # @return [String] attr_accessor :type + # Maximum number of results of this type. + # Corresponds to the JSON property `maxResults` + # @return [Fixnum] + attr_accessor :max_results + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @max_results = args[:max_results] if args.key?(:max_results) @type = args[:type] if args.key?(:type) + @max_results = args[:max_results] if args.key?(:max_results) end end @@ -1164,39 +1164,6 @@ module Google end end - # A 3D position in the image, used primarily for Face detection landmarks. - # A valid Position must have both x and y coordinates. - # The position coordinates are in the same scale as the original image. - class Position - include Google::Apis::Core::Hashable - - # Y coordinate. - # Corresponds to the JSON property `y` - # @return [Float] - attr_accessor :y - - # Z coordinate (or depth). - # Corresponds to the JSON property `z` - # @return [Float] - attr_accessor :z - - # X coordinate. - # Corresponds to the JSON property `x` - # @return [Float] - attr_accessor :x - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @y = args[:y] if args.key?(:y) - @z = args[:z] if args.key?(:z) - @x = args[:x] if args.key?(:x) - 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 @@ -1211,7 +1178,7 @@ module Google # return r # def NormalizeLatLng(latitude, longitude): # """Wraps decimal degrees latitude and longitude to - # [-180.0, 180.0] and [-90.0, 90.0], respectively.""" + # [-90.0, 90.0] and [-180.0, 180.0], respectively.""" # r = latitude % 360.0 # if r <= 90.0: # return r, NormalizeLongitude(longitude) @@ -1235,24 +1202,57 @@ module Google class LatLng include Google::Apis::Core::Hashable - # 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 - # 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) - @longitude = args[:longitude] if args.key?(:longitude) @latitude = args[:latitude] if args.key?(:latitude) + @longitude = args[:longitude] if args.key?(:longitude) + end + end + + # A 3D position in the image, used primarily for Face detection landmarks. + # A valid Position must have both x and y coordinates. + # The position coordinates are in the same scale as the original image. + class Position + include Google::Apis::Core::Hashable + + # Y coordinate. + # Corresponds to the JSON property `y` + # @return [Float] + attr_accessor :y + + # X coordinate. + # Corresponds to the JSON property `x` + # @return [Float] + attr_accessor :x + + # Z coordinate (or depth). + # Corresponds to the JSON property `z` + # @return [Float] + attr_accessor :z + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @y = args[:y] if args.key?(:y) + @x = args[:x] if args.key?(:x) + @z = args[:z] if args.key?(:z) end end end diff --git a/generated/google/apis/vision_v1/representations.rb b/generated/google/apis/vision_v1/representations.rb index 5a763bfc8..eb10df3d0 100644 --- a/generated/google/apis/vision_v1/representations.rb +++ b/generated/google/apis/vision_v1/representations.rb @@ -154,13 +154,13 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class Position + class LatLng class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class LatLng + class Position class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -239,9 +239,9 @@ module Google property :surprise_likelihood, as: 'surpriseLikelihood' property :anger_likelihood, as: 'angerLikelihood' property :headwear_likelihood, as: 'headwearLikelihood' + property :pan_angle, as: 'panAngle' property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1::BoundingPoly, decorator: Google::Apis::VisionV1::BoundingPoly::Representation - property :pan_angle, as: 'panAngle' collection :landmarks, as: 'landmarks', class: Google::Apis::VisionV1::Landmark, decorator: Google::Apis::VisionV1::Landmark::Representation property :blurred_likelihood, as: 'blurredLikelihood' @@ -288,9 +288,9 @@ module Google class ImageContext # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :language_hints, as: 'languageHints' property :lat_long_rect, as: 'latLongRect', class: Google::Apis::VisionV1::LatLongRect, decorator: Google::Apis::VisionV1::LatLongRect::Representation + collection :language_hints, as: 'languageHints' end end @@ -350,8 +350,8 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :medical, as: 'medical' - property :violence, as: 'violence' property :spoof, as: 'spoof' + property :violence, as: 'violence' property :adult, as: 'adult' end end @@ -376,8 +376,8 @@ module Google class Feature # @private class Representation < Google::Apis::Core::JsonRepresentation - property :max_results, as: 'maxResults' property :type, as: 'type' + property :max_results, as: 'maxResults' end end @@ -397,20 +397,20 @@ module Google end end + class LatLng + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :latitude, as: 'latitude' + property :longitude, as: 'longitude' + end + end + class Position # @private class Representation < Google::Apis::Core::JsonRepresentation property :y, as: 'y' - property :z, as: 'z' property :x, as: 'x' - end - end - - class LatLng - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :longitude, as: 'longitude' - property :latitude, as: 'latitude' + property :z, as: 'z' end end end diff --git a/generated/google/apis/youtubereporting_v1.rb b/generated/google/apis/youtubereporting_v1.rb index 87144d626..0ef82a27d 100644 --- a/generated/google/apis/youtubereporting_v1.rb +++ b/generated/google/apis/youtubereporting_v1.rb @@ -20,13 +20,13 @@ module Google module Apis # YouTube Reporting API # - # Schedules reporting jobs and downloads the resulting bulk data reports about - # YouTube channels, videos, etc. in the form of CSV files. + # Schedules reporting jobs containing your YouTube Analytics data and downloads + # the resulting bulk data reports in the form of CSV files. # # @see https://developers.google.com/youtube/reporting/v1/reports/ module YoutubereportingV1 VERSION = 'V1' - REVISION = '20160419' + REVISION = '20160517' # View monetary and non-monetary YouTube Analytics reports for your YouTube content AUTH_YT_ANALYTICS_MONETARY_READONLY = 'https://www.googleapis.com/auth/yt-analytics-monetary.readonly' diff --git a/generated/google/apis/youtubereporting_v1/classes.rb b/generated/google/apis/youtubereporting_v1/classes.rb index 0d8eb25a3..bd76637e3 100644 --- a/generated/google/apis/youtubereporting_v1/classes.rb +++ b/generated/google/apis/youtubereporting_v1/classes.rb @@ -82,6 +82,11 @@ module Google # @return [String] attr_accessor :name + # The date/time when this report type was/will be deprecated. + # Corresponds to the JSON property `deprecateTime` + # @return [String] + attr_accessor :deprecate_time + # True if this a system-managed report type; otherwise false. Reporting jobs for # system-managed report types are created automatically and can thus not be used # in the `CreateJob` method. @@ -98,6 +103,7 @@ module Google def update!(**args) @id = args[:id] if args.key?(:id) @name = args[:name] if args.key?(:name) + @deprecate_time = args[:deprecate_time] if args.key?(:deprecate_time) @system_managed = args[:system_managed] if args.key?(:system_managed) end end @@ -126,6 +132,12 @@ module Google # @return [String] attr_accessor :create_time + # The date/time when this job will expire/expired. After a job expired, no new + # reports are generated. + # Corresponds to the JSON property `expireTime` + # @return [String] + attr_accessor :expire_time + # True if this a system-managed job that cannot be modified by the user; # otherwise false. # Corresponds to the JSON property `systemManaged` @@ -143,6 +155,7 @@ module Google @report_type_id = args[:report_type_id] if args.key?(:report_type_id) @name = args[:name] if args.key?(:name) @create_time = args[:create_time] if args.key?(:create_time) + @expire_time = args[:expire_time] if args.key?(:expire_time) @system_managed = args[:system_managed] if args.key?(:system_managed) end end @@ -233,6 +246,11 @@ module Google # @return [String] attr_accessor :job_id + # The date/time when the job this report belongs to will expire/expired. + # Corresponds to the JSON property `jobExpireTime` + # @return [String] + attr_accessor :job_expire_time + # The start of the time period that the report instance covers. The value is # inclusive. # Corresponds to the JSON property `startTime` @@ -263,6 +281,7 @@ module Google def update!(**args) @id = args[:id] if args.key?(:id) @job_id = args[:job_id] if args.key?(:job_id) + @job_expire_time = args[:job_expire_time] if args.key?(:job_expire_time) @start_time = args[:start_time] if args.key?(:start_time) @end_time = args[:end_time] if args.key?(:end_time) @create_time = args[:create_time] if args.key?(:create_time) diff --git a/generated/google/apis/youtubereporting_v1/representations.rb b/generated/google/apis/youtubereporting_v1/representations.rb index 5c56b50dd..132cad56a 100644 --- a/generated/google/apis/youtubereporting_v1/representations.rb +++ b/generated/google/apis/youtubereporting_v1/representations.rb @@ -91,6 +91,7 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :id, as: 'id' property :name, as: 'name' + property :deprecate_time, as: 'deprecateTime' property :system_managed, as: 'systemManaged' end end @@ -102,6 +103,7 @@ module Google property :report_type_id, as: 'reportTypeId' property :name, as: 'name' property :create_time, as: 'createTime' + property :expire_time, as: 'expireTime' property :system_managed, as: 'systemManaged' end end @@ -135,6 +137,7 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :id, as: 'id' property :job_id, as: 'jobId' + property :job_expire_time, as: 'jobExpireTime' property :start_time, as: 'startTime' property :end_time, as: 'endTime' property :create_time, as: 'createTime' diff --git a/generated/google/apis/youtubereporting_v1/service.rb b/generated/google/apis/youtubereporting_v1/service.rb index 410adb244..f5bbc7b13 100644 --- a/generated/google/apis/youtubereporting_v1/service.rb +++ b/generated/google/apis/youtubereporting_v1/service.rb @@ -22,8 +22,8 @@ module Google module YoutubereportingV1 # YouTube Reporting API # - # Schedules reporting jobs and downloads the resulting bulk data reports about - # YouTube channels, videos, etc. in the form of CSV files. + # Schedules reporting jobs containing your YouTube Analytics data and downloads + # the resulting bulk data reports in the form of CSV files. # # @example # require 'google/apis/youtubereporting_v1' @@ -50,8 +50,7 @@ module Google # Method for media download. Download is supported on the URI `/v1/media/`+name`? # alt=media`. # @param [String] resource_name - # Name of the media that is being downloaded. See ByteStream.ReadRequest. - # resource_name. + # Name of the media that is being downloaded. See ReadRequest.resource_name. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/script/generate b/script/generate index 73a785be9..151bd339a 100755 --- a/script/generate +++ b/script/generate @@ -102,6 +102,7 @@ API_IDS=(adexchangebuyer:v1.4 \ URLS=(https://content.googleapis.com/discovery/v1/apis/youtubePartner/v1/rest \ https://content.googleapis.com/discovery/v1/apis/compute/beta/rest \ + https://developers.google.com/my-business/samples/mybusiness_google_rest_v3.json \ ) echo 'a' | bundle exec bin/generate-api gen generated --from-discovery=true --names_out=$DIR/api_names_out.yaml --url=${URLS[*]} --id=${API_IDS[*]}