public final class Asset extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Asset.Creator
The Class Creator.
|
static class |
Asset.Updater
The Class Updater.
|
| Modifier and Type | Method and Description |
|---|---|
static Asset.Creator |
create()
Creates an Asset Creator.
|
static EntityDeleteOperation |
delete(String assetId)
Create an operation to delete the given asset.
|
static EntityGetOperation<AssetInfo> |
get(LinkInfo<AssetInfo> link)
Get the asset at the given link
|
static EntityGetOperation<AssetInfo> |
get(String assetId)
Create an operation object that will get the state of the given asset.
|
static EntityLinkOperation |
linkContentKey(String assetId,
String contentKeyId)
Link content key.
|
static EntityLinkOperation |
linkDeliveryPolicy(String assetId,
String deliveryPolicyId)
Link delivery policy
|
static DefaultListOperation<AssetInfo> |
list()
Create an operation that will list all the assets.
|
static DefaultListOperation<AssetInfo> |
list(LinkInfo<AssetInfo> link)
Create an operation that will list all the assets at the given link.
|
static EntityUnlinkOperation |
unlinkContentKey(String assetId,
String contentKeyId)
unlink a content key.
|
static EntityUnlinkOperation |
unlinkDeliveryPolicy(String assetId,
String adpId)
unlink an asset delivery policy
|
static Asset.Updater |
update(String assetId)
Create an operation that will update the given asset.
|
public static Asset.Creator create()
public static EntityGetOperation<AssetInfo> get(String assetId)
assetId - id of asset to retrievepublic static EntityGetOperation<AssetInfo> get(LinkInfo<AssetInfo> link)
link - the linkpublic static DefaultListOperation<AssetInfo> list()
public static DefaultListOperation<AssetInfo> list(LinkInfo<AssetInfo> link)
link - Link to request assets from.public static Asset.Updater update(String assetId)
assetId - id of the asset to updatepublic static EntityDeleteOperation delete(String assetId)
assetId - id of asset to deletepublic static EntityLinkOperation linkContentKey(String assetId, String contentKeyId)
assetId - the asset idcontentKeyId - the content key idpublic static EntityUnlinkOperation unlinkContentKey(String assetId, String contentKeyId)
assetId - the asset idcontentKeyId - the content key idpublic static EntityLinkOperation linkDeliveryPolicy(String assetId, String deliveryPolicyId)
assetId - the asset iddeliveryPolicyId - the content key idpublic static EntityUnlinkOperation unlinkDeliveryPolicy(String assetId, String adpId)
assetId - the asset idadpId - the asset delivery policy id/**
* Copyright Microsoft Corporation
*
* 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.
*/