forked from Azure/azure-sdk-for-java
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CodeGen from PR 17553 in Azure/azure-rest-api-specs
Fix update PublicNetworkAccess not work in Factory Update API (Azure#17553) * Fix update PublicNetworkAccess not work in Factory Update API * fix an issue * update
- Loading branch information
SDKAuto
committed
Feb 7, 2022
1 parent
58c802a
commit 418f022
Showing
5 changed files
with
87 additions
and
18 deletions.
There are no files selected for viewing
4 changes: 3 additions & 1 deletion
4
sdk/datafactory/azure-resourcemanager-datafactory/CHANGELOG.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
...ain/java/com/azure/resourcemanager/datafactory/fluent/models/FactoryUpdateProperties.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
// Code generated by Microsoft (R) AutoRest Code Generator. | ||
|
||
package com.azure.resourcemanager.datafactory.fluent.models; | ||
|
||
import com.azure.core.annotation.Fluent; | ||
import com.azure.core.util.logging.ClientLogger; | ||
import com.azure.resourcemanager.datafactory.models.PublicNetworkAccess; | ||
import com.fasterxml.jackson.annotation.JsonIgnore; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
/** Factory update resource properties. */ | ||
@Fluent | ||
public final class FactoryUpdateProperties { | ||
@JsonIgnore private final ClientLogger logger = new ClientLogger(FactoryUpdateProperties.class); | ||
|
||
/* | ||
* Whether or not public network access is allowed for the data factory. | ||
*/ | ||
@JsonProperty(value = "publicNetworkAccess") | ||
private PublicNetworkAccess publicNetworkAccess; | ||
|
||
/** | ||
* Get the publicNetworkAccess property: Whether or not public network access is allowed for the data factory. | ||
* | ||
* @return the publicNetworkAccess value. | ||
*/ | ||
public PublicNetworkAccess publicNetworkAccess() { | ||
return this.publicNetworkAccess; | ||
} | ||
|
||
/** | ||
* Set the publicNetworkAccess property: Whether or not public network access is allowed for the data factory. | ||
* | ||
* @param publicNetworkAccess the publicNetworkAccess value to set. | ||
* @return the FactoryUpdateProperties object itself. | ||
*/ | ||
public FactoryUpdateProperties withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) { | ||
this.publicNetworkAccess = publicNetworkAccess; | ||
return this; | ||
} | ||
|
||
/** | ||
* Validates the instance. | ||
* | ||
* @throws IllegalArgumentException thrown if the instance is not valid. | ||
*/ | ||
public void validate() { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters