Skip to content

Updated Azure.Provisioning.* to the latest releases (including previews) #50227

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 26 additions & 18 deletions eng/Packages.Data.props
Original file line number Diff line number Diff line change
Expand Up @@ -134,26 +134,34 @@
<PackageReference Update="Azure.Storage.Queues" Version="12.21.0" />
<PackageReference Update="Azure.Storage.Files.Shares" Version="12.21.0" />
<PackageReference Update="Azure.Storage.DataMovement" Version="12.0.0" />
<PackageReference Update="Azure.ResourceManager" Version="1.13.0" />
<PackageReference Update="Azure.ResourceManager.AppConfiguration" Version="1.3.2" />
<PackageReference Update="Azure.ResourceManager.ApplicationInsights" Version="1.0.0" />
<PackageReference Update="Azure.ResourceManager.Authorization" Version="1.1.3" />
<PackageReference Update="Azure.ResourceManager" Version="1.13.1" />
<PackageReference Update="Azure.ResourceManager.AppConfiguration" Version="1.4.0" />
<PackageReference Update="Azure.ResourceManager.AppContainers" Version="1.4.0-beta.1" />
<PackageReference Update="Azure.ResourceManager.ApplicationInsights" Version="1.0.1" />
<PackageReference Update="Azure.ResourceManager.AppService" Version="1.3.0" />
<PackageReference Update="Azure.ResourceManager.Authorization" Version="1.1.4" />
<PackageReference Update="Azure.ResourceManager.Batch" Version="1.4.0" />
<PackageReference Update="Azure.ResourceManager.CognitiveServices" Version="1.3.3" />
<PackageReference Update="Azure.ResourceManager.CosmosDB" Version="1.4.0-beta.9" />
<PackageReference Update="Azure.ResourceManager.CognitiveServices" Version="1.4.0" />
<PackageReference Update="Azure.ResourceManager.Communication" Version="1.2.1" />
<PackageReference Update="Azure.ResourceManager.ContainerRegistry" Version="1.3.0" />
<PackageReference Update="Azure.ResourceManager.ContainerService" Version="1.2.3" />
<PackageReference Update="Azure.ResourceManager.CosmosDB" Version="1.4.0-beta.12" />
<PackageReference Update="Azure.ResourceManager.EventGrid" Version="1.1.0" />
<PackageReference Update="Azure.ResourceManager.EventHubs" Version="1.2.0-beta.1" />
<PackageReference Update="Azure.ResourceManager.KeyVault" Version="1.2.3" />
<PackageReference Update="Azure.ResourceManager.ManagedServiceIdentities" Version="1.2.3" />
<PackageReference Update="Azure.ResourceManager.OperationalInsights" Version="1.2.2" />
<PackageReference Update="Azure.ResourceManager.PostgreSql" Version="1.2.0-beta.6" />
<PackageReference Update="Azure.ResourceManager.Redis" Version="1.4.0" />
<PackageReference Update="Azure.ResourceManager.Resources" Version="1.7.3" />
<PackageReference Update="Azure.ResourceManager.Search" Version="1.3.0-beta.3" />
<PackageReference Update="Azure.ResourceManager.ServiceBus" Version="1.1.0-beta.7" />
<PackageReference Update="Azure.ResourceManager.WebPubSub" Version="1.2.0-beta.1" />
<PackageReference Update="Azure.ResourceManager.SignalR" Version="1.1.2" />
<PackageReference Update="Azure.ResourceManager.Sql" Version="1.3.0-beta.8" />
<PackageReference Update="Azure.ResourceManager.Storage" Version="1.2.3" />
<PackageReference Update="Azure.ResourceManager.KeyVault" Version="1.3.2" />
<PackageReference Update="Azure.ResourceManager.Kubernetes" Version="1.0.0-beta.5" />
<PackageReference Update="Azure.ResourceManager.KubernetesConfiguration" Version="1.2.0" />
<PackageReference Update="Azure.ResourceManager.ManagedServiceIdentities" Version="1.3.0-beta.1" />
<PackageReference Update="Azure.ResourceManager.OperationalInsights" Version="1.3.0" />
<PackageReference Update="Azure.ResourceManager.PostgreSql" Version="1.2.0" />
<PackageReference Update="Azure.ResourceManager.Redis" Version="1.5.0" />
<PackageReference Update="Azure.ResourceManager.Resources" Version="1.9.1" />
<PackageReference Update="Azure.ResourceManager.Search" Version="1.3.0-beta.5" />
<PackageReference Update="Azure.ResourceManager.ServiceBus" Version="1.1.0" />
<PackageReference Update="Azure.ResourceManager.WebPubSub" Version="1.2.0-beta.2" />
<PackageReference Update="Azure.ResourceManager.SignalR" Version="1.1.3" />
<PackageReference Update="Azure.ResourceManager.Sql" Version="1.3.0" />
<PackageReference Update="Azure.ResourceManager.Storage" Version="1.4.2" />

<!-- CDK -->
<PackageReference Update="Azure.Provisioning" Version="1.0.0" />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#nullable enable

using System;
using System.ComponentModel;

namespace Azure.Provisioning.CosmosDB;

/// <summary>
/// CosmosDBService.
/// </summary>
public partial class CosmosDBService
{
/// <summary>
/// Services response resource.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public CosmosDBServiceProperties Properties
{
get => throw new NotSupportedException("TODO: Needs to be implemented using extensibility API.");
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#nullable enable

using System.ComponentModel;

namespace Azure.Provisioning.CosmosDB;

/// <summary>
/// The properties of a DataTransfer Job.
/// </summary>
public partial class DataTransferJobGetResult
{
/// <summary>
/// Error response for Faulted job.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)] // Renamed
public ErrorResponse? Error
{
get => ErrorResult is not null ? new ErrorResponse(ErrorResult) : null;
}
}
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

// <auto-generated/>

#nullable enable

using System;
using System.ComponentModel;
using Azure.Core;
using Azure.Provisioning.Primitives;
using Azure.Provisioning.Resources;
using System;

namespace Azure.Provisioning.CosmosDB;

/// <summary>
/// CosmosDBFirewallRule.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)] // Removed from Preview
public partial class CosmosDBFirewallRule : ProvisionableResource
{
/// <summary>
/// The name of the mongo cluster firewall rule.
/// </summary>
public BicepValue<string> Name
public BicepValue<string> Name
{
get { Initialize(); return _name!; }
set { Initialize(); _name!.Assign(value); }
Expand All @@ -31,7 +31,7 @@ public BicepValue<string> Name
/// The end IP address of the mongo cluster firewall rule. Must be IPv4
/// format.
/// </summary>
public BicepValue<string> EndIPAddress
public BicepValue<string> EndIPAddress
{
get { Initialize(); return _endIPAddress!; }
set { Initialize(); _endIPAddress!.Assign(value); }
Expand All @@ -42,7 +42,7 @@ public BicepValue<string> EndIPAddress
/// The start IP address of the mongo cluster firewall rule. Must be IPv4
/// format.
/// </summary>
public BicepValue<string> StartIPAddress
public BicepValue<string> StartIPAddress
{
get { Initialize(); return _startIPAddress!; }
set { Initialize(); _startIPAddress!.Assign(value); }
Expand All @@ -52,7 +52,7 @@ public BicepValue<string> StartIPAddress
/// <summary>
/// Gets the Id.
/// </summary>
public BicepValue<ResourceIdentifier> Id
public BicepValue<ResourceIdentifier> Id
{
get { Initialize(); return _id!; }
}
Expand All @@ -61,7 +61,7 @@ public BicepValue<ResourceIdentifier> Id
/// <summary>
/// The provisioning state of the firewall rule.
/// </summary>
public BicepValue<CosmosDBProvisioningState> ProvisioningState
public BicepValue<CosmosDBProvisioningState> ProvisioningState
{
get { Initialize(); return _provisioningState!; }
}
Expand All @@ -70,7 +70,7 @@ public BicepValue<CosmosDBProvisioningState> ProvisioningState
/// <summary>
/// Gets the SystemData.
/// </summary>
public SystemData SystemData
public SystemData SystemData
{
get { Initialize(); return _systemData!; }
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

// <auto-generated/>
using System.ComponentModel;

namespace Azure.Provisioning.CosmosDB;

/// <summary>
/// The provisioning state of the resource.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)] // Removed from Preview
public enum CosmosDBProvisioningState
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#nullable enable

using System.ComponentModel;

namespace Azure.Provisioning.CosmosDB;

/// <summary>
/// The properties of a DataTransfer Job.
/// </summary>
public partial class DataTransferJobProperties
{
/// <summary>
/// Error response for Faulted job.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)] // Renamed
public ErrorResponse? Error
{
get => ErrorResult is not null ? new ErrorResponse(ErrorResult) : null;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#nullable enable

using System;
using System.ComponentModel;
using Azure.Provisioning.Primitives;

namespace Azure.Provisioning.CosmosDB;

/// <summary>
/// Error Response.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)] // Renamed
public partial class ErrorResponse : ProvisionableConstruct
{
private CosmosDBErrorResult _errorResult;

/// <summary>
/// Error code.
/// </summary>
public BicepValue<string> Code => _errorResult.Code;

/// <summary>
/// Error message indicating why the operation failed.
/// </summary>
public BicepValue<string> Message => _errorResult.Message;

/// <summary>
/// Creates a new ErrorResponse.
/// </summary>
public ErrorResponse() { _errorResult = new(); }

internal ErrorResponse(CosmosDBErrorResult errorResult)
{
_errorResult = errorResult;
}
}
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

// <auto-generated/>

#nullable enable

using Azure.Provisioning.Primitives;
using System;
using System.ComponentModel;
using Azure.Provisioning.Primitives;

namespace Azure.Provisioning.CosmosDB;

/// <summary>
/// Parameters used for restore operations.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)] // Removed from Preview
public partial class MongoClusterRestoreParameters : ProvisionableConstruct
{
/// <summary>
/// UTC point in time to restore a mongo cluster.
/// </summary>
public BicepValue<DateTimeOffset> PointInTimeUTC
public BicepValue<DateTimeOffset> PointInTimeUTC
{
get { Initialize(); return _pointInTimeUTC!; }
set { Initialize(); _pointInTimeUTC!.Assign(value); }
Expand All @@ -28,7 +28,7 @@ public BicepValue<DateTimeOffset> PointInTimeUTC
/// <summary>
/// Resource ID to locate the source cluster to restore.
/// </summary>
public BicepValue<string> SourceResourceId
public BicepValue<string> SourceResourceId
{
get { Initialize(); return _sourceResourceId!; }
set { Initialize(); _sourceResourceId!.Assign(value); }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

// <auto-generated/>
using System.ComponentModel;

namespace Azure.Provisioning.CosmosDB;

/// <summary>
/// The status of the resource at the time the operation was called.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)] // Removed from Preview
public enum MongoClusterStatus
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

// <auto-generated/>

#nullable enable

using Azure.Provisioning.Primitives;
Expand All @@ -18,7 +16,7 @@ public partial class NodeGroupSpec : ProvisionableConstruct
/// <summary>
/// The node type deployed in the node group.
/// </summary>
public BicepValue<NodeKind> Kind
public BicepValue<NodeKind> Kind
{
get { Initialize(); return _kind!; }
set { Initialize(); _kind!.Assign(value); }
Expand All @@ -28,7 +26,7 @@ public BicepValue<NodeKind> Kind
/// <summary>
/// The number of nodes in the node group.
/// </summary>
public BicepValue<int> NodeCount
public BicepValue<int> NodeCount
{
get { Initialize(); return _nodeCount!; }
set { Initialize(); _nodeCount!.Assign(value); }
Expand All @@ -40,7 +38,7 @@ public BicepValue<int> NodeCount
/// memory that is provisioned for each node. Example values:
/// &apos;M30&apos;, &apos;M40&apos;.
/// </summary>
public BicepValue<string> Sku
public BicepValue<string> Sku
{
get { Initialize(); return _sku!; }
set { Initialize(); _sku!.Assign(value); }
Expand All @@ -51,7 +49,7 @@ public BicepValue<string> Sku
/// The disk storage size for the node group in GB. Example values: 128,
/// 256, 512, 1024.
/// </summary>
public BicepValue<long> DiskSizeInGB
public BicepValue<long> DiskSizeInGB
{
get { Initialize(); return _diskSizeInGB!; }
set { Initialize(); _diskSizeInGB!.Assign(value); }
Expand All @@ -61,7 +59,7 @@ public BicepValue<long> DiskSizeInGB
/// <summary>
/// Whether high availability is enabled on the node group.
/// </summary>
public BicepValue<bool> EnableHa
public BicepValue<bool> EnableHa
{
get { Initialize(); return _enableHa!; }
set { Initialize(); _enableHa!.Assign(value); }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

// <auto-generated/>
using System.ComponentModel;

namespace Azure.Provisioning.CosmosDB;

/// <summary>
/// The kind of a node in the mongo cluster.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)] // Removed from Preview
public enum NodeKind
{
/// <summary>
Expand Down
Loading