public class MyBusiness.Accounts.Locations.Media
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
MyBusiness.Accounts.Locations.Media.Create |
class |
MyBusiness.Accounts.Locations.Media.Customers
The "customers" collection of methods.
|
class |
MyBusiness.Accounts.Locations.Media.Delete |
class |
MyBusiness.Accounts.Locations.Media.Get |
class |
MyBusiness.Accounts.Locations.Media.List |
class |
MyBusiness.Accounts.Locations.Media.Patch |
class |
MyBusiness.Accounts.Locations.Media.StartUpload |
Constructor and Description |
---|
Media() |
Modifier and Type | Method and Description |
---|---|
MyBusiness.Accounts.Locations.Media.Create |
create(java.lang.String parent,
MediaItem content)
Creates a new media item for the location.
|
MyBusiness.Accounts.Locations.Media.Customers |
customers()
An accessor for creating requests from the Customers collection.
|
MyBusiness.Accounts.Locations.Media.Delete |
delete(java.lang.String name)
Deletes the specified media item.
|
MyBusiness.Accounts.Locations.Media.Get |
get(java.lang.String name)
Returns metadata for the requested media item.
|
MyBusiness.Accounts.Locations.Media.List |
list(java.lang.String parent)
Returns a list of media items associated with a location.
|
MyBusiness.Accounts.Locations.Media.Patch |
patch(java.lang.String name,
MediaItem content)
Updates metadata of the specified media item.
|
MyBusiness.Accounts.Locations.Media.StartUpload |
startUpload(java.lang.String parent,
StartUploadMediaItemDataRequest content)
Generates a `MediaItemDataRef` for media item uploading.
|
public MyBusiness.Accounts.Locations.Media.Create create(java.lang.String parent, MediaItem content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.parent
- The resource name of the location where this media item will be created.content
- the MediaItem
java.io.IOException
public MyBusiness.Accounts.Locations.Media.Delete delete(java.lang.String name) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.name
- The name of the media item to be deleted.java.io.IOException
public MyBusiness.Accounts.Locations.Media.Get get(java.lang.String name) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.name
- The name of the requested media item.java.io.IOException
public MyBusiness.Accounts.Locations.Media.List list(java.lang.String parent) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.parent
- The name of the location whose media items will be listed.java.io.IOException
public MyBusiness.Accounts.Locations.Media.Patch patch(java.lang.String name, MediaItem content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.name
- The name of the media item to be updated.content
- the MediaItem
java.io.IOException
public MyBusiness.Accounts.Locations.Media.StartUpload startUpload(java.lang.String parent, StartUploadMediaItemDataRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.parent
- The resource name of the location this media item is to be added to.content
- the StartUploadMediaItemDataRequest
java.io.IOException
public MyBusiness.Accounts.Locations.Media.Customers customers()
The typical use is:
MyBusiness mybusiness = new MyBusiness(...);
MyBusiness.Customers.List request = mybusiness.customers().list(parameters ...)
Copyright © 2011-2018 Google. All Rights Reserved.