google-api-ruby-client/generated/google/apis/mybusiness_v3/representations.rb

742 lines
26 KiB
Ruby

# 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