Skip to content

Commit

Permalink
Update to API Specs 2020-08-27
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhailshilkov committed Aug 27, 2020
1 parent fdf450c commit a6f89c8
Show file tree
Hide file tree
Showing 108 changed files with 8,718 additions and 974 deletions.
2 changes: 1 addition & 1 deletion azure-rest-api-specs
2 changes: 1 addition & 1 deletion sdk/dotnet/Cache/V20180301/Inputs/SkuArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace Pulumi.AzureRM.Cache.V20180301.Inputs
public sealed class SkuArgs : Pulumi.ResourceArgs
{
/// <summary>
/// The size of the Redis cache to deploy. Valid values: for C (Basic/Standard) family (0, 1, 2, 3, 4, 5, 6), for P (Premium) family (1, 2, 3, 4).
/// The size of the Redis cache to deploy. Valid values: for C (Basic/Standard) family (0, 1, 2, 3, 4, 5, 6), for P (Premium) family (1, 2, 3, 4, 5).
/// </summary>
[Input("capacity", required: true)]
public Input<int> Capacity { get; set; } = null!;
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Cache/V20180301/Outputs/SkuResponseResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace Pulumi.AzureRM.Cache.V20180301.Outputs
public sealed class SkuResponseResult
{
/// <summary>
/// The size of the Redis cache to deploy. Valid values: for C (Basic/Standard) family (0, 1, 2, 3, 4, 5, 6), for P (Premium) family (1, 2, 3, 4).
/// The size of the Redis cache to deploy. Valid values: for C (Basic/Standard) family (0, 1, 2, 3, 4, 5, 6), for P (Premium) family (1, 2, 3, 4, 5).
/// </summary>
public readonly int Capacity;
/// <summary>
Expand Down
4 changes: 2 additions & 2 deletions sdk/dotnet/DBforMariaDB/V20180601/GetServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public sealed class GetServerResult
/// </summary>
public readonly string? FullyQualifiedDomainName;
/// <summary>
/// The location the resource resides in.
/// The geo-location where the resource lives
/// </summary>
public readonly string Location;
/// <summary>
Expand Down Expand Up @@ -92,7 +92,7 @@ public sealed class GetServerResult
/// </summary>
public readonly Outputs.StorageProfileResponseResult? StorageProfile;
/// <summary>
/// Application-specific metadata in the form of key-value pairs.
/// Resource tags.
/// </summary>
public readonly ImmutableDictionary<string, string>? Tags;
/// <summary>
Expand Down
4 changes: 2 additions & 2 deletions sdk/dotnet/DBforMariaDB/V20180601/Server.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public partial class Server : Pulumi.CustomResource
public Output<string?> FullyQualifiedDomainName { get; private set; } = null!;

/// <summary>
/// The location the resource resides in.
/// The geo-location where the resource lives
/// </summary>
[Output("location")]
public Output<string> Location { get; private set; } = null!;
Expand Down Expand Up @@ -93,7 +93,7 @@ public partial class Server : Pulumi.CustomResource
public Output<Outputs.StorageProfileResponseResult?> StorageProfile { get; private set; } = null!;

/// <summary>
/// Application-specific metadata in the form of key-value pairs.
/// Resource tags.
/// </summary>
[Output("tags")]
public Output<ImmutableDictionary<string, string>?> Tags { get; private set; } = null!;
Expand Down
4 changes: 2 additions & 2 deletions sdk/dotnet/DBforMySQL/V20171201/GetServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public sealed class GetServerResult
/// </summary>
public readonly string? InfrastructureEncryption;
/// <summary>
/// The location the resource resides in.
/// The geo-location where the resource lives
/// </summary>
public readonly string Location;
/// <summary>
Expand Down Expand Up @@ -108,7 +108,7 @@ public sealed class GetServerResult
/// </summary>
public readonly Outputs.StorageProfileResponseResult? StorageProfile;
/// <summary>
/// Application-specific metadata in the form of key-value pairs.
/// Resource tags.
/// </summary>
public readonly ImmutableDictionary<string, string>? Tags;
/// <summary>
Expand Down
4 changes: 2 additions & 2 deletions sdk/dotnet/DBforMySQL/V20171201/Server.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public partial class Server : Pulumi.CustomResource
public Output<string?> InfrastructureEncryption { get; private set; } = null!;

/// <summary>
/// The location the resource resides in.
/// The geo-location where the resource lives
/// </summary>
[Output("location")]
public Output<string> Location { get; private set; } = null!;
Expand Down Expand Up @@ -117,7 +117,7 @@ public partial class Server : Pulumi.CustomResource
public Output<Outputs.StorageProfileResponseResult?> StorageProfile { get; private set; } = null!;

/// <summary>
/// Application-specific metadata in the form of key-value pairs.
/// Resource tags.
/// </summary>
[Output("tags")]
public Output<ImmutableDictionary<string, string>?> Tags { get; private set; } = null!;
Expand Down
1 change: 1 addition & 0 deletions sdk/dotnet/Search/V20150819/Service.cs
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions?
Aliases =
{
new Alias { Type = "azurerm:search/v20200313:Service"},
new Alias { Type = "azurerm:search/v20200801:Service"},
},
};
var merged = CustomResourceOptions.Merge(defaultOptions, options);
Expand Down
7 changes: 0 additions & 7 deletions sdk/dotnet/Search/V20200313/GetService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,6 @@ public sealed class GetServiceResult
/// </summary>
public readonly int? ReplicaCount;
/// <summary>
/// The list of shared private link resources managed by the Azure Cognitive Search service.
/// </summary>
public readonly ImmutableArray<Outputs.SharedPrivateLinkResourceResponseResult> SharedPrivateLinkResources;
/// <summary>
/// The SKU of the Search Service, which determines price tier and capacity limits. This property is required when creating a new Search Service.
/// </summary>
public readonly Outputs.SkuResponseResult? Sku;
Expand Down Expand Up @@ -126,8 +122,6 @@ private GetServiceResult(

int? replicaCount,

ImmutableArray<Outputs.SharedPrivateLinkResourceResponseResult> sharedPrivateLinkResources,

Outputs.SkuResponseResult? sku,

string status,
Expand All @@ -148,7 +142,6 @@ private GetServiceResult(
ProvisioningState = provisioningState;
PublicNetworkAccess = publicNetworkAccess;
ReplicaCount = replicaCount;
SharedPrivateLinkResources = sharedPrivateLinkResources;
Sku = sku;
Status = status;
StatusDetails = statusDetails;
Expand Down
4 changes: 4 additions & 0 deletions sdk/dotnet/Search/V20200313/PrivateEndpointConnection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions?
var defaultOptions = new CustomResourceOptions
{
Version = Utilities.Version,
Aliases =
{
new Alias { Type = "azurerm:search/v20200801:PrivateEndpointConnection"},
},
};
var merged = CustomResourceOptions.Merge(defaultOptions, options);
// Override the ID if one was specified for consistency with other language SDKs.
Expand Down
7 changes: 1 addition & 6 deletions sdk/dotnet/Search/V20200313/Service.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,6 @@ public partial class Service : Pulumi.CustomResource
[Output("replicaCount")]
public Output<int?> ReplicaCount { get; private set; } = null!;

/// <summary>
/// The list of shared private link resources managed by the Azure Cognitive Search service.
/// </summary>
[Output("sharedPrivateLinkResources")]
public Output<ImmutableArray<Outputs.SharedPrivateLinkResourceResponseResult>> SharedPrivateLinkResources { get; private set; } = null!;

/// <summary>
/// The SKU of the Search Service, which determines price tier and capacity limits. This property is required when creating a new Search Service.
/// </summary>
Expand Down Expand Up @@ -136,6 +130,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions?
Aliases =
{
new Alias { Type = "azurerm:search/v20150819:Service"},
new Alias { Type = "azurerm:search/v20200801:Service"},
},
};
var merged = CustomResourceOptions.Merge(defaultOptions, options);
Expand Down
74 changes: 74 additions & 0 deletions sdk/dotnet/Search/V20200801/GetPrivateEndpointConnection.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;

namespace Pulumi.AzureRM.Search.V20200801
{
public static class GetPrivateEndpointConnection
{
public static Task<GetPrivateEndpointConnectionResult> InvokeAsync(GetPrivateEndpointConnectionArgs args, InvokeOptions? options = null)
=> Pulumi.Deployment.Instance.InvokeAsync<GetPrivateEndpointConnectionResult>("azurerm:search/v20200801:getPrivateEndpointConnection", args ?? new GetPrivateEndpointConnectionArgs(), options.WithVersion());
}


public sealed class GetPrivateEndpointConnectionArgs : Pulumi.InvokeArgs
{
/// <summary>
/// The name of the private endpoint connection to the Azure Cognitive Search service with the specified resource group.
/// </summary>
[Input("privateEndpointConnectionName", required: true)]
public string PrivateEndpointConnectionName { get; set; } = null!;

/// <summary>
/// The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
/// </summary>
[Input("resourceGroupName", required: true)]
public string ResourceGroupName { get; set; } = null!;

/// <summary>
/// The name of the Azure Cognitive Search service associated with the specified resource group.
/// </summary>
[Input("searchServiceName", required: true)]
public string SearchServiceName { get; set; } = null!;

public GetPrivateEndpointConnectionArgs()
{
}
}


[OutputType]
public sealed class GetPrivateEndpointConnectionResult
{
/// <summary>
/// The name of the resource
/// </summary>
public readonly string Name;
/// <summary>
/// Describes the properties of an existing Private Endpoint connection to the Azure Cognitive Search service.
/// </summary>
public readonly Outputs.PrivateEndpointConnectionPropertiesResponseResult Properties;
/// <summary>
/// The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
/// </summary>
public readonly string Type;

[OutputConstructor]
private GetPrivateEndpointConnectionResult(
string name,

Outputs.PrivateEndpointConnectionPropertiesResponseResult properties,

string type)
{
Name = name;
Properties = properties;
Type = type;
}
}
}
159 changes: 159 additions & 0 deletions sdk/dotnet/Search/V20200801/GetService.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;

namespace Pulumi.AzureRM.Search.V20200801
{
public static class GetService
{
public static Task<GetServiceResult> InvokeAsync(GetServiceArgs args, InvokeOptions? options = null)
=> Pulumi.Deployment.Instance.InvokeAsync<GetServiceResult>("azurerm:search/v20200801:getService", args ?? new GetServiceArgs(), options.WithVersion());
}


public sealed class GetServiceArgs : Pulumi.InvokeArgs
{
/// <summary>
/// The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
/// </summary>
[Input("resourceGroupName", required: true)]
public string ResourceGroupName { get; set; } = null!;

/// <summary>
/// The name of the Azure Cognitive Search service associated with the specified resource group.
/// </summary>
[Input("searchServiceName", required: true)]
public string SearchServiceName { get; set; } = null!;

public GetServiceArgs()
{
}
}


[OutputType]
public sealed class GetServiceResult
{
/// <summary>
/// Applicable only for the standard3 SKU. You can set this property to enable up to 3 high density partitions that allow up to 1000 indexes, which is much higher than the maximum indexes allowed for any other SKU. For the standard3 SKU, the value is either 'default' or 'highDensity'. For all other SKUs, this value must be 'default'.
/// </summary>
public readonly string? HostingMode;
/// <summary>
/// The identity of the resource.
/// </summary>
public readonly Outputs.IdentityResponseResult? Identity;
/// <summary>
/// The geo-location where the resource lives
/// </summary>
public readonly string Location;
/// <summary>
/// The name of the resource
/// </summary>
public readonly string Name;
/// <summary>
/// Network specific rules that determine how the Azure Cognitive Search service may be reached.
/// </summary>
public readonly Outputs.NetworkRuleSetResponseResult? NetworkRuleSet;
/// <summary>
/// The number of partitions in the Search service; if specified, it can be 1, 2, 3, 4, 6, or 12. Values greater than 1 are only valid for standard SKUs. For 'standard3' services with hostingMode set to 'highDensity', the allowed values are between 1 and 3.
/// </summary>
public readonly int? PartitionCount;
/// <summary>
/// The list of private endpoint connections to the Azure Cognitive Search service.
/// </summary>
public readonly ImmutableArray<Outputs.PrivateEndpointConnectionResponseResult> PrivateEndpointConnections;
/// <summary>
/// The state of the last provisioning operation performed on the Search service. Provisioning is an intermediate state that occurs while service capacity is being established. After capacity is set up, provisioningState changes to either 'succeeded' or 'failed'. Client applications can poll provisioning status (the recommended polling interval is from 30 seconds to one minute) by using the Get Search Service operation to see when an operation is completed. If you are using the free service, this value tends to come back as 'succeeded' directly in the call to Create Search service. This is because the free service uses capacity that is already set up.
/// </summary>
public readonly string ProvisioningState;
/// <summary>
/// This value can be set to 'enabled' to avoid breaking changes on existing customer resources and templates. If set to 'disabled', traffic over public interface is not allowed, and private endpoint connections would be the exclusive access method.
/// </summary>
public readonly string? PublicNetworkAccess;
/// <summary>
/// The number of replicas in the Search service. If specified, it must be a value between 1 and 12 inclusive for standard SKUs or between 1 and 3 inclusive for basic SKU.
/// </summary>
public readonly int? ReplicaCount;
/// <summary>
/// The list of shared private link resources managed by the Azure Cognitive Search service.
/// </summary>
public readonly ImmutableArray<Outputs.SharedPrivateLinkResourceResponseResult> SharedPrivateLinkResources;
/// <summary>
/// The SKU of the Search Service, which determines price tier and capacity limits. This property is required when creating a new Search Service.
/// </summary>
public readonly Outputs.SkuResponseResult? Sku;
/// <summary>
/// The status of the Search service. Possible values include: 'running': The Search service is running and no provisioning operations are underway. 'provisioning': The Search service is being provisioned or scaled up or down. 'deleting': The Search service is being deleted. 'degraded': The Search service is degraded. This can occur when the underlying search units are not healthy. The Search service is most likely operational, but performance might be slow and some requests might be dropped. 'disabled': The Search service is disabled. In this state, the service will reject all API requests. 'error': The Search service is in an error state. If your service is in the degraded, disabled, or error states, it means the Azure Cognitive Search team is actively investigating the underlying issue. Dedicated services in these states are still chargeable based on the number of search units provisioned.
/// </summary>
public readonly string Status;
/// <summary>
/// The details of the Search service status.
/// </summary>
public readonly string StatusDetails;
/// <summary>
/// Resource tags.
/// </summary>
public readonly ImmutableDictionary<string, string>? Tags;
/// <summary>
/// The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
/// </summary>
public readonly string Type;

[OutputConstructor]
private GetServiceResult(
string? hostingMode,

Outputs.IdentityResponseResult? identity,

string location,

string name,

Outputs.NetworkRuleSetResponseResult? networkRuleSet,

int? partitionCount,

ImmutableArray<Outputs.PrivateEndpointConnectionResponseResult> privateEndpointConnections,

string provisioningState,

string? publicNetworkAccess,

int? replicaCount,

ImmutableArray<Outputs.SharedPrivateLinkResourceResponseResult> sharedPrivateLinkResources,

Outputs.SkuResponseResult? sku,

string status,

string statusDetails,

ImmutableDictionary<string, string>? tags,

string type)
{
HostingMode = hostingMode;
Identity = identity;
Location = location;
Name = name;
NetworkRuleSet = networkRuleSet;
PartitionCount = partitionCount;
PrivateEndpointConnections = privateEndpointConnections;
ProvisioningState = provisioningState;
PublicNetworkAccess = publicNetworkAccess;
ReplicaCount = replicaCount;
SharedPrivateLinkResources = sharedPrivateLinkResources;
Sku = sku;
Status = status;
StatusDetails = statusDetails;
Tags = tags;
Type = type;
}
}
}
Loading

0 comments on commit a6f89c8

Please sign in to comment.