diff --git a/src/managed/Google.Apis.PhotosLibrary.v1/Google.Apis.PhotosLibrary.v1.1.10.0.00.nuspec b/src/managed/Google.Apis.PhotosLibrary.v1/Google.Apis.PhotosLibrary.v1.1.10.0.00.nuspec deleted file mode 100644 index 11979b26..00000000 --- a/src/managed/Google.Apis.PhotosLibrary.v1/Google.Apis.PhotosLibrary.v1.1.10.0.00.nuspec +++ /dev/null @@ -1,42 +0,0 @@ - - - - Google.Apis.PhotosLibrary.v1 - 1.10.0.00 - Google.Apis.PhotosLibrary.v1 Client Library - Google Inc. - peleyal - http://www.apache.org/licenses/LICENSE-2.0 - https://code.google.com/p/google-api-dotnet-client/ - false - Google APIs Client Library for working with Photoslibrary v1. - Supported Platforms: - - - .NET Framework 4 and 4.5 - - - Windows Store apps - - - Windows Phone 8 and 8.1 - - - Portable Class Libraries - - More documentation on the API is available at: - https://developers.google.com/api-client-library/dotnet/apis/photoslibrary/v1 - - The package source code is available at: - https://developers.google.com/resources/api-libraries/download/photoslibrary/v1/csharp - - Google - - - - - - - - - - - - - diff --git a/src/managed/Google.Apis.PhotosLibrary.v1/Google.Apis.PhotosLibrary.v1.cs b/src/managed/Google.Apis.PhotosLibrary.v1/Google.Apis.PhotosLibrary.v1.cs deleted file mode 100644 index 04f2ce73..00000000 --- a/src/managed/Google.Apis.PhotosLibrary.v1/Google.Apis.PhotosLibrary.v1.cs +++ /dev/null @@ -1,2270 +0,0 @@ -// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with -// the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on -// an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the -// specific language governing permissions and limitations under the License. - -//------------------------------------------------------------------------------ -// -// This code was generated by google-apis-code-generator 1.6.0 -// C# generator version: 1.10.0 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -/** - * \mainpage - * Photos Library API Version v1 - * - * \section ApiInfo API Version Information - * - *
API - * Photos Library API - *
API Versionv1 - *
API Rev0 - *
API Docs - * - * https://developers.google.com/photos/ - *
Discovery Namephotoslibrary - *
- * - * \section ForMoreInfo For More Information - * - * The complete API documentation for using Photos Library API can be found at - * https://developers.google.com/photos/. - * - * For more information about the Google APIs Client Library for .NET, see - * - * https://developers.google.com/api-client-library/dotnet/get_started - */ - -namespace Google.Apis.PhotosLibrary.v1.Data -{ - - /// Request to add an enrichment to a specific album at a specific position. - public class AddEnrichmentToAlbumRequest : Google.Apis.Requests.IDirectResponseSchema - { - /// The position in the album where the enrichment is to be inserted. - [Newtonsoft.Json.JsonPropertyAttribute("albumPosition")] - public virtual AlbumPosition AlbumPosition { get; set; } - - /// The enrichment to be added. - [Newtonsoft.Json.JsonPropertyAttribute("newEnrichmentItem")] - public virtual NewEnrichmentItem NewEnrichmentItem { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// The enrichment item that's created. - public class AddEnrichmentToAlbumResponse : Google.Apis.Requests.IDirectResponseSchema - { - /// [Output only] Enrichment which was added. - [Newtonsoft.Json.JsonPropertyAttribute("enrichmentItem")] - public virtual EnrichmentItem EnrichmentItem { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// Representation of an album in Google Photos. Albums are containers for media items. If an album has - /// been shared by the application, it contains an extra `shareInfo` property. - public class Album : Google.Apis.Requests.IDirectResponseSchema - { - /// [Output only] A URL to the cover photo's bytes. This shouldn't be used as is. Parameters should be - /// appended to this URL before use. For example, `'=w2048-h1024'` sets the dimensions of the cover photo to - /// have a width of 2048 px and height of 1024 px. - [Newtonsoft.Json.JsonPropertyAttribute("coverPhotoBaseUrl")] - public virtual string CoverPhotoBaseUrl { get; set; } - - /// [Output only] Identifier for the media item associated with the cover photo. - [Newtonsoft.Json.JsonPropertyAttribute("coverPhotoMediaItemId")] - public virtual string CoverPhotoMediaItemId { get; set; } - - /// [Ouput only] Identifier for the album. This is a persistent identifier that can be used between - /// sessions to identify this album. - [Newtonsoft.Json.JsonPropertyAttribute("id")] - public virtual string Id { get; set; } - - /// [Output only] True if you can create media items in this album. This field is based on the scopes - /// granted and permissions of the album. If the scopes are changed or permissions of the album are changed, - /// this field is updated. - [Newtonsoft.Json.JsonPropertyAttribute("isWriteable")] - public virtual System.Nullable IsWriteable { get; set; } - - /// [Output only] The number of media items in the album. - [Newtonsoft.Json.JsonPropertyAttribute("mediaItemsCount")] - public virtual System.Nullable MediaItemsCount { get; set; } - - /// [Output only] Google Photos URL for the album. The user needs to be signed in to their Google - /// Photos account to access this link. - [Newtonsoft.Json.JsonPropertyAttribute("productUrl")] - public virtual string ProductUrl { get; set; } - - /// [Output only] Information related to shared albums. This field is only populated if the album is a - /// shared album, the developer created the album and the user has granted the `photoslibrary.sharing` - /// scope. - [Newtonsoft.Json.JsonPropertyAttribute("shareInfo")] - public virtual ShareInfo ShareInfo { get; set; } - - /// Name of the album displayed to the user in their Google Photos account. This string shouldn't be - /// more than 500 characters. - [Newtonsoft.Json.JsonPropertyAttribute("title")] - public virtual string Title { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// Specifies a position in an album. - public class AlbumPosition : Google.Apis.Requests.IDirectResponseSchema - { - /// Type of position, for a media or enrichment item. - [Newtonsoft.Json.JsonPropertyAttribute("position")] - public virtual string Position { get; set; } - - /// The enrichment item to which the position is relative to. Only used when position type is - /// AFTER_ENRICHMENT_ITEM. - [Newtonsoft.Json.JsonPropertyAttribute("relativeEnrichmentItemId")] - public virtual string RelativeEnrichmentItemId { get; set; } - - /// The media item to which the position is relative to. Only used when position type is - /// AFTER_MEDIA_ITEM. - [Newtonsoft.Json.JsonPropertyAttribute("relativeMediaItemId")] - public virtual string RelativeMediaItemId { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// Request to create one or more media items in a user's Google Photos library. If an `albumid` is - /// specified, the media items are also added to that album. `albumPosition` is optional and can only be specified - /// if an `albumId` is set. - public class BatchCreateMediaItemsRequest : Google.Apis.Requests.IDirectResponseSchema - { - /// Identifier of the album where the media items are added. The media items are also added to the - /// user's library. This is an optional field. - [Newtonsoft.Json.JsonPropertyAttribute("albumId")] - public virtual string AlbumId { get; set; } - - /// Position in the album where the media items are added. If not specified, the media items are added - /// to the end of the album (as per the default value, that is, `LAST_IN_ALBUM`). The request fails if this - /// field is set and the `albumId` is not specified. The request will also fail if you set the field and are not - /// the owner of the shared album. - [Newtonsoft.Json.JsonPropertyAttribute("albumPosition")] - public virtual AlbumPosition AlbumPosition { get; set; } - - /// List of media items to be created. - [Newtonsoft.Json.JsonPropertyAttribute("newMediaItems")] - public virtual System.Collections.Generic.IList NewMediaItems { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// List of media items created. - public class BatchCreateMediaItemsResponse : Google.Apis.Requests.IDirectResponseSchema - { - /// [Output only] List of media items created. - [Newtonsoft.Json.JsonPropertyAttribute("newMediaItemResults")] - public virtual System.Collections.Generic.IList NewMediaItemResults { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// Response to retrieve a list of media items. - public class BatchGetMediaItemsResponse : Google.Apis.Requests.IDirectResponseSchema - { - /// [Output only] List of media items retrieved. Note that even if the call to BatchGetMediaItems - /// succeeds, there may have been failures for some media items in the batch. These failures are indicated in - /// each MediaItemResult.status. - [Newtonsoft.Json.JsonPropertyAttribute("mediaItemResults")] - public virtual System.Collections.Generic.IList MediaItemResults { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// This filter allows you to return media items based on the content type. - /// - /// It's possible to specify a list of categories to include, and/or a list of categories to exclude. Within each - /// list, the categories are combined with an OR. The content filter `includedContentCategories`: [c1, c2, c3] would - /// get media items that contain (c1 OR c2 OR c3). The content filter `excludedContentCategories`: [c1, c2, c3] - /// would NOT get media items that contain (c1 OR c2 OR c3). You can also include some categories while excluding - /// others, as in this example: `includedContentCategories`: [c1, c2], `excludedContentCategories`: [c3, c4] The - /// previous example would get media items that contain (c1 OR c2) AND NOT (c3 OR c4). A category that appears in - /// `includedContentategories` must not appear in `excludedContentCategories`. - public class ContentFilter : Google.Apis.Requests.IDirectResponseSchema - { - /// The set of categories which are not to be included in the media item search results. The items in - /// the set are ORed. There's a maximum of 10 `excludedContentCategories` per request. - [Newtonsoft.Json.JsonPropertyAttribute("excludedContentCategories")] - public virtual System.Collections.Generic.IList ExcludedContentCategories { get; set; } - - /// The set of categories to be included in the media item search results. The items in the set are - /// ORed. There's a maximum of 10 `includedContentCategories` per request. - [Newtonsoft.Json.JsonPropertyAttribute("includedContentCategories")] - public virtual System.Collections.Generic.IList IncludedContentCategories { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// Information about the user who added the media item. Note that this information is included only if the - /// media item is within a shared album created by your app and you have the sharing scope. - public class ContributorInfo : Google.Apis.Requests.IDirectResponseSchema - { - /// Display name of the contributor. - [Newtonsoft.Json.JsonPropertyAttribute("displayName")] - public virtual string DisplayName { get; set; } - - /// URL to the profile picture of the contributor. - [Newtonsoft.Json.JsonPropertyAttribute("profilePictureBaseUrl")] - public virtual string ProfilePictureBaseUrl { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// Request to create an album in Google Photos. - public class CreateAlbumRequest : Google.Apis.Requests.IDirectResponseSchema - { - /// The album to be created. - [Newtonsoft.Json.JsonPropertyAttribute("album")] - public virtual Album Album { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// Represents a whole calendar date. The day may be 0 to represent a year and month where the day isn't - /// significant, such as a whole calendar month. The month may be 0 to represent a a day and a year where the month - /// isn't signficant, like when you want to specify the same day in every month of a year or a specific year. The - /// year may be 0 to represent a month and day independent of year, like an anniversary date. - public class Date : Google.Apis.Requests.IDirectResponseSchema - { - /// Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if specifying a - /// year/month where the day isn't significant. - [Newtonsoft.Json.JsonPropertyAttribute("day")] - public virtual System.Nullable Day { get; set; } - - /// Month of year. Must be from 1 to 12, or 0 if specifying a year without a month and day. - [Newtonsoft.Json.JsonPropertyAttribute("month")] - public virtual System.Nullable Month { get; set; } - - /// Year of date. Must be from 1 to 9999, or 0 if specifying a date without a year. - [Newtonsoft.Json.JsonPropertyAttribute("year")] - public virtual System.Nullable Year { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// This filter defines the allowed dates or date ranges for the media returned. It's possible to pick a - /// set of specific dates and a set of date ranges. - public class DateFilter : Google.Apis.Requests.IDirectResponseSchema - { - /// List of dates that match the media items' creation date. A maximum of 5 dates can be included per - /// request. - [Newtonsoft.Json.JsonPropertyAttribute("dates")] - public virtual System.Collections.Generic.IList Dates { get; set; } - - /// List of dates ranges that match the media items' creation date. A maximum of 5 dates ranges can be - /// included per request. - [Newtonsoft.Json.JsonPropertyAttribute("ranges")] - public virtual System.Collections.Generic.IList Ranges { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// Defines a range of dates. Both dates must be of the same format. For more information, see - /// Date - public class DateRange : Google.Apis.Requests.IDirectResponseSchema - { - /// The end date (included as part of the range). It must be specified in the same format as the start - /// date. - [Newtonsoft.Json.JsonPropertyAttribute("endDate")] - public virtual Date EndDate { get; set; } - - /// The start date (included as part of the range) in one of the formats described. - [Newtonsoft.Json.JsonPropertyAttribute("startDate")] - public virtual Date StartDate { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// An enrichment item. - public class EnrichmentItem : Google.Apis.Requests.IDirectResponseSchema - { - /// Identifier of the enrichment item. - [Newtonsoft.Json.JsonPropertyAttribute("id")] - public virtual string Id { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// Filters that can be applied to a media item search. If multiple filter options are specified, they're - /// treated as AND with each other. - public class Filters : Google.Apis.Requests.IDirectResponseSchema - { - /// Filters the media items based on their content. - [Newtonsoft.Json.JsonPropertyAttribute("contentFilter")] - public virtual ContentFilter ContentFilter { get; set; } - - /// Filters the media items based on their creation date. - [Newtonsoft.Json.JsonPropertyAttribute("dateFilter")] - public virtual DateFilter DateFilter { get; set; } - - /// If set, the results exclude media items that were not created by this app. Defaults to false (all - /// media items are returned). This field is ignored if the photoslibrary.readonly.appcreateddata scope is - /// used. - [Newtonsoft.Json.JsonPropertyAttribute("excludeNonAppCreatedData")] - public virtual System.Nullable ExcludeNonAppCreatedData { get; set; } - - /// If set, the results include media items that the user has archived. Defaults to false (archived - /// media items aren't included). - [Newtonsoft.Json.JsonPropertyAttribute("includeArchivedMedia")] - public virtual System.Nullable IncludeArchivedMedia { get; set; } - - /// Filters the media items based on the type of media. - [Newtonsoft.Json.JsonPropertyAttribute("mediaTypeFilter")] - public virtual MediaTypeFilter MediaTypeFilter { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// Request to join a shared album on behalf of the user. This uses a shareToken which can be acquired via - /// the shareAlbum or listSharedAlbums calls. - public class JoinSharedAlbumRequest : Google.Apis.Requests.IDirectResponseSchema - { - /// Token to join the shared album on behalf of the user. - [Newtonsoft.Json.JsonPropertyAttribute("shareToken")] - public virtual string ShareToken { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// Response to successfully joining the shared album on behalf of the user. - public class JoinSharedAlbumResponse : Google.Apis.Requests.IDirectResponseSchema - { - /// Shared album that the user has joined. - [Newtonsoft.Json.JsonPropertyAttribute("album")] - public virtual Album Album { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// An object representing a latitude/longitude pair. This is expressed as a pair of doubles representing - /// degrees latitude and degrees longitude. Unless specified otherwise, this must conform to the WGS84 standard. - /// Values must be within normalized ranges. - public class LatLng : Google.Apis.Requests.IDirectResponseSchema - { - /// The latitude in degrees. It must be in the range [-90.0, +90.0]. - [Newtonsoft.Json.JsonPropertyAttribute("latitude")] - public virtual System.Nullable Latitude { get; set; } - - /// The longitude in degrees. It must be in the range [-180.0, +180.0]. - [Newtonsoft.Json.JsonPropertyAttribute("longitude")] - public virtual System.Nullable Longitude { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// Request to leave a shared album on behalf of the user. This uses a shareToken which can be acquired via - /// the or listSharedAlbums or getAlbum calls. - public class LeaveSharedAlbumRequest : Google.Apis.Requests.IDirectResponseSchema - { - /// Token to leave the shared album on behalf of the user. - [Newtonsoft.Json.JsonPropertyAttribute("shareToken")] - public virtual string ShareToken { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// Response to successfully leaving the shared album on behalf of the user. - public class LeaveSharedAlbumResponse : Google.Apis.Requests.IDirectResponseSchema - { - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// List of albums requested. - public class ListAlbumsResponse : Google.Apis.Requests.IDirectResponseSchema - { - /// [Output only] List of albums shown in the Albums tab of the user's Google Photos app. - [Newtonsoft.Json.JsonPropertyAttribute("albums")] - public virtual System.Collections.Generic.IList Albums { get; set; } - - /// [Output only] Token to use to get the next set of albums. Populated if there are more albums to - /// retrieve for this request. - [Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")] - public virtual string NextPageToken { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// List of all media items from the user's Google Photos library. - public class ListMediaItemsResponse : Google.Apis.Requests.IDirectResponseSchema - { - /// [Output only] List of media items in the user's library. - [Newtonsoft.Json.JsonPropertyAttribute("mediaItems")] - public virtual System.Collections.Generic.IList MediaItems { get; set; } - - /// [Output only] Token to use to get the next set of media items. Its presence is the only reliable - /// indicator of more media items being available in the next request. - [Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")] - public virtual string NextPageToken { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// List of shared albums requested. - public class ListSharedAlbumsResponse : Google.Apis.Requests.IDirectResponseSchema - { - /// [Output only] Token to use to get the next set of shared albums. Populated if there are more shared - /// albums to retrieve for this request. - [Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")] - public virtual string NextPageToken { get; set; } - - /// [Output only] List of shared albums. - [Newtonsoft.Json.JsonPropertyAttribute("sharedAlbums")] - public virtual System.Collections.Generic.IList SharedAlbums { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// Represents a physical location. - public class Location : Google.Apis.Requests.IDirectResponseSchema - { - /// Position of the location on the map. - [Newtonsoft.Json.JsonPropertyAttribute("latlng")] - public virtual LatLng Latlng { get; set; } - - /// Name of the location to be displayed. - [Newtonsoft.Json.JsonPropertyAttribute("locationName")] - public virtual string LocationName { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// An enrichment containing a single location. - public class LocationEnrichment : Google.Apis.Requests.IDirectResponseSchema - { - /// Location for this enrichment item. - [Newtonsoft.Json.JsonPropertyAttribute("location")] - public virtual Location Location { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// An enrichment containing a map, showing origin and destination locations. - public class MapEnrichment : Google.Apis.Requests.IDirectResponseSchema - { - /// Destination location for this enrichemt item. - [Newtonsoft.Json.JsonPropertyAttribute("destination")] - public virtual Location Destination { get; set; } - - /// Origin location for this enrichment item. - [Newtonsoft.Json.JsonPropertyAttribute("origin")] - public virtual Location Origin { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// Representation of a media item (such as a photo or video) in Google Photos. - public class MediaItem : Google.Apis.Requests.IDirectResponseSchema - { - /// A URL to the media item's bytes. This shouldn't be used directly to access the media item. For - /// example, `'=w2048-h1024'` will set the dimensions of a media item of type photo to have a width of 2048 px - /// and height of 1024 px. - [Newtonsoft.Json.JsonPropertyAttribute("baseUrl")] - public virtual string BaseUrl { get; set; } - - /// Information about the user who created this media item. - [Newtonsoft.Json.JsonPropertyAttribute("contributorInfo")] - public virtual ContributorInfo ContributorInfo { get; set; } - - /// Description of the media item. This is shown to the user in the item's info section in the Google - /// Photos app. - [Newtonsoft.Json.JsonPropertyAttribute("description")] - public virtual string Description { get; set; } - - /// Filename of the media item. This is shown to the user in the item's info section in the Google - /// Photos app. - [Newtonsoft.Json.JsonPropertyAttribute("filename")] - public virtual string Filename { get; set; } - - /// Identifier for the media item. This is a persistent identifier that can be used between sessions to - /// identify this media item. - [Newtonsoft.Json.JsonPropertyAttribute("id")] - public virtual string Id { get; set; } - - /// Metadata related to the media item, such as, height, width, or creation time. - [Newtonsoft.Json.JsonPropertyAttribute("mediaMetadata")] - public virtual MediaMetadata MediaMetadata { get; set; } - - /// MIME type of the media item. For example, `image/jpeg`. - [Newtonsoft.Json.JsonPropertyAttribute("mimeType")] - public virtual string MimeType { get; set; } - - /// Google Photos URL for the media item. This link is available to the user only if they're signed - /// in. - [Newtonsoft.Json.JsonPropertyAttribute("productUrl")] - public virtual string ProductUrl { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// Result of retrieving a media item. - public class MediaItemResult : Google.Apis.Requests.IDirectResponseSchema - { - /// Media item retrieved from the user's library. It's populated if no errors occurred and the media - /// item was fetched successfully. - [Newtonsoft.Json.JsonPropertyAttribute("mediaItem")] - public virtual MediaItem MediaItem { get; set; } - - /// If an error occurred while accessing this media item, this field is populated with information - /// related to the error. For details regarding this field, see Status. - [Newtonsoft.Json.JsonPropertyAttribute("status")] - public virtual Status Status { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// Metadata for a media item. - public class MediaMetadata : Google.Apis.Requests.IDirectResponseSchema - { - /// Time when the media item was first created (not when it was uploaded to Google Photos). - [Newtonsoft.Json.JsonPropertyAttribute("creationTime")] - public virtual object CreationTime { get; set; } - - /// Original height (in pixels) of the media item. - [Newtonsoft.Json.JsonPropertyAttribute("height")] - public virtual System.Nullable Height { get; set; } - - /// Metadata for a photo media type. - [Newtonsoft.Json.JsonPropertyAttribute("photo")] - public virtual Photo Photo { get; set; } - - /// Metadata for a video media type. - [Newtonsoft.Json.JsonPropertyAttribute("video")] - public virtual Video Video { get; set; } - - /// Original width (in pixels) of the media item. - [Newtonsoft.Json.JsonPropertyAttribute("width")] - public virtual System.Nullable Width { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// This filter defines the type of media items to be returned, for example, videos or photos. All the - /// specified media types are treated as an OR when used together. - public class MediaTypeFilter : Google.Apis.Requests.IDirectResponseSchema - { - /// The types of media items to be included. This field should be populated with only one media type. - /// If you specify multiple media types, it results in an error. - [Newtonsoft.Json.JsonPropertyAttribute("mediaTypes")] - public virtual System.Collections.Generic.IList MediaTypes { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// A new enrichment item to be added to an album, used by the `albums.addEnrichment` call. - public class NewEnrichmentItem : Google.Apis.Requests.IDirectResponseSchema - { - /// Location to be added to the album. - [Newtonsoft.Json.JsonPropertyAttribute("locationEnrichment")] - public virtual LocationEnrichment LocationEnrichment { get; set; } - - /// Map to be added to the album. - [Newtonsoft.Json.JsonPropertyAttribute("mapEnrichment")] - public virtual MapEnrichment MapEnrichment { get; set; } - - /// Text to be added to the album. - [Newtonsoft.Json.JsonPropertyAttribute("textEnrichment")] - public virtual TextEnrichment TextEnrichment { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// New media item that's created in a user's Google Photos account. - public class NewMediaItem : Google.Apis.Requests.IDirectResponseSchema - { - /// Description of the media item. This will be shown to the user in the item's info section in the - /// Google Photos app. This string shouldn't be more than 1000 characters. - [Newtonsoft.Json.JsonPropertyAttribute("description")] - public virtual string Description { get; set; } - - /// A new media item that has been uploaded via the included `uploadToken`. - [Newtonsoft.Json.JsonPropertyAttribute("simpleMediaItem")] - public virtual SimpleMediaItem SimpleMediaItem { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// Result of creating a new media item. - public class NewMediaItemResult : Google.Apis.Requests.IDirectResponseSchema - { - /// Media item created with the upload token. It's populated if no errors occurred and the media item - /// was created successfully. - [Newtonsoft.Json.JsonPropertyAttribute("mediaItem")] - public virtual MediaItem MediaItem { get; set; } - - /// If an error occurred during the creation of this media item, this field is populated with - /// information related to the error. For details regarding this field, see Status. - [Newtonsoft.Json.JsonPropertyAttribute("status")] - public virtual Status Status { get; set; } - - /// The upload token used to create this new media item. - [Newtonsoft.Json.JsonPropertyAttribute("uploadToken")] - public virtual string UploadToken { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// Metadata that is specific to a photo, such as, ISO, focal length and exposure time. Some of these - /// fields may be null or not included. - public class Photo : Google.Apis.Requests.IDirectResponseSchema - { - /// Aperture f number of the camera lens with which the photo was taken. - [Newtonsoft.Json.JsonPropertyAttribute("apertureFNumber")] - public virtual System.Nullable ApertureFNumber { get; set; } - - /// Brand of the camera with which the photo was taken. - [Newtonsoft.Json.JsonPropertyAttribute("cameraMake")] - public virtual string CameraMake { get; set; } - - /// Model of the camera with which the photo was taken. - [Newtonsoft.Json.JsonPropertyAttribute("cameraModel")] - public virtual string CameraModel { get; set; } - - /// Exposure time of the camera aperture when the photo was taken. - [Newtonsoft.Json.JsonPropertyAttribute("exposureTime")] - public virtual object ExposureTime { get; set; } - - /// Focal length of the camera lens with which the photo was taken. - [Newtonsoft.Json.JsonPropertyAttribute("focalLength")] - public virtual System.Nullable FocalLength { get; set; } - - /// ISO of the camera with which the photo was taken. - [Newtonsoft.Json.JsonPropertyAttribute("isoEquivalent")] - public virtual System.Nullable IsoEquivalent { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// Request to search for media items in a user's library. - /// - /// If the album id is specified, this call will return the list of media items in the album. If neither filters nor - /// album id are specified, this call will return all media items in a user's Google Photos library. - /// - /// If filters are specified, this call will return all media items in the user's library that fulfill the filter - /// criteria. - /// - /// Filters and album id must not both be set, as this will result in an invalid request. - public class SearchMediaItemsRequest : Google.Apis.Requests.IDirectResponseSchema - { - /// Identifier of an album. If populated, lists all media items in specified album. Can't set in - /// conjunction with any filters. - [Newtonsoft.Json.JsonPropertyAttribute("albumId")] - public virtual string AlbumId { get; set; } - - /// Filters to apply to the request. Can't be set in conjunction with an `albumId`. - [Newtonsoft.Json.JsonPropertyAttribute("filters")] - public virtual Filters Filters { get; set; } - - /// Maximum number of media items to return in the response. The default number of media items to - /// return at a time is 25. The maximum `pageSize` is 100. - [Newtonsoft.Json.JsonPropertyAttribute("pageSize")] - public virtual System.Nullable PageSize { get; set; } - - /// A continuation token to get the next page of the results. Adding this to the request returns the - /// rows after the `pageToken`. The `pageToken` should be the value returned in the `nextPageToken` parameter in - /// the response to the `searchMediaItems` request. - [Newtonsoft.Json.JsonPropertyAttribute("pageToken")] - public virtual string PageToken { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// List of media items that match the search parameters. - public class SearchMediaItemsResponse : Google.Apis.Requests.IDirectResponseSchema - { - /// [Output only] List of media items that match the search parameters. - [Newtonsoft.Json.JsonPropertyAttribute("mediaItems")] - public virtual System.Collections.Generic.IList MediaItems { get; set; } - - /// [Output only] Use this token to get the next set of media items. Its presence is the only reliable - /// indicator of more media items being available in the next request. - [Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")] - public virtual string NextPageToken { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// Request to make an album shared in Google Photos. - public class ShareAlbumRequest : Google.Apis.Requests.IDirectResponseSchema - { - /// Options to be set when converting the album to a shared album. - [Newtonsoft.Json.JsonPropertyAttribute("sharedAlbumOptions")] - public virtual SharedAlbumOptions SharedAlbumOptions { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// Response to successfully sharing an album. - public class ShareAlbumResponse : Google.Apis.Requests.IDirectResponseSchema - { - /// [Output only] Information about the shared album. - [Newtonsoft.Json.JsonPropertyAttribute("shareInfo")] - public virtual ShareInfo ShareInfo { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// Information about albums that are shared. This information is only included if you created the album, - /// it is shared and you have the sharing scope. - public class ShareInfo : Google.Apis.Requests.IDirectResponseSchema - { - /// True if the user has joined the album. This is always true for the owner of the shared - /// album. - [Newtonsoft.Json.JsonPropertyAttribute("isJoined")] - public virtual System.Nullable IsJoined { get; set; } - - /// A token that can be used by other users to join this shared album via the API. - [Newtonsoft.Json.JsonPropertyAttribute("shareToken")] - public virtual string ShareToken { get; set; } - - /// A link to the album that's now shared on the Google Photos website and app. Anyone with the link - /// can access this shared album and see all of the items present in the album. - [Newtonsoft.Json.JsonPropertyAttribute("shareableUrl")] - public virtual string ShareableUrl { get; set; } - - /// Options that control the sharing of an album. - [Newtonsoft.Json.JsonPropertyAttribute("sharedAlbumOptions")] - public virtual SharedAlbumOptions SharedAlbumOptions { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// Options that control the sharing of an album. - public class SharedAlbumOptions : Google.Apis.Requests.IDirectResponseSchema - { - /// True if the shared album allows collaborators (users who have joined the album) to add media items - /// to it. Defaults to false. - [Newtonsoft.Json.JsonPropertyAttribute("isCollaborative")] - public virtual System.Nullable IsCollaborative { get; set; } - - /// True if the shared album allows the owner and the collaborators (users who have joined the album) - /// to add comments to the album. Defaults to false. - [Newtonsoft.Json.JsonPropertyAttribute("isCommentable")] - public virtual System.Nullable IsCommentable { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// A simple media item to be created in Google Photos via an upload token. - public class SimpleMediaItem : Google.Apis.Requests.IDirectResponseSchema - { - /// Token identifying the media bytes that have been uploaded to Google. - [Newtonsoft.Json.JsonPropertyAttribute("uploadToken")] - public virtual string UploadToken { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// The `Status` type defines a logical error model that is suitable for different programming - /// environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). The error model - /// is designed to be: - /// - /// - Simple to use and understand for most users - Flexible enough to meet unexpected needs - /// - /// # Overview - /// - /// The `Status` message contains three pieces of data: error code, error message, and error details. The error code - /// should be an enum value of google.rpc.Code, but it may accept additional error codes if needed. The error - /// message should be a developer-facing English message that helps developers *understand* and *resolve* the error. - /// If a localized user-facing error message is needed, put the localized message in the error details or localize - /// it in the client. The optional error details may contain arbitrary information about the error. There is a - /// predefined set of error detail types in the package `google.rpc` that can be used for common error conditions. - /// - /// # Language mapping - /// - /// The `Status` message is the logical representation of the error model, but it is not necessarily the actual wire - /// format. When the `Status` message is exposed in different client libraries and different wire protocols, it can - /// be mapped differently. For example, it will likely be mapped to some exceptions in Java, but more likely mapped - /// to some error codes in C. - /// - /// # Other uses - /// - /// The error model and the `Status` message can be used in a variety of environments, either with or without APIs, - /// to provide a consistent developer experience across different environments. - /// - /// Example uses of this error model include: - /// - /// - Partial errors. If a service needs to return partial errors to the client, it may embed the `Status` in the - /// normal response to indicate the partial errors. - /// - /// - Workflow errors. A typical workflow has multiple steps. Each step may have a `Status` message for error - /// reporting. - /// - /// - Batch operations. If a client uses batch request and batch response, the `Status` message should be used - /// directly inside batch response, one for each error sub-response. - /// - /// - Asynchronous operations. If an API call embeds asynchronous operation results in its response, the status of - /// those operations should be represented directly using the `Status` message. - /// - /// - Logging. If some API errors are stored in logs, the message `Status` could be used directly after any - /// stripping needed for security/privacy reasons. - public class Status : Google.Apis.Requests.IDirectResponseSchema - { - /// The status code, which should be an enum value of google.rpc.Code. - [Newtonsoft.Json.JsonPropertyAttribute("code")] - public virtual System.Nullable Code { get; set; } - - /// A list of messages that carry the error details. There is a common set of message types for APIs - /// to use. - [Newtonsoft.Json.JsonPropertyAttribute("details")] - public virtual System.Collections.Generic.IList> Details { get; set; } - - /// A developer-facing error message, which should be in English. Any user-facing error message should - /// be localized and sent in the google.rpc.Status.details field, or localized by the client. - [Newtonsoft.Json.JsonPropertyAttribute("message")] - public virtual string Message { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// An enrichment containing text. - public class TextEnrichment : Google.Apis.Requests.IDirectResponseSchema - { - /// Text for this enrichment item. - [Newtonsoft.Json.JsonPropertyAttribute("text")] - public virtual string Text { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// Request to unshare a shared album in Google Photos. - public class UnshareAlbumRequest : Google.Apis.Requests.IDirectResponseSchema - { - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// Response of a successful unshare of a shared album. - public class UnshareAlbumResponse : Google.Apis.Requests.IDirectResponseSchema - { - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// Metadata that is specific to a video, for example, fps and processing status. Some of these fields may - /// be null or not included. - public class Video : Google.Apis.Requests.IDirectResponseSchema - { - /// Brand of the camera with which the video was taken. - [Newtonsoft.Json.JsonPropertyAttribute("cameraMake")] - public virtual string CameraMake { get; set; } - - /// Model of the camera with which the video was taken. - [Newtonsoft.Json.JsonPropertyAttribute("cameraModel")] - public virtual string CameraModel { get; set; } - - /// Frame rate of the video. - [Newtonsoft.Json.JsonPropertyAttribute("fps")] - public virtual System.Nullable Fps { get; set; } - - /// Processing status of the video. - [Newtonsoft.Json.JsonPropertyAttribute("status")] - public virtual string Status { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } -} - -namespace Google.Apis.PhotosLibrary.v1 -{ - /// The PhotosLibrary Service. - public class PhotosLibraryService : Google.Apis.Services.BaseClientService - { - /// The API version. - public const string Version = "v1"; - - /// The discovery version used to generate this service. - public static Google.Apis.Discovery.DiscoveryVersion DiscoveryVersionUsed = - Google.Apis.Discovery.DiscoveryVersion.Version_1_0; - - /// Constructs a new service. - public PhotosLibraryService() : - this(new Google.Apis.Services.BaseClientService.Initializer()) {} - - /// Constructs a new service. - /// The service initializer. - public PhotosLibraryService(Google.Apis.Services.BaseClientService.Initializer initializer) - : base(initializer) - { - albums = new AlbumsResource(this); - mediaItems = new MediaItemsResource(this); - sharedAlbums = new SharedAlbumsResource(this); - } - - /// Gets the service supported features. - public override System.Collections.Generic.IList Features - { - get { return new string[0]; } - } - - /// Gets the service name. - public override string Name - { - get { return "photoslibrary"; } - } - - /// Gets the service base URI. - public override string BaseUri - { - get { return "https://photoslibrary.googleapis.com/"; } - } - - /// Gets the service base path. - public override string BasePath - { - get { return ""; } - } - - /// Available OAuth 2.0 scopes for use with the Photos Library API. - public class Scope - { - /// View and manage your Google Photos library - public static string Photoslibrary = "https://www.googleapis.com/auth/photoslibrary"; - - /// Add to your Google Photos library - public static string PhotoslibraryAppendonly = "https://www.googleapis.com/auth/photoslibrary.appendonly"; - - /// View your Google Photos library - public static string PhotoslibraryReadonly = "https://www.googleapis.com/auth/photoslibrary.readonly"; - - /// Manage photos added by this app - public static string PhotoslibraryReadonlyAppcreateddata = "https://www.googleapis.com/auth/photoslibrary.readonly.appcreateddata"; - - /// Manage and add to shared albums on your behalf - public static string PhotoslibrarySharing = "https://www.googleapis.com/auth/photoslibrary.sharing"; - - } - - - - private readonly AlbumsResource albums; - - /// Gets the Albums resource. - public virtual AlbumsResource Albums - { - get { return albums; } - } - - private readonly MediaItemsResource mediaItems; - - /// Gets the MediaItems resource. - public virtual MediaItemsResource MediaItems - { - get { return mediaItems; } - } - - private readonly SharedAlbumsResource sharedAlbums; - - /// Gets the SharedAlbums resource. - public virtual SharedAlbumsResource SharedAlbums - { - get { return sharedAlbums; } - } - } - - ///A base abstract class for PhotosLibrary requests. - public abstract class PhotosLibraryBaseServiceRequest : Google.Apis.Requests.ClientServiceRequest - { - ///Constructs a new PhotosLibraryBaseServiceRequest instance. - protected PhotosLibraryBaseServiceRequest(Google.Apis.Services.IClientService service) - : base(service) - { - } - - /// V1 error format. - [Google.Apis.Util.RequestParameterAttribute("$.xgafv", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable Xgafv { get; set; } - - /// V1 error format. - public enum XgafvEnum - { - /// v1 error format - [Google.Apis.Util.StringValueAttribute("1")] - Value1, - /// v2 error format - [Google.Apis.Util.StringValueAttribute("2")] - Value2, - } - - /// OAuth access token. - [Google.Apis.Util.RequestParameterAttribute("access_token", Google.Apis.Util.RequestParameterType.Query)] - public virtual string AccessToken { get; set; } - - /// Data format for response. - /// [default: json] - [Google.Apis.Util.RequestParameterAttribute("alt", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable Alt { get; set; } - - /// Data format for response. - public enum AltEnum - { - /// Responses with Content-Type of application/json - [Google.Apis.Util.StringValueAttribute("json")] - Json, - /// Media download with context-dependent Content-Type - [Google.Apis.Util.StringValueAttribute("media")] - Media, - /// Responses with Content-Type of application/x-protobuf - [Google.Apis.Util.StringValueAttribute("proto")] - Proto, - } - - /// JSONP - [Google.Apis.Util.RequestParameterAttribute("callback", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Callback { get; set; } - - /// Selector specifying which fields to include in a partial response. - [Google.Apis.Util.RequestParameterAttribute("fields", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Fields { get; set; } - - /// API key. Your API key identifies your project and provides you with API access, quota, and reports. - /// Required unless you provide an OAuth 2.0 token. - [Google.Apis.Util.RequestParameterAttribute("key", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Key { get; set; } - - /// OAuth 2.0 token for the current user. - [Google.Apis.Util.RequestParameterAttribute("oauth_token", Google.Apis.Util.RequestParameterType.Query)] - public virtual string OauthToken { get; set; } - - /// Returns response with indentations and line breaks. - /// [default: true] - [Google.Apis.Util.RequestParameterAttribute("prettyPrint", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PrettyPrint { get; set; } - - /// 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. - [Google.Apis.Util.RequestParameterAttribute("quotaUser", Google.Apis.Util.RequestParameterType.Query)] - public virtual string QuotaUser { get; set; } - - /// Legacy upload protocol for media (e.g. "media", "multipart"). - [Google.Apis.Util.RequestParameterAttribute("uploadType", Google.Apis.Util.RequestParameterType.Query)] - public virtual string UploadType { get; set; } - - /// Upload protocol for media (e.g. "raw", "multipart"). - [Google.Apis.Util.RequestParameterAttribute("upload_protocol", Google.Apis.Util.RequestParameterType.Query)] - public virtual string UploadProtocol { get; set; } - - /// Initializes PhotosLibrary parameter list. - protected override void InitParameters() - { - base.InitParameters(); - - RequestParameters.Add( - "$.xgafv", new Google.Apis.Discovery.Parameter - { - Name = "$.xgafv", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add( - "access_token", new Google.Apis.Discovery.Parameter - { - Name = "access_token", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add( - "alt", new Google.Apis.Discovery.Parameter - { - Name = "alt", - IsRequired = false, - ParameterType = "query", - DefaultValue = "json", - Pattern = null, - }); - RequestParameters.Add( - "callback", new Google.Apis.Discovery.Parameter - { - Name = "callback", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add( - "fields", new Google.Apis.Discovery.Parameter - { - Name = "fields", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add( - "key", new Google.Apis.Discovery.Parameter - { - Name = "key", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add( - "oauth_token", new Google.Apis.Discovery.Parameter - { - Name = "oauth_token", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add( - "prettyPrint", new Google.Apis.Discovery.Parameter - { - Name = "prettyPrint", - IsRequired = false, - ParameterType = "query", - DefaultValue = "true", - Pattern = null, - }); - RequestParameters.Add( - "quotaUser", new Google.Apis.Discovery.Parameter - { - Name = "quotaUser", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add( - "uploadType", new Google.Apis.Discovery.Parameter - { - Name = "uploadType", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add( - "upload_protocol", new Google.Apis.Discovery.Parameter - { - Name = "upload_protocol", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } - - /// The "albums" collection of methods. - public class AlbumsResource - { - private const string Resource = "albums"; - - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; - - /// Constructs a new resource. - public AlbumsResource(Google.Apis.Services.IClientService service) - { - this.service = service; - - } - - - /// Adds an enrichment at a specified position in a defined album. - /// The body of the request. - /// Identifier of the album where the enrichment is to be added. - public virtual AddEnrichmentRequest AddEnrichment(Google.Apis.PhotosLibrary.v1.Data.AddEnrichmentToAlbumRequest body, string albumId) - { - return new AddEnrichmentRequest(service, body, albumId); - } - - /// Adds an enrichment at a specified position in a defined album. - public class AddEnrichmentRequest : PhotosLibraryBaseServiceRequest - { - /// Constructs a new AddEnrichment request. - public AddEnrichmentRequest(Google.Apis.Services.IClientService service, Google.Apis.PhotosLibrary.v1.Data.AddEnrichmentToAlbumRequest body, string albumId) - : base(service) - { - AlbumId = albumId; - Body = body; - InitParameters(); - } - - - /// Identifier of the album where the enrichment is to be added. - [Google.Apis.Util.RequestParameterAttribute("albumId", Google.Apis.Util.RequestParameterType.Path)] - public virtual string AlbumId { get; private set; } - - - /// Gets or sets the body of this request. - Google.Apis.PhotosLibrary.v1.Data.AddEnrichmentToAlbumRequest Body { get; set; } - - ///Returns the body of the request. - protected override object GetBody() { return Body; } - - ///Gets the method name. - public override string MethodName - { - get { return "addEnrichment"; } - } - - ///Gets the HTTP method. - public override string HttpMethod - { - get { return "POST"; } - } - - ///Gets the REST path. - public override string RestPath - { - get { return "v1/albums/{+albumId}:addEnrichment"; } - } - - /// Initializes AddEnrichment parameter list. - protected override void InitParameters() - { - base.InitParameters(); - - RequestParameters.Add( - "albumId", new Google.Apis.Discovery.Parameter - { - Name = "albumId", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^[^/]+$", - }); - } - - } - - /// Creates an album in a user's Google Photos library. - /// The body of the request. - public virtual CreateRequest Create(Google.Apis.PhotosLibrary.v1.Data.CreateAlbumRequest body) - { - return new CreateRequest(service, body); - } - - /// Creates an album in a user's Google Photos library. - public class CreateRequest : PhotosLibraryBaseServiceRequest - { - /// Constructs a new Create request. - public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.PhotosLibrary.v1.Data.CreateAlbumRequest body) - : base(service) - { - Body = body; - InitParameters(); - } - - - - /// Gets or sets the body of this request. - Google.Apis.PhotosLibrary.v1.Data.CreateAlbumRequest Body { get; set; } - - ///Returns the body of the request. - protected override object GetBody() { return Body; } - - ///Gets the method name. - public override string MethodName - { - get { return "create"; } - } - - ///Gets the HTTP method. - public override string HttpMethod - { - get { return "POST"; } - } - - ///Gets the REST path. - public override string RestPath - { - get { return "v1/albums"; } - } - - /// Initializes Create parameter list. - protected override void InitParameters() - { - base.InitParameters(); - - } - - } - - /// Returns the album based on the specified `albumId`. The `albumId` must be the ID of an album owned - /// by the user or a shared album that the user has joined. - /// Identifier of the album to be requested. - public virtual GetRequest Get(string albumId) - { - return new GetRequest(service, albumId); - } - - /// Returns the album based on the specified `albumId`. The `albumId` must be the ID of an album owned - /// by the user or a shared album that the user has joined. - public class GetRequest : PhotosLibraryBaseServiceRequest - { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string albumId) - : base(service) - { - AlbumId = albumId; - InitParameters(); - } - - - /// Identifier of the album to be requested. - [Google.Apis.Util.RequestParameterAttribute("albumId", Google.Apis.Util.RequestParameterType.Path)] - public virtual string AlbumId { get; private set; } - - - ///Gets the method name. - public override string MethodName - { - get { return "get"; } - } - - ///Gets the HTTP method. - public override string HttpMethod - { - get { return "GET"; } - } - - ///Gets the REST path. - public override string RestPath - { - get { return "v1/albums/{+albumId}"; } - } - - /// Initializes Get parameter list. - protected override void InitParameters() - { - base.InitParameters(); - - RequestParameters.Add( - "albumId", new Google.Apis.Discovery.Parameter - { - Name = "albumId", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^[^/]+$", - }); - } - - } - - /// Lists all albums shown to a user in the Albums tab of the Google Photos app. - public virtual ListRequest List() - { - return new ListRequest(service); - } - - /// Lists all albums shown to a user in the Albums tab of the Google Photos app. - public class ListRequest : PhotosLibraryBaseServiceRequest - { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service) - : base(service) - { - InitParameters(); - } - - - /// A continuation token to get the next page of the results. Adding this to the request returns - /// the rows after the `pageToken`. The `pageToken` should be the value returned in the `nextPageToken` - /// parameter in the response to the `listAlbums` request. - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } - - /// Maximum number of albums to return in the response. The default number of albums to return at a - /// time is 20. The maximum `pageSize` is 50. - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } - - /// If set, the results exclude media items that were not created by this app. Defaults to false - /// (all albums are returned). This field is ignored if the photoslibrary.readonly.appcreateddata scope is - /// used. - [Google.Apis.Util.RequestParameterAttribute("excludeNonAppCreatedData", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable ExcludeNonAppCreatedData { get; set; } - - - ///Gets the method name. - public override string MethodName - { - get { return "list"; } - } - - ///Gets the HTTP method. - public override string HttpMethod - { - get { return "GET"; } - } - - ///Gets the REST path. - public override string RestPath - { - get { return "v1/albums"; } - } - - /// Initializes List parameter list. - protected override void InitParameters() - { - base.InitParameters(); - - RequestParameters.Add( - "pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add( - "pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add( - "excludeNonAppCreatedData", new Google.Apis.Discovery.Parameter - { - Name = "excludeNonAppCreatedData", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - - } - - /// Marks an album as shared and accessible to other users. This action can only be performed on albums - /// which were created by the developer via the API. - /// The body of the request. - /// Identifier of the album to be shared. This `albumId` must belong to an album created by the - /// developer. - public virtual ShareRequest Share(Google.Apis.PhotosLibrary.v1.Data.ShareAlbumRequest body, string albumId) - { - return new ShareRequest(service, body, albumId); - } - - /// Marks an album as shared and accessible to other users. This action can only be performed on albums - /// which were created by the developer via the API. - public class ShareRequest : PhotosLibraryBaseServiceRequest - { - /// Constructs a new Share request. - public ShareRequest(Google.Apis.Services.IClientService service, Google.Apis.PhotosLibrary.v1.Data.ShareAlbumRequest body, string albumId) - : base(service) - { - AlbumId = albumId; - Body = body; - InitParameters(); - } - - - /// Identifier of the album to be shared. This `albumId` must belong to an album created by the - /// developer. - [Google.Apis.Util.RequestParameterAttribute("albumId", Google.Apis.Util.RequestParameterType.Path)] - public virtual string AlbumId { get; private set; } - - - /// Gets or sets the body of this request. - Google.Apis.PhotosLibrary.v1.Data.ShareAlbumRequest Body { get; set; } - - ///Returns the body of the request. - protected override object GetBody() { return Body; } - - ///Gets the method name. - public override string MethodName - { - get { return "share"; } - } - - ///Gets the HTTP method. - public override string HttpMethod - { - get { return "POST"; } - } - - ///Gets the REST path. - public override string RestPath - { - get { return "v1/albums/{+albumId}:share"; } - } - - /// Initializes Share parameter list. - protected override void InitParameters() - { - base.InitParameters(); - - RequestParameters.Add( - "albumId", new Google.Apis.Discovery.Parameter - { - Name = "albumId", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^[^/]+$", - }); - } - - } - - /// Marks a previously shared album as private. This means that the album is no longer shared and all - /// the non-owners will lose access to the album. All non-owner content will be removed from the album. If a - /// non-owner has previously added the album to their library, they will retain all photos in their library. - /// This action can only be performed on albums which were created by the developer via the API. - /// The body of the request. - /// Identifier of the album to be unshared. This album id must belong to an album created by the - /// developer. - public virtual UnshareRequest Unshare(Google.Apis.PhotosLibrary.v1.Data.UnshareAlbumRequest body, string albumId) - { - return new UnshareRequest(service, body, albumId); - } - - /// Marks a previously shared album as private. This means that the album is no longer shared and all - /// the non-owners will lose access to the album. All non-owner content will be removed from the album. If a - /// non-owner has previously added the album to their library, they will retain all photos in their library. - /// This action can only be performed on albums which were created by the developer via the API. - public class UnshareRequest : PhotosLibraryBaseServiceRequest - { - /// Constructs a new Unshare request. - public UnshareRequest(Google.Apis.Services.IClientService service, Google.Apis.PhotosLibrary.v1.Data.UnshareAlbumRequest body, string albumId) - : base(service) - { - AlbumId = albumId; - Body = body; - InitParameters(); - } - - - /// Identifier of the album to be unshared. This album id must belong to an album created by the - /// developer. - [Google.Apis.Util.RequestParameterAttribute("albumId", Google.Apis.Util.RequestParameterType.Path)] - public virtual string AlbumId { get; private set; } - - - /// Gets or sets the body of this request. - Google.Apis.PhotosLibrary.v1.Data.UnshareAlbumRequest Body { get; set; } - - ///Returns the body of the request. - protected override object GetBody() { return Body; } - - ///Gets the method name. - public override string MethodName - { - get { return "unshare"; } - } - - ///Gets the HTTP method. - public override string HttpMethod - { - get { return "POST"; } - } - - ///Gets the REST path. - public override string RestPath - { - get { return "v1/albums/{+albumId}:unshare"; } - } - - /// Initializes Unshare parameter list. - protected override void InitParameters() - { - base.InitParameters(); - - RequestParameters.Add( - "albumId", new Google.Apis.Discovery.Parameter - { - Name = "albumId", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^[^/]+$", - }); - } - - } - } - - /// The "mediaItems" collection of methods. - public class MediaItemsResource - { - private const string Resource = "mediaItems"; - - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; - - /// Constructs a new resource. - public MediaItemsResource(Google.Apis.Services.IClientService service) - { - this.service = service; - - } - - - /// Creates one or more media items in a user's Google Photos library. - /// - /// This is the second step for creating a media item. For details regarding Step 1, uploading the raw bytes to - /// a Google Server, see Uploading media. - /// - /// This call adds the media item to the library. If an album `id` is specified, the call adds the media item to - /// the album too. By default, the media item will be added to the end of the library or album. - /// - /// If an album `id` and position are both defined, the media item is added to the album at the specified - /// position. - /// - /// If the call contains multiple media items, they're added at the specified position. If you are creating a - /// media item in a shared album where you are not the owner, you are not allowed to position the media item. - /// Doing so will result in a `BAD REQUEST` error. - /// The body of the request. - public virtual BatchCreateRequest BatchCreate(Google.Apis.PhotosLibrary.v1.Data.BatchCreateMediaItemsRequest body) - { - return new BatchCreateRequest(service, body); - } - - /// Creates one or more media items in a user's Google Photos library. - /// - /// This is the second step for creating a media item. For details regarding Step 1, uploading the raw bytes to - /// a Google Server, see Uploading media. - /// - /// This call adds the media item to the library. If an album `id` is specified, the call adds the media item to - /// the album too. By default, the media item will be added to the end of the library or album. - /// - /// If an album `id` and position are both defined, the media item is added to the album at the specified - /// position. - /// - /// If the call contains multiple media items, they're added at the specified position. If you are creating a - /// media item in a shared album where you are not the owner, you are not allowed to position the media item. - /// Doing so will result in a `BAD REQUEST` error. - public class BatchCreateRequest : PhotosLibraryBaseServiceRequest - { - /// Constructs a new BatchCreate request. - public BatchCreateRequest(Google.Apis.Services.IClientService service, Google.Apis.PhotosLibrary.v1.Data.BatchCreateMediaItemsRequest body) - : base(service) - { - Body = body; - InitParameters(); - } - - - - /// Gets or sets the body of this request. - Google.Apis.PhotosLibrary.v1.Data.BatchCreateMediaItemsRequest Body { get; set; } - - ///Returns the body of the request. - protected override object GetBody() { return Body; } - - ///Gets the method name. - public override string MethodName - { - get { return "batchCreate"; } - } - - ///Gets the HTTP method. - public override string HttpMethod - { - get { return "POST"; } - } - - ///Gets the REST path. - public override string RestPath - { - get { return "v1/mediaItems:batchCreate"; } - } - - /// Initializes BatchCreate parameter list. - protected override void InitParameters() - { - base.InitParameters(); - - } - - } - - /// Returns the list of media items for the specified media item identifiers. Items are returned in the - /// same order as the supplied identifiers. - public virtual BatchGetRequest BatchGet() - { - return new BatchGetRequest(service); - } - - /// Returns the list of media items for the specified media item identifiers. Items are returned in the - /// same order as the supplied identifiers. - public class BatchGetRequest : PhotosLibraryBaseServiceRequest - { - /// Constructs a new BatchGet request. - public BatchGetRequest(Google.Apis.Services.IClientService service) - : base(service) - { - InitParameters(); - } - - - /// Identifiers of the media items to be requested. Must not contain repeated identifiers and - /// cannot be empty. The maximum number of media items that can be retrieved in one call is 50. - [Google.Apis.Util.RequestParameterAttribute("mediaItemIds", Google.Apis.Util.RequestParameterType.Query)] - public virtual Google.Apis.Util.Repeatable MediaItemIds { get; set; } - - - ///Gets the method name. - public override string MethodName - { - get { return "batchGet"; } - } - - ///Gets the HTTP method. - public override string HttpMethod - { - get { return "GET"; } - } - - ///Gets the REST path. - public override string RestPath - { - get { return "v1/mediaItems:batchGet"; } - } - - /// Initializes BatchGet parameter list. - protected override void InitParameters() - { - base.InitParameters(); - - RequestParameters.Add( - "mediaItemIds", new Google.Apis.Discovery.Parameter - { - Name = "mediaItemIds", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - - } - - /// Returns the media item for the specified media item identifier. - /// Identifier of the media item to be requested. - public virtual GetRequest Get(string mediaItemId) - { - return new GetRequest(service, mediaItemId); - } - - /// Returns the media item for the specified media item identifier. - public class GetRequest : PhotosLibraryBaseServiceRequest - { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string mediaItemId) - : base(service) - { - MediaItemId = mediaItemId; - InitParameters(); - } - - - /// Identifier of the media item to be requested. - [Google.Apis.Util.RequestParameterAttribute("mediaItemId", Google.Apis.Util.RequestParameterType.Path)] - public virtual string MediaItemId { get; private set; } - - - ///Gets the method name. - public override string MethodName - { - get { return "get"; } - } - - ///Gets the HTTP method. - public override string HttpMethod - { - get { return "GET"; } - } - - ///Gets the REST path. - public override string RestPath - { - get { return "v1/mediaItems/{+mediaItemId}"; } - } - - /// Initializes Get parameter list. - protected override void InitParameters() - { - base.InitParameters(); - - RequestParameters.Add( - "mediaItemId", new Google.Apis.Discovery.Parameter - { - Name = "mediaItemId", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^[^/]+$", - }); - } - - } - - /// List all media items from a user's Google Photos library. - public virtual ListRequest List() - { - return new ListRequest(service); - } - - /// List all media items from a user's Google Photos library. - public class ListRequest : PhotosLibraryBaseServiceRequest - { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service) - : base(service) - { - InitParameters(); - } - - - /// A continuation token to get the next page of the results. Adding this to the request returns - /// the rows after the `pageToken`. The `pageToken` should be the value returned in the `nextPageToken` - /// parameter in the response to the `listMediaItems` request. - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } - - /// Maximum number of media items to return in the response. The default number of media items to - /// return at a time is 25. The maximum `pageSize` is 100. - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } - - - ///Gets the method name. - public override string MethodName - { - get { return "list"; } - } - - ///Gets the HTTP method. - public override string HttpMethod - { - get { return "GET"; } - } - - ///Gets the REST path. - public override string RestPath - { - get { return "v1/mediaItems"; } - } - - /// Initializes List parameter list. - protected override void InitParameters() - { - base.InitParameters(); - - RequestParameters.Add( - "pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add( - "pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - - } - - /// Searches for media items in a user's Google Photos library. If no filters are set, then all media - /// items in the user's library are returned. If an album is set, all media items in the specified album are - /// returned. If filters are specified, media items that match the filters from the user's library are listed. - /// If you set both the album and the filters, the request results in an error. - /// The body of the request. - public virtual SearchRequest Search(Google.Apis.PhotosLibrary.v1.Data.SearchMediaItemsRequest body) - { - return new SearchRequest(service, body); - } - - /// Searches for media items in a user's Google Photos library. If no filters are set, then all media - /// items in the user's library are returned. If an album is set, all media items in the specified album are - /// returned. If filters are specified, media items that match the filters from the user's library are listed. - /// If you set both the album and the filters, the request results in an error. - public class SearchRequest : PhotosLibraryBaseServiceRequest - { - /// Constructs a new Search request. - public SearchRequest(Google.Apis.Services.IClientService service, Google.Apis.PhotosLibrary.v1.Data.SearchMediaItemsRequest body) - : base(service) - { - Body = body; - InitParameters(); - } - - - - /// Gets or sets the body of this request. - Google.Apis.PhotosLibrary.v1.Data.SearchMediaItemsRequest Body { get; set; } - - ///Returns the body of the request. - protected override object GetBody() { return Body; } - - ///Gets the method name. - public override string MethodName - { - get { return "search"; } - } - - ///Gets the HTTP method. - public override string HttpMethod - { - get { return "POST"; } - } - - ///Gets the REST path. - public override string RestPath - { - get { return "v1/mediaItems:search"; } - } - - /// Initializes Search parameter list. - protected override void InitParameters() - { - base.InitParameters(); - - } - - } - } - - /// The "sharedAlbums" collection of methods. - public class SharedAlbumsResource - { - private const string Resource = "sharedAlbums"; - - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; - - /// Constructs a new resource. - public SharedAlbumsResource(Google.Apis.Services.IClientService service) - { - this.service = service; - - } - - - /// Returns the album based on the specified `shareToken`. - /// Share token of the album to be requested. - public virtual GetRequest Get(string shareToken) - { - return new GetRequest(service, shareToken); - } - - /// Returns the album based on the specified `shareToken`. - public class GetRequest : PhotosLibraryBaseServiceRequest - { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string shareToken) - : base(service) - { - ShareToken = shareToken; - InitParameters(); - } - - - /// Share token of the album to be requested. - [Google.Apis.Util.RequestParameterAttribute("shareToken", Google.Apis.Util.RequestParameterType.Path)] - public virtual string ShareToken { get; private set; } - - - ///Gets the method name. - public override string MethodName - { - get { return "get"; } - } - - ///Gets the HTTP method. - public override string HttpMethod - { - get { return "GET"; } - } - - ///Gets the REST path. - public override string RestPath - { - get { return "v1/sharedAlbums/{+shareToken}"; } - } - - /// Initializes Get parameter list. - protected override void InitParameters() - { - base.InitParameters(); - - RequestParameters.Add( - "shareToken", new Google.Apis.Discovery.Parameter - { - Name = "shareToken", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^[^/]+$", - }); - } - - } - - /// Joins a shared album on behalf of the Google Photos user. - /// The body of the request. - public virtual JoinRequest Join(Google.Apis.PhotosLibrary.v1.Data.JoinSharedAlbumRequest body) - { - return new JoinRequest(service, body); - } - - /// Joins a shared album on behalf of the Google Photos user. - public class JoinRequest : PhotosLibraryBaseServiceRequest - { - /// Constructs a new Join request. - public JoinRequest(Google.Apis.Services.IClientService service, Google.Apis.PhotosLibrary.v1.Data.JoinSharedAlbumRequest body) - : base(service) - { - Body = body; - InitParameters(); - } - - - - /// Gets or sets the body of this request. - Google.Apis.PhotosLibrary.v1.Data.JoinSharedAlbumRequest Body { get; set; } - - ///Returns the body of the request. - protected override object GetBody() { return Body; } - - ///Gets the method name. - public override string MethodName - { - get { return "join"; } - } - - ///Gets the HTTP method. - public override string HttpMethod - { - get { return "POST"; } - } - - ///Gets the REST path. - public override string RestPath - { - get { return "v1/sharedAlbums:join"; } - } - - /// Initializes Join parameter list. - protected override void InitParameters() - { - base.InitParameters(); - - } - - } - - /// Leaves a previously-joined shared album on behalf of the Google Photos user. The user must not own - /// this album. - /// The body of the request. - public virtual LeaveRequest Leave(Google.Apis.PhotosLibrary.v1.Data.LeaveSharedAlbumRequest body) - { - return new LeaveRequest(service, body); - } - - /// Leaves a previously-joined shared album on behalf of the Google Photos user. The user must not own - /// this album. - public class LeaveRequest : PhotosLibraryBaseServiceRequest - { - /// Constructs a new Leave request. - public LeaveRequest(Google.Apis.Services.IClientService service, Google.Apis.PhotosLibrary.v1.Data.LeaveSharedAlbumRequest body) - : base(service) - { - Body = body; - InitParameters(); - } - - - - /// Gets or sets the body of this request. - Google.Apis.PhotosLibrary.v1.Data.LeaveSharedAlbumRequest Body { get; set; } - - ///Returns the body of the request. - protected override object GetBody() { return Body; } - - ///Gets the method name. - public override string MethodName - { - get { return "leave"; } - } - - ///Gets the HTTP method. - public override string HttpMethod - { - get { return "POST"; } - } - - ///Gets the REST path. - public override string RestPath - { - get { return "v1/sharedAlbums:leave"; } - } - - /// Initializes Leave parameter list. - protected override void InitParameters() - { - base.InitParameters(); - - } - - } - - /// Lists all shared albums available in the Sharing tab of the user's Google Photos app. - public virtual ListRequest List() - { - return new ListRequest(service); - } - - /// Lists all shared albums available in the Sharing tab of the user's Google Photos app. - public class ListRequest : PhotosLibraryBaseServiceRequest - { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service) - : base(service) - { - InitParameters(); - } - - - /// Maximum number of albums to return in the response. The default number of albums to return at a - /// time is 20. The maximum `pageSize` is 50. - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } - - /// If set, the results exclude media items that were not created by this app. Defaults to false - /// (all albums are returned). This field is ignored if the photoslibrary.readonly.appcreateddata scope is - /// used. - [Google.Apis.Util.RequestParameterAttribute("excludeNonAppCreatedData", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable ExcludeNonAppCreatedData { get; set; } - - /// A continuation token to get the next page of the results. Adding this to the request returns - /// the rows after the `pageToken`. The `pageToken` should be the value returned in the `nextPageToken` - /// parameter in the response to the `listSharedAlbums` request. - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } - - - ///Gets the method name. - public override string MethodName - { - get { return "list"; } - } - - ///Gets the HTTP method. - public override string HttpMethod - { - get { return "GET"; } - } - - ///Gets the REST path. - public override string RestPath - { - get { return "v1/sharedAlbums"; } - } - - /// Initializes List parameter list. - protected override void InitParameters() - { - base.InitParameters(); - - RequestParameters.Add( - "pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add( - "excludeNonAppCreatedData", new Google.Apis.Discovery.Parameter - { - Name = "excludeNonAppCreatedData", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add( - "pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - - } - } -} diff --git a/src/managed/Google.Apis.PhotosLibrary.v1/Google.Apis.PhotosLibrary.v1.csproj b/src/managed/Google.Apis.PhotosLibrary.v1/Google.Apis.PhotosLibrary.v1.csproj deleted file mode 100644 index b291466b..00000000 --- a/src/managed/Google.Apis.PhotosLibrary.v1/Google.Apis.PhotosLibrary.v1.csproj +++ /dev/null @@ -1,108 +0,0 @@ - - - - - 10.0 - Debug - AnyCPU - {6745AAF1-A1B5-4C28-8B33-195FA88BCDAF} - Library - Properties - Google.Apis.PhotosLibrary.v1 - Google.Apis.PhotosLibrary.v1 - v4.0 - Profile328 - 512 - {786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - true - Google.Apis.PhotosLibrary.v1.xml - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - pdbonly - true - bin\ReleaseSigned\ - TRACE - prompt - 4 - True - c:\code\google.apis.snk - - - - - - - - ..\packages\Google.Apis.Core.1.10.0\lib\portable-net40+sl50+win+wpa81+wp80\Google.Apis.Core.dll - - - ..\packages\Google.Apis.1.10.0\lib\portable-net40+sl50+win+wpa81+wp80\Google.Apis.dll - - - ..\packages\Microsoft.Bcl.Async.1.0.168\lib\portable-net40+sl4+win8+wp71+wpa81\Microsoft.Threading.Tasks.dll - - - ..\packages\Microsoft.Bcl.Async.1.0.168\lib\portable-net40+sl4+win8+wp71+wpa81\Microsoft.Threading.Tasks.Extensions.dll - - - ..\packages\Newtonsoft.Json.7.0.1\lib\portable-net40+sl5+wp80+win8+wpa81\Newtonsoft.Json.dll - - - ..\packages\Microsoft.Bcl.1.1.10\lib\portable-net40+sl5+win8+wp8+wpa81\System.IO.dll - - - ..\packages\Microsoft.Net.Http.2.2.29\lib\portable-net40+sl4+win8+wp71+wpa81\System.Net.Http.dll - - - ..\packages\Microsoft.Net.Http.2.2.29\lib\portable-net40+sl4+win8+wp71+wpa81\System.Net.Http.Extensions.dll - - - ..\packages\Microsoft.Net.Http.2.2.29\lib\portable-net40+sl4+win8+wp71+wpa81\System.Net.Http.Primitives.dll - - - ..\packages\Microsoft.Bcl.1.1.10\lib\portable-net40+sl5+win8+wp8+wpa81\System.Runtime.dll - - - ..\packages\Microsoft.Bcl.1.1.10\lib\portable-net40+sl5+win8+wp8+wpa81\System.Threading.Tasks.dll - - - ..\packages\Zlib.Portable.Signed.1.11.0\lib\portable-net4+sl5+wp8+win8+wpa81+MonoTouch+MonoAndroid\Zlib.Portable.dll - - - - - - - - - - - This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - - - - - diff --git a/src/managed/Google.Apis.PhotosLibrary.v1/Google.Apis.PhotosLibrary.v1.xml b/src/managed/Google.Apis.PhotosLibrary.v1/Google.Apis.PhotosLibrary.v1.xml deleted file mode 100644 index aae5211c..00000000 --- a/src/managed/Google.Apis.PhotosLibrary.v1/Google.Apis.PhotosLibrary.v1.xml +++ /dev/null @@ -1,1365 +0,0 @@ - - - - Google.Apis.PhotosLibrary.v1 - - - - Request to add an enrichment to a specific album at a specific position. - - - The position in the album where the enrichment is to be inserted. - - - The enrichment to be added. - - - The ETag of the item. - - - The enrichment item that's created. - - - [Output only] Enrichment which was added. - - - The ETag of the item. - - - Representation of an album in Google Photos. Albums are containers for media items. If an album has - been shared by the application, it contains an extra `shareInfo` property. - - - [Output only] A URL to the cover photo's bytes. This shouldn't be used as is. Parameters should be - appended to this URL before use. For example, `'=w2048-h1024'` sets the dimensions of the cover photo to - have a width of 2048 px and height of 1024 px. - - - [Output only] Identifier for the media item associated with the cover photo. - - - [Ouput only] Identifier for the album. This is a persistent identifier that can be used between - sessions to identify this album. - - - [Output only] True if you can create media items in this album. This field is based on the scopes - granted and permissions of the album. If the scopes are changed or permissions of the album are changed, - this field is updated. - - - [Output only] The number of media items in the album. - - - [Output only] Google Photos URL for the album. The user needs to be signed in to their Google - Photos account to access this link. - - - [Output only] Information related to shared albums. This field is only populated if the album is a - shared album, the developer created the album and the user has granted the `photoslibrary.sharing` - scope. - - - Name of the album displayed to the user in their Google Photos account. This string shouldn't be - more than 500 characters. - - - The ETag of the item. - - - Specifies a position in an album. - - - Type of position, for a media or enrichment item. - - - The enrichment item to which the position is relative to. Only used when position type is - AFTER_ENRICHMENT_ITEM. - - - The media item to which the position is relative to. Only used when position type is - AFTER_MEDIA_ITEM. - - - The ETag of the item. - - - Request to create one or more media items in a user's Google Photos library. If an `albumid` is - specified, the media items are also added to that album. `albumPosition` is optional and can only be specified - if an `albumId` is set. - - - Identifier of the album where the media items are added. The media items are also added to the - user's library. This is an optional field. - - - Position in the album where the media items are added. If not specified, the media items are added - to the end of the album (as per the default value, that is, `LAST_IN_ALBUM`). The request fails if this - field is set and the `albumId` is not specified. The request will also fail if you set the field and are not - the owner of the shared album. - - - List of media items to be created. - - - The ETag of the item. - - - List of media items created. - - - [Output only] List of media items created. - - - The ETag of the item. - - - Response to retrieve a list of media items. - - - [Output only] List of media items retrieved. Note that even if the call to BatchGetMediaItems - succeeds, there may have been failures for some media items in the batch. These failures are indicated in - each MediaItemResult.status. - - - The ETag of the item. - - - This filter allows you to return media items based on the content type. - - It's possible to specify a list of categories to include, and/or a list of categories to exclude. Within each - list, the categories are combined with an OR. The content filter `includedContentCategories`: [c1, c2, c3] would - get media items that contain (c1 OR c2 OR c3). The content filter `excludedContentCategories`: [c1, c2, c3] - would NOT get media items that contain (c1 OR c2 OR c3). You can also include some categories while excluding - others, as in this example: `includedContentCategories`: [c1, c2], `excludedContentCategories`: [c3, c4] The - previous example would get media items that contain (c1 OR c2) AND NOT (c3 OR c4). A category that appears in - `includedContentategories` must not appear in `excludedContentCategories`. - - - The set of categories which are not to be included in the media item search results. The items in - the set are ORed. There's a maximum of 10 `excludedContentCategories` per request. - - - The set of categories to be included in the media item search results. The items in the set are - ORed. There's a maximum of 10 `includedContentCategories` per request. - - - The ETag of the item. - - - Information about the user who added the media item. Note that this information is included only if the - media item is within a shared album created by your app and you have the sharing scope. - - - Display name of the contributor. - - - URL to the profile picture of the contributor. - - - The ETag of the item. - - - Request to create an album in Google Photos. - - - The album to be created. - - - The ETag of the item. - - - Represents a whole calendar date. The day may be 0 to represent a year and month where the day isn't - significant, such as a whole calendar month. The month may be 0 to represent a a day and a year where the month - isn't signficant, like when you want to specify the same day in every month of a year or a specific year. The - year may be 0 to represent a month and day independent of year, like an anniversary date. - - - Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if specifying a - year/month where the day isn't significant. - - - Month of year. Must be from 1 to 12, or 0 if specifying a year without a month and day. - - - Year of date. Must be from 1 to 9999, or 0 if specifying a date without a year. - - - The ETag of the item. - - - This filter defines the allowed dates or date ranges for the media returned. It's possible to pick a - set of specific dates and a set of date ranges. - - - List of dates that match the media items' creation date. A maximum of 5 dates can be included per - request. - - - List of dates ranges that match the media items' creation date. A maximum of 5 dates ranges can be - included per request. - - - The ETag of the item. - - - Defines a range of dates. Both dates must be of the same format. For more information, see - Date - - - The end date (included as part of the range). It must be specified in the same format as the start - date. - - - The start date (included as part of the range) in one of the formats described. - - - The ETag of the item. - - - An enrichment item. - - - Identifier of the enrichment item. - - - The ETag of the item. - - - Filters that can be applied to a media item search. If multiple filter options are specified, they're - treated as AND with each other. - - - Filters the media items based on their content. - - - Filters the media items based on their creation date. - - - If set, the results exclude media items that were not created by this app. Defaults to false (all - media items are returned). This field is ignored if the photoslibrary.readonly.appcreateddata scope is - used. - - - If set, the results include media items that the user has archived. Defaults to false (archived - media items aren't included). - - - Filters the media items based on the type of media. - - - The ETag of the item. - - - Request to join a shared album on behalf of the user. This uses a shareToken which can be acquired via - the shareAlbum or listSharedAlbums calls. - - - Token to join the shared album on behalf of the user. - - - The ETag of the item. - - - Response to successfully joining the shared album on behalf of the user. - - - Shared album that the user has joined. - - - The ETag of the item. - - - An object representing a latitude/longitude pair. This is expressed as a pair of doubles representing - degrees latitude and degrees longitude. Unless specified otherwise, this must conform to the WGS84 standard. - Values must be within normalized ranges. - - - The latitude in degrees. It must be in the range [-90.0, +90.0]. - - - The longitude in degrees. It must be in the range [-180.0, +180.0]. - - - The ETag of the item. - - - Request to leave a shared album on behalf of the user. This uses a shareToken which can be acquired via - the or listSharedAlbums or getAlbum calls. - - - Token to leave the shared album on behalf of the user. - - - The ETag of the item. - - - Response to successfully leaving the shared album on behalf of the user. - - - The ETag of the item. - - - List of albums requested. - - - [Output only] List of albums shown in the Albums tab of the user's Google Photos app. - - - [Output only] Token to use to get the next set of albums. Populated if there are more albums to - retrieve for this request. - - - The ETag of the item. - - - List of all media items from the user's Google Photos library. - - - [Output only] List of media items in the user's library. - - - [Output only] Token to use to get the next set of media items. Its presence is the only reliable - indicator of more media items being available in the next request. - - - The ETag of the item. - - - List of shared albums requested. - - - [Output only] Token to use to get the next set of shared albums. Populated if there are more shared - albums to retrieve for this request. - - - [Output only] List of shared albums. - - - The ETag of the item. - - - Represents a physical location. - - - Position of the location on the map. - - - Name of the location to be displayed. - - - The ETag of the item. - - - An enrichment containing a single location. - - - Location for this enrichment item. - - - The ETag of the item. - - - An enrichment containing a map, showing origin and destination locations. - - - Destination location for this enrichemt item. - - - Origin location for this enrichment item. - - - The ETag of the item. - - - Representation of a media item (such as a photo or video) in Google Photos. - - - A URL to the media item's bytes. This shouldn't be used directly to access the media item. For - example, `'=w2048-h1024'` will set the dimensions of a media item of type photo to have a width of 2048 px - and height of 1024 px. - - - Information about the user who created this media item. - - - Description of the media item. This is shown to the user in the item's info section in the Google - Photos app. - - - Filename of the media item. This is shown to the user in the item's info section in the Google - Photos app. - - - Identifier for the media item. This is a persistent identifier that can be used between sessions to - identify this media item. - - - Metadata related to the media item, such as, height, width, or creation time. - - - MIME type of the media item. For example, `image/jpeg`. - - - Google Photos URL for the media item. This link is available to the user only if they're signed - in. - - - The ETag of the item. - - - Result of retrieving a media item. - - - Media item retrieved from the user's library. It's populated if no errors occurred and the media - item was fetched successfully. - - - If an error occurred while accessing this media item, this field is populated with information - related to the error. For details regarding this field, see Status. - - - The ETag of the item. - - - Metadata for a media item. - - - Time when the media item was first created (not when it was uploaded to Google Photos). - - - Original height (in pixels) of the media item. - - - Metadata for a photo media type. - - - Metadata for a video media type. - - - Original width (in pixels) of the media item. - - - The ETag of the item. - - - This filter defines the type of media items to be returned, for example, videos or photos. All the - specified media types are treated as an OR when used together. - - - The types of media items to be included. This field should be populated with only one media type. - If you specify multiple media types, it results in an error. - - - The ETag of the item. - - - A new enrichment item to be added to an album, used by the `albums.addEnrichment` call. - - - Location to be added to the album. - - - Map to be added to the album. - - - Text to be added to the album. - - - The ETag of the item. - - - New media item that's created in a user's Google Photos account. - - - Description of the media item. This will be shown to the user in the item's info section in the - Google Photos app. This string shouldn't be more than 1000 characters. - - - A new media item that has been uploaded via the included `uploadToken`. - - - The ETag of the item. - - - Result of creating a new media item. - - - Media item created with the upload token. It's populated if no errors occurred and the media item - was created successfully. - - - If an error occurred during the creation of this media item, this field is populated with - information related to the error. For details regarding this field, see Status. - - - The upload token used to create this new media item. - - - The ETag of the item. - - - Metadata that is specific to a photo, such as, ISO, focal length and exposure time. Some of these - fields may be null or not included. - - - Aperture f number of the camera lens with which the photo was taken. - - - Brand of the camera with which the photo was taken. - - - Model of the camera with which the photo was taken. - - - Exposure time of the camera aperture when the photo was taken. - - - Focal length of the camera lens with which the photo was taken. - - - ISO of the camera with which the photo was taken. - - - The ETag of the item. - - - Request to search for media items in a user's library. - - If the album id is specified, this call will return the list of media items in the album. If neither filters nor - album id are specified, this call will return all media items in a user's Google Photos library. - - If filters are specified, this call will return all media items in the user's library that fulfill the filter - criteria. - - Filters and album id must not both be set, as this will result in an invalid request. - - - Identifier of an album. If populated, lists all media items in specified album. Can't set in - conjunction with any filters. - - - Filters to apply to the request. Can't be set in conjunction with an `albumId`. - - - Maximum number of media items to return in the response. The default number of media items to - return at a time is 25. The maximum `pageSize` is 100. - - - A continuation token to get the next page of the results. Adding this to the request returns the - rows after the `pageToken`. The `pageToken` should be the value returned in the `nextPageToken` parameter in - the response to the `searchMediaItems` request. - - - The ETag of the item. - - - List of media items that match the search parameters. - - - [Output only] List of media items that match the search parameters. - - - [Output only] Use this token to get the next set of media items. Its presence is the only reliable - indicator of more media items being available in the next request. - - - The ETag of the item. - - - Request to make an album shared in Google Photos. - - - Options to be set when converting the album to a shared album. - - - The ETag of the item. - - - Response to successfully sharing an album. - - - [Output only] Information about the shared album. - - - The ETag of the item. - - - Information about albums that are shared. This information is only included if you created the album, - it is shared and you have the sharing scope. - - - True if the user has joined the album. This is always true for the owner of the shared - album. - - - A token that can be used by other users to join this shared album via the API. - - - A link to the album that's now shared on the Google Photos website and app. Anyone with the link - can access this shared album and see all of the items present in the album. - - - Options that control the sharing of an album. - - - The ETag of the item. - - - Options that control the sharing of an album. - - - True if the shared album allows collaborators (users who have joined the album) to add media items - to it. Defaults to false. - - - True if the shared album allows the owner and the collaborators (users who have joined the album) - to add comments to the album. Defaults to false. - - - The ETag of the item. - - - A simple media item to be created in Google Photos via an upload token. - - - Token identifying the media bytes that have been uploaded to Google. - - - The ETag of the item. - - - The `Status` type defines a logical error model that is suitable for different programming - environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). The error model - is designed to be: - - - Simple to use and understand for most users - Flexible enough to meet unexpected needs - - # Overview - - The `Status` message contains three pieces of data: error code, error message, and error details. The error code - should be an enum value of google.rpc.Code, but it may accept additional error codes if needed. The error - message should be a developer-facing English message that helps developers *understand* and *resolve* the error. - If a localized user-facing error message is needed, put the localized message in the error details or localize - it in the client. The optional error details may contain arbitrary information about the error. There is a - predefined set of error detail types in the package `google.rpc` that can be used for common error conditions. - - # Language mapping - - The `Status` message is the logical representation of the error model, but it is not necessarily the actual wire - format. When the `Status` message is exposed in different client libraries and different wire protocols, it can - be mapped differently. For example, it will likely be mapped to some exceptions in Java, but more likely mapped - to some error codes in C. - - # Other uses - - The error model and the `Status` message can be used in a variety of environments, either with or without APIs, - to provide a consistent developer experience across different environments. - - Example uses of this error model include: - - - Partial errors. If a service needs to return partial errors to the client, it may embed the `Status` in the - normal response to indicate the partial errors. - - - Workflow errors. A typical workflow has multiple steps. Each step may have a `Status` message for error - reporting. - - - Batch operations. If a client uses batch request and batch response, the `Status` message should be used - directly inside batch response, one for each error sub-response. - - - Asynchronous operations. If an API call embeds asynchronous operation results in its response, the status of - those operations should be represented directly using the `Status` message. - - - Logging. If some API errors are stored in logs, the message `Status` could be used directly after any - stripping needed for security/privacy reasons. - - - The status code, which should be an enum value of google.rpc.Code. - - - A list of messages that carry the error details. There is a common set of message types for APIs - to use. - - - A developer-facing error message, which should be in English. Any user-facing error message should - be localized and sent in the google.rpc.Status.details field, or localized by the client. - - - The ETag of the item. - - - An enrichment containing text. - - - Text for this enrichment item. - - - The ETag of the item. - - - Request to unshare a shared album in Google Photos. - - - The ETag of the item. - - - Response of a successful unshare of a shared album. - - - The ETag of the item. - - - Metadata that is specific to a video, for example, fps and processing status. Some of these fields may - be null or not included. - - - Brand of the camera with which the video was taken. - - - Model of the camera with which the video was taken. - - - Frame rate of the video. - - - Processing status of the video. - - - The ETag of the item. - - - The PhotosLibrary Service. - - - The API version. - - - The discovery version used to generate this service. - - - Constructs a new service. - - - Constructs a new service. - The service initializer. - - - Gets the service supported features. - - - Gets the service name. - - - Gets the service base URI. - - - Gets the service base path. - - - Available OAuth 2.0 scopes for use with the Photos Library API. - - - View and manage your Google Photos library - - - Add to your Google Photos library - - - View your Google Photos library - - - Manage photos added by this app - - - Manage and add to shared albums on your behalf - - - Gets the Albums resource. - - - Gets the MediaItems resource. - - - Gets the SharedAlbums resource. - - - A base abstract class for PhotosLibrary requests. - - - Constructs a new PhotosLibraryBaseServiceRequest instance. - - - V1 error format. - - - V1 error format. - - - v1 error format - - - v2 error format - - - OAuth access token. - - - Data format for response. - [default: json] - - - Data format for response. - - - Responses with Content-Type of application/json - - - Media download with context-dependent Content-Type - - - Responses with Content-Type of application/x-protobuf - - - JSONP - - - Selector specifying which fields to include in a partial response. - - - API key. Your API key identifies your project and provides you with API access, quota, and reports. - Required unless you provide an OAuth 2.0 token. - - - OAuth 2.0 token for the current user. - - - Returns response with indentations and line breaks. - [default: true] - - - 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. - - - Legacy upload protocol for media (e.g. "media", "multipart"). - - - Upload protocol for media (e.g. "raw", "multipart"). - - - Initializes PhotosLibrary parameter list. - - - The "albums" collection of methods. - - - The service which this resource belongs to. - - - Constructs a new resource. - - - Adds an enrichment at a specified position in a defined album. - The body of the request. - Identifier of the album where the enrichment is to be added. - - - Adds an enrichment at a specified position in a defined album. - - - Constructs a new AddEnrichment request. - - - Identifier of the album where the enrichment is to be added. - - - Gets or sets the body of this request. - - - Returns the body of the request. - - - Gets the method name. - - - Gets the HTTP method. - - - Gets the REST path. - - - Initializes AddEnrichment parameter list. - - - Creates an album in a user's Google Photos library. - The body of the request. - - - Creates an album in a user's Google Photos library. - - - Constructs a new Create request. - - - Gets or sets the body of this request. - - - Returns the body of the request. - - - Gets the method name. - - - Gets the HTTP method. - - - Gets the REST path. - - - Initializes Create parameter list. - - - Returns the album based on the specified `albumId`. The `albumId` must be the ID of an album owned - by the user or a shared album that the user has joined. - Identifier of the album to be requested. - - - Returns the album based on the specified `albumId`. The `albumId` must be the ID of an album owned - by the user or a shared album that the user has joined. - - - Constructs a new Get request. - - - Identifier of the album to be requested. - - - Gets the method name. - - - Gets the HTTP method. - - - Gets the REST path. - - - Initializes Get parameter list. - - - Lists all albums shown to a user in the Albums tab of the Google Photos app. - - - Lists all albums shown to a user in the Albums tab of the Google Photos app. - - - Constructs a new List request. - - - A continuation token to get the next page of the results. Adding this to the request returns - the rows after the `pageToken`. The `pageToken` should be the value returned in the `nextPageToken` - parameter in the response to the `listAlbums` request. - - - Maximum number of albums to return in the response. The default number of albums to return at a - time is 20. The maximum `pageSize` is 50. - - - If set, the results exclude media items that were not created by this app. Defaults to false - (all albums are returned). This field is ignored if the photoslibrary.readonly.appcreateddata scope is - used. - - - Gets the method name. - - - Gets the HTTP method. - - - Gets the REST path. - - - Initializes List parameter list. - - - Marks an album as shared and accessible to other users. This action can only be performed on albums - which were created by the developer via the API. - The body of the request. - Identifier of the album to be shared. This `albumId` must belong to an album created by the - developer. - - - Marks an album as shared and accessible to other users. This action can only be performed on albums - which were created by the developer via the API. - - - Constructs a new Share request. - - - Identifier of the album to be shared. This `albumId` must belong to an album created by the - developer. - - - Gets or sets the body of this request. - - - Returns the body of the request. - - - Gets the method name. - - - Gets the HTTP method. - - - Gets the REST path. - - - Initializes Share parameter list. - - - Marks a previously shared album as private. This means that the album is no longer shared and all - the non-owners will lose access to the album. All non-owner content will be removed from the album. If a - non-owner has previously added the album to their library, they will retain all photos in their library. - This action can only be performed on albums which were created by the developer via the API. - The body of the request. - Identifier of the album to be unshared. This album id must belong to an album created by the - developer. - - - Marks a previously shared album as private. This means that the album is no longer shared and all - the non-owners will lose access to the album. All non-owner content will be removed from the album. If a - non-owner has previously added the album to their library, they will retain all photos in their library. - This action can only be performed on albums which were created by the developer via the API. - - - Constructs a new Unshare request. - - - Identifier of the album to be unshared. This album id must belong to an album created by the - developer. - - - Gets or sets the body of this request. - - - Returns the body of the request. - - - Gets the method name. - - - Gets the HTTP method. - - - Gets the REST path. - - - Initializes Unshare parameter list. - - - The "mediaItems" collection of methods. - - - The service which this resource belongs to. - - - Constructs a new resource. - - - Creates one or more media items in a user's Google Photos library. - - This is the second step for creating a media item. For details regarding Step 1, uploading the raw bytes to - a Google Server, see Uploading media. - - This call adds the media item to the library. If an album `id` is specified, the call adds the media item to - the album too. By default, the media item will be added to the end of the library or album. - - If an album `id` and position are both defined, the media item is added to the album at the specified - position. - - If the call contains multiple media items, they're added at the specified position. If you are creating a - media item in a shared album where you are not the owner, you are not allowed to position the media item. - Doing so will result in a `BAD REQUEST` error. - The body of the request. - - - Creates one or more media items in a user's Google Photos library. - - This is the second step for creating a media item. For details regarding Step 1, uploading the raw bytes to - a Google Server, see Uploading media. - - This call adds the media item to the library. If an album `id` is specified, the call adds the media item to - the album too. By default, the media item will be added to the end of the library or album. - - If an album `id` and position are both defined, the media item is added to the album at the specified - position. - - If the call contains multiple media items, they're added at the specified position. If you are creating a - media item in a shared album where you are not the owner, you are not allowed to position the media item. - Doing so will result in a `BAD REQUEST` error. - - - Constructs a new BatchCreate request. - - - Gets or sets the body of this request. - - - Returns the body of the request. - - - Gets the method name. - - - Gets the HTTP method. - - - Gets the REST path. - - - Initializes BatchCreate parameter list. - - - Returns the list of media items for the specified media item identifiers. Items are returned in the - same order as the supplied identifiers. - - - Returns the list of media items for the specified media item identifiers. Items are returned in the - same order as the supplied identifiers. - - - Constructs a new BatchGet request. - - - Identifiers of the media items to be requested. Must not contain repeated identifiers and - cannot be empty. The maximum number of media items that can be retrieved in one call is 50. - - - Gets the method name. - - - Gets the HTTP method. - - - Gets the REST path. - - - Initializes BatchGet parameter list. - - - Returns the media item for the specified media item identifier. - Identifier of the media item to be requested. - - - Returns the media item for the specified media item identifier. - - - Constructs a new Get request. - - - Identifier of the media item to be requested. - - - Gets the method name. - - - Gets the HTTP method. - - - Gets the REST path. - - - Initializes Get parameter list. - - - List all media items from a user's Google Photos library. - - - List all media items from a user's Google Photos library. - - - Constructs a new List request. - - - A continuation token to get the next page of the results. Adding this to the request returns - the rows after the `pageToken`. The `pageToken` should be the value returned in the `nextPageToken` - parameter in the response to the `listMediaItems` request. - - - Maximum number of media items to return in the response. The default number of media items to - return at a time is 25. The maximum `pageSize` is 100. - - - Gets the method name. - - - Gets the HTTP method. - - - Gets the REST path. - - - Initializes List parameter list. - - - Searches for media items in a user's Google Photos library. If no filters are set, then all media - items in the user's library are returned. If an album is set, all media items in the specified album are - returned. If filters are specified, media items that match the filters from the user's library are listed. - If you set both the album and the filters, the request results in an error. - The body of the request. - - - Searches for media items in a user's Google Photos library. If no filters are set, then all media - items in the user's library are returned. If an album is set, all media items in the specified album are - returned. If filters are specified, media items that match the filters from the user's library are listed. - If you set both the album and the filters, the request results in an error. - - - Constructs a new Search request. - - - Gets or sets the body of this request. - - - Returns the body of the request. - - - Gets the method name. - - - Gets the HTTP method. - - - Gets the REST path. - - - Initializes Search parameter list. - - - The "sharedAlbums" collection of methods. - - - The service which this resource belongs to. - - - Constructs a new resource. - - - Returns the album based on the specified `shareToken`. - Share token of the album to be requested. - - - Returns the album based on the specified `shareToken`. - - - Constructs a new Get request. - - - Share token of the album to be requested. - - - Gets the method name. - - - Gets the HTTP method. - - - Gets the REST path. - - - Initializes Get parameter list. - - - Joins a shared album on behalf of the Google Photos user. - The body of the request. - - - Joins a shared album on behalf of the Google Photos user. - - - Constructs a new Join request. - - - Gets or sets the body of this request. - - - Returns the body of the request. - - - Gets the method name. - - - Gets the HTTP method. - - - Gets the REST path. - - - Initializes Join parameter list. - - - Leaves a previously-joined shared album on behalf of the Google Photos user. The user must not own - this album. - The body of the request. - - - Leaves a previously-joined shared album on behalf of the Google Photos user. The user must not own - this album. - - - Constructs a new Leave request. - - - Gets or sets the body of this request. - - - Returns the body of the request. - - - Gets the method name. - - - Gets the HTTP method. - - - Gets the REST path. - - - Initializes Leave parameter list. - - - Lists all shared albums available in the Sharing tab of the user's Google Photos app. - - - Lists all shared albums available in the Sharing tab of the user's Google Photos app. - - - Constructs a new List request. - - - Maximum number of albums to return in the response. The default number of albums to return at a - time is 20. The maximum `pageSize` is 50. - - - If set, the results exclude media items that were not created by this app. Defaults to false - (all albums are returned). This field is ignored if the photoslibrary.readonly.appcreateddata scope is - used. - - - A continuation token to get the next page of the results. Adding this to the request returns - the rows after the `pageToken`. The `pageToken` should be the value returned in the `nextPageToken` - parameter in the response to the `listSharedAlbums` request. - - - Gets the method name. - - - Gets the HTTP method. - - - Gets the REST path. - - - Initializes List parameter list. - - - diff --git a/src/managed/Google.Apis.PhotosLibrary.v1/Properties/AssemblyInfo.cs b/src/managed/Google.Apis.PhotosLibrary.v1/Properties/AssemblyInfo.cs deleted file mode 100644 index 9d6bdbc6..00000000 --- a/src/managed/Google.Apis.PhotosLibrary.v1/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,33 +0,0 @@ -/* -Copyright 2013 Google Inc - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -using System.Resources; -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("Google.Apis.PhotosLibrary.v1")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyProduct("Google.Apis.PhotosLibrary.v1")] -[assembly: AssemblyCompany("Google Inc.")] -[assembly: AssemblyCopyright("Copyright © Google Inc. 2015")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] -[assembly: AssemblyVersion("1.10.0.0")] diff --git a/src/managed/Google.Apis.PhotosLibrary.v1/packages.config b/src/managed/Google.Apis.PhotosLibrary.v1/packages.config deleted file mode 100644 index 8870b19c..00000000 --- a/src/managed/Google.Apis.PhotosLibrary.v1/packages.config +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - -