regen APIs

This commit is contained in:
Steve Bazyl 2016-08-17 10:19:48 -07:00
parent 26173baf69
commit 353d02b52e
33 changed files with 1303 additions and 142 deletions

View File

@ -2402,6 +2402,9 @@
"/compute:beta/compute.networks.list/orderBy": order_by
"/compute:beta/compute.networks.list/pageToken": page_token
"/compute:beta/compute.networks.list/project": project
"/compute:beta/compute.networks.switchToCustomMode": switch_network_to_custom_mode
"/compute:beta/compute.networks.switchToCustomMode/network": network
"/compute:beta/compute.networks.switchToCustomMode/project": project
"/compute:beta/compute.networks.testIamPermissions": test_network_iam_permissions
"/compute:beta/compute.networks.testIamPermissions/project": project
"/compute:beta/compute.networks.testIamPermissions/resource": resource
@ -2650,6 +2653,10 @@
"/compute:beta/compute.subnetworks.delete/project": project
"/compute:beta/compute.subnetworks.delete/region": region
"/compute:beta/compute.subnetworks.delete/subnetwork": subnetwork
"/compute:beta/compute.subnetworks.expandIpCidrRange": expand_subnetwork_ip_cidr_range
"/compute:beta/compute.subnetworks.expandIpCidrRange/project": project
"/compute:beta/compute.subnetworks.expandIpCidrRange/region": region
"/compute:beta/compute.subnetworks.expandIpCidrRange/subnetwork": subnetwork
"/compute:beta/compute.subnetworks.get": get_subnetwork
"/compute:beta/compute.subnetworks.get/project": project
"/compute:beta/compute.subnetworks.get/region": region
@ -2983,6 +2990,9 @@
"/compute:beta/Autoscaler/name": name
"/compute:beta/Autoscaler/region": region
"/compute:beta/Autoscaler/selfLink": self_link
"/compute:beta/Autoscaler/status": status
"/compute:beta/Autoscaler/statusDetails": status_details
"/compute:beta/Autoscaler/statusDetails/status_detail": status_detail
"/compute:beta/Autoscaler/target": target
"/compute:beta/Autoscaler/zone": zone
"/compute:beta/AutoscalerAggregatedList": autoscaler_aggregated_list
@ -2999,6 +3009,9 @@
"/compute:beta/AutoscalerList/kind": kind
"/compute:beta/AutoscalerList/nextPageToken": next_page_token
"/compute:beta/AutoscalerList/selfLink": self_link
"/compute:beta/AutoscalerStatusDetails": autoscaler_status_details
"/compute:beta/AutoscalerStatusDetails/message": message
"/compute:beta/AutoscalerStatusDetails/type": type
"/compute:beta/AutoscalersScopedList": autoscalers_scoped_list
"/compute:beta/AutoscalersScopedList/autoscalers": autoscalers
"/compute:beta/AutoscalersScopedList/autoscalers/autoscaler": autoscaler
@ -4061,6 +4074,8 @@
"/compute:beta/SubnetworkList/kind": kind
"/compute:beta/SubnetworkList/nextPageToken": next_page_token
"/compute:beta/SubnetworkList/selfLink": self_link
"/compute:beta/SubnetworksExpandIpCidrRangeRequest": subnetworks_expand_ip_cidr_range_request
"/compute:beta/SubnetworksExpandIpCidrRangeRequest/ipCidrRange": ip_cidr_range
"/compute:beta/SubnetworksScopedList": subnetworks_scoped_list
"/compute:beta/SubnetworksScopedList/subnetworks": subnetworks
"/compute:beta/SubnetworksScopedList/subnetworks/subnetwork": subnetwork
@ -11444,6 +11459,19 @@
"/cloudbuild:v1/key": key
"/cloudbuild:v1/quotaUser": quota_user
"/cloudbuild:v1/fields": fields
"/cloudbuild:v1/cloudbuild.projects.triggers.create": create_project_trigger
"/cloudbuild:v1/cloudbuild.projects.triggers.create/projectId": project_id
"/cloudbuild:v1/cloudbuild.projects.triggers.get": get_project_trigger
"/cloudbuild:v1/cloudbuild.projects.triggers.get/projectId": project_id
"/cloudbuild:v1/cloudbuild.projects.triggers.get/triggerId": trigger_id
"/cloudbuild:v1/cloudbuild.projects.triggers.list": list_project_triggers
"/cloudbuild:v1/cloudbuild.projects.triggers.list/projectId": project_id
"/cloudbuild:v1/cloudbuild.projects.triggers.delete": delete_project_trigger
"/cloudbuild:v1/cloudbuild.projects.triggers.delete/projectId": project_id
"/cloudbuild:v1/cloudbuild.projects.triggers.delete/triggerId": trigger_id
"/cloudbuild:v1/cloudbuild.projects.triggers.patch": patch_project_trigger
"/cloudbuild:v1/cloudbuild.projects.triggers.patch/projectId": project_id
"/cloudbuild:v1/cloudbuild.projects.triggers.patch/triggerId": trigger_id
"/cloudbuild:v1/cloudbuild.projects.builds.create": create_project_build
"/cloudbuild:v1/cloudbuild.projects.builds.create/projectId": project_id
"/cloudbuild:v1/cloudbuild.projects.builds.get": get_project_build
@ -11487,6 +11515,11 @@
"/cloudbuild:v1/Operation/response": response
"/cloudbuild:v1/Operation/response/response": response
"/cloudbuild:v1/Operation/name": name
"/cloudbuild:v1/BuildTrigger": build_trigger
"/cloudbuild:v1/BuildTrigger/triggerTemplate": trigger_template
"/cloudbuild:v1/BuildTrigger/build": build
"/cloudbuild:v1/BuildTrigger/createTime": create_time
"/cloudbuild:v1/BuildTrigger/id": id
"/cloudbuild:v1/BuiltImage": built_image
"/cloudbuild:v1/BuiltImage/digest": digest
"/cloudbuild:v1/BuiltImage/name": name
@ -11521,6 +11554,9 @@
"/cloudbuild:v1/Build/startTime": start_time
"/cloudbuild:v1/Build/logsBucket": logs_bucket
"/cloudbuild:v1/Build/projectId": project_id
"/cloudbuild:v1/ListBuildTriggersResponse": list_build_triggers_response
"/cloudbuild:v1/ListBuildTriggersResponse/triggers": triggers
"/cloudbuild:v1/ListBuildTriggersResponse/triggers/trigger": trigger
"/cloudbuild:v1/CancelBuildRequest": cancel_build_request
"/cloudbuild:v1/FileHashes": file_hashes
"/cloudbuild:v1/FileHashes/fileHash": file_hash
@ -11545,6 +11581,7 @@
"/cloudbuild:v1/BuildStep/args/arg": arg
"/cloudbuild:v1/BuildStep/name": name
"/cloudbuild:v1/BuildStep/dir": dir
"/cloudbuild:v1/Empty": empty
"/cloudbuild:v1/BuildOptions": build_options
"/cloudbuild:v1/BuildOptions/sourceProvenanceHash": source_provenance_hash
"/cloudbuild:v1/BuildOptions/sourceProvenanceHash/source_provenance_hash": source_provenance_hash
@ -13102,6 +13139,7 @@
"/compute:v1/InstanceGroupManagerActionsSummary": instance_group_manager_actions_summary
"/compute:v1/InstanceGroupManagerActionsSummary/abandoning": abandoning
"/compute:v1/InstanceGroupManagerActionsSummary/creating": creating
"/compute:v1/InstanceGroupManagerActionsSummary/creatingWithoutRetries": creating_without_retries
"/compute:v1/InstanceGroupManagerActionsSummary/deleting": deleting
"/compute:v1/InstanceGroupManagerActionsSummary/none": none
"/compute:v1/InstanceGroupManagerActionsSummary/recreating": recreating
@ -21760,6 +21798,34 @@
"/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.userProfiles.get": get_user_profile
"/classroom:v1/classroom.userProfiles.get/userId": user_id
"/classroom:v1/classroom.userProfiles.guardianInvitations.list": list_user_profile_guardian_invitations
"/classroom:v1/classroom.userProfiles.guardianInvitations.list/studentId": student_id
"/classroom:v1/classroom.userProfiles.guardianInvitations.list/invitedEmailAddress": invited_email_address
"/classroom:v1/classroom.userProfiles.guardianInvitations.list/states": states
"/classroom:v1/classroom.userProfiles.guardianInvitations.list/pageToken": page_token
"/classroom:v1/classroom.userProfiles.guardianInvitations.list/pageSize": page_size
"/classroom:v1/classroom.userProfiles.guardianInvitations.get": get_user_profile_guardian_invitation
"/classroom:v1/classroom.userProfiles.guardianInvitations.get/studentId": student_id
"/classroom:v1/classroom.userProfiles.guardianInvitations.get/invitationId": invitation_id
"/classroom:v1/classroom.userProfiles.guardianInvitations.create": create_user_profile_guardian_invitation
"/classroom:v1/classroom.userProfiles.guardianInvitations.create/studentId": student_id
"/classroom:v1/classroom.userProfiles.guardianInvitations.patch": patch_user_profile_guardian_invitation
"/classroom:v1/classroom.userProfiles.guardianInvitations.patch/studentId": student_id
"/classroom:v1/classroom.userProfiles.guardianInvitations.patch/invitationId": invitation_id
"/classroom:v1/classroom.userProfiles.guardianInvitations.patch/updateMask": update_mask
"/classroom:v1/classroom.userProfiles.guardians.list": list_user_profile_guardians
"/classroom:v1/classroom.userProfiles.guardians.list/studentId": student_id
"/classroom:v1/classroom.userProfiles.guardians.list/invitedEmailAddress": invited_email_address
"/classroom:v1/classroom.userProfiles.guardians.list/pageToken": page_token
"/classroom:v1/classroom.userProfiles.guardians.list/pageSize": page_size
"/classroom:v1/classroom.userProfiles.guardians.get": get_user_profile_guardian
"/classroom:v1/classroom.userProfiles.guardians.get/studentId": student_id
"/classroom:v1/classroom.userProfiles.guardians.get/guardianId": guardian_id
"/classroom:v1/classroom.userProfiles.guardians.delete": delete_user_profile_guardian
"/classroom:v1/classroom.userProfiles.guardians.delete/studentId": student_id
"/classroom:v1/classroom.userProfiles.guardians.delete/guardianId": guardian_id
"/classroom:v1/classroom.invitations.create": create_invitation
"/classroom:v1/classroom.invitations.get": get_invitation
"/classroom:v1/classroom.invitations.get/id": id
@ -21772,8 +21838,6 @@
"/classroom:v1/classroom.invitations.list/pageToken": page_token
"/classroom:v1/classroom.invitations.accept": accept_invitation
"/classroom:v1/classroom.invitations.accept/id": id
"/classroom:v1/classroom.userProfiles.get": get_user_profile
"/classroom:v1/classroom.userProfiles.get/userId": user_id
"/classroom:v1/Course": course
"/classroom:v1/Course/id": id
"/classroom:v1/Course/name": name
@ -21835,15 +21899,25 @@
"/classroom:v1/ListCourseAliasesResponse/aliases": aliases
"/classroom:v1/ListCourseAliasesResponse/aliases/alias": alias
"/classroom:v1/ListCourseAliasesResponse/nextPageToken": next_page_token
"/classroom:v1/Invitation": invitation
"/classroom:v1/Invitation/id": id
"/classroom:v1/Invitation/userId": user_id
"/classroom:v1/Invitation/courseId": course_id
"/classroom:v1/Invitation/role": role
"/classroom:v1/ListInvitationsResponse": list_invitations_response
"/classroom:v1/ListInvitationsResponse/invitations": invitations
"/classroom:v1/ListInvitationsResponse/invitations/invitation": invitation
"/classroom:v1/ListInvitationsResponse/nextPageToken": next_page_token
"/classroom:v1/ListGuardianInvitationsResponse": list_guardian_invitations_response
"/classroom:v1/ListGuardianInvitationsResponse/guardianInvitations": guardian_invitations
"/classroom:v1/ListGuardianInvitationsResponse/guardianInvitations/guardian_invitation": guardian_invitation
"/classroom:v1/ListGuardianInvitationsResponse/nextPageToken": next_page_token
"/classroom:v1/GuardianInvitation": guardian_invitation
"/classroom:v1/GuardianInvitation/studentId": student_id
"/classroom:v1/GuardianInvitation/invitationId": invitation_id
"/classroom:v1/GuardianInvitation/invitedEmailAddress": invited_email_address
"/classroom:v1/GuardianInvitation/state": state
"/classroom:v1/GuardianInvitation/creationTime": creation_time
"/classroom:v1/ListGuardiansResponse": list_guardians_response
"/classroom:v1/ListGuardiansResponse/guardians": guardians
"/classroom:v1/ListGuardiansResponse/guardians/guardian": guardian
"/classroom:v1/ListGuardiansResponse/nextPageToken": next_page_token
"/classroom:v1/Guardian": guardian
"/classroom:v1/Guardian/studentId": student_id
"/classroom:v1/Guardian/guardianId": guardian_id
"/classroom:v1/Guardian/guardianProfile": guardian_profile
"/classroom:v1/Guardian/invitedEmailAddress": invited_email_address
"/classroom:v1/UserProfile": user_profile
"/classroom:v1/UserProfile/id": id
"/classroom:v1/UserProfile/name": name
@ -21874,6 +21948,15 @@
"/classroom:v1/ListStudentsResponse/students": students
"/classroom:v1/ListStudentsResponse/students/student": student
"/classroom:v1/ListStudentsResponse/nextPageToken": next_page_token
"/classroom:v1/Invitation": invitation
"/classroom:v1/Invitation/id": id
"/classroom:v1/Invitation/userId": user_id
"/classroom:v1/Invitation/courseId": course_id
"/classroom:v1/Invitation/role": role
"/classroom:v1/ListInvitationsResponse": list_invitations_response
"/classroom:v1/ListInvitationsResponse/invitations": invitations
"/classroom:v1/ListInvitationsResponse/invitations/invitation": invitation
"/classroom:v1/ListInvitationsResponse/nextPageToken": next_page_token
"/classroom:v1/CourseWork": course_work
"/classroom:v1/CourseWork/courseId": course_id
"/classroom:v1/CourseWork/id": id
@ -24618,6 +24701,7 @@
"/identitytoolkit:v3/GetRecaptchaParamResponse/recaptchaSiteKey": recaptcha_site_key
"/identitytoolkit:v3/GetRecaptchaParamResponse/recaptchaStoken": recaptcha_stoken
"/identitytoolkit:v3/IdentitytoolkitRelyingpartyCreateAuthUriRequest/appId": app_id
"/identitytoolkit:v3/IdentitytoolkitRelyingpartyCreateAuthUriRequest/authFlowType": auth_flow_type
"/identitytoolkit:v3/IdentitytoolkitRelyingpartyCreateAuthUriRequest/clientId": client_id
"/identitytoolkit:v3/IdentitytoolkitRelyingpartyCreateAuthUriRequest/context": context
"/identitytoolkit:v3/IdentitytoolkitRelyingpartyCreateAuthUriRequest/continueUri": continue_uri
@ -24628,6 +24712,7 @@
"/identitytoolkit:v3/IdentitytoolkitRelyingpartyCreateAuthUriRequest/openidRealm": openid_realm
"/identitytoolkit:v3/IdentitytoolkitRelyingpartyCreateAuthUriRequest/otaApp": ota_app
"/identitytoolkit:v3/IdentitytoolkitRelyingpartyCreateAuthUriRequest/providerId": provider_id
"/identitytoolkit:v3/IdentitytoolkitRelyingpartyCreateAuthUriRequest/sessionId": session_id
"/identitytoolkit:v3/IdentitytoolkitRelyingpartyDeleteAccountRequest/delegatedProjectNumber": delegated_project_number
"/identitytoolkit:v3/IdentitytoolkitRelyingpartyDeleteAccountRequest/idToken": id_token
"/identitytoolkit:v3/IdentitytoolkitRelyingpartyDeleteAccountRequest/localId": local_id
@ -24806,7 +24891,9 @@
"/identitytoolkit:v3/UserInfo/providerUserInfo/provider_user_info/photoUrl": photo_url
"/identitytoolkit:v3/UserInfo/providerUserInfo/provider_user_info/providerId": provider_id
"/identitytoolkit:v3/UserInfo/providerUserInfo/provider_user_info/rawId": raw_id
"/identitytoolkit:v3/UserInfo/providerUserInfo/provider_user_info/screenName": screen_name
"/identitytoolkit:v3/UserInfo/salt": salt
"/identitytoolkit:v3/UserInfo/screenName": screen_name
"/identitytoolkit:v3/UserInfo/validSince": valid_since
"/identitytoolkit:v3/UserInfo/version": version
"/identitytoolkit:v3/VerifyAssertionResponse": verify_assertion_response

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/adsense/management/
module AdsenseV1_4
VERSION = 'V1_4'
REVISION = '20160809'
REVISION = '20160815'
# View and manage your AdSense data
AUTH_ADSENSE = 'https://www.googleapis.com/auth/adsense'

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/adsense/host/
module AdsensehostV4_1
VERSION = 'V4_1'
REVISION = '20160809'
REVISION = '20160815'
# View and manage your AdSense host data and associated accounts
AUTH_ADSENSEHOST = 'https://www.googleapis.com/auth/adsensehost'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/android-publisher
module AndroidpublisherV2
VERSION = 'V2'
REVISION = '20160809'
REVISION = '20160816'
# View and manage your Google Play Developer account
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/google-apps/activity/
module AppsactivityV1
VERSION = 'V1'
REVISION = '20160129'
REVISION = '20160805'
# View the activity history of your Google Apps
AUTH_ACTIVITY = 'https://www.googleapis.com/auth/activity'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/games/services/web/api/states
module AppstateV1
VERSION = 'V1'
REVISION = '20160805'
REVISION = '20160810'
# View and manage your data for this application
AUTH_APPSTATE = 'https://www.googleapis.com/auth/appstate'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/google-apps/calendar/firstapp
module CalendarV3
VERSION = 'V3'
REVISION = '20160807'
REVISION = '20160815'
# Manage your calendars
AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/classroom/
module ClassroomV1
VERSION = 'V1'
REVISION = '20160517'
REVISION = '20160816'
# 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'

