Skip to content

Commit

Permalink
Regen APIs, add mybusiness_v3
Browse files Browse the repository at this point in the history
  • Loading branch information
sqrrrl committed May 25, 2016
1 parent 253bc51 commit 557057c
Show file tree
Hide file tree
Showing 67 changed files with 7,407 additions and 526 deletions.
11 changes: 11 additions & 0 deletions api_names.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
606 changes: 570 additions & 36 deletions api_names_out.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion generated/google/apis/adsense_v1_4.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module Apis
# @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'
Expand Down
2 changes: 1 addition & 1 deletion generated/google/apis/adsensehost_v4_1.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module Apis
# @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'
Expand Down
2 changes: 1 addition & 1 deletion generated/google/apis/androidenterprise_v1.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module Apis
# @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'
Expand Down
2 changes: 1 addition & 1 deletion generated/google/apis/androidpublisher_v2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module Apis
# @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'
Expand Down
268 changes: 268 additions & 0 deletions generated/google/apis/androidpublisher_v2/classes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,56 @@ def update!(**args)
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
Expand Down Expand Up @@ -1159,6 +1209,132 @@ def update!(**args)
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<Google::Apis::AndroidpublisherV2::Comment>]
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<Google::Apis::AndroidpublisherV2::Review>]
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
Expand Down Expand Up @@ -1372,6 +1548,31 @@ def update!(**args)
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
Expand Down Expand Up @@ -1453,6 +1654,73 @@ def update!(**args)
@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
Loading

0 comments on commit 557057c

Please sign in to comment.