Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SupportsListingByTag & Regenerate Resource with 2016-09-01 #1199

Merged
merged 7 commits into from
Oct 18, 2016
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
Expand Up @@ -11,7 +11,7 @@
import java.util.List;

/**
* The AliasPathType model.
* The type of the paths for alias.
*/
public class AliasPathType {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import java.util.List;

/**
* The AliasType model.
* The alias type.
*/
public class AliasType {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
package com.microsoft.azure.management.resources;

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

/**
* Deployment operation properties.
Expand All @@ -17,41 +18,49 @@ public class DeploymentOperationProperties {
/**
* The state of the provisioning.
*/
@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
private String provisioningState;

/**
* The date and time of the operation.
*/
@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
private DateTime timestamp;

/**
* Deployment operation service request id.
*/
@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
private String serviceRequestId;

/**
* Operation status code.
*/
@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
private String statusCode;

/**
* Operation status message.
*/
@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
private Object statusMessage;

/**
* The target resource.
*/
@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
private TargetResource targetResource;

/**
* The HTTP request message.
*/
@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
private HttpMessage request;

/**
* The HTTP response message.
*/
@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
private HttpMessage response;

/**
Expand All @@ -63,17 +72,6 @@ public String provisioningState() {
return this.provisioningState;
}

/**
* Set the provisioningState value.
*
* @param provisioningState the provisioningState value to set
* @return the DeploymentOperationProperties object itself.
*/
public DeploymentOperationProperties withProvisioningState(String provisioningState) {
this.provisioningState = provisioningState;
return this;
}

/**
* Get the timestamp value.
*
Expand All @@ -83,17 +81,6 @@ public DateTime timestamp() {
return this.timestamp;
}

/**
* Set the timestamp value.
*
* @param timestamp the timestamp value to set
* @return the DeploymentOperationProperties object itself.
*/
public DeploymentOperationProperties withTimestamp(DateTime timestamp) {
this.timestamp = timestamp;
return this;
}

/**
* Get the serviceRequestId value.
*
Expand All @@ -103,17 +90,6 @@ public String serviceRequestId() {
return this.serviceRequestId;
}

/**
* Set the serviceRequestId value.
*
* @param serviceRequestId the serviceRequestId value to set
* @return the DeploymentOperationProperties object itself.
*/
public DeploymentOperationProperties withServiceRequestId(String serviceRequestId) {
this.serviceRequestId = serviceRequestId;
return this;
}

/**
* Get the statusCode value.
*
Expand All @@ -123,17 +99,6 @@ public String statusCode() {
return this.statusCode;
}

/**
* Set the statusCode value.
*
* @param statusCode the statusCode value to set
* @return the DeploymentOperationProperties object itself.
*/
public DeploymentOperationProperties withStatusCode(String statusCode) {
this.statusCode = statusCode;
return this;
}

/**
* Get the statusMessage value.
*
Expand All @@ -143,17 +108,6 @@ public Object statusMessage() {
return this.statusMessage;
}

/**
* Set the statusMessage value.
*
* @param statusMessage the statusMessage value to set
* @return the DeploymentOperationProperties object itself.
*/
public DeploymentOperationProperties withStatusMessage(Object statusMessage) {
this.statusMessage = statusMessage;
return this;
}

/**
* Get the targetResource value.
*
Expand All @@ -163,17 +117,6 @@ public TargetResource targetResource() {
return this.targetResource;
}

/**
* Set the targetResource value.
*
* @param targetResource the targetResource value to set
* @return the DeploymentOperationProperties object itself.
*/
public DeploymentOperationProperties withTargetResource(TargetResource targetResource) {
this.targetResource = targetResource;
return this;
}

/**
* Get the request value.
*
Expand All @@ -183,17 +126,6 @@ public HttpMessage request() {
return this.request;
}

/**
* Set the request value.
*
* @param request the request value to set
* @return the DeploymentOperationProperties object itself.
*/
public DeploymentOperationProperties withRequest(HttpMessage request) {
this.request = request;
return this;
}

/**
* Get the response value.
*
Expand All @@ -203,15 +135,4 @@ public HttpMessage response() {
return this.response;
}

/**
* Set the response value.
*
* @param response the response value to set
* @return the DeploymentOperationProperties object itself.
*/
public DeploymentOperationProperties withResponse(HttpMessage response) {
this.response = response;
return this;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import org.joda.time.DateTime;
import java.util.List;
import com.microsoft.azure.management.resources.implementation.ProviderInner;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Deployment properties with additional details.
Expand All @@ -19,16 +20,19 @@ public class DeploymentPropertiesExtended {
/**
* The state of the provisioning.
*/
@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
private String provisioningState;

/**
* The correlation ID of the deployment.
*/
@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
private String correlationId;

/**
* The timestamp of the template deployment.
*/
@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
private DateTime timestamp;

/**
Expand Down Expand Up @@ -87,17 +91,6 @@ public String provisioningState() {
return this.provisioningState;
}

/**
* Set the provisioningState value.
*
* @param provisioningState the provisioningState value to set
* @return the DeploymentPropertiesExtended object itself.
*/
public DeploymentPropertiesExtended withProvisioningState(String provisioningState) {
this.provisioningState = provisioningState;
return this;
}

/**
* Get the correlationId value.
*
Expand All @@ -107,17 +100,6 @@ public String correlationId() {
return this.correlationId;
}

/**
* Set the correlationId value.
*
* @param correlationId the correlationId value to set
* @return the DeploymentPropertiesExtended object itself.
*/
public DeploymentPropertiesExtended withCorrelationId(String correlationId) {
this.correlationId = correlationId;
return this;
}

/**
* Get the timestamp value.
*
Expand All @@ -127,17 +109,6 @@ public DateTime timestamp() {
return this.timestamp;
}

/**
* Set the timestamp value.
*
* @param timestamp the timestamp value to set
* @return the DeploymentPropertiesExtended object itself.
*/
public DeploymentPropertiesExtended withTimestamp(DateTime timestamp) {
this.timestamp = timestamp;
return this;
}

/**
* Get the outputs value.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
public interface GenericResource extends
GroupableResource,
Refreshable<GenericResource>,
Updatable<GenericResource.UpdateStages.WithApiVersion>,
Updatable<GenericResource.Update>,
Wrapper<GenericResourceInner> {
/**
* @return the namespace of the resource provider
Expand Down Expand Up @@ -251,6 +251,7 @@ interface WithApiVersion {
*/
interface Update extends
Appliable<GenericResource>,
UpdateStages.WithApiVersion,
UpdateStages.WithPlan,
UpdateStages.WithParentResource,
UpdateStages.WithProperties,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
import com.microsoft.azure.management.apigeneration.Fluent;
import com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsGettingById;
import com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsListingByGroup;
import com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsListingByTag;
import com.microsoft.azure.management.resources.fluentcore.collection.SupportsCreating;
import com.microsoft.azure.management.resources.fluentcore.collection.SupportsListing;

import java.util.List;

Expand All @@ -18,7 +20,9 @@
*/
@Fluent
public interface GenericResources extends
SupportsListing<GenericResource>,
SupportsListingByGroup<GenericResource>,
SupportsListingByTag<GenericResource>,
SupportsGettingById<GenericResource>,
SupportsCreating<GenericResource.DefinitionStages.Blank> {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsGettingByName;
import com.microsoft.azure.management.resources.fluentcore.collection.SupportsListing;
import com.microsoft.rest.ServiceResponse;
import rx.Observable;

/**
* Entry point to providers management API.
Expand All @@ -33,4 +34,12 @@ public interface Providers extends
* @return the ProviderInner object wrapped in {@link ServiceResponse} if successful
*/
Provider register(String resourceProviderNamespace);

/**
* Gets the information about a provider from Azure based on the provider name.
*
* @param name the name of the provider
* @return an observable of the immutable representation of the Provider
*/
Observable<Provider> getByNameAsync(String name);
}
Loading