View File

@ -494,54 +494,14 @@ module Google
end
end
# An invitation to join a course.
class Invitation
# Response when listing guardian invitations.
class ListGuardianInvitationsResponse
include Google::Apis::Core::Hashable
# Identifier assigned by Classroom. Read-only.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# Identifier of the invited user. When specified as a parameter of a request,
# this identifier can be set to one of the following: * the numeric identifier
# for the user * the email address of the user * the string literal `"me"`,
# indicating the requesting user
# Corresponds to the JSON property `userId`
# @return [String]
attr_accessor :user_id
# Identifier of the course to invite the user to.
# Corresponds to the JSON property `courseId`
# @return [String]
attr_accessor :course_id
# Role to invite the user to have. Must not be `COURSE_ROLE_UNSPECIFIED`.
# Corresponds to the JSON property `role`
# @return [String]
attr_accessor :role
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@id = args[:id] if args.key?(:id)
@user_id = args[:user_id] if args.key?(:user_id)
@course_id = args[:course_id] if args.key?(:course_id)
@role = args[:role] if args.key?(:role)
end
end
# Response when listing invitations.
class ListInvitationsResponse
include Google::Apis::Core::Hashable
# Invitations that match the list request.
# Corresponds to the JSON property `invitations`
# @return [Array<Google::Apis::ClassroomV1::Invitation>]
attr_accessor :invitations
# Guardian invitations that matched the list request.
# Corresponds to the JSON property `guardianInvitations`
# @return [Array<Google::Apis::ClassroomV1::GuardianInvitation>]
attr_accessor :guardian_invitations
# Token identifying the next page of results to return. If empty, no further
# results are available.
@ -555,11 +515,122 @@ module Google
# Update properties of this object
def update!(**args)
@invitations = args[:invitations] if args.key?(:invitations)
@guardian_invitations = args[:guardian_invitations] if args.key?(:guardian_invitations)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# An invitation to become the guardian of a specified user, sent to a specified
# email address.
class GuardianInvitation
include Google::Apis::Core::Hashable
# ID of the student (in standard format)
# Corresponds to the JSON property `studentId`
# @return [String]
attr_accessor :student_id
# Unique identifier for this invitation. Read-only.
# Corresponds to the JSON property `invitationId`
# @return [String]
attr_accessor :invitation_id
# Email address that the invitation was sent to. This field is only visible to
# domain administrators.
# Corresponds to the JSON property `invitedEmailAddress`
# @return [String]
attr_accessor :invited_email_address
# The state that this invitation is in.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
# The time that this invitation was created. Read-only.
# Corresponds to the JSON property `creationTime`
# @return [String]
attr_accessor :creation_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@student_id = args[:student_id] if args.key?(:student_id)
@invitation_id = args[:invitation_id] if args.key?(:invitation_id)
@invited_email_address = args[:invited_email_address] if args.key?(:invited_email_address)
@state = args[:state] if args.key?(:state)
@creation_time = args[:creation_time] if args.key?(:creation_time)
end
end
# Response when listing guardians.
class ListGuardiansResponse
include Google::Apis::Core::Hashable
# Guardians on this page of results that met the criteria specified in the
# request.
# Corresponds to the JSON property `guardians`
# @return [Array<Google::Apis::ClassroomV1::Guardian>]
attr_accessor :guardians
# 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)
@guardians = args[:guardians] if args.key?(:guardians)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# Association between a student and a guardian of that student. The guardian may
# receive information about the student's course work.
class Guardian
include Google::Apis::Core::Hashable
# Identifier for the student to whom the guardian relationship applies.
# Corresponds to the JSON property `studentId`
# @return [String]
attr_accessor :student_id
# Identifier for the guardian.
# Corresponds to the JSON property `guardianId`
# @return [String]
attr_accessor :guardian_id
# Global information for a user.
# Corresponds to the JSON property `guardianProfile`
# @return [Google::Apis::ClassroomV1::UserProfile]
attr_accessor :guardian_profile
# The email address to which the initial guardian invitation was sent. This
# field is only visible to domain administrators.
# Corresponds to the JSON property `invitedEmailAddress`
# @return [String]
attr_accessor :invited_email_address
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@student_id = args[:student_id] if args.key?(:student_id)
@guardian_id = args[:guardian_id] if args.key?(:guardian_id)
@guardian_profile = args[:guardian_profile] if args.key?(:guardian_profile)
@invited_email_address = args[:invited_email_address] if args.key?(:invited_email_address)
end
end
# Global information for a user.
class UserProfile
include Google::Apis::Core::Hashable
@ -780,6 +851,72 @@ module Google
end
end
# An invitation to join a course.
class Invitation
include Google::Apis::Core::Hashable
# Identifier assigned by Classroom. Read-only.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# Identifier of the invited user. When specified as a parameter of a request,
# this identifier can be set to one of the following: * the numeric identifier
# for the user * the email address of the user * the string literal `"me"`,
# indicating the requesting user
# Corresponds to the JSON property `userId`
# @return [String]
attr_accessor :user_id
# Identifier of the course to invite the user to.
# Corresponds to the JSON property `courseId`
# @return [String]
attr_accessor :course_id
# Role to invite the user to have. Must not be `COURSE_ROLE_UNSPECIFIED`.
# Corresponds to the JSON property `role`
# @return [String]
attr_accessor :role
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@id = args[:id] if args.key?(:id)
@user_id = args[:user_id] if args.key?(:user_id)
@course_id = args[:course_id] if args.key?(:course_id)
@role = args[:role] if args.key?(:role)
end
end
# Response when listing invitations.
class ListInvitationsResponse
include Google::Apis::Core::Hashable
# Invitations that match the list request.
# Corresponds to the JSON property `invitations`
# @return [Array<Google::Apis::ClassroomV1::Invitation>]
attr_accessor :invitations
# 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)
@invitations = args[:invitations] if args.key?(:invitations)
@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
@ -807,12 +944,12 @@ module Google
# @return [String]
attr_accessor :description
# Additional materials.
# Additional materials. CourseWork must have no more than 20 material items.
# Corresponds to the JSON property `materials`
# @return [Array<Google::Apis::ClassroomV1::Material>]
attr_accessor :materials
# Status of this course work.. If unspecified, the default state is `DRAFT`.
# Status of this course work. If unspecified, the default state is `DRAFT`.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
@ -852,7 +989,7 @@ module Google
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.
# considered ungraded. This must be a non-negative integer value.
# Corresponds to the JSON property `maxPoints`
# @return [Float]
attr_accessor :max_points
@ -1146,7 +1283,7 @@ module Google
# @return [String]
attr_accessor :user_id
# Creation time of this submission.. This may be unset if the student has not
# 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]
@ -1169,14 +1306,15 @@ module Google
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.
# Optional pending grade. If unset, no grade was set. This must be a non-
# negative 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.
# Optional grade. If unset, no grade was set. This must be a non-negative
# integer value. This may be modified only by course teachers.
# Corresponds to the JSON property `assignedGrade`
# @return [Float]
attr_accessor :assigned_grade
@ -1407,7 +1545,8 @@ module Google
class ModifyAttachmentsRequest
include Google::Apis::Core::Hashable
# Attachments to add. This may only contain link attachments.
# Attachments to add. A student submission may not have more than 20 attachments.
# This may only contain link attachments.
# Corresponds to the JSON property `addAttachments`
# @return [Array<Google::Apis::ClassroomV1::Attachment>]
attr_accessor :add_attachments

