Skip to content

Commit

Permalink
Add defaults for Azure Spring Apps sub-resources
Browse files Browse the repository at this point in the history
  • Loading branch information
chutch1122 committed Oct 24, 2022
1 parent b49047f commit 93fe0fe
Show file tree
Hide file tree
Showing 429 changed files with 75,614 additions and 6,934 deletions.
33 changes: 26 additions & 7 deletions provider/pkg/openapi/defaultResourcesState.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ var defaultResourcesStateRaw = map[string]map[string]interface{}{
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/advisors/{advisorName}": {
"autoExecuteStatus": "Default",
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/azureADOnlyAuthentications/{authenticationName}":{
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/azureADOnlyAuthentications/{authenticationName}": {
"azureADOnlyAuthentication": false,
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/advisors/{advisorName}": {
Expand All @@ -53,11 +53,11 @@ var defaultResourcesStateRaw = map[string]map[string]interface{}{
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/auditingSettings/{blobAuditingPolicyName}": {
"state": "Disabled",
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/backupLongTermRetentionPolicies/{policyName}": {
"weeklyRetention": "PT0S",
"monthlyRetention":"PT0S",
"yearlyRetention": "PT0S",
"weekOfYear": 1,
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/backupLongTermRetentionPolicies/{policyName}": {
"weeklyRetention": "PT0S",
"monthlyRetention": "PT0S",
"yearlyRetention": "PT0S",
"weekOfYear": 1,
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/backupShortTermRetentionPolicies/{policyName}": {
"retentionDays": 7,
Expand Down Expand Up @@ -121,7 +121,26 @@ var defaultResourcesStateRaw = map[string]map[string]interface{}{
"subnetResourceId": "*", // This is going to be a resource ID, so we choose accept any value here.
"swiftSupported": true,
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/sourcecontrols/web": {},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/sourcecontrols/web": {},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default": {
"properties": map[string]interface{}{
"traceEnabled": false,
"appInsightsInstrumentationKey": "",
"appInsightsSamplingRate": 10.0,
},
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default": {
"properties": map[string]interface{}{
"configServer": map[string]string{},
},
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools/{agentPoolName}": {
"properties": map[string]interface{}{
"poolSize": map[string]interface{}{
"name": "S1",
},
},
},
}

// defaultResourcesStateNormalized maps normalized paths of resources to default state of a resource. The default state is
Expand Down
131 changes: 131 additions & 0 deletions sdk/dotnet/AppPlatform/BuildServiceAgentPool.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
// *** 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.AzureNative.AppPlatform
{
/// <summary>
/// The build service agent pool resource
/// API Version: 2022-01-01-preview.
/// </summary>
[AzureNativeResourceType("azure-native:appplatform:BuildServiceAgentPool")]
public partial class BuildServiceAgentPool : global::Pulumi.CustomResource
{
/// <summary>
/// The name of the resource.
/// </summary>
[Output("name")]
public Output<string> Name { get; private set; } = null!;

/// <summary>
/// build service agent pool properties
/// </summary>
[Output("properties")]
public Output<Outputs.BuildServiceAgentPoolPropertiesResponse> Properties { get; private set; } = null!;

/// <summary>
/// Metadata pertaining to creation and last modification of the resource.
/// </summary>
[Output("systemData")]
public Output<Outputs.SystemDataResponse> SystemData { get; private set; } = null!;

/// <summary>
/// The type of the resource.
/// </summary>
[Output("type")]
public Output<string> Type { get; private set; } = null!;


/// <summary>
/// Create a BuildServiceAgentPool resource with the given unique name, arguments, and options.
/// </summary>
///
/// <param name="name">The unique name of the resource</param>
/// <param name="args">The arguments used to populate this resource's properties</param>
/// <param name="options">A bag of options that control this resource's behavior</param>
public BuildServiceAgentPool(string name, BuildServiceAgentPoolArgs args, CustomResourceOptions? options = null)
: base("azure-native:appplatform:BuildServiceAgentPool", name, args ?? new BuildServiceAgentPoolArgs(), MakeResourceOptions(options, ""))
{
}

private BuildServiceAgentPool(string name, Input<string> id, CustomResourceOptions? options = null)
: base("azure-native:appplatform:BuildServiceAgentPool", name, null, MakeResourceOptions(options, id))
{
}

private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id)
{
var defaultOptions = new CustomResourceOptions
{
Version = Utilities.Version,
Aliases =
{
new global::Pulumi.Alias { Type = "azure-native:appplatform/v20220101preview:BuildServiceAgentPool"},
new global::Pulumi.Alias { Type = "azure-native:appplatform/v20220301preview:BuildServiceAgentPool"},
new global::Pulumi.Alias { Type = "azure-native:appplatform/v20220401:BuildServiceAgentPool"},
new global::Pulumi.Alias { Type = "azure-native:appplatform/v20220501preview:BuildServiceAgentPool"},
new global::Pulumi.Alias { Type = "azure-native:appplatform/v20220901preview:BuildServiceAgentPool"},
},
};
var merged = CustomResourceOptions.Merge(defaultOptions, options);
// Override the ID if one was specified for consistency with other language SDKs.
merged.Id = id ?? merged.Id;
return merged;
}
/// <summary>
/// Get an existing BuildServiceAgentPool resource's state with the given name, ID, and optional extra
/// properties used to qualify the lookup.
/// </summary>
///
/// <param name="name">The unique name of the resulting resource.</param>
/// <param name="id">The unique provider ID of the resource to lookup.</param>
/// <param name="options">A bag of options that control this resource's behavior</param>
public static BuildServiceAgentPool Get(string name, Input<string> id, CustomResourceOptions? options = null)
{
return new BuildServiceAgentPool(name, id, options);
}
}

public sealed class BuildServiceAgentPoolArgs : global::Pulumi.ResourceArgs
{
/// <summary>
/// The name of the build service agent pool resource.
/// </summary>
[Input("agentPoolName")]
public Input<string>? AgentPoolName { get; set; }

/// <summary>
/// The name of the build service resource.
/// </summary>
[Input("buildServiceName", required: true)]
public Input<string> BuildServiceName { get; set; } = null!;

/// <summary>
/// build service agent pool properties
/// </summary>
[Input("properties")]
public Input<Inputs.BuildServiceAgentPoolPropertiesArgs>? Properties { get; set; }

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

/// <summary>
/// The name of the Service resource.
/// </summary>
[Input("serviceName", required: true)]
public Input<string> ServiceName { get; set; } = null!;

public BuildServiceAgentPoolArgs()
{
}
public static new BuildServiceAgentPoolArgs Empty => new BuildServiceAgentPoolArgs();
}
}
117 changes: 117 additions & 0 deletions sdk/dotnet/AppPlatform/ConfigServer.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
// *** 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.AzureNative.AppPlatform
{
/// <summary>
/// Config Server resource
/// API Version: 2020-07-01.
/// </summary>
[AzureNativeResourceType("azure-native:appplatform:ConfigServer")]
public partial class ConfigServer : global::Pulumi.CustomResource
{
/// <summary>
/// The name of the resource.
/// </summary>
[Output("name")]
public Output<string> Name { get; private set; } = null!;

/// <summary>
/// Properties of the Config Server resource
/// </summary>
[Output("properties")]
public Output<Outputs.ConfigServerPropertiesResponse> Properties { get; private set; } = null!;

/// <summary>
/// The type of the resource.
/// </summary>
[Output("type")]
public Output<string> Type { get; private set; } = null!;


/// <summary>
/// Create a ConfigServer resource with the given unique name, arguments, and options.
/// </summary>
///
/// <param name="name">The unique name of the resource</param>
/// <param name="args">The arguments used to populate this resource's properties</param>
/// <param name="options">A bag of options that control this resource's behavior</param>
public ConfigServer(string name, ConfigServerArgs args, CustomResourceOptions? options = null)
: base("azure-native:appplatform:ConfigServer", name, args ?? new ConfigServerArgs(), MakeResourceOptions(options, ""))
{
}

private ConfigServer(string name, Input<string> id, CustomResourceOptions? options = null)
: base("azure-native:appplatform:ConfigServer", name, null, MakeResourceOptions(options, id))
{
}

private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id)
{
var defaultOptions = new CustomResourceOptions
{
Version = Utilities.Version,
Aliases =
{
new global::Pulumi.Alias { Type = "azure-native:appplatform/v20200701:ConfigServer"},
new global::Pulumi.Alias { Type = "azure-native:appplatform/v20201101preview:ConfigServer"},
new global::Pulumi.Alias { Type = "azure-native:appplatform/v20210601preview:ConfigServer"},
new global::Pulumi.Alias { Type = "azure-native:appplatform/v20210901preview:ConfigServer"},
new global::Pulumi.Alias { Type = "azure-native:appplatform/v20220101preview:ConfigServer"},
new global::Pulumi.Alias { Type = "azure-native:appplatform/v20220301preview:ConfigServer"},
new global::Pulumi.Alias { Type = "azure-native:appplatform/v20220401:ConfigServer"},
new global::Pulumi.Alias { Type = "azure-native:appplatform/v20220501preview:ConfigServer"},
new global::Pulumi.Alias { Type = "azure-native:appplatform/v20220901preview:ConfigServer"},
},
};
var merged = CustomResourceOptions.Merge(defaultOptions, options);
// Override the ID if one was specified for consistency with other language SDKs.
merged.Id = id ?? merged.Id;
return merged;
}
/// <summary>
/// Get an existing ConfigServer resource's state with the given name, ID, and optional extra
/// properties used to qualify the lookup.
/// </summary>
///
/// <param name="name">The unique name of the resulting resource.</param>
/// <param name="id">The unique provider ID of the resource to lookup.</param>
/// <param name="options">A bag of options that control this resource's behavior</param>
public static ConfigServer Get(string name, Input<string> id, CustomResourceOptions? options = null)
{
return new ConfigServer(name, id, options);
}
}

public sealed class ConfigServerArgs : global::Pulumi.ResourceArgs
{
/// <summary>
/// Properties of the Config Server resource
/// </summary>
[Input("properties")]
public Input<Inputs.ConfigServerPropertiesArgs>? Properties { get; set; }

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

/// <summary>
/// The name of the Service resource.
/// </summary>
[Input("serviceName", required: true)]
public Input<string> ServiceName { get; set; } = null!;

public ConfigServerArgs()
{
}
public static new ConfigServerArgs Empty => new ConfigServerArgs();
}
}

0 comments on commit 93fe0fe

Please sign in to comment.