public override void ExecuteCmdlet() { if (this.IsParameterBound(c => c.WorkspaceObject)) { this.WorkspaceName = this.WorkspaceObject.Name; } if (this.IsParameterBound(c => c.InputObject)) { this.WorkspaceName = this.InputObject.WorkspaceName; this.LinkConnectionName = this.InputObject.Name; } var updateLandingZoneCredential = new UpdateLandingZoneCredential(); updateLandingZoneCredential.SasToken = this.SasToken; if (this.ShouldProcess(this.WorkspaceName, String.Format(Resources.UpdatingLinkConnectionLandingZoneCredential, this.LinkConnectionName, this.WorkspaceName))) { SynapseAnalyticsClient.UpdateLandingZoneCredential(this.LinkConnectionName, updateLandingZoneCredential); } }
public void UpdateLandingZoneCredential(string linkConnectionName, UpdateLandingZoneCredential updateLandingZoneCredentialRequest) { _linkConnectionClient.UpdateLandingZoneCredential(linkConnectionName, updateLandingZoneCredentialRequest); }
public virtual Response UpdateLandingZoneCredential(string linkConnectionName, UpdateLandingZoneCredential updateLandingZoneCredentialRequest, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("LinkConnectionClient.UpdateLandingZoneCredential"); scope.Start(); try { return(RestClient.UpdateLandingZoneCredential(linkConnectionName, updateLandingZoneCredentialRequest, cancellationToken)); } catch (Exception e) { scope.Failed(e); throw; } }