View File

@ -94,13 +94,25 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Invitation
class ListGuardianInvitationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListInvitationsResponse
class GuardianInvitation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListGuardiansResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Guardian
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -148,6 +160,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Invitation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListInvitationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CourseWork
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -382,25 +406,46 @@ module Google
end
end
class Invitation
class ListGuardianInvitationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
property :user_id, as: 'userId'
property :course_id, as: 'courseId'
property :role, as: 'role'
collection :guardian_invitations, as: 'guardianInvitations', class: Google::Apis::ClassroomV1::GuardianInvitation, decorator: Google::Apis::ClassroomV1::GuardianInvitation::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class ListInvitationsResponse
class GuardianInvitation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :invitations, as: 'invitations', class: Google::Apis::ClassroomV1::Invitation, decorator: Google::Apis::ClassroomV1::Invitation::Representation
property :student_id, as: 'studentId'
property :invitation_id, as: 'invitationId'
property :invited_email_address, as: 'invitedEmailAddress'
property :state, as: 'state'
property :creation_time, as: 'creationTime'
end
end
class ListGuardiansResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :guardians, as: 'guardians', class: Google::Apis::ClassroomV1::Guardian, decorator: Google::Apis::ClassroomV1::Guardian::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class Guardian
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :student_id, as: 'studentId'
property :guardian_id, as: 'guardianId'
property :guardian_profile, as: 'guardianProfile', class: Google::Apis::ClassroomV1::UserProfile, decorator: Google::Apis::ClassroomV1::UserProfile::Representation
property :invited_email_address, as: 'invitedEmailAddress'
end
end
class UserProfile
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -470,6 +515,25 @@ module Google
end
end
class Invitation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
property :user_id, as: 'userId'
property :course_id, as: 'courseId'
property :role, as: 'role'
end
end
class ListInvitationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :invitations, as: 'invitations', class: Google::Apis::ClassroomV1::Invitation, decorator: Google::Apis::ClassroomV1::Invitation::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class CourseWork
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -980,9 +980,9 @@ module Google
# 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.
# Identifer of the student work to request. 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
@ -1239,6 +1239,395 @@ module Google
execute_or_queue_command(command, &block)
end
# Returns a user profile. This method returns the following error codes: * `
# PERMISSION_DENIED` if the requesting user is not permitted to access this user
# profile or if no profile exists with the requested ID or for access errors.
# @param [String] user_id
# Identifier of the profile to return. 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 [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::UserProfile] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClassroomV1::UserProfile]
#
# @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_user_profile(user_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/userProfiles/{userId}', options)
command.response_representation = Google::Apis::ClassroomV1::UserProfile::Representation
command.response_class = Google::Apis::ClassroomV1::UserProfile
command.params['userId'] = user_id unless user_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 guardian invitations that the requesting user is permitted
# to view, filtered by the parameters provided. This method returns the
# following error codes: * `PERMISSION_DENIED` if a `student_id` is specified,
# and the requesting user is not permitted to view guardian invitations for that
# student, if guardians are not enabled for the domain in question, or for other
# access errors. * `INVALID_ARGUMENT` if a `student_id` is specified, but its
# format cannot be recognized (it is not an email address, nor a `student_id`
# from the API, nor the literal string `me`). May also be returned if an invalid
# `page_token` or `state` is provided. * `NOT_FOUND` if a `student_id` is
# specified, and its format can be recognized, but Classroom has no record of
# that student.
# @param [String] student_id
# The ID of the student whose guardian invitations are to be returned. 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 [String] invited_email_address
# If specified, only results with the specified `invited_email_address` will be
# returned.
# @param [Array<String>, String] states
# If specified, only results with the specified `state` values will be returned.
# Otherwise, results with a `state` of `PENDING` will be returned.
# @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 [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] 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::ListGuardianInvitationsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClassroomV1::ListGuardianInvitationsResponse]
#
# @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_user_profile_guardian_invitations(student_id, invited_email_address: nil, states: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/userProfiles/{studentId}/guardianInvitations', options)
command.response_representation = Google::Apis::ClassroomV1::ListGuardianInvitationsResponse::Representation
command.response_class = Google::Apis::ClassroomV1::ListGuardianInvitationsResponse
command.params['studentId'] = student_id unless student_id.nil?
command.query['invitedEmailAddress'] = invited_email_address unless invited_email_address.nil?
command.query['states'] = states unless states.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['pageSize'] = page_size unless page_size.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 specific guardian invitation. This method returns the following
# error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to
# view guardian invitations for the student identified by the `student_id`, if
# guardians are not enabled for the domain in question, or for other access
# errors. * `INVALID_ARGUMENT` if a `student_id` is specified, but its format
# cannot be recognized (it is not an email address, nor a `student_id` from the
# API, nor the literal string `me`). * `NOT_FOUND` if Classroom cannot find any
# record of the given student or `invitation_id`. May also be returned if the
# student exists, but the requesting user does not have access to see that
# student.
# @param [String] student_id
# The ID of the student whose guardian invitation is being requested.
# @param [String] invitation_id
# The `id` field of the `GuardianInvitation` being requested.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ClassroomV1::GuardianInvitation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClassroomV1::GuardianInvitation]
#
# @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_user_profile_guardian_invitation(student_id, invitation_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/userProfiles/{studentId}/guardianInvitations/{invitationId}', options)
command.response_representation = Google::Apis::ClassroomV1::GuardianInvitation::Representation
command.response_class = Google::Apis::ClassroomV1::GuardianInvitation
command.params['studentId'] = student_id unless student_id.nil?
command.params['invitationId'] = invitation_id unless invitation_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 a guardian invitation, and sends an email to the guardian asking them
# to confirm that they are the student's guardian. Once the guardian accepts the
# invitation, their `state` will change to `COMPLETED` and they will start
# receiving guardian notifications. A `Guardian` resource will also be created
# to represent the active guardian. The request object must have the `student_id`
# and `invited_email_address` fields set. Failing to set these fields, or
# setting any other fields in the request, will result in an error. This method
# returns the following error codes: * `PERMISSION_DENIED` if the current user
# does not have permission to manage guardians, if the guardian in question has
# already rejected too many requests for that student, if guardians are not
# enabled for the domain in question, or for other access errors. * `
# RESOURCE_EXHAUSTED` if the student or guardian has exceeded the guardian link
# limit. * `INVALID_ARGUMENT` if the guardian email address is not valid (for
# example, if it is too long), or if the format of the student ID provided
# cannot be recognized (it is not an email address, nor a `user_id` from this
# API). This error will also be returned if read-only fields are set, or if the `
# state` field is set to to a value other than `PENDING`. * `NOT_FOUND` if the
# student ID provided is a valid student ID, but Classroom has no record of that
# student. * `ALREADY_EXISTS` if there is already a pending guardian invitation
# for the student and `invited_email_address` provided, or if the provided `
# invited_email_address` matches the Google account of an existing `Guardian`
# for this user.
# @param [String] student_id
# ID of the student (in standard format)
# @param [Google::Apis::ClassroomV1::GuardianInvitation] guardian_invitation_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::GuardianInvitation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClassroomV1::GuardianInvitation]
#
# @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_user_profile_guardian_invitation(student_id, guardian_invitation_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/userProfiles/{studentId}/guardianInvitations', options)
command.request_representation = Google::Apis::ClassroomV1::GuardianInvitation::Representation
command.request_object = guardian_invitation_object
command.response_representation = Google::Apis::ClassroomV1::GuardianInvitation::Representation
command.response_class = Google::Apis::ClassroomV1::GuardianInvitation
command.params['studentId'] = student_id unless student_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 a guardian invitation. Currently, the only valid modification is to
# change the `state` from `PENDING` to `COMPLETE`. This has the effect of
# withdrawing the invitation. This method returns the following error codes: * `
# PERMISSION_DENIED` if the current user does not have permission to manage
# guardians, if guardians are not enabled for the domain in question or for
# other access errors. * `FAILED_PRECONDITION` if the guardian link is not in
# the `PENDING` state. * `INVALID_ARGUMENT` if the format of the student ID
# provided cannot be recognized (it is not an email address, nor a `user_id`
# from this API), or if the passed `GuardianInvitation` has a `state` other than
# `COMPLETE`, or if it modifies fields other than `state`. * `NOT_FOUND` if the
# student ID provided is a valid student ID, but Classroom has no record of that
# student, or if the `id` field does not refer to a guardian invitation known to
# Classroom.
# @param [String] student_id
# The ID of the student whose guardian invitation is to be modified.
# @param [String] invitation_id
# The `id` field of the `GuardianInvitation` to be modified.
# @param [Google::Apis::ClassroomV1::GuardianInvitation] guardian_invitation_object
# @param [String] update_mask
# Mask that identifies which fields on the course to update. This field is
# required to do an update. The update will fail if invalid fields are specified.
# The following fields are valid: * `state` When set in a query parameter, this
# field should be specified as `updateMask=,,...`
# @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::GuardianInvitation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClassroomV1::GuardianInvitation]
#
# @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_user_profile_guardian_invitation(student_id, invitation_id, guardian_invitation_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1/userProfiles/{studentId}/guardianInvitations/{invitationId}', options)
command.request_representation = Google::Apis::ClassroomV1::GuardianInvitation::Representation
command.request_object = guardian_invitation_object
command.response_representation = Google::Apis::ClassroomV1::GuardianInvitation::Representation
command.response_class = Google::Apis::ClassroomV1::GuardianInvitation
command.params['studentId'] = student_id unless student_id.nil?
command.params['invitationId'] = invitation_id unless invitation_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 guardians that the requesting user is permitted to view,
# restricted to those that match the request. This method returns the following
# error codes: * `PERMISSION_DENIED` if a `student_id` is specified, and the
# requesting user is not permitted to view guardian information for that student,
# if guardians are not enabled for the domain in question, if the `
# invited_email_address` filter is set by a user who is not a domain
# administrator, or for other access errors. * `INVALID_ARGUMENT` if a `
# student_id` is specified, but its format cannot be recognized (it is not an
# email address, nor a `student_id` from the API, nor the literal string `me`).
# May also be returned if an invalid `page_token` is provided. * `NOT_FOUND` if
# a `student_id` is specified, and its format can be recognized, but Classroom
# has no record of that student.
# @param [String] student_id
# Filter results by the student who the guardian is linked to. 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 [String] invited_email_address
# Filter results by the email address that the original invitation was sent to,
# resulting in this guardian link. This filter can only be used by domain
# administrators.
# @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 [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] 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::ListGuardiansResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClassroomV1::ListGuardiansResponse]
#
# @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_user_profile_guardians(student_id, invited_email_address: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/userProfiles/{studentId}/guardians', options)
command.response_representation = Google::Apis::ClassroomV1::ListGuardiansResponse::Representation
command.response_class = Google::Apis::ClassroomV1::ListGuardiansResponse
command.params['studentId'] = student_id unless student_id.nil?
command.query['invitedEmailAddress'] = invited_email_address unless invited_email_address.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['pageSize'] = page_size unless page_size.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 specific guardian. This method returns the following error codes: * `
# PERMISSION_DENIED` if the requesting user is not permitted to view guardian
# information for the student identified by the `student_id`, if guardians are
# not enabled for the domain in question, or for other access errors. * `
# INVALID_ARGUMENT` if a `student_id` is specified, but its format cannot be
# recognized (it is not an email address, nor a `student_id` from the API, nor
# the literal string `me`). * `NOT_FOUND` if Classroom cannot find any record of
# the given student or `guardian_id`, or if the guardian has been disabled.
# @param [String] student_id
# The student whose guardian is being requested. 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 [String] guardian_id
# The `id` field from a `Guardian`.
# @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::Guardian] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClassroomV1::Guardian]
#
# @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_user_profile_guardian(student_id, guardian_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/userProfiles/{studentId}/guardians/{guardianId}', options)
command.response_representation = Google::Apis::ClassroomV1::Guardian::Representation
command.response_class = Google::Apis::ClassroomV1::Guardian
command.params['studentId'] = student_id unless student_id.nil?
command.params['guardianId'] = guardian_id unless guardian_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
# Deletes a guardian. The guardian will no longer receive guardian notifications
# and the guardian will no longer be accessible via the API. This method returns
# the following error codes: * `PERMISSION_DENIED` if the requesting user is not
# permitted to manage guardians for the student identified by the `student_id`,
# if guardians are not enabled for the domain in question, or for other access
# errors. * `INVALID_ARGUMENT` if a `student_id` is specified, but its format
# cannot be recognized (it is not an email address, nor a `student_id` from the
# API). * `NOT_FOUND` if Classroom cannot find any record of the given `
# student_id` or `guardian_id`, or if the guardian has already been disabled.
# @param [String] student_id
# The student whose guardian is to be deleted. 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 [String] guardian_id
# The `id` field from a `Guardian`.
# @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 delete_user_profile_guardian(student_id, guardian_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1/userProfiles/{studentId}/guardians/{guardianId}', options)
command.response_representation = Google::Apis::ClassroomV1::Empty::Representation
command.response_class = Google::Apis::ClassroomV1::Empty
command.params['studentId'] = student_id unless student_id.nil?
command.params['guardianId'] = guardian_id unless guardian_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
@ -1429,40 +1818,6 @@ module Google
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns a user profile. This method returns the following error codes: * `
# PERMISSION_DENIED` if the requesting user is not permitted to access this user
# profile or if no profile exists with the requested ID or for access errors.
# @param [String] user_id
# Identifier of the profile to return. 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 [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::UserProfile] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClassroomV1::UserProfile]
#
# @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_user_profile(user_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/userProfiles/{userId}', options)
command.response_representation = Google::Apis::ClassroomV1::UserProfile::Representation
command.response_class = Google::Apis::ClassroomV1::UserProfile
command.params['userId'] = user_id unless user_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
protected

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/container-builder/docs/
module CloudbuildV1
VERSION = 'V1'
REVISION = '20160811'
REVISION = '20160817'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -282,6 +282,50 @@ module Google
end
end
# Configuration for an automated build in response to source repository
# changes.
class BuildTrigger
include Google::Apis::Core::Hashable
# RepoSource describes the location of the source in a Google Cloud Source
# Repository.
# Corresponds to the JSON property `triggerTemplate`
# @return [Google::Apis::CloudbuildV1::RepoSource]
attr_accessor :trigger_template
# A build resource in the Container Builder API.
# At a high level, a Build describes where to find source code, how to build
# it (for example, the builder image to run on the source), and what tag to
# apply to the built image when it is pushed to Google Container Registry.
# Corresponds to the JSON property `build`
# @return [Google::Apis::CloudbuildV1::Build]
attr_accessor :build
# Time when the trigger was created.
# @OutputOnly
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# Unique identifier of the trigger.
# @OutputOnly
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@trigger_template = args[:trigger_template] if args.key?(:trigger_template)
@build = args[:build] if args.key?(:build)
@create_time = args[:create_time] if args.key?(:create_time)
@id = args[:id] if args.key?(:id)
end
end
# BuiltImage describes an image built by the pipeline.
class BuiltImage
include Google::Apis::Core::Hashable
@ -528,6 +572,25 @@ module Google
end
end
# Response containing existing BuildTriggers.
class ListBuildTriggersResponse
include Google::Apis::Core::Hashable
# BuildTriggers for the project, sorted by create_time descending.
# Corresponds to the JSON property `triggers`
# @return [Array<Google::Apis::CloudbuildV1::BuildTrigger>]
attr_accessor :triggers
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@triggers = args[:triggers] if args.key?(:triggers)
end
end
# Request to cancel an ongoing build.
class CancelBuildRequest
include Google::Apis::Core::Hashable
@ -687,6 +750,25 @@ module Google
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
# Optional arguments to enable specific features of builds.
class BuildOptions
include Google::Apis::Core::Hashable

