Skip to content

Commit

Permalink
Generated from cfd5d39ddf70eaa415736e11e3e8f9050d14d96e
Browse files Browse the repository at this point in the history
Create 2019-08-01 resources spec
  • Loading branch information
SDK Automation committed Aug 14, 2019
1 parent fe9f37a commit 8184198
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 31 deletions.
8 changes: 3 additions & 5 deletions resources/resource-manager/v2019_05_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.1.0</version>
<relativePath>../../../pom.management.xml</relativePath>
<version>0.0.3-beta</version>
<relativePath>../../../pom.xml</relativePath>
</parent>
<artifactId>azure-mgmt-resources</artifactId>
<version>1.0.0-beta-1</version>
<version>1.0.0-beta</version>
<packaging>jar</packaging>
<name>Microsoft Azure SDK for Resources Management</name>
<description>This package contains Microsoft Resources Management SDK.</description>
Expand Down Expand Up @@ -71,8 +71,6 @@
<artifactId>azure-arm-client-runtime</artifactId>
<type>test-jar</type>
<scope>test</scope>
<!--Below version for test jar needs to be removed, this will be done as part of v1-runtime 1.6.7-->
<version>1.6.5</version>
</dependency>
</dependencies>
<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public interface DeploymentExtended extends HasInner<DeploymentExtendedInner>, I
/**
* The entirety of the DeploymentExtended definition.
*/
interface Definition extends DefinitionStages.Blank, DefinitionStages.WithMicrosoftResource, DefinitionStages.WithProperties, DefinitionStages.WithCreate {
interface Definition extends DefinitionStages.Blank, DefinitionStages.WithMicrosoft.Resource, DefinitionStages.WithProperties, DefinitionStages.WithCreate {
}

/**
Expand All @@ -59,19 +59,19 @@ interface DefinitionStages {
/**
* The first stage of a DeploymentExtended definition.
*/
interface Blank extends WithMicrosoftResource {
interface Blank extends WithMicrosoft.Resource {
}

/**
* The stage of the deploymentextended definition allowing to specify Microsoft.Resource.
*/
interface WithMicrosoftResource {
interface WithMicrosoft.Resource {
/**
* Specifies groupId.
* @param groupId The management group ID
* @return the next definition stage
*/
WithProperties withExistingMicrosoftResource(String groupId);
WithProperties withExistingMicrosoft.Resource(String groupId);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public String type() {
}

@Override
public DeploymentExtendedImpl withExistingMicrosoftResource(String groupId) {
public DeploymentExtendedImpl withExistingMicrosoft.Resource(String groupId) {
this.groupId = groupId;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,10 @@ public DeploymentOperation call(DeploymentOperationInner inner) {
public Observable<DeploymentOperation> getAtManagementGroupScopeAsync(String groupId, String deploymentName, String operationId) {
DeploymentOperationsInner client = this.inner();
return client.getAtManagementGroupScopeAsync(groupId, deploymentName, operationId)
.flatMap(new Func1<DeploymentOperationInner, Observable<DeploymentOperation>>() {
.map(new Func1<DeploymentOperationInner, DeploymentOperation>() {
@Override
public Observable<DeploymentOperation> call(DeploymentOperationInner inner) {
if (inner == null) {
return Observable.empty();
} else {
return Observable.just((DeploymentOperation)wrapModel(inner));
}
public DeploymentOperation call(DeploymentOperationInner inner) {
return wrapModel(inner);
}
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,10 @@ public Provider call(ProviderInner inner) {
public Observable<Provider> getAsync(String resourceProviderNamespace) {
ProvidersInner client = this.inner();
return client.getAsync(resourceProviderNamespace)
.flatMap(new Func1<ProviderInner, Observable<Provider>>() {
.map(new Func1<ProviderInner, Provider>() {
@Override
public Observable<Provider> call(ProviderInner inner) {
if (inner == null) {
return Observable.empty();
} else {
return Observable.just((Provider)wrapModel(inner));
}
public Provider call(ProviderInner inner) {
return wrapModel(inner);
}
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,10 @@ public ResourceGroup call(ResourceGroupInner inner) {
public Observable<ResourceGroup> getAsync(String resourceGroupName) {
ResourceGroupsInner client = this.inner();
return client.getAsync(resourceGroupName)
.flatMap(new Func1<ResourceGroupInner, Observable<ResourceGroup>>() {
.map(new Func1<ResourceGroupInner, ResourceGroup>() {
@Override
public Observable<ResourceGroup> call(ResourceGroupInner inner) {
if (inner == null) {
return Observable.empty();
} else {
return Observable.just((ResourceGroup)wrapModel(inner));
}
public ResourceGroup call(ResourceGroupInner inner) {
return wrapModel(inner);
}
});
}
Expand Down

0 comments on commit 8184198

Please sign in to comment.