Skip to content
Closed
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 @@ -21,14 +21,14 @@ class ClusterImpl extends GroupableResourceCoreImpl<Cluster, ClusterInner, Clust
@Override
public Observable<Cluster> createResourceAsync() {
ClustersInner client = this.manager().inner().clusters();
return client.putAsync(this.resourceGroupName(), this.name(), this.inner())
return client.createOrUpdateAsync(this.resourceGroupName(), this.name(), this.inner())
.map(innerToFluentMap(this));
}

@Override
public Observable<Cluster> updateResourceAsync() {
ClustersInner client = this.manager().inner().clusters();
return client.patchAsync(this.resourceGroupName(), this.name(), this.inner())
return client.updateAsync(this.resourceGroupName(), this.name(), this.inner())
.map(innerToFluentMap(this));
}

Expand Down
Loading