Skip to content
This repository was archived by the owner on Aug 26, 2025. It is now read-only.
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
/**
* 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.peering.v2019_08_01_preview;

import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.management.peering.v2019_08_01_preview.implementation.PeeringServicePrefixInner;
import com.microsoft.azure.arm.model.Indexable;
import com.microsoft.azure.arm.model.Refreshable;
import com.microsoft.azure.arm.model.Updatable;
import com.microsoft.azure.arm.model.Appliable;
import com.microsoft.azure.arm.model.Creatable;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.peering.v2019_08_01_preview.implementation.PeeringManager;
import java.util.List;

/**
* Type representing PeeringServicePrefix.
*/
public interface PeeringServicePrefix extends HasInner<PeeringServicePrefixInner>, Indexable, Refreshable<PeeringServicePrefix>, Updatable<PeeringServicePrefix.Update>, HasManager<PeeringManager> {
/**
* @return the errorMessage value.
*/
String errorMessage();

/**
* @return the events value.
*/
List<PeeringServicePrefixEvent> events();

/**
* @return the id value.
*/
String id();

/**
* @return the learnedType value.
*/
LearnedType learnedType();

/**
* @return the name value.
*/
String name();

/**
* @return the prefix value.
*/
String prefix();

/**
* @return the prefixValidationState value.
*/
PrefixValidationState prefixValidationState();

/**
* @return the provisioningState value.
*/
ProvisioningState provisioningState();

/**
* @return the type value.
*/
String type();

/**
* The entirety of the PeeringServicePrefix definition.
*/
interface Definition extends DefinitionStages.Blank, DefinitionStages.WithPeeringService, DefinitionStages.WithPrefix, DefinitionStages.WithCreate {
}

/**
* Grouping of PeeringServicePrefix definition stages.
*/
interface DefinitionStages {
/**
* The first stage of a PeeringServicePrefix definition.
*/
interface Blank extends WithPeeringService {
}

/**
* The stage of the peeringserviceprefix definition allowing to specify PeeringService.
*/
interface WithPeeringService {
/**
* Specifies resourceGroupName, peeringServiceName.
* @param resourceGroupName The name of the resource group
* @param peeringServiceName The name of the peering service
* @return the next definition stage
*/
WithPrefix withExistingPeeringService(String resourceGroupName, String peeringServiceName);
}

/**
* The stage of the peeringserviceprefix definition allowing to specify Prefix.
*/
interface WithPrefix {
/**
* Specifies prefix.
* @param prefix The prefix from which your traffic originates
* @return the next definition stage
*/
WithCreate withPrefix(String prefix);
}

/**
* The stage of the definition which contains all the minimum required inputs for
* the resource to be created (via {@link WithCreate#create()}), but also allows
* for any other optional settings to be specified.
*/
interface WithCreate extends Creatable<PeeringServicePrefix> {
}
}
/**
* The template for a PeeringServicePrefix update operation, containing all the settings that can be modified.
*/
interface Update extends Appliable<PeeringServicePrefix>, UpdateStages.WithPrefix {
}

/**
* Grouping of PeeringServicePrefix update stages.
*/
interface UpdateStages {
/**
* The stage of the peeringserviceprefix update allowing to specify Prefix.
*/
interface WithPrefix {
/**
* Specifies prefix.
* @param prefix The prefix from which your traffic originates
* @return the next update stage
*/
Update withPrefix(String prefix);
}

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
/**
* 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.peering.v2019_08_01_preview;

import org.joda.time.DateTime;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
* The peering service prefix event class.
*/
public class PeeringServicePrefixEvent {
/**
* The event type of the peering service prefix event.
*/
@JsonProperty(value = "eventType", access = JsonProperty.Access.WRITE_ONLY)
private String eventType;

/**
* The event timestamp of the peering service prefix event.
*/
@JsonProperty(value = "eventTimeStamp", access = JsonProperty.Access.WRITE_ONLY)
private DateTime eventTimeStamp;

/**
* The event description of the peering service prefix event.
*/
@JsonProperty(value = "description", access = JsonProperty.Access.WRITE_ONLY)
private String description;

/**
* The event level of the peering service prefix event.
*/
@JsonProperty(value = "eventLevel", access = JsonProperty.Access.WRITE_ONLY)
private String eventLevel;

/**
* Additional information for the peering service prefix event.
*/
@JsonProperty(value = "additionalInfo", access = JsonProperty.Access.WRITE_ONLY)
private String additionalInfo;

/**
* Get the event type of the peering service prefix event.
*
* @return the eventType value
*/
public String eventType() {
return this.eventType;
}

/**
* Get the event timestamp of the peering service prefix event.
*
* @return the eventTimeStamp value
*/
public DateTime eventTimeStamp() {
return this.eventTimeStamp;
}

/**
* Get the event description of the peering service prefix event.
*
* @return the description value
*/
public String description() {
return this.description;
}

/**
* Get the event level of the peering service prefix event.
*
* @return the eventLevel value
*/
public String eventLevel() {
return this.eventLevel;
}

/**
* Get additional information for the peering service prefix event.
*
* @return the additionalInfo value
*/
public String additionalInfo() {
return this.additionalInfo;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,8 @@ interface PeeringManagementClientService {
/**
* Checks if the peering service provider is present within 1000 miles of customer's location.
*
* @param checkServiceProviderAvailabilityInput The CheckServiceProviderAvailabilityInput indicating customer location and service provider.
* @param checkServiceProviderAvailabilityInput The CheckServiceProviderAvailabilityInput
indicating customer location and service provider.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @throws ErrorResponseException thrown if the request is rejected by server
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
Expand All @@ -372,7 +373,8 @@ public String checkServiceProviderAvailability(CheckServiceProviderAvailabilityI
/**
* Checks if the peering service provider is present within 1000 miles of customer's location.
*
* @param checkServiceProviderAvailabilityInput The CheckServiceProviderAvailabilityInput indicating customer location and service provider.
* @param checkServiceProviderAvailabilityInput The CheckServiceProviderAvailabilityInput
indicating customer location and service provider.
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the {@link ServiceFuture} object
Expand All @@ -384,7 +386,8 @@ public ServiceFuture<String> checkServiceProviderAvailabilityAsync(CheckServiceP
/**
* Checks if the peering service provider is present within 1000 miles of customer's location.
*
* @param checkServiceProviderAvailabilityInput The CheckServiceProviderAvailabilityInput indicating customer location and service provider.
* @param checkServiceProviderAvailabilityInput The CheckServiceProviderAvailabilityInput
indicating customer location and service provider.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the String object
*/
Expand All @@ -400,7 +403,8 @@ public String call(ServiceResponse<String> response) {
/**
* Checks if the peering service provider is present within 1000 miles of customer's location.
*
* @param checkServiceProviderAvailabilityInput The CheckServiceProviderAvailabilityInput indicating customer location and service provider.
* @param checkServiceProviderAvailabilityInput The CheckServiceProviderAvailabilityInput
indicating customer location and service provider.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the String object
*/
Expand Down
Loading