View File

@ -52,6 +52,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class BuildTrigger
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BuiltImage
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -82,6 +88,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ListBuildTriggersResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CancelBuildRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -112,6 +124,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Empty
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BuildOptions
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -175,6 +193,18 @@ module Google
end
end
class BuildTrigger
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :trigger_template, as: 'triggerTemplate', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
property :build, as: 'build', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
property :create_time, as: 'createTime'
property :id, as: 'id'
end
end
class BuiltImage
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -236,6 +266,14 @@ module Google
end
end
class ListBuildTriggersResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :triggers, as: 'triggers', class: Google::Apis::CloudbuildV1::BuildTrigger, decorator: Google::Apis::CloudbuildV1::BuildTrigger::Representation
end
end
class CancelBuildRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -282,6 +320,12 @@ module Google
end
end
class Empty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class BuildOptions
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -46,6 +46,176 @@ module Google
super('https://cloudbuild.googleapis.com/', '')
end
# Creates a new BuildTrigger.
# This API is experimental.
# @param [String] project_id
# ID of the project for which to configure automatic builds.
# @param [Google::Apis::CloudbuildV1::BuildTrigger] build_trigger_object
# @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 [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudbuildV1::BuildTrigger] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudbuildV1::BuildTrigger]
#
# @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_project_trigger(project_id, build_trigger_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/projects/{projectId}/triggers', options)
command.request_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
command.request_object = build_trigger_object
command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
command.params['projectId'] = project_id unless project_id.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Gets information about a BuildTrigger.
# This API is experimental.
# @param [String] project_id
# ID of the project that owns the trigger.
# @param [String] trigger_id
# ID of the BuildTrigger to get.
# @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 [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudbuildV1::BuildTrigger] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudbuildV1::BuildTrigger]
#
# @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_trigger(project_id, trigger_id, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/projects/{projectId}/triggers/{triggerId}', options)
command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
command.params['projectId'] = project_id unless project_id.nil?
command.params['triggerId'] = trigger_id unless trigger_id.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Lists existing BuildTrigger.
# This API is experimental.
# @param [String] project_id
# ID of the project for which to list BuildTriggers.
# @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 [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudbuildV1::ListBuildTriggersResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudbuildV1::ListBuildTriggersResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_triggers(project_id, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/projects/{projectId}/triggers', options)
command.response_representation = Google::Apis::CloudbuildV1::ListBuildTriggersResponse::Representation
command.response_class = Google::Apis::CloudbuildV1::ListBuildTriggersResponse
command.params['projectId'] = project_id unless project_id.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Deletes an BuildTrigger by its project ID and trigger ID.
# This API is experimental.
# @param [String] project_id
# ID of the project that owns the trigger.
# @param [String] trigger_id
# ID of the BuildTrigger to delete.
# @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 [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudbuildV1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudbuildV1::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_project_trigger(project_id, trigger_id, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1/projects/{projectId}/triggers/{triggerId}', options)
command.response_representation = Google::Apis::CloudbuildV1::Empty::Representation
command.response_class = Google::Apis::CloudbuildV1::Empty
command.params['projectId'] = project_id unless project_id.nil?
command.params['triggerId'] = trigger_id unless trigger_id.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Updates an BuildTrigger by its project ID and trigger ID.
# This API is experimental.
# @param [String] project_id
# ID of the project that owns the trigger.
# @param [String] trigger_id
# ID of the BuildTrigger to update.
# @param [Google::Apis::CloudbuildV1::BuildTrigger] build_trigger_object
# @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 [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudbuildV1::BuildTrigger] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudbuildV1::BuildTrigger]
#
# @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_project_trigger(project_id, trigger_id, build_trigger_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1/projects/{projectId}/triggers/{triggerId}', options)
command.request_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
command.request_object = build_trigger_object
command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
command.params['projectId'] = project_id unless project_id.nil?
command.params['triggerId'] = trigger_id unless trigger_id.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Starts a build with the specified configuration.
# The long-running Operation returned by this method will include the ID of
# the build, which can be passed to GetBuild to determine its status (e.g.,

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/compute/docs/reference/latest/
module ComputeBeta
VERSION = 'Beta'
REVISION = '20160726'
REVISION = '20160812'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -582,12 +582,25 @@ module Google
# @return [String]
attr_accessor :self_link
# [Output Only] The status of the autoscaler configuration.
# Corresponds to the JSON property `status`
# @return [String]
attr_accessor :status
# [Output Only] Human-readable details about the current state of the autoscaler.
# Examples: ?Error when fetching replicas: Replica Pool xxx doesn?t exist.? ?
# Autoscaling capped at min_num_replicas: 2.?
# Corresponds to the JSON property `statusDetails`
# @return [Array<Google::Apis::ComputeBeta::AutoscalerStatusDetails>]
attr_accessor :status_details
# URL of the managed instance group that this autoscaler will scale.
# Corresponds to the JSON property `target`
# @return [String]
attr_accessor :target
# [Output Only] URL of the zone where the instance group resides.
# [Output Only] URL of the zone where the instance group resides (for
# autoscalers living in zonal scope).
# Corresponds to the JSON property `zone`
# @return [String]
attr_accessor :zone
@ -606,6 +619,8 @@ module Google
@name = args[:name] if args.key?(:name)
@region = args[:region] if args.key?(:region)
@self_link = args[:self_link] if args.key?(:self_link)
@status = args[:status] if args.key?(:status)
@status_details = args[:status_details] if args.key?(:status_details)
@target = args[:target] if args.key?(:target)
@zone = args[:zone] if args.key?(:zone)
end
@ -709,6 +724,31 @@ module Google
end
end
#
class AutoscalerStatusDetails
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `message`
# @return [String]
attr_accessor :message
#
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@message = args[:message] if args.key?(:message)
@type = args[:type] if args.key?(:type)
end
end
#
class AutoscalersScopedList
include Google::Apis::Core::Hashable
@ -865,7 +905,7 @@ module Google
include Google::Apis::Core::Hashable
# The target CPU utilization that the autoscaler should maintain. Must be a
# float value in the range (0, 1]. If not specified, the default is 0.8.
# float value in the range (0, 1]. If not specified, the default is 0.6.
# If the CPU level is below the target utilization, the autoscaler scales down
# the number of instances until it reaches the minimum number of instances you
# specified or until the average CPU of your instances reaches the target
@ -3908,7 +3948,8 @@ module Google
# @return [String]
attr_accessor :network
# The URL of the region where the instance group is located.
# The URL of the region where the instance group is located (for regional
# resources).
# Corresponds to the JSON property `region`
# @return [String]
attr_accessor :region
@ -3928,7 +3969,8 @@ module Google
# @return [String]
attr_accessor :subnetwork
# [Output Only] The URL of the zone where the instance group is located.
# [Output Only] The URL of the zone where the instance group is located (for
# zonal resources).
# Corresponds to the JSON property `zone`
# @return [String]
attr_accessor :zone
@ -4137,7 +4179,8 @@ module Google
# @return [Array<Google::Apis::ComputeBeta::NamedPort>]
attr_accessor :named_ports
# [Output Only] URL of the region where the managed instance group resides.
# [Output Only] The URL of the region where the managed instance group resides (
# for regional resources).
# Corresponds to the JSON property `region`
# @return [String]
attr_accessor :region
@ -4162,7 +4205,8 @@ module Google
# @return [Fixnum]
attr_accessor :target_size
# The name of the zone where the managed instance group is located.
# [Output Only] The URL of the zone where the managed instance group is located (
# for zonal resources).
# Corresponds to the JSON property `zone`
# @return [String]
attr_accessor :zone
@ -8812,6 +8856,28 @@ module Google
end
end
#
class SubnetworksExpandIpCidrRangeRequest
include Google::Apis::Core::Hashable
# The IP (in CIDR format or netmask) of internal addresses that are legal on
# this Subnetwork. This range should be disjoint from other subnetworks within
# this network. This range can only be larger than (i.e. a superset of) the
# range previously defined before the update.
# Corresponds to the JSON property `ipCidrRange`
# @return [String]
attr_accessor :ip_cidr_range
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@ip_cidr_range = args[:ip_cidr_range] if args.key?(:ip_cidr_range)
end
end
#
class SubnetworksScopedList
include Google::Apis::Core::Hashable

View File

@ -94,6 +94,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class AutoscalerStatusDetails
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AutoscalersScopedList
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1126,6 +1132,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class SubnetworksExpandIpCidrRangeRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SubnetworksScopedList
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1603,6 +1615,9 @@ module Google
property :name, as: 'name'
property :region, as: 'region'
property :self_link, as: 'selfLink'
property :status, as: 'status'
collection :status_details, as: 'statusDetails', class: Google::Apis::ComputeBeta::AutoscalerStatusDetails, decorator: Google::Apis::ComputeBeta::AutoscalerStatusDetails::Representation
property :target, as: 'target'
property :zone, as: 'zone'
end
@ -1632,6 +1647,14 @@ module Google
end
end
class AutoscalerStatusDetails
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :message, as: 'message'
property :type, as: 'type'
end
end
class AutoscalersScopedList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -3601,6 +3624,13 @@ module Google
end
end
class SubnetworksExpandIpCidrRangeRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :ip_cidr_range, as: 'ipCidrRange'
end
end
class SubnetworksScopedList
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -7559,6 +7559,44 @@ module Google
execute_or_queue_command(command, &block)
end
# Switches the network mode from auto subnet mode to custom subnet mode.
# @param [String] project
# Project ID for this request.
# @param [String] network
# Name of the network to be updated.
# @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::ComputeBeta::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::Operation]
#
# @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 switch_network_to_custom_mode(project, network, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/global/networks/{network}/switchToCustomMode', options)
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
command.response_class = Google::Apis::ComputeBeta::Operation
command.params['project'] = project unless project.nil?
command.params['network'] = network unless network.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 permissions that a caller has on the specified resource.
# @param [String] project
# Project ID for this request.
@ -10664,6 +10702,50 @@ module Google
execute_or_queue_command(command, &block)
end
# Expands the IP CIDR range of the subnetwork to a specified value.
# @param [String] project
# Project ID for this request.
# @param [String] region
# Name of the region scoping this request.
# @param [String] subnetwork
# Name of the Subnetwork resource to update.
# @param [Google::Apis::ComputeBeta::SubnetworksExpandIpCidrRangeRequest] subnetworks_expand_ip_cidr_range_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::ComputeBeta::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::Operation]
#
# @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 expand_subnetwork_ip_cidr_range(project, region, subnetwork, subnetworks_expand_ip_cidr_range_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/regions/{region}/subnetworks/{subnetwork}/expandIpCidrRange', options)
command.request_representation = Google::Apis::ComputeBeta::SubnetworksExpandIpCidrRangeRequest::Representation
command.request_object = subnetworks_expand_ip_cidr_range_request_object
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
command.response_class = Google::Apis::ComputeBeta::Operation
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.params['subnetwork'] = subnetwork unless subnetwork.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 the specified subnetwork. Get a list of available subnetworks list()
# request.
# @param [String] project

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/compute/docs/reference/latest/
module ComputeV1
VERSION = 'V1'
REVISION = '20160726'
REVISION = '20160812'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -575,7 +575,8 @@ module Google
# @return [String]
attr_accessor :target
# [Output Only] URL of the zone where the instance group resides.
# [Output Only] URL of the zone where the instance group resides (for
# autoscalers living in zonal scope).
# Corresponds to the JSON property `zone`
# @return [String]
attr_accessor :zone
@ -852,7 +853,7 @@ module Google
include Google::Apis::Core::Hashable
# The target CPU utilization that the autoscaler should maintain. Must be a
# float value in the range (0, 1]. If not specified, the default is 0.8.
# float value in the range (0, 1]. If not specified, the default is 0.6.
# If the CPU level is below the target utilization, the autoscaler scales down
# the number of instances until it reaches the minimum number of instances you
# specified or until the average CPU of your instances reaches the target
@ -3441,7 +3442,8 @@ module Google
# @return [String]
attr_accessor :subnetwork
# [Output Only] The URL of the zone where the instance group is located.
# [Output Only] The URL of the zone where the instance group is located (for
# zonal resources).
# Corresponds to the JSON property `zone`
# @return [String]
attr_accessor :zone
@ -3657,7 +3659,8 @@ module Google
# @return [Fixnum]
attr_accessor :target_size
# The name of the zone where the managed instance group is located.
# [Output Only] The URL of the zone where the managed instance group is located (
# for zonal resources).
# Corresponds to the JSON property `zone`
# @return [String]
attr_accessor :zone
@ -3707,6 +3710,14 @@ module Google
# @return [Fixnum]
attr_accessor :creating
# [Output Only] The number of instances that the managed instance group will
# attempt to create. The group attempts to create each instance only once. If
# the group fails to create any of these instances, it decreases the group's
# target_size value accordingly.
# Corresponds to the JSON property `creatingWithoutRetries`
# @return [Fixnum]
attr_accessor :creating_without_retries
# [Output Only] The number of instances in the managed instance group that are
# scheduled to be deleted or are currently being deleted.
# Corresponds to the JSON property `deleting`
@ -3748,6 +3759,7 @@ module Google
def update!(**args)
@abandoning = args[:abandoning] if args.key?(:abandoning)
@creating = args[:creating] if args.key?(:creating)
@creating_without_retries = args[:creating_without_retries] if args.key?(:creating_without_retries)
@deleting = args[:deleting] if args.key?(:deleting)
@none = args[:none] if args.key?(:none)
@recreating = args[:recreating] if args.key?(:recreating)

View File

@ -2115,6 +2115,7 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :abandoning, as: 'abandoning'
property :creating, as: 'creating'
property :creating_without_retries, as: 'creatingWithoutRetries'
property :deleting, as: 'deleting'
property :none, as: 'none'
property :recreating, as: 'recreating'

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/doubleclick-search/
module DoubleclicksearchV2
VERSION = 'V2'
REVISION = '20160803'
REVISION = '20160810'
# View and manage your advertising data in DoubleClick Search
AUTH_DOUBLECLICKSEARCH = 'https://www.googleapis.com/auth/doubleclicksearch'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/games/services
module GamesConfigurationV1configuration
VERSION = 'V1configuration'
REVISION = '20160805'
REVISION = '20160810'
# View and manage your Google Play Developer account
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/games/services
module GamesManagementV1management
VERSION = 'V1management'
REVISION = '20160805'
REVISION = '20160810'
# Share your Google+ profile information and view and manage your game activity
AUTH_GAMES = 'https://www.googleapis.com/auth/games'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/games/services/
module GamesV1
VERSION = 'V1'
REVISION = '20160805'
REVISION = '20160810'
# View and manage its own configuration data in your Google Drive
AUTH_DRIVE_APPDATA = 'https://www.googleapis.com/auth/drive.appdata'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/identity-toolkit/v3/
module IdentitytoolkitV3
VERSION = 'V3'
REVISION = '20160728'
REVISION = '20160810'
end
end
end

View File

@ -284,6 +284,12 @@ module Google
# @return [String]
attr_accessor :app_id
# Explicitly specify the auth flow type. Currently only support "CODE_FLOW" type.
# The field is only used for Google provider.
# Corresponds to the JSON property `authFlowType`
# @return [String]
attr_accessor :auth_flow_type
# The relying party OAuth client ID.
# Corresponds to the JSON property `clientId`
# @return [String]
@ -339,6 +345,11 @@ module Google
# @return [String]
attr_accessor :provider_id
# The session_id passed by client.
# Corresponds to the JSON property `sessionId`
# @return [String]
attr_accessor :session_id
def initialize(**args)
update!(**args)
end
@ -346,6 +357,7 @@ module Google
# Update properties of this object
def update!(**args)
@app_id = args[:app_id] if args.key?(:app_id)
@auth_flow_type = args[:auth_flow_type] if args.key?(:auth_flow_type)
@client_id = args[:client_id] if args.key?(:client_id)
@context = args[:context] if args.key?(:context)
@continue_uri = args[:continue_uri] if args.key?(:continue_uri)
@ -356,6 +368,7 @@ module Google
@openid_realm = args[:openid_realm] if args.key?(:openid_realm)
@ota_app = args[:ota_app] if args.key?(:ota_app)
@provider_id = args[:provider_id] if args.key?(:provider_id)
@session_id = args[:session_id] if args.key?(:session_id)
end
end
@ -1588,6 +1601,11 @@ module Google
# @return [String]
attr_accessor :salt
# User's screen name at Twitter.
# Corresponds to the JSON property `screenName`
# @return [String]
attr_accessor :screen_name
# Timestamp in seconds for valid login token.
# Corresponds to the JSON property `validSince`
# @return [String]
@ -1616,6 +1634,7 @@ module Google
@photo_url = args[:photo_url] if args.key?(:photo_url)
@provider_user_info = args[:provider_user_info] if args.key?(:provider_user_info)
@salt = args[:salt] if args.key?(:salt)
@screen_name = args[:screen_name] if args.key?(:screen_name)
@valid_since = args[:valid_since] if args.key?(:valid_since)
@version = args[:version] if args.key?(:version)
end
@ -1655,6 +1674,11 @@ module Google
# @return [String]
attr_accessor :raw_id
# User's screen name at Twitter.
# Corresponds to the JSON property `screenName`
# @return [String]
attr_accessor :screen_name
def initialize(**args)
update!(**args)
end
@ -1667,6 +1691,7 @@ module Google
@photo_url = args[:photo_url] if args.key?(:photo_url)
@provider_id = args[:provider_id] if args.key?(:provider_id)
@raw_id = args[:raw_id] if args.key?(:raw_id)
@screen_name = args[:screen_name] if args.key?(:screen_name)
end
end
end

View File

@ -312,6 +312,7 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :app_id, as: 'appId'
property :auth_flow_type, as: 'authFlowType'
property :client_id, as: 'clientId'
property :context, as: 'context'
property :continue_uri, as: 'continueUri'
@ -322,6 +323,7 @@ module Google
property :openid_realm, as: 'openidRealm'
property :ota_app, as: 'otaApp'
property :provider_id, as: 'providerId'
property :session_id, as: 'sessionId'
end
end
@ -631,6 +633,7 @@ module Google
collection :provider_user_info, as: 'providerUserInfo', class: Google::Apis::IdentitytoolkitV3::UserInfo::ProviderUserInfo, decorator: Google::Apis::IdentitytoolkitV3::UserInfo::ProviderUserInfo::Representation
property :salt, :base64 => true, as: 'salt'
property :screen_name, as: 'screenName'
property :valid_since, as: 'validSince'
property :version, as: 'version'
end
@ -644,6 +647,7 @@ module Google
property :photo_url, as: 'photoUrl'
property :provider_id, as: 'providerId'
property :raw_id, as: 'rawId'
property :screen_name, as: 'screenName'
end
end
end

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/monitoring/api/
module MonitoringV3
VERSION = 'V3'
REVISION = '20160810'
REVISION = '20160816'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/+/domains/
module PlusDomainsV1
VERSION = 'V1'
REVISION = '20160810'
REVISION = '20160815'
# View your circles and the people and pages in them
AUTH_PLUS_CIRCLES_READ = 'https://www.googleapis.com/auth/plus.circles.read'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/+/api/
module PlusV1
VERSION = 'V1'
REVISION = '20160810'
REVISION = '20160815'
# Know the list of people in your circles, your age range, and language
AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/sheets/
module SheetsV4
VERSION = 'V4'
REVISION = '20160811'
REVISION = '20160815'
# View the files in your Google Drive
AUTH_DRIVE_READONLY = 'https://www.googleapis.com/auth/drive.readonly'