Skip to content

Commit

Permalink
Generated from d640fe31b954f734f0f238549ce076d3b667ddf7 (#778)
Browse files Browse the repository at this point in the history
add test for peering
  • Loading branch information
openapi-sdkautomation[bot] authored Oct 24, 2019
1 parent ce3a400 commit b2ba7c5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,12 @@ interface Blank extends WithPeeringService {
*/
interface WithPeeringService {
/**
* Specifies resourceGroupName, myPeeringService.
* Specifies resourceGroupName, peeringServiceName.
* @param resourceGroupName The name of the resource group
* @param myPeeringService The name of the peering service
* @param peeringServiceName The name of the peering service
* @return the next definition stage
*/
WithPrefix withExistingPeeringService(String resourceGroupName, String myPeeringService);
WithPrefix withExistingPeeringService(String resourceGroupName, String peeringServiceName);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
class PeeringServicePrefixImpl extends CreatableUpdatableImpl<PeeringServicePrefix, PeeringServicePrefixInner, PeeringServicePrefixImpl> implements PeeringServicePrefix, PeeringServicePrefix.Definition, PeeringServicePrefix.Update {
private final PeeringManager manager;
private String resourceGroupName;
private String myPeeringService;
private String peeringServiceName;
private String prefixName;
private String cprefix;
private String uprefix;
Expand All @@ -40,7 +40,7 @@ class PeeringServicePrefixImpl extends CreatableUpdatableImpl<PeeringServicePref
this.prefixName = inner.name();
// set resource ancestor and positional variables
this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups");
this.myPeeringService = IdParsingUtils.getValueFromIdByName(inner.id(), "peeringServices");
this.peeringServiceName = IdParsingUtils.getValueFromIdByName(inner.id(), "peeringServices");
this.prefixName = IdParsingUtils.getValueFromIdByName(inner.id(), "prefixes");
//
}
Expand All @@ -53,21 +53,21 @@ public PeeringManager manager() {
@Override
public Observable<PeeringServicePrefix> createResourceAsync() {
PrefixesInner client = this.manager().inner().prefixes();
return client.createOrUpdateAsync(this.resourceGroupName, this.myPeeringService, this.prefixName, this.cprefix)
return client.createOrUpdateAsync(this.resourceGroupName, this.peeringServiceName, this.prefixName, this.cprefix)
.map(innerToFluentMap(this));
}

@Override
public Observable<PeeringServicePrefix> updateResourceAsync() {
PrefixesInner client = this.manager().inner().prefixes();
return client.createOrUpdateAsync(this.resourceGroupName, this.myPeeringService, this.prefixName, this.uprefix)
return client.createOrUpdateAsync(this.resourceGroupName, this.peeringServiceName, this.prefixName, this.uprefix)
.map(innerToFluentMap(this));
}

@Override
protected Observable<PeeringServicePrefixInner> getInnerAsync() {
PrefixesInner client = this.manager().inner().prefixes();
return client.getAsync(this.resourceGroupName, this.myPeeringService, this.prefixName);
return client.getAsync(this.resourceGroupName, this.peeringServiceName, this.prefixName);
}

@Override
Expand Down Expand Up @@ -122,9 +122,9 @@ public String type() {
}

@Override
public PeeringServicePrefixImpl withExistingPeeringService(String resourceGroupName, String myPeeringService) {
public PeeringServicePrefixImpl withExistingPeeringService(String resourceGroupName, String peeringServiceName) {
this.resourceGroupName = resourceGroupName;
this.myPeeringService = myPeeringService;
this.peeringServiceName = peeringServiceName;
return this;
}

Expand Down

0 comments on commit b2ba7c5

Please sign in to comment.