Update vendored library google.golang.org/api
This commit is contained in:
parent
5b6568875c
commit
c0960f538f
363 changed files with 581827 additions and 452273 deletions
7439
vendor/google.golang.org/api/slides/v1/slides-api.json
generated
vendored
7439
vendor/google.golang.org/api/slides/v1/slides-api.json
generated
vendored
File diff suppressed because it is too large
Load diff
163
vendor/google.golang.org/api/slides/v1/slides-gen.go
generated
vendored
163
vendor/google.golang.org/api/slides/v1/slides-gen.go
generated
vendored
|
@ -288,6 +288,9 @@ type BatchUpdatePresentationResponse struct {
|
|||
// replies to some requests may be empty.
|
||||
Replies []*Response `json:"replies,omitempty"`
|
||||
|
||||
// WriteControl: The updated write control after applying the request.
|
||||
WriteControl *WriteControl `json:"writeControl,omitempty"`
|
||||
|
||||
// ServerResponse contains the HTTP response code and headers from the
|
||||
// server.
|
||||
googleapi.ServerResponse `json:"-"`
|
||||
|
@ -480,7 +483,7 @@ type CreateImageRequest struct {
|
|||
// for
|
||||
// display inside the presentation. Images must be less than 50MB in
|
||||
// size,
|
||||
// cannot exceed 25 megapixels, and must be in either in PNG, JPEG, or
|
||||
// cannot exceed 25 megapixels, and must be in one of PNG, JPEG, or
|
||||
// GIF
|
||||
// format.
|
||||
//
|
||||
|
@ -2115,6 +2118,11 @@ type Image struct {
|
|||
// ImageProperties: The properties of the image.
|
||||
ImageProperties *ImageProperties `json:"imageProperties,omitempty"`
|
||||
|
||||
// SourceUrl: The source URL is the URL used to insert the image. The
|
||||
// source URL can be
|
||||
// empty.
|
||||
SourceUrl string `json:"sourceUrl,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "ContentUrl") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
|
@ -4047,13 +4055,44 @@ type ReplaceAllShapesWithImageRequest struct {
|
|||
// given text.
|
||||
ContainsText *SubstringMatchCriteria `json:"containsText,omitempty"`
|
||||
|
||||
// ImageReplaceMethod: The image replace method.
|
||||
//
|
||||
// If you specify both a `replace_method` and an `image_replace_method`,
|
||||
// the
|
||||
// `image_replace_method` takes precedence.
|
||||
//
|
||||
// If you do not specify a value for `image_replace_method`, but specify
|
||||
// a
|
||||
// value for `replace_method`, then the specified `replace_method` value
|
||||
// is
|
||||
// used.
|
||||
//
|
||||
// If you do not specify either, then CENTER_INSIDE is used.
|
||||
//
|
||||
// Possible values:
|
||||
// "IMAGE_REPLACE_METHOD_UNSPECIFIED" - Unspecified image replace
|
||||
// method. This value must not be used.
|
||||
// "CENTER_INSIDE" - Scales and centers the image to fit within the
|
||||
// bounds of the original
|
||||
// shape and maintains the image's aspect ratio. The rendered size of
|
||||
// the
|
||||
// image may be smaller than the size of the shape. This is the
|
||||
// default
|
||||
// method when one is not specified.
|
||||
// "CENTER_CROP" - Scales and centers the image to fill the bounds of
|
||||
// the original shape.
|
||||
// The image may be cropped in order to fill the shape. The rendered
|
||||
// size of
|
||||
// the image will be the same as that of the original shape.
|
||||
ImageReplaceMethod string `json:"imageReplaceMethod,omitempty"`
|
||||
|
||||
// ImageUrl: The image URL.
|
||||
//
|
||||
// The image is fetched once at insertion time and a copy is stored
|
||||
// for
|
||||
// display inside the presentation. Images must be less than 50MB in
|
||||
// size,
|
||||
// cannot exceed 25 megapixels, and must be in either in PNG, JPEG, or
|
||||
// cannot exceed 25 megapixels, and must be in one of PNG, JPEG, or
|
||||
// GIF
|
||||
// format.
|
||||
//
|
||||
|
@ -4071,6 +4110,11 @@ type ReplaceAllShapesWithImageRequest struct {
|
|||
PageObjectIds []string `json:"pageObjectIds,omitempty"`
|
||||
|
||||
// ReplaceMethod: The replace method.
|
||||
// Deprecated: use `image_replace_method` instead.
|
||||
//
|
||||
// If you specify both a `replace_method` and an `image_replace_method`,
|
||||
// the
|
||||
// `image_replace_method` takes precedence.
|
||||
//
|
||||
// Possible values:
|
||||
// "CENTER_INSIDE" - Scales and centers the image to fit within the
|
||||
|
@ -4311,6 +4355,70 @@ func (s *ReplaceAllTextResponse) MarshalJSON() ([]byte, error) {
|
|||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// ReplaceImageRequest: Replaces an existing image with a new
|
||||
// image.
|
||||
//
|
||||
// Replacing an image removes some image effects from the existing
|
||||
// image.
|
||||
type ReplaceImageRequest struct {
|
||||
// ImageObjectId: The ID of the existing image that will be replaced.
|
||||
ImageObjectId string `json:"imageObjectId,omitempty"`
|
||||
|
||||
// ImageReplaceMethod: The replacement method.
|
||||
//
|
||||
// Possible values:
|
||||
// "IMAGE_REPLACE_METHOD_UNSPECIFIED" - Unspecified image replace
|
||||
// method. This value must not be used.
|
||||
// "CENTER_INSIDE" - Scales and centers the image to fit within the
|
||||
// bounds of the original
|
||||
// shape and maintains the image's aspect ratio. The rendered size of
|
||||
// the
|
||||
// image may be smaller than the size of the shape. This is the
|
||||
// default
|
||||
// method when one is not specified.
|
||||
// "CENTER_CROP" - Scales and centers the image to fill the bounds of
|
||||
// the original shape.
|
||||
// The image may be cropped in order to fill the shape. The rendered
|
||||
// size of
|
||||
// the image will be the same as that of the original shape.
|
||||
ImageReplaceMethod string `json:"imageReplaceMethod,omitempty"`
|
||||
|
||||
// Url: The URL of the new image.
|
||||
//
|
||||
// The image is fetched once at insertion time and a copy is stored
|
||||
// for
|
||||
// display inside the presentation. Images must be less than 50MB in
|
||||
// size,
|
||||
// cannot exceed 25 megapixels, and must be in one of PNG, JPEG, or
|
||||
// GIF
|
||||
// format.
|
||||
//
|
||||
// The provided URL can be at most 2 kB in length.
|
||||
Url string `json:"url,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "ImageObjectId") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
// server regardless of whether the field is empty or not. This may be
|
||||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "ImageObjectId") to include
|
||||
// in API requests with the JSON null value. By default, fields with
|
||||
// empty values are omitted from API requests. However, any field with
|
||||
// an empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
// This may be used to include null fields in Patch requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
func (s *ReplaceImageRequest) MarshalJSON() ([]byte, error) {
|
||||
type NoMethod ReplaceImageRequest
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// Request: A single kind of update to apply to a presentation.
|
||||
type Request struct {
|
||||
// CreateImage: Creates an image.
|
||||
|
@ -4384,6 +4492,9 @@ type Request struct {
|
|||
// ReplaceAllText: Replaces all instances of specified text.
|
||||
ReplaceAllText *ReplaceAllTextRequest `json:"replaceAllText,omitempty"`
|
||||
|
||||
// ReplaceImage: Replaces an existing image with a new image.
|
||||
ReplaceImage *ReplaceImageRequest `json:"replaceImage,omitempty"`
|
||||
|
||||
// UngroupObjects: Ungroups objects, such as groups.
|
||||
UngroupObjects *UngroupObjectsRequest `json:"ungroupObjects,omitempty"`
|
||||
|
||||
|
@ -5473,7 +5584,7 @@ type StretchedPictureFill struct {
|
|||
// for
|
||||
// display inside the presentation. Pictures must be less than 50MB in
|
||||
// size,
|
||||
// cannot exceed 25 megapixels, and must be in either in PNG, JPEG, or
|
||||
// cannot exceed 25 megapixels, and must be in one of PNG, JPEG, or
|
||||
// GIF
|
||||
// format.
|
||||
//
|
||||
|
@ -7404,12 +7515,40 @@ func (s *Video) MarshalJSON() ([]byte, error) {
|
|||
|
||||
// VideoProperties: The properties of the Video.
|
||||
type VideoProperties struct {
|
||||
// AutoPlay: Whether to enable video autoplay when the page is displayed
|
||||
// in present
|
||||
// mode. Defaults to false.
|
||||
AutoPlay bool `json:"autoPlay,omitempty"`
|
||||
|
||||
// End: The time at which to end playback, measured in seconds from the
|
||||
// beginning
|
||||
// of the video.
|
||||
// If set, the end time should be after the start time.
|
||||
// If not set or if you set this to a value that exceeds the video's
|
||||
// length,
|
||||
// the video will be played until its end.
|
||||
End int64 `json:"end,omitempty"`
|
||||
|
||||
// Mute: Whether to mute the audio during video playback. Defaults to
|
||||
// false.
|
||||
Mute bool `json:"mute,omitempty"`
|
||||
|
||||
// Outline: The outline of the video. The default outline matches the
|
||||
// defaults for new
|
||||
// videos created in the Slides editor.
|
||||
Outline *Outline `json:"outline,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Outline") to
|
||||
// Start: The time at which to start playback, measured in seconds from
|
||||
// the beginning
|
||||
// of the video.
|
||||
// If set, the start time should be before the end time.
|
||||
// If you set this to a value that exceeds the video's length in
|
||||
// seconds, the
|
||||
// video will be played from the last second.
|
||||
// If not set, the video will be played from the beginning.
|
||||
Start int64 `json:"start,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "AutoPlay") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
// non-interface field appearing in ForceSendFields will be sent to the
|
||||
|
@ -7417,7 +7556,7 @@ type VideoProperties struct {
|
|||
// used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "Outline") to include in
|
||||
// NullFields is a list of field names (e.g. "AutoPlay") to include in
|
||||
// API requests with the JSON null value. By default, fields with empty
|
||||
// values are omitted from API requests. However, any field with an
|
||||
// empty value appearing in NullFields will be sent to the server as
|
||||
|
@ -7725,8 +7864,10 @@ type PresentationsCreateCall struct {
|
|||
}
|
||||
|
||||
// Create: Creates a new presentation using the title given in the
|
||||
// request. Other
|
||||
// fields in the request are ignored.
|
||||
// request. If a
|
||||
// presentationId is provided, uses it as the ID of the new
|
||||
// presentation.
|
||||
// Otherwise, a new presentationId is generated.
|
||||
// Returns the created presentation.
|
||||
func (r *PresentationsService) Create(presentation *Presentation) *PresentationsCreateCall {
|
||||
c := &PresentationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
|
@ -7817,7 +7958,7 @@ func (c *PresentationsCreateCall) Do(opts ...googleapi.CallOption) (*Presentatio
|
|||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Creates a new presentation using the title given in the request. Other\nfields in the request are ignored.\nReturns the created presentation.",
|
||||
// "description": "Creates a new presentation using the title given in the request. If a\npresentationId is provided, uses it as the ID of the new presentation.\nOtherwise, a new presentationId is generated.\nReturns the created presentation.",
|
||||
// "flatPath": "v1/presentations",
|
||||
// "httpMethod": "POST",
|
||||
// "id": "slides.presentations.create",
|
||||
|
@ -8150,6 +8291,10 @@ type PresentationsPagesGetThumbnailCall struct {
|
|||
// GetThumbnail: Generates a thumbnail of the latest version of the
|
||||
// specified page in the
|
||||
// presentation and returns a URL to the thumbnail image.
|
||||
//
|
||||
// This request counts as an [expensive read request](/slides/limits)
|
||||
// for
|
||||
// quota purposes.
|
||||
func (r *PresentationsPagesService) GetThumbnail(presentationId string, pageObjectId string) *PresentationsPagesGetThumbnailCall {
|
||||
c := &PresentationsPagesGetThumbnailCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.presentationId = presentationId
|
||||
|
@ -8282,7 +8427,7 @@ func (c *PresentationsPagesGetThumbnailCall) Do(opts ...googleapi.CallOption) (*
|
|||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Generates a thumbnail of the latest version of the specified page in the\npresentation and returns a URL to the thumbnail image.",
|
||||
// "description": "Generates a thumbnail of the latest version of the specified page in the\npresentation and returns a URL to the thumbnail image.\n\nThis request counts as an [expensive read request](/slides/limits) for\nquota purposes.",
|
||||
// "flatPath": "v1/presentations/{presentationId}/pages/{pageObjectId}/thumbnail",
|
||||
// "httpMethod": "GET",
|
||||
// "id": "slides.presentations.pages.getThumbnail",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue