Skip to content

Commit

Permalink
mgmt, fix LRO context (#25575)
Browse files Browse the repository at this point in the history
  • Loading branch information
weidongxu-microsoft authored Nov 22, 2021
1 parent 6c168cf commit 5a48e7f
Show file tree
Hide file tree
Showing 232 changed files with 790 additions and 790 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ public PollerFlux<PollResult<AppResourceInner>, AppResourceInner> beginCreateOrU
return this
.client
.<AppResourceInner, AppResourceInner>getLroResult(
mono, this.client.getHttpPipeline(), AppResourceInner.class, AppResourceInner.class, Context.NONE);
mono, this.client.getHttpPipeline(), AppResourceInner.class, AppResourceInner.class, this.client.getContext());
}

/**
Expand Down Expand Up @@ -813,7 +813,7 @@ public PollerFlux<PollResult<Void>, Void> beginDeleteAsync(
Mono<Response<Flux<ByteBuffer>>> mono = deleteWithResponseAsync(resourceGroupName, serviceName, appName);
return this
.client
.<Void, Void>getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE);
.<Void, Void>getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
}

/**
Expand Down Expand Up @@ -1090,7 +1090,7 @@ public PollerFlux<PollResult<AppResourceInner>, AppResourceInner> beginUpdateAsy
return this
.client
.<AppResourceInner, AppResourceInner>getLroResult(
mono, this.client.getHttpPipeline(), AppResourceInner.class, AppResourceInner.class, Context.NONE);
mono, this.client.getHttpPipeline(), AppResourceInner.class, AppResourceInner.class, this.client.getContext());
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ public PollerFlux<PollResult<BindingResourceInner>, BindingResourceInner> beginC
this.client.getHttpPipeline(),
BindingResourceInner.class,
BindingResourceInner.class,
Context.NONE);
this.client.getContext());
}

/**
Expand Down Expand Up @@ -884,7 +884,7 @@ public PollerFlux<PollResult<Void>, Void> beginDeleteAsync(
deleteWithResponseAsync(resourceGroupName, serviceName, appName, bindingName);
return this
.client
.<Void, Void>getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE);
.<Void, Void>getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
}

/**
Expand Down Expand Up @@ -1198,7 +1198,7 @@ public PollerFlux<PollResult<BindingResourceInner>, BindingResourceInner> beginU
this.client.getHttpPipeline(),
BindingResourceInner.class,
BindingResourceInner.class,
Context.NONE);
this.client.getContext());
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ public PollerFlux<PollResult<CertificateResourceInner>, CertificateResourceInner
this.client.getHttpPipeline(),
CertificateResourceInner.class,
CertificateResourceInner.class,
Context.NONE);
this.client.getContext());
}

/**
Expand Down Expand Up @@ -802,7 +802,7 @@ public PollerFlux<PollResult<Void>, Void> beginDeleteAsync(
deleteWithResponseAsync(resourceGroupName, serviceName, certificateName);
return this
.client
.<Void, Void>getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE);
.<Void, Void>getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ public PollerFlux<PollResult<ConfigServerResourceInner>, ConfigServerResourceInn
this.client.getHttpPipeline(),
ConfigServerResourceInner.class,
ConfigServerResourceInner.class,
Context.NONE);
this.client.getContext());
}

/**
Expand Down Expand Up @@ -735,7 +735,7 @@ public PollerFlux<PollResult<ConfigServerResourceInner>, ConfigServerResourceInn
this.client.getHttpPipeline(),
ConfigServerResourceInner.class,
ConfigServerResourceInner.class,
Context.NONE);
this.client.getContext());
}

/**
Expand Down Expand Up @@ -1051,7 +1051,7 @@ private Mono<Response<Flux<ByteBuffer>>> validateWithResponseAsync(
this.client.getHttpPipeline(),
ConfigServerSettingsValidateResultInner.class,
ConfigServerSettingsValidateResultInner.class,
Context.NONE);
this.client.getContext());
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ public PollerFlux<PollResult<CustomDomainResourceInner>, CustomDomainResourceInn
this.client.getHttpPipeline(),
CustomDomainResourceInner.class,
CustomDomainResourceInner.class,
Context.NONE);
this.client.getContext());
}

/**
Expand Down Expand Up @@ -890,7 +890,7 @@ public PollerFlux<PollResult<Void>, Void> beginDeleteAsync(
deleteWithResponseAsync(resourceGroupName, serviceName, appName, domainName);
return this
.client
.<Void, Void>getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE);
.<Void, Void>getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
}

/**
Expand Down Expand Up @@ -1204,7 +1204,7 @@ public PollerFlux<PollResult<CustomDomainResourceInner>, CustomDomainResourceInn
this.client.getHttpPipeline(),
CustomDomainResourceInner.class,
CustomDomainResourceInner.class,
Context.NONE);
this.client.getContext());
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ public PollerFlux<PollResult<DeploymentResourceInner>, DeploymentResourceInner>
this.client.getHttpPipeline(),
DeploymentResourceInner.class,
DeploymentResourceInner.class,
Context.NONE);
this.client.getContext());
}

/**
Expand Down Expand Up @@ -954,7 +954,7 @@ public PollerFlux<PollResult<Void>, Void> beginDeleteAsync(
deleteWithResponseAsync(resourceGroupName, serviceName, appName, deploymentName);
return this
.client
.<Void, Void>getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE);
.<Void, Void>getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
}

/**
Expand Down Expand Up @@ -1270,7 +1270,7 @@ public PollerFlux<PollResult<DeploymentResourceInner>, DeploymentResourceInner>
this.client.getHttpPipeline(),
DeploymentResourceInner.class,
DeploymentResourceInner.class,
Context.NONE);
this.client.getContext());
}

/**
Expand Down Expand Up @@ -2054,7 +2054,7 @@ public PollerFlux<PollResult<Void>, Void> beginStartAsync(
startWithResponseAsync(resourceGroupName, serviceName, appName, deploymentName);
return this
.client
.<Void, Void>getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE);
.<Void, Void>getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
}

/**
Expand Down Expand Up @@ -2335,7 +2335,7 @@ public PollerFlux<PollResult<Void>, Void> beginStopAsync(
stopWithResponseAsync(resourceGroupName, serviceName, appName, deploymentName);
return this
.client
.<Void, Void>getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE);
.<Void, Void>getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
}

/**
Expand Down Expand Up @@ -2616,7 +2616,7 @@ public PollerFlux<PollResult<Void>, Void> beginRestartAsync(
restartWithResponseAsync(resourceGroupName, serviceName, appName, deploymentName);
return this
.client
.<Void, Void>getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE);
.<Void, Void>getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ public PollerFlux<PollResult<MonitoringSettingResourceInner>, MonitoringSettingR
this.client.getHttpPipeline(),
MonitoringSettingResourceInner.class,
MonitoringSettingResourceInner.class,
Context.NONE);
this.client.getContext());
}

/**
Expand Down Expand Up @@ -715,7 +715,7 @@ public PollerFlux<PollResult<MonitoringSettingResourceInner>, MonitoringSettingR
this.client.getHttpPipeline(),
MonitoringSettingResourceInner.class,
MonitoringSettingResourceInner.class,
Context.NONE);
this.client.getContext());
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ public PollerFlux<PollResult<ServiceResourceInner>, ServiceResourceInner> beginC
this.client.getHttpPipeline(),
ServiceResourceInner.class,
ServiceResourceInner.class,
Context.NONE);
this.client.getContext());
}

/**
Expand Down Expand Up @@ -805,7 +805,7 @@ public PollerFlux<PollResult<Void>, Void> beginDeleteAsync(String resourceGroupN
Mono<Response<Flux<ByteBuffer>>> mono = deleteWithResponseAsync(resourceGroupName, serviceName);
return this
.client
.<Void, Void>getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE);
.<Void, Void>getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
}

/**
Expand Down Expand Up @@ -1063,7 +1063,7 @@ public PollerFlux<PollResult<ServiceResourceInner>, ServiceResourceInner> beginU
this.client.getHttpPipeline(),
ServiceResourceInner.class,
ServiceResourceInner.class,
Context.NONE);
this.client.getContext());
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1168,7 +1168,7 @@ private Mono<Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(
this.client.getHttpPipeline(),
AppServiceCertificateOrderInner.class,
AppServiceCertificateOrderInner.class,
Context.NONE);
this.client.getContext());
}

/**
Expand Down Expand Up @@ -2169,7 +2169,7 @@ private Mono<Response<Flux<ByteBuffer>>> createOrUpdateCertificateWithResponseAs
this.client.getHttpPipeline(),
AppServiceCertificateResourceInner.class,
AppServiceCertificateResourceInner.class,
Context.NONE);
this.client.getContext());
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1590,7 +1590,7 @@ private Mono<Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(
this.client.getHttpPipeline(),
AppServiceEnvironmentResourceInner.class,
AppServiceEnvironmentResourceInner.class,
Context.NONE);
this.client.getContext());
}

/**
Expand Down Expand Up @@ -1863,7 +1863,7 @@ public PollerFlux<PollResult<Void>, Void> beginDeleteAsync(
Mono<Response<Flux<ByteBuffer>>> mono = deleteWithResponseAsync(resourceGroupName, name, forceDelete);
return this
.client
.<Void, Void>getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE);
.<Void, Void>getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
}

/**
Expand Down Expand Up @@ -2600,7 +2600,7 @@ private Mono<PagedResponse<SiteInner>> changeVnetSinglePageAsync(
this.client.getHttpPipeline(),
WebAppCollection.class,
WebAppCollection.class,
Context.NONE)
this.client.getContext())
.last()
.flatMap(this.client::getLroFinalResultOrError));
})
Expand Down Expand Up @@ -4053,7 +4053,7 @@ private Mono<Response<Flux<ByteBuffer>>> createOrUpdateMultiRolePoolWithResponse
this.client.getHttpPipeline(),
WorkerPoolResourceInner.class,
WorkerPoolResourceInner.class,
Context.NONE);
this.client.getContext());
}

/**
Expand Down Expand Up @@ -5960,7 +5960,7 @@ private Mono<Response<Flux<ByteBuffer>>> approveOrRejectPrivateEndpointConnectio
this.client.getHttpPipeline(),
RemotePrivateEndpointConnectionArmResourceInner.class,
RemotePrivateEndpointConnectionArmResourceInner.class,
Context.NONE);
this.client.getContext());
}

/**
Expand Down Expand Up @@ -6282,7 +6282,7 @@ public PollerFlux<PollResult<Object>, Object> beginDeletePrivateEndpointConnecti
return this
.client
.<Object, Object>getLroResult(
mono, this.client.getHttpPipeline(), Object.class, Object.class, Context.NONE);
mono, this.client.getHttpPipeline(), Object.class, Object.class, this.client.getContext());
}

/**
Expand Down Expand Up @@ -6765,7 +6765,7 @@ private Mono<PagedResponse<SiteInner>> resumeSinglePageAsync(String resourceGrou
this.client.getHttpPipeline(),
WebAppCollection.class,
WebAppCollection.class,
Context.NONE)
this.client.getContext())
.last()
.flatMap(this.client::getLroFinalResultOrError));
})
Expand Down Expand Up @@ -7354,7 +7354,7 @@ private Mono<PagedResponse<SiteInner>> suspendSinglePageAsync(String resourceGro
this.client.getHttpPipeline(),
WebAppCollection.class,
WebAppCollection.class,
Context.NONE)
this.client.getContext())
.last()
.flatMap(this.client::getLroFinalResultOrError));
})
Expand Down Expand Up @@ -8208,7 +8208,7 @@ public PollerFlux<PollResult<WorkerPoolResourceInner>, WorkerPoolResourceInner>
this.client.getHttpPipeline(),
WorkerPoolResourceInner.class,
WorkerPoolResourceInner.class,
Context.NONE);
this.client.getContext());
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1201,7 +1201,7 @@ public PollerFlux<PollResult<AppServicePlanInner>, AppServicePlanInner> beginCre
this.client.getHttpPipeline(),
AppServicePlanInner.class,
AppServicePlanInner.class,
Context.NONE);
this.client.getContext());
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1343,7 +1343,7 @@ public PollerFlux<PollResult<DomainInner>, DomainInner> beginCreateOrUpdateAsync
return this
.client
.<DomainInner, DomainInner>getLroResult(
mono, this.client.getHttpPipeline(), DomainInner.class, DomainInner.class, Context.NONE);
mono, this.client.getHttpPipeline(), DomainInner.class, DomainInner.class, this.client.getContext());
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ public PollerFlux<PollResult<KubeEnvironmentInner>, KubeEnvironmentInner> beginC
this.client.getHttpPipeline(),
KubeEnvironmentInner.class,
KubeEnvironmentInner.class,
Context.NONE);
this.client.getContext());
}

/**
Expand Down Expand Up @@ -1016,7 +1016,7 @@ public PollerFlux<PollResult<Void>, Void> beginDeleteAsync(String resourceGroupN
Mono<Response<Flux<ByteBuffer>>> mono = deleteWithResponseAsync(resourceGroupName, name);
return this
.client
.<Void, Void>getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE);
.<Void, Void>getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
}

/**
Expand Down
Loading

0 comments on commit 5a48e7f

Please sign in to comment.