Skip to content

Commit

Permalink
CodeGen from PR 16585 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge ce4ac3e65cf6bf23461ecfe740f8576bd2ddca35 into d90729bbada2b4f784f2737ab4b4e39693a7aab8
  • Loading branch information
SDKAuto committed Dec 8, 2021
1 parent cc7e280 commit e7b66ff
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 43 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.0.0-beta.9 (Unreleased)
## 1.0.0-beta.1 (2021-12-08)

- Azure Resource Manager DataFactory client library for Java. This package contains Microsoft Azure SDK for DataFactory Management SDK. The Azure Data Factory V2 management API provides a RESTful set of web services that interact with Azure Data Factory V2 services. Package tag package-2018-06. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

### Features Added

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-datafactory</artifactId>
<version>1.0.0-beta.8</version>
<version>1.0.0-beta.9</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ public DataFactoryManager authenticate(TokenCredential credential, AzureProfile
.append("-")
.append("com.azure.resourcemanager.datafactory")
.append("/")
.append("1.0.0-beta.8");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.datafactory.models.BlobEventTypes;
import com.azure.resourcemanager.datafactory.models.BlobEventType;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
Expand Down Expand Up @@ -44,7 +44,7 @@ public final class BlobEventsTriggerTypeProperties {
* The type of events that cause this trigger to fire.
*/
@JsonProperty(value = "events", required = true)
private List<BlobEventTypes> events;
private List<BlobEventType> events;

/*
* The ARM resource ID of the Storage Account.
Expand Down Expand Up @@ -125,7 +125,7 @@ public BlobEventsTriggerTypeProperties withIgnoreEmptyBlobs(Boolean ignoreEmptyB
*
* @return the events value.
*/
public List<BlobEventTypes> events() {
public List<BlobEventType> events() {
return this.events;
}

Expand All @@ -135,7 +135,7 @@ public List<BlobEventTypes> events() {
* @param events the events value to set.
* @return the BlobEventsTriggerTypeProperties object itself.
*/
public BlobEventsTriggerTypeProperties withEvents(List<BlobEventTypes> events) {
public BlobEventsTriggerTypeProperties withEvents(List<BlobEventType> events) {
this.events = events;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// 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;

/** Defines values for BlobEventType. */
public final class BlobEventType extends ExpandableStringEnum<BlobEventType> {
/** Static value Microsoft.Storage.BlobCreated for BlobEventType. */
public static final BlobEventType MICROSOFT_STORAGE_BLOB_CREATED = fromString("Microsoft.Storage.BlobCreated");

/** Static value Microsoft.Storage.BlobDeleted for BlobEventType. */
public static final BlobEventType MICROSOFT_STORAGE_BLOB_DELETED = fromString("Microsoft.Storage.BlobDeleted");

/**
* Creates or finds a BlobEventType from its string representation.
*
* @param name a name to look for.
* @return the corresponding BlobEventType.
*/
@JsonCreator
public static BlobEventType fromString(String name) {
return fromString(name, BlobEventType.class);
}

/** @return known BlobEventType values. */
public static Collection<BlobEventType> values() {
return values(BlobEventType.class);
}
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public BlobEventsTrigger withIgnoreEmptyBlobs(Boolean ignoreEmptyBlobs) {
*
* @return the events value.
*/
public List<BlobEventTypes> events() {
public List<BlobEventType> events() {
return this.innerTypeProperties() == null ? null : this.innerTypeProperties().events();
}

Expand All @@ -148,7 +148,7 @@ public List<BlobEventTypes> events() {
* @param events the events value to set.
* @return the BlobEventsTrigger object itself.
*/
public BlobEventsTrigger withEvents(List<BlobEventTypes> events) {
public BlobEventsTrigger withEvents(List<BlobEventType> events) {
if (this.innerTypeProperties() == null) {
this.innerTypeProperties = new BlobEventsTriggerTypeProperties();
}
Expand Down

0 comments on commit e7b66ff

Please sign in to comment.