forked from Azure/azure-sdk-for-java
-
Notifications
You must be signed in to change notification settings - Fork 10
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 21768 in Azure/azure-rest-api-specs
Merge 91886fe9f5f6175373edc01a0db76b99d049012d into 1114a5b1f0831d8b3de07db7248c8a4f38c5bbb7
- Loading branch information
SDKAuto
committed
Dec 6, 2022
1 parent
dc6b7d5
commit d36475f
Showing
8 changed files
with
397 additions
and
8 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
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
41 changes: 41 additions & 0 deletions
41
...factory/src/main/java/com/azure/resourcemanager/datafactory/models/ConfigurationType.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,41 @@ | ||
// 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.models; | ||
|
||
import com.azure.core.util.ExpandableStringEnum; | ||
import com.fasterxml.jackson.annotation.JsonCreator; | ||
import java.util.Collection; | ||
|
||
/** The type of the spark config. */ | ||
public final class ConfigurationType extends ExpandableStringEnum<ConfigurationType> { | ||
/** Static value Default for ConfigurationType. */ | ||
public static final ConfigurationType DEFAULT = fromString("Default"); | ||
|
||
/** Static value Customized for ConfigurationType. */ | ||
public static final ConfigurationType CUSTOMIZED = fromString("Customized"); | ||
|
||
/** Static value Artifact for ConfigurationType. */ | ||
public static final ConfigurationType ARTIFACT = fromString("Artifact"); | ||
|
||
/** | ||
* Creates or finds a ConfigurationType from its string representation. | ||
* | ||
* @param name a name to look for. | ||
* @return the corresponding ConfigurationType. | ||
*/ | ||
@JsonCreator | ||
public static ConfigurationType fromString(String name) { | ||
return fromString(name, ConfigurationType.class); | ||
} | ||
|
||
/** | ||
* Gets known ConfigurationType values. | ||
* | ||
* @return known ConfigurationType values. | ||
*/ | ||
public static Collection<ConfigurationType> values() { | ||
return values(ConfigurationType.class); | ||
} | ||
} |
93 changes: 93 additions & 0 deletions
93
.../azure/resourcemanager/datafactory/models/SparkConfigurationParametrizationReference.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,93 @@ | ||
// 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.models; | ||
|
||
import com.azure.core.annotation.Fluent; | ||
import com.azure.core.util.logging.ClientLogger; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
/** Spark configuration reference. */ | ||
@Fluent | ||
public final class SparkConfigurationParametrizationReference { | ||
/* | ||
* Spark configuration reference type. | ||
*/ | ||
@JsonProperty(value = "type", required = true) | ||
private SparkConfigurationReferenceType type; | ||
|
||
/* | ||
* Reference spark configuration name. Type: string (or Expression with resultType string). | ||
*/ | ||
@JsonProperty(value = "referenceName", required = true) | ||
private Object referenceName; | ||
|
||
/** Creates an instance of SparkConfigurationParametrizationReference class. */ | ||
public SparkConfigurationParametrizationReference() { | ||
} | ||
|
||
/** | ||
* Get the type property: Spark configuration reference type. | ||
* | ||
* @return the type value. | ||
*/ | ||
public SparkConfigurationReferenceType type() { | ||
return this.type; | ||
} | ||
|
||
/** | ||
* Set the type property: Spark configuration reference type. | ||
* | ||
* @param type the type value to set. | ||
* @return the SparkConfigurationParametrizationReference object itself. | ||
*/ | ||
public SparkConfigurationParametrizationReference withType(SparkConfigurationReferenceType type) { | ||
this.type = type; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get the referenceName property: Reference spark configuration name. Type: string (or Expression with resultType | ||
* string). | ||
* | ||
* @return the referenceName value. | ||
*/ | ||
public Object referenceName() { | ||
return this.referenceName; | ||
} | ||
|
||
/** | ||
* Set the referenceName property: Reference spark configuration name. Type: string (or Expression with resultType | ||
* string). | ||
* | ||
* @param referenceName the referenceName value to set. | ||
* @return the SparkConfigurationParametrizationReference object itself. | ||
*/ | ||
public SparkConfigurationParametrizationReference withReferenceName(Object referenceName) { | ||
this.referenceName = referenceName; | ||
return this; | ||
} | ||
|
||
/** | ||
* Validates the instance. | ||
* | ||
* @throws IllegalArgumentException thrown if the instance is not valid. | ||
*/ | ||
public void validate() { | ||
if (type() == null) { | ||
throw LOGGER | ||
.logExceptionAsError( | ||
new IllegalArgumentException( | ||
"Missing required property type in model SparkConfigurationParametrizationReference")); | ||
} | ||
if (referenceName() == null) { | ||
throw LOGGER | ||
.logExceptionAsError( | ||
new IllegalArgumentException( | ||
"Missing required property referenceName in model SparkConfigurationParametrizationReference")); | ||
} | ||
} | ||
|
||
private static final ClientLogger LOGGER = new ClientLogger(SparkConfigurationParametrizationReference.class); | ||
} |
36 changes: 36 additions & 0 deletions
36
...in/java/com/azure/resourcemanager/datafactory/models/SparkConfigurationReferenceType.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,36 @@ | ||
// 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.models; | ||
|
||
import com.azure.core.util.ExpandableStringEnum; | ||
import com.fasterxml.jackson.annotation.JsonCreator; | ||
import java.util.Collection; | ||
|
||
/** Spark configuration reference type. */ | ||
public final class SparkConfigurationReferenceType extends ExpandableStringEnum<SparkConfigurationReferenceType> { | ||
/** Static value SparkConfigurationReference for SparkConfigurationReferenceType. */ | ||
public static final SparkConfigurationReferenceType SPARK_CONFIGURATION_REFERENCE = | ||
fromString("SparkConfigurationReference"); | ||
|
||
/** | ||
* Creates or finds a SparkConfigurationReferenceType from its string representation. | ||
* | ||
* @param name a name to look for. | ||
* @return the corresponding SparkConfigurationReferenceType. | ||
*/ | ||
@JsonCreator | ||
public static SparkConfigurationReferenceType fromString(String name) { | ||
return fromString(name, SparkConfigurationReferenceType.class); | ||
} | ||
|
||
/** | ||
* Gets known SparkConfigurationReferenceType values. | ||
* | ||
* @return known SparkConfigurationReferenceType values. | ||
*/ | ||
public static Collection<SparkConfigurationReferenceType> values() { | ||
return values(SparkConfigurationReferenceType.class); | ||
} | ||
} |
Oops, something went wrong.