Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions sdk/mediaservices/mgmt-v2018_07_01/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-arm-parent</artifactId>
<version>1.2.0</version>
<relativePath>../../parents/azure-arm-parent</relativePath>
<version>1.3.0</version>
<relativePath>../../parents/azure-arm-parent/pom.xml</relativePath>
</parent>
<artifactId>azure-mgmt-media</artifactId>
<version>1.0.0-beta-5</version>
<version>1.0.0-beta-6</version>
<packaging>jar</packaging>
<name>Microsoft Azure SDK for Media Management</name>
<description>This package contains Microsoft Media Management SDK.</description>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.mediaservices.v2018_07_01;

import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.mediaservices.v2018_07_01.implementation.MediaManager;
import com.microsoft.azure.management.mediaservices.v2018_07_01.implementation.EdgePoliciesInner;

/**
* Type representing EdgePolicies.
*/
public interface EdgePolicies extends HasInner<EdgePoliciesInner>, HasManager<MediaManager> {
/**
* @return the usageDataCollectionPolicy value.
*/
EdgeUsageDataCollectionPolicy usageDataCollectionPolicy();

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.mediaservices.v2018_07_01;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* The EdgeUsageDataCollectionPolicy model.
*/
public class EdgeUsageDataCollectionPolicy {
/**
* Usage data collection frequency in ISO 8601 duration format e.g. PT10M ,
* PT5H.
*/
@JsonProperty(value = "dataCollectionFrequency")
private String dataCollectionFrequency;

/**
* Usage data reporting frequency in ISO 8601 duration format e.g. PT10M ,
* PT5H.
*/
@JsonProperty(value = "dataReportingFrequency")
private String dataReportingFrequency;

/**
* Maximum time for which the functionality of the device will not be
* hampered for not reporting the usage data.
*/
@JsonProperty(value = "maxAllowedUnreportedUsageDuration")
private String maxAllowedUnreportedUsageDuration;

/**
* Details of Event Hub where the usage will be reported.
*/
@JsonProperty(value = "eventHubDetails")
private EdgeUsageDataEventHub eventHubDetails;

/**
* Get usage data collection frequency in ISO 8601 duration format e.g. PT10M , PT5H.
*
* @return the dataCollectionFrequency value
*/
public String dataCollectionFrequency() {
return this.dataCollectionFrequency;
}

/**
* Set usage data collection frequency in ISO 8601 duration format e.g. PT10M , PT5H.
*
* @param dataCollectionFrequency the dataCollectionFrequency value to set
* @return the EdgeUsageDataCollectionPolicy object itself.
*/
public EdgeUsageDataCollectionPolicy withDataCollectionFrequency(String dataCollectionFrequency) {
this.dataCollectionFrequency = dataCollectionFrequency;
return this;
}

/**
* Get usage data reporting frequency in ISO 8601 duration format e.g. PT10M , PT5H.
*
* @return the dataReportingFrequency value
*/
public String dataReportingFrequency() {
return this.dataReportingFrequency;
}

/**
* Set usage data reporting frequency in ISO 8601 duration format e.g. PT10M , PT5H.
*
* @param dataReportingFrequency the dataReportingFrequency value to set
* @return the EdgeUsageDataCollectionPolicy object itself.
*/
public EdgeUsageDataCollectionPolicy withDataReportingFrequency(String dataReportingFrequency) {
this.dataReportingFrequency = dataReportingFrequency;
return this;
}

/**
* Get maximum time for which the functionality of the device will not be hampered for not reporting the usage data.
*
* @return the maxAllowedUnreportedUsageDuration value
*/
public String maxAllowedUnreportedUsageDuration() {
return this.maxAllowedUnreportedUsageDuration;
}

/**
* Set maximum time for which the functionality of the device will not be hampered for not reporting the usage data.
*
* @param maxAllowedUnreportedUsageDuration the maxAllowedUnreportedUsageDuration value to set
* @return the EdgeUsageDataCollectionPolicy object itself.
*/
public EdgeUsageDataCollectionPolicy withMaxAllowedUnreportedUsageDuration(String maxAllowedUnreportedUsageDuration) {
this.maxAllowedUnreportedUsageDuration = maxAllowedUnreportedUsageDuration;
return this;
}

/**
* Get details of Event Hub where the usage will be reported.
*
* @return the eventHubDetails value
*/
public EdgeUsageDataEventHub eventHubDetails() {
return this.eventHubDetails;
}

/**
* Set details of Event Hub where the usage will be reported.
*
* @param eventHubDetails the eventHubDetails value to set
* @return the EdgeUsageDataCollectionPolicy object itself.
*/
public EdgeUsageDataCollectionPolicy withEventHubDetails(EdgeUsageDataEventHub eventHubDetails) {
this.eventHubDetails = eventHubDetails;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.mediaservices.v2018_07_01;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* The EdgeUsageDataEventHub model.
*/
public class EdgeUsageDataEventHub {
/**
* Name of the Event Hub where usage will be reported.
*/
@JsonProperty(value = "name")
private String name;

/**
* Namespace of the Event Hub where usage will be reported.
*/
@JsonProperty(value = "namespace")
private String namespace;

/**
* SAS token needed to interact with Event Hub.
*/
@JsonProperty(value = "token")
private String token;

/**
* Get name of the Event Hub where usage will be reported.
*
* @return the name value
*/
public String name() {
return this.name;
}

/**
* Set name of the Event Hub where usage will be reported.
*
* @param name the name value to set
* @return the EdgeUsageDataEventHub object itself.
*/
public EdgeUsageDataEventHub withName(String name) {
this.name = name;
return this;
}

/**
* Get namespace of the Event Hub where usage will be reported.
*
* @return the namespace value
*/
public String namespace() {
return this.namespace;
}

/**
* Set namespace of the Event Hub where usage will be reported.
*
* @param namespace the namespace value to set
* @return the EdgeUsageDataEventHub object itself.
*/
public EdgeUsageDataEventHub withNamespace(String namespace) {
this.namespace = namespace;
return this;
}

/**
* Get sAS token needed to interact with Event Hub.
*
* @return the token value
*/
public String token() {
return this.token;
}

/**
* Set sAS token needed to interact with Event Hub.
*
* @param token the token value to set
* @return the EdgeUsageDataEventHub object itself.
*/
public EdgeUsageDataEventHub withToken(String token) {
this.token = token;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.mediaservices.v2018_07_01;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* The ListEdgePoliciesInput model.
*/
public class ListEdgePoliciesInput {
/**
* Unique identifier of the edge device.
*/
@JsonProperty(value = "deviceId")
private String deviceId;

/**
* Get unique identifier of the edge device.
*
* @return the deviceId value
*/
public String deviceId() {
return this.deviceId;
}

/**
* Set unique identifier of the edge device.
*
* @param deviceId the deviceId value to set
* @return the ListEdgePoliciesInput object itself.
*/
public ListEdgePoliciesInput withDeviceId(String deviceId) {
this.deviceId = deviceId;
return this;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,17 @@ public interface Mediaservices extends SupportsCreating<MediaService.DefinitionS
*/
Completable syncStorageKeysAsync(String resourceGroupName, String accountName);

/**
* List the media edge policies associated with the Media Services account.
* List the media edge policies associated with the Media Services account.
*
* @param resourceGroupName The name of the resource group within the Azure subscription.
* @param accountName The Media Services account name.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<EdgePolicies> listEdgePoliciesAsync(String resourceGroupName, String accountName);

/**
* Get a Media Services account.
* Get the details of a Media Services account.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.mediaservices.v2018_07_01.implementation;

import com.microsoft.azure.management.mediaservices.v2018_07_01.EdgePolicies;
import com.microsoft.azure.arm.model.implementation.WrapperImpl;
import com.microsoft.azure.management.mediaservices.v2018_07_01.EdgeUsageDataCollectionPolicy;

class EdgePoliciesImpl extends WrapperImpl<EdgePoliciesInner> implements EdgePolicies {
private final MediaManager manager;
EdgePoliciesImpl(EdgePoliciesInner inner, MediaManager manager) {
super(inner);
this.manager = manager;
}

@Override
public MediaManager manager() {
return this.manager;
}

@Override
public EdgeUsageDataCollectionPolicy usageDataCollectionPolicy() {
return this.inner().usageDataCollectionPolicy();
}

}
Loading