From 964896aca10b4fb133a7d5d28ebcf6e6151630d8 Mon Sep 17 00:00:00 2001 From: teowa <104055472+teowa@users.noreply.github.com> Date: Mon, 9 Dec 2024 08:03:55 +0000 Subject: [PATCH 1/9] new resource azurerm_arc_kubernetes_provisioned_cluster --- .github/labeler-issue-triage.yml | 2 +- ...kubernetes_provisioned_cluster_resource.go | 400 ++++++++++++++++++ ...netes_provisioned_cluster_resource_test.go | 224 ++++++++++ .../services/arckubernetes/registration.go | 1 + ...bernetes_provisioned_cluster.html.markdown | 129 ++++++ 5 files changed, 755 insertions(+), 1 deletion(-) create mode 100644 internal/services/arckubernetes/arc_kubernetes_provisioned_cluster_resource.go create mode 100644 internal/services/arckubernetes/arc_kubernetes_provisioned_cluster_resource_test.go create mode 100644 website/docs/r/arc_kubernetes_provisioned_cluster.html.markdown diff --git a/.github/labeler-issue-triage.yml b/.github/labeler-issue-triage.yml index ba97f5f93250..91e74971a4b9 100644 --- a/.github/labeler-issue-triage.yml +++ b/.github/labeler-issue-triage.yml @@ -27,7 +27,7 @@ service/app-configuration: - '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_app_configuration((.|\n)*)###' service/app-service: - - '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_(app_service_environment_v3\W+|app_service_environment_v3\W+|app_service_source_control\W+|app_service_source_control_slot\W+|arc_kubernetes_cluster_extension\W+|arc_kubernetes_flux_configuration\W+|function_app_active_slot\W+|function_app_function\W+|function_app_hybrid_connection\W+|linux_function_app\W+|linux_function_app\W+|linux_function_app_slot\W+|linux_web_app\W+|linux_web_app\W+|linux_web_app_slot\W+|service_plan|source_control_token|static_web_app|web_app_|windows_function_app\W+|windows_function_app\W+|windows_function_app_slot\W+|windows_web_app\W+|windows_web_app\W+|windows_web_app_slot\W+)((.|\n)*)###' + - '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_(app_service_environment_v3\W+|app_service_environment_v3\W+|app_service_source_control\W+|app_service_source_control_slot\W+|arc_kubernetes_cluster_extension\W+|arc_kubernetes_flux_configuration\W+|arc_kubernetes_provisioned_cluster\W+|function_app_active_slot\W+|function_app_function\W+|function_app_hybrid_connection\W+|linux_function_app\W+|linux_function_app\W+|linux_function_app_slot\W+|linux_web_app\W+|linux_web_app\W+|linux_web_app_slot\W+|service_plan|source_control_token|static_web_app|web_app_|windows_function_app\W+|windows_function_app\W+|windows_function_app_slot\W+|windows_web_app\W+|windows_web_app\W+|windows_web_app_slot\W+)((.|\n)*)###' service/application-insights: - '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_application_insights((.|\n)*)###' diff --git a/internal/services/arckubernetes/arc_kubernetes_provisioned_cluster_resource.go b/internal/services/arckubernetes/arc_kubernetes_provisioned_cluster_resource.go new file mode 100644 index 000000000000..342b14319399 --- /dev/null +++ b/internal/services/arckubernetes/arc_kubernetes_provisioned_cluster_resource.go @@ -0,0 +1,400 @@ +package arckubernetes + +import ( + "context" + "fmt" + "regexp" + "time" + + "github.com/hashicorp/go-azure-helpers/lang/pointer" + "github.com/hashicorp/go-azure-helpers/lang/response" + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" + "github.com/hashicorp/go-azure-helpers/resourcemanager/location" + arckubernetes "github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2024-01-01/connectedclusters" + "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" +) + +var ( + _ sdk.Resource = ArcKubernetesProvisionedClusterResource{} + _ sdk.ResourceWithUpdate = ArcKubernetesProvisionedClusterResource{} +) + +// This resource is same type as the ArcKubernetesClusterResource but with kind="ProvisionedCluster". +type ArcKubernetesProvisionedClusterResource struct{} + +type ArcKubernetesProvisionedClusterModel struct { + AgentVersion string `tfschema:"agent_version"` + ArcAgentAutoUpgradeEnabled bool `tfschema:"arc_agent_auto_upgrade_enabled"` + ArcAgentDesiredVersion string `tfschema:"arc_agent_desired_version"` + AzureActiveDirectory []AzureActiveDirectoryModel `tfschema:"azure_active_directory"` + Distribution string `tfschema:"distribution"` + Identity []identity.ModelSystemAssigned `tfschema:"identity"` + Infrastructure string `tfschema:"infrastructure"` + KubernetesVersion string `tfschema:"kubernetes_version"` + Location string `tfschema:"location"` + Name string `tfschema:"name"` + Offering string `tfschema:"offering"` + ResourceGroupName string `tfschema:"resource_group_name"` + Tags map[string]string `tfschema:"tags"` + TotalCoreCount int64 `tfschema:"total_core_count"` + TotalNodeCount int64 `tfschema:"total_node_count"` +} + +type AzureActiveDirectoryModel struct { + AdminGroupObjectIds []string `tfschema:"admin_group_object_ids"` + AzureRbacEnabled bool `tfschema:"azure_rbac_enabled"` + TenantId string `tfschema:"tenant_id"` +} + +func (r ArcKubernetesProvisionedClusterResource) ResourceType() string { + return "azurerm_arc_kubernetes_provisioned_cluster" +} + +func (r ArcKubernetesProvisionedClusterResource) ModelObject() interface{} { + return &ArcKubernetesProvisionedClusterModel{} +} + +func (r ArcKubernetesProvisionedClusterResource) IDValidationFunc() pluginsdk.SchemaValidateFunc { + return arckubernetes.ValidateConnectedClusterID +} + +func (r ArcKubernetesProvisionedClusterResource) Arguments() map[string]*pluginsdk.Schema { + return map[string]*pluginsdk.Schema{ + "name": { + Type: pluginsdk.TypeString, + Required: true, + ForceNew: true, + ValidateFunc: validation.StringMatch( + regexp.MustCompile("^[-_a-zA-Z0-9]{1,260}$"), + "The name of Arc Kubernetes Provisioned Cluster can only include alphanumeric characters, underscores, hyphens, has a maximum length of 260 characters, and must be unique.", + ), + }, + + "resource_group_name": commonschema.ResourceGroupName(), + + "location": commonschema.Location(), + + "identity": commonschema.SystemAssignedIdentityRequiredForceNew(), + + "azure_active_directory": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "admin_group_object_ids": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + ValidateFunc: validation.IsUUID, + }, + }, + + "azure_rbac_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "tenant_id": { + Type: pluginsdk.TypeString, + Optional: true, + ValidateFunc: validation.IsUUID, + }, + }, + }, + }, + + "arc_agent_desired_version": { + Type: pluginsdk.TypeString, + Optional: true, + ValidateFunc: validation.StringIsNotEmpty, + }, + + "arc_agent_auto_upgrade_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + }, + + "tags": commonschema.Tags(), + } +} + +func (r ArcKubernetesProvisionedClusterResource) Attributes() map[string]*pluginsdk.Schema { + return map[string]*pluginsdk.Schema{ + "agent_version": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "distribution": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "infrastructure": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "kubernetes_version": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "offering": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "total_core_count": { + Type: pluginsdk.TypeInt, + Computed: true, + }, + + "total_node_count": { + Type: pluginsdk.TypeInt, + Computed: true, + }, + } +} + +func (r ArcKubernetesProvisionedClusterResource) Create() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 30 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + client := metadata.Client.ArcKubernetes.ArcKubernetesClient + + var model ArcKubernetesProvisionedClusterModel + if err := metadata.Decode(&model); err != nil { + return fmt.Errorf("decoding: %+v", err) + } + + subscriptionId := metadata.Client.Account.SubscriptionId + id := arckubernetes.NewConnectedClusterID(subscriptionId, model.ResourceGroupName, model.Name) + + existing, err := client.ConnectedClusterGet(ctx, id) + if err != nil && !response.WasNotFound(existing.HttpResponse) { + return fmt.Errorf("checking for existing %s: %+v", id, err) + } + + if !response.WasNotFound(existing.HttpResponse) { + return metadata.ResourceRequiresImport(r.ResourceType(), id) + } + + arcAgentAutoUpgrade := arckubernetes.AutoUpgradeOptionsDisabled + if model.ArcAgentAutoUpgradeEnabled { + arcAgentAutoUpgrade = arckubernetes.AutoUpgradeOptionsEnabled + } + + expandedIdentity, err := identity.ExpandSystemAssignedFromModel(model.Identity) + if err != nil { + return fmt.Errorf("expanding `identity`: %+v", err) + } + + payload := &arckubernetes.ConnectedCluster{ + Identity: *expandedIdentity, + Location: location.Normalize(model.Location), + Tags: pointer.To(model.Tags), + Kind: pointer.To(arckubernetes.ConnectedClusterKindProvisionedCluster), + Properties: arckubernetes.ConnectedClusterProperties{ + ArcAgentProfile: &arckubernetes.ArcAgentProfile{ + AgentAutoUpgrade: pointer.To(arcAgentAutoUpgrade), + }, + }, + } + + if aadProfileVal := model.AzureActiveDirectory; len(aadProfileVal) != 0 { + payload.Properties.AadProfile = expandArcKubernetesClusterAadProfile(aadProfileVal) + } + + if desiredVersion := model.ArcAgentDesiredVersion; desiredVersion != "" { + payload.Properties.ArcAgentProfile.DesiredAgentVersion = pointer.To(desiredVersion) + } + + if err := client.ConnectedClusterCreateThenPoll(ctx, id, *payload); err != nil { + return fmt.Errorf("creating %s: %+v", id, err) + } + + metadata.SetID(id) + return nil + }, + } +} + +func (r ArcKubernetesProvisionedClusterResource) Update() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 30 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + client := metadata.Client.ArcKubernetes.ArcKubernetesClient + + id, err := arckubernetes.ParseConnectedClusterID(metadata.ResourceData.Id()) + if err != nil { + return err + } + + var model ArcKubernetesProvisionedClusterModel + if err := metadata.Decode(&model); err != nil { + return fmt.Errorf("decoding: %+v", err) + } + + resp, err := client.ConnectedClusterGet(ctx, *id) + if err != nil { + return fmt.Errorf("retrieving %s: %+v", *id, err) + } + + if resp.Model == nil { + return fmt.Errorf("retrieving %s: `model` was nil", *id) + } + payload := resp.Model + + if metadata.ResourceData.HasChange("azure_active_directory") { + payload.Properties.AadProfile = expandArcKubernetesClusterAadProfile(model.AzureActiveDirectory) + } + + if metadata.ResourceData.HasChange("tags") { + payload.Tags = pointer.To(model.Tags) + } + + if metadata.ResourceData.HasChange("arc_agent_desired_version") { + if desiredVersion := model.ArcAgentDesiredVersion; desiredVersion != "" { + payload.Properties.ArcAgentProfile.DesiredAgentVersion = pointer.To(desiredVersion) + } else { + payload.Properties.ArcAgentProfile.DesiredAgentVersion = nil + } + } + + if metadata.ResourceData.HasChange("arc_agent_auto_upgrade_enabled") { + autoUpgradeOption := arckubernetes.AutoUpgradeOptionsEnabled + if !model.ArcAgentAutoUpgradeEnabled { + autoUpgradeOption = arckubernetes.AutoUpgradeOptionsDisabled + } + + payload.Properties.ArcAgentProfile.AgentAutoUpgrade = pointer.To(autoUpgradeOption) + } + + if err := client.ConnectedClusterCreateThenPoll(ctx, *id, *payload); err != nil { + return fmt.Errorf("updating %s: %+v", *id, err) + } + + return nil + }, + } +} + +func (r ArcKubernetesProvisionedClusterResource) Read() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 5 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + client := metadata.Client.ArcKubernetes.ArcKubernetesClient + + id, err := arckubernetes.ParseConnectedClusterID(metadata.ResourceData.Id()) + if err != nil { + return err + } + + resp, err := client.ConnectedClusterGet(ctx, *id) + if err != nil { + if response.WasNotFound(resp.HttpResponse) { + return metadata.MarkAsGone(id) + } + + return fmt.Errorf("retrieving %s: %+v", *id, err) + } + + state := ArcKubernetesProvisionedClusterModel{ + Name: id.ConnectedClusterName, + ResourceGroupName: id.ResourceGroupName, + } + + if model := resp.Model; model != nil { + state.Identity = identity.FlattenSystemAssignedToModel(&model.Identity) + state.Location = location.Normalize(model.Location) + state.Tags = pointer.From(model.Tags) + + props := model.Properties + state.AzureActiveDirectory = flattenArcKubernetesClusterAadProfile(props.AadProfile) + state.AgentVersion = pointer.From(props.AgentVersion) + state.Distribution = pointer.From(props.Distribution) + state.Infrastructure = pointer.From(props.Infrastructure) + state.KubernetesVersion = pointer.From(props.KubernetesVersion) + state.Offering = pointer.From(props.Offering) + state.TotalCoreCount = pointer.From(props.TotalCoreCount) + state.TotalNodeCount = pointer.From(props.TotalNodeCount) + + arcAgentAutoUpgradeEnabled := true + arcAgentdesiredVersion := "" + if arcAgentProfile := props.ArcAgentProfile; arcAgentProfile != nil { + arcAgentdesiredVersion = pointer.From(arcAgentProfile.DesiredAgentVersion) + if arcAgentProfile.AgentAutoUpgrade != nil && *arcAgentProfile.AgentAutoUpgrade == arckubernetes.AutoUpgradeOptionsDisabled { + arcAgentAutoUpgradeEnabled = false + } + } + state.ArcAgentAutoUpgradeEnabled = arcAgentAutoUpgradeEnabled + state.ArcAgentDesiredVersion = arcAgentdesiredVersion + } + + return metadata.Encode(&state) + }, + } +} + +func (r ArcKubernetesProvisionedClusterResource) Delete() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 30 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + client := metadata.Client.ArcKubernetes.ArcKubernetesClient + + id, err := arckubernetes.ParseConnectedClusterID(metadata.ResourceData.Id()) + if err != nil { + return err + } + + if err := client.ConnectedClusterDeleteThenPoll(ctx, *id); err != nil { + return fmt.Errorf("deleting %s: %+v", id, err) + } + + return nil + }, + } +} + +func expandArcKubernetesClusterAadProfile(input []AzureActiveDirectoryModel) *arckubernetes.AadProfile { + if len(input) == 0 { + return nil + } + + v := input[0] + output := arckubernetes.AadProfile{ + EnableAzureRBAC: pointer.To(v.AzureRbacEnabled), + } + + if tenantIdVal := v.TenantId; tenantIdVal != "" { + output.TenantID = pointer.To(tenantIdVal) + } + + if groupVal := v.AdminGroupObjectIds; len(groupVal) != 0 { + output.AdminGroupObjectIDs = pointer.To(groupVal) + } + + return &output +} + +func flattenArcKubernetesClusterAadProfile(input *arckubernetes.AadProfile) []AzureActiveDirectoryModel { + if input == nil || (input.EnableAzureRBAC == nil && input.AdminGroupObjectIDs == nil && input.TenantID == nil) { + return make([]AzureActiveDirectoryModel, 0) + } + + return []AzureActiveDirectoryModel{ + { + AzureRbacEnabled: pointer.From(input.EnableAzureRBAC), + AdminGroupObjectIds: pointer.From(input.AdminGroupObjectIDs), + TenantId: pointer.From(input.TenantID), + }, + } +} diff --git a/internal/services/arckubernetes/arc_kubernetes_provisioned_cluster_resource_test.go b/internal/services/arckubernetes/arc_kubernetes_provisioned_cluster_resource_test.go new file mode 100644 index 000000000000..1eb16ce31ef5 --- /dev/null +++ b/internal/services/arckubernetes/arc_kubernetes_provisioned_cluster_resource_test.go @@ -0,0 +1,224 @@ +package arckubernetes_test + +import ( + "context" + "fmt" + "testing" + + "github.com/hashicorp/go-azure-helpers/lang/pointer" + arckubernetes "github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2024-01-01/connectedclusters" + "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" + "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" + "github.com/hashicorp/terraform-provider-azurerm/internal/clients" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" +) + +type ArcKubernetesProvisionedClusterResource struct{} + +func TestAccArcKubernetesProvisionedCluster_basic(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_arc_kubernetes_provisioned_cluster", "test") + r := ArcKubernetesProvisionedClusterResource{} + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.basic(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + +func TestAccArcKubernetesProvisionedCluster_requiresImport(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_arc_kubernetes_provisioned_cluster", "test") + r := ArcKubernetesProvisionedClusterResource{} + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.basic(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + { + Config: r.requiresImport(data), + ExpectError: acceptance.RequiresImportError(data.ResourceType), + }, + }) +} + +func TestAccArcKubernetesProvisionedCluster_update(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_arc_kubernetes_provisioned_cluster", "test") + r := ArcKubernetesProvisionedClusterResource{} + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.basic(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + { + Config: r.update(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + { + Config: r.complete(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + { + Config: r.basic(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + +func TestAccArcKubernetesProvisionedCluster_complete(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_arc_kubernetes_provisioned_cluster", "test") + r := ArcKubernetesProvisionedClusterResource{} + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.complete(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + +func (r ArcKubernetesProvisionedClusterResource) Exists(ctx context.Context, clients *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { + id, err := arckubernetes.ParseConnectedClusterID(state.ID) + if err != nil { + return nil, err + } + + resp, err := clients.ArcKubernetes.ArcKubernetesClient.ConnectedClusterGet(ctx, *id) + if err != nil { + return nil, fmt.Errorf("retrieving %s: %+v", id, err) + } + return pointer.To(resp.Model != nil), nil +} + +func (r ArcKubernetesProvisionedClusterResource) basic(data acceptance.TestData) string { + template := r.template(data) + return fmt.Sprintf(` +provider "azurerm" { + features {} +} + +%[1]s + +resource "azurerm_arc_kubernetes_provisioned_cluster" "test" { + name = "acctest-akpc-%[2]d" + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location + identity { + type = "SystemAssigned" + } +} +`, template, data.RandomInteger) +} + +func (r ArcKubernetesProvisionedClusterResource) requiresImport(data acceptance.TestData) string { + config := r.basic(data) + return fmt.Sprintf(` +%s + +resource "azurerm_arc_kubernetes_provisioned_cluster" "import" { + name = azurerm_arc_kubernetes_provisioned_cluster.test.name + resource_group_name = azurerm_arc_kubernetes_provisioned_cluster.test.resource_group_name + location = azurerm_arc_kubernetes_provisioned_cluster.test.location + identity { + type = "SystemAssigned" + } +} +`, config) +} + +func (r ArcKubernetesProvisionedClusterResource) update(data acceptance.TestData) string { + template := r.template(data) + return fmt.Sprintf(` +provider "azurerm" { + features {} +} + +%[1]s + +resource "azurerm_arc_kubernetes_provisioned_cluster" "test" { + name = "acctest-akpc-%[2]d" + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location + arc_agent_auto_upgrade_enabled = false + identity { + type = "SystemAssigned" + } + + azure_active_directory { + azure_rbac_enabled = false + } + + tags = { + ENV = "TestUpdate" + } +} +`, template, data.RandomInteger) +} + +func (r ArcKubernetesProvisionedClusterResource) complete(data acceptance.TestData) string { + template := r.template(data) + return fmt.Sprintf(` +provider "azurerm" { + features {} +} + +%[1]s + +data "azurerm_client_config" "current" {} + +resource "azuread_group" "test" { + display_name = "acctestADG-arck8s-%[2]d" + owners = [data.azurerm_client_config.current.object_id] + security_enabled = true +} + +resource "azurerm_arc_kubernetes_provisioned_cluster" "test" { + name = "acctest-akpc-%[2]d" + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location + arc_agent_auto_upgrade_enabled = true + arc_agent_desired_version = "1.18.3" + identity { + type = "SystemAssigned" + } + + azure_active_directory { + azure_rbac_enabled = true + admin_group_object_ids = [azuread_group.test.id] + tenant_id = data.azurerm_client_config.current.tenant_id + } + + tags = { + ENV = "Test" + FOO = "BAR" + } +} +`, template, data.RandomInteger) +} + +func (r ArcKubernetesProvisionedClusterResource) template(data acceptance.TestData) string { + return fmt.Sprintf(` +resource "azurerm_resource_group" "test" { + name = "acctestRG-akpc-%[1]d" + location = "%[2]s" +} +`, data.RandomInteger, data.Locations.Primary) +} diff --git a/internal/services/arckubernetes/registration.go b/internal/services/arckubernetes/registration.go index ff205f7f0004..4422a0007245 100644 --- a/internal/services/arckubernetes/registration.go +++ b/internal/services/arckubernetes/registration.go @@ -47,5 +47,6 @@ func (r Registration) Resources() []sdk.Resource { return []sdk.Resource{ ArcKubernetesClusterExtensionResource{}, ArcKubernetesFluxConfigurationResource{}, + ArcKubernetesProvisionedClusterResource{}, } } diff --git a/website/docs/r/arc_kubernetes_provisioned_cluster.html.markdown b/website/docs/r/arc_kubernetes_provisioned_cluster.html.markdown new file mode 100644 index 000000000000..b74362efdffa --- /dev/null +++ b/website/docs/r/arc_kubernetes_provisioned_cluster.html.markdown @@ -0,0 +1,129 @@ +--- +subcategory: "ArcKubernetes" +layout: "azurerm" +page_title: "Azure Resource Manager: azurerm_arc_kubernetes_provisioned_cluster" +description: |- + Manages a Arc Kubernetes Provisioned Cluster. +--- + +# azurerm_arc_kubernetes_provisioned_cluster + +Manages a Arc Kubernetes Provisioned Cluster. + +## Example Usage + +```hcl +resource "azurerm_resource_group" "example" { + name = "example-resources" + location = "West Europe" +} + +data "azurerm_client_config" "current" {} + +resource "azuread_group" "example" { + display_name = "example-adg" + owners = [data.azurerm_client_config.current.object_id] + security_enabled = true +} + +resource "azurerm_arc_kubernetes_provisioned_cluster" "example" { + name = "example-akpc" + resource_group_name = azurerm_resource_group.example.name + location = azurerm_resource_group.example.location + + azure_active_directory { + azure_rbac_enabled = true + admin_group_object_ids = [azuread_group.example.id] + tenant_id = data.azurerm_client_config.current.tenant_id + } + + identity { + type = "SystemAssigned" + } +} +``` + +## Arguments Reference + +The following arguments are supported: + +* `name` - (Required) The name which should be used for this Arc Kubernetes Provisioned Cluster. Changing this forces a new Arc Kubernetes Provisioned Cluster to be created. + +* `resource_group_name` - (Required) The name of the Resource Group where the Arc Kubernetes Provisioned Cluster should exist. Changing this forces a new Arc Kubernetes Provisioned Cluster to be created. + +* `identity` - (Required) A `identity` block as defined below. Changing this forces a new Arc Kubernetes Provisioned Cluster to be created. + +* `location` - (Required) The Azure Region where the Arc Kubernetes Provisioned Cluster should exist. Changing this forces a new Arc Kubernetes Provisioned Cluster to be created. + +--- + +* `arc_agent_auto_upgrade_enabled` - (Optional) Whether the Arc agents will be upgraded automatically to the latest version. Defaults to `true`. + +* `arc_agent_desired_version` - (Optional) The version of the Arc agents to be installed on the cluster. + +* `azure_active_directory` - (Optional) A `azure_active_directory` block as defined below. + +* `tags` - (Optional) A mapping of tags which should be assigned to the Arc Kubernetes Provisioned Cluster. + +--- + +A `azure_active_directory` block supports the following: + +* `admin_group_object_ids` - (Optional) A list of IDs of Microsoft Entra ID Groups. All members of the specified Microsoft Entra ID Groups have the cluster administrator access to the Kubernetes cluster. + +* `azure_rbac_enabled` - (Optional) Whether to enable Azure RBAC for Kubernetes authorization. Defaults to `false`. + +* `tenant_id` - (Optional) The Tenant ID to use for authentication. If not specified, the Tenant of the Arc Kubernetes Cluster will be used. + +--- + +A `identity` block supports the following: + +* `type` - (Required) The type of the Managed Identity. The only possible value is `SystemAssigned`. Changing this forces a new Arc Kubernetes Provisioned Cluster to be created. + +## Attributes Reference + +In addition to the Arguments listed above - the following Attributes are exported: + +* `id` - The ID of the Arc Kubernetes Provisioned Cluster. + +* `agent_version` - Version of the agent running on the cluster resource. + +* `distribution` - The distribution running on this Arc Kubernetes Provisioned Cluster. + +* `identity` - An `identity` block as defined below. + +* `infrastructure` - The infrastructure on which the Arc Kubernetes Provisioned Cluster is running on. + +* `kubernetes_version` - The Kubernetes version of the cluster resource. + +* `offering` - The cluster offering. + +* `total_core_count` - Number of CPU cores present in the cluster resource. + +* `total_node_count` - Number of nodes present in the cluster resource. + +--- + +An `identity` block exports the following: + +* `principal_id` - The Principal ID associated with this Managed Service Identity. + +* `tenant_id` - The Tenant ID associated with this Managed Service Identity. + +## Timeouts + +The `timeouts` block allows you to specify [timeouts](https://www.terraform.io/language/resources/syntax#operation-timeouts) for certain actions: + +* `create` - (Defaults to 30 minutes) Used when creating the Arc Kubernetes Provisioned Cluster. +* `read` - (Defaults to 5 minutes) Used when retrieving the Arc Kubernetes Provisioned Cluster. +* `update` - (Defaults to 30 minutes) Used when updating the Arc Kubernetes Provisioned Cluster. +* `delete` - (Defaults to 30 minutes) Used when deleting the Arc Kubernetes Provisioned Cluster. + +## Import + +Arc Kubernetes Provisioned Clusters can be imported using the `resource id`, e.g. + +```shell +terraform import azurerm_arc_kubernetes_provisioned_cluster.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Kubernetes/connectedClusters/cluster1 +``` From 1003d7bb3369d8c4dd8af8cf7ed34672b3a6f15d Mon Sep 17 00:00:00 2001 From: teowa <104055472+teowa@users.noreply.github.com> Date: Mon, 9 Dec 2024 08:59:28 +0000 Subject: [PATCH 2/9] fix gh-label --- .github/labeler-issue-triage.yml | 5 ++++- .github/labeler-pull-request-triage.yml | 5 +++++ internal/services/arckubernetes/registration.go | 8 ++++++-- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/labeler-issue-triage.yml b/.github/labeler-issue-triage.yml index 91e74971a4b9..66351c6c5091 100644 --- a/.github/labeler-issue-triage.yml +++ b/.github/labeler-issue-triage.yml @@ -27,11 +27,14 @@ service/app-configuration: - '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_app_configuration((.|\n)*)###' service/app-service: - - '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_(app_service_environment_v3\W+|app_service_environment_v3\W+|app_service_source_control\W+|app_service_source_control_slot\W+|arc_kubernetes_cluster_extension\W+|arc_kubernetes_flux_configuration\W+|arc_kubernetes_provisioned_cluster\W+|function_app_active_slot\W+|function_app_function\W+|function_app_hybrid_connection\W+|linux_function_app\W+|linux_function_app\W+|linux_function_app_slot\W+|linux_web_app\W+|linux_web_app\W+|linux_web_app_slot\W+|service_plan|source_control_token|static_web_app|web_app_|windows_function_app\W+|windows_function_app\W+|windows_function_app_slot\W+|windows_web_app\W+|windows_web_app\W+|windows_web_app_slot\W+)((.|\n)*)###' + - '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_(app_service_environment_v3\W+|app_service_environment_v3\W+|app_service_source_control\W+|app_service_source_control_slot\W+|function_app_active_slot\W+|function_app_function\W+|function_app_hybrid_connection\W+|linux_function_app\W+|linux_function_app\W+|linux_function_app_slot\W+|linux_web_app\W+|linux_web_app\W+|linux_web_app_slot\W+|service_plan|source_control_token|static_web_app|web_app_|windows_function_app\W+|windows_function_app\W+|windows_function_app_slot\W+|windows_web_app\W+|windows_web_app\W+|windows_web_app_slot\W+)((.|\n)*)###' service/application-insights: - '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_application_insights((.|\n)*)###' +service/arc-kubernetes: + - '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_arc_kubernetes_((.|\n)*)###' + service/arc-resource-bridge: - '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_arc_resource_bridge_appliance((.|\n)*)###' diff --git a/.github/labeler-pull-request-triage.yml b/.github/labeler-pull-request-triage.yml index 154f12cb7ac8..486596e577c3 100644 --- a/.github/labeler-pull-request-triage.yml +++ b/.github/labeler-pull-request-triage.yml @@ -52,6 +52,11 @@ service/application-insights: - any-glob-to-any-file: - internal/services/applicationinsights/**/* +service/arc-kubernetes: +- changed-files: + - any-glob-to-any-file: + - internal/services/arckubernetes/**/* + service/arc-resource-bridge: - changed-files: - any-glob-to-any-file: diff --git a/internal/services/arckubernetes/registration.go b/internal/services/arckubernetes/registration.go index 4422a0007245..ff4a1bd27f25 100644 --- a/internal/services/arckubernetes/registration.go +++ b/internal/services/arckubernetes/registration.go @@ -11,8 +11,8 @@ import ( type Registration struct{} var ( - _ sdk.TypedServiceRegistration = Registration{} - _ sdk.UntypedServiceRegistration = Registration{} + _ sdk.TypedServiceRegistrationWithAGitHubLabel = Registration{} + _ sdk.UntypedServiceRegistrationWithAGitHubLabel = Registration{} ) // Name is the name of this Service @@ -27,6 +27,10 @@ func (r Registration) WebsiteCategories() []string { } } +func (r Registration) AssociatedGitHubLabel() string { + return "service/arc-kubernetes" +} + // SupportedDataSources returns the supported Data Sources supported by this Service func (r Registration) SupportedDataSources() map[string]*pluginsdk.Resource { return map[string]*pluginsdk.Resource{} From 0c28fa5b60a81aece2bb89f98f7df48a155aa45d Mon Sep 17 00:00:00 2001 From: teowa <104055472+teowa@users.noreply.github.com> Date: Mon, 9 Dec 2024 09:04:51 +0000 Subject: [PATCH 3/9] fix doc --- .../docs/r/arc_kubernetes_provisioned_cluster.html.markdown | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/website/docs/r/arc_kubernetes_provisioned_cluster.html.markdown b/website/docs/r/arc_kubernetes_provisioned_cluster.html.markdown index b74362efdffa..dfbb70dd4f3f 100644 --- a/website/docs/r/arc_kubernetes_provisioned_cluster.html.markdown +++ b/website/docs/r/arc_kubernetes_provisioned_cluster.html.markdown @@ -87,7 +87,7 @@ In addition to the Arguments listed above - the following Attributes are exporte * `id` - The ID of the Arc Kubernetes Provisioned Cluster. -* `agent_version` - Version of the agent running on the cluster resource. +* `agent_version` - The version of the agent running on the cluster resource. * `distribution` - The distribution running on this Arc Kubernetes Provisioned Cluster. @@ -99,9 +99,9 @@ In addition to the Arguments listed above - the following Attributes are exporte * `offering` - The cluster offering. -* `total_core_count` - Number of CPU cores present in the cluster resource. +* `total_core_count` - The number of CPU cores present in the cluster resource. -* `total_node_count` - Number of nodes present in the cluster resource. +* `total_node_count` - The number of nodes present in the cluster resource. --- From 498a0028fc26785a6ba1c86d0e72bb1a2df5ceca Mon Sep 17 00:00:00 2001 From: teowa <104055472+teowa@users.noreply.github.com> Date: Mon, 9 Dec 2024 09:21:55 +0000 Subject: [PATCH 4/9] fix docs --- .../arc_kubernetes_provisioned_cluster.html.markdown | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/website/docs/r/arc_kubernetes_provisioned_cluster.html.markdown b/website/docs/r/arc_kubernetes_provisioned_cluster.html.markdown index dfbb70dd4f3f..ab27b73eed17 100644 --- a/website/docs/r/arc_kubernetes_provisioned_cluster.html.markdown +++ b/website/docs/r/arc_kubernetes_provisioned_cluster.html.markdown @@ -3,12 +3,12 @@ subcategory: "ArcKubernetes" layout: "azurerm" page_title: "Azure Resource Manager: azurerm_arc_kubernetes_provisioned_cluster" description: |- - Manages a Arc Kubernetes Provisioned Cluster. + Manages an Arc Kubernetes Provisioned Cluster. --- # azurerm_arc_kubernetes_provisioned_cluster -Manages a Arc Kubernetes Provisioned Cluster. +Manages an Arc Kubernetes Provisioned Cluster. ## Example Usage @@ -51,7 +51,7 @@ The following arguments are supported: * `resource_group_name` - (Required) The name of the Resource Group where the Arc Kubernetes Provisioned Cluster should exist. Changing this forces a new Arc Kubernetes Provisioned Cluster to be created. -* `identity` - (Required) A `identity` block as defined below. Changing this forces a new Arc Kubernetes Provisioned Cluster to be created. +* `identity` - (Required) An `identity` block as defined below. Changing this forces a new Arc Kubernetes Provisioned Cluster to be created. * `location` - (Required) The Azure Region where the Arc Kubernetes Provisioned Cluster should exist. Changing this forces a new Arc Kubernetes Provisioned Cluster to be created. @@ -61,13 +61,13 @@ The following arguments are supported: * `arc_agent_desired_version` - (Optional) The version of the Arc agents to be installed on the cluster. -* `azure_active_directory` - (Optional) A `azure_active_directory` block as defined below. +* `azure_active_directory` - (Optional) An `azure_active_directory` block as defined below. * `tags` - (Optional) A mapping of tags which should be assigned to the Arc Kubernetes Provisioned Cluster. --- -A `azure_active_directory` block supports the following: +An `azure_active_directory` block supports the following: * `admin_group_object_ids` - (Optional) A list of IDs of Microsoft Entra ID Groups. All members of the specified Microsoft Entra ID Groups have the cluster administrator access to the Kubernetes cluster. @@ -77,7 +77,7 @@ A `azure_active_directory` block supports the following: --- -A `identity` block supports the following: +An `identity` block supports the following: * `type` - (Required) The type of the Managed Identity. The only possible value is `SystemAssigned`. Changing this forces a new Arc Kubernetes Provisioned Cluster to be created. From 26ec85050735214db06d7e2b4e66587faefc724d Mon Sep 17 00:00:00 2001 From: teowa <104055472+teowa@users.noreply.github.com> Date: Tue, 10 Dec 2024 02:02:23 +0000 Subject: [PATCH 5/9] fix code order --- .../arc_kubernetes_provisioned_cluster_resource.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/services/arckubernetes/arc_kubernetes_provisioned_cluster_resource.go b/internal/services/arckubernetes/arc_kubernetes_provisioned_cluster_resource.go index 342b14319399..e94c0ff82d4e 100644 --- a/internal/services/arckubernetes/arc_kubernetes_provisioned_cluster_resource.go +++ b/internal/services/arckubernetes/arc_kubernetes_provisioned_cluster_resource.go @@ -169,13 +169,13 @@ func (r ArcKubernetesProvisionedClusterResource) Create() sdk.ResourceFunc { Timeout: 30 * time.Minute, Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { client := metadata.Client.ArcKubernetes.ArcKubernetesClient + subscriptionId := metadata.Client.Account.SubscriptionId var model ArcKubernetesProvisionedClusterModel if err := metadata.Decode(&model); err != nil { return fmt.Errorf("decoding: %+v", err) } - subscriptionId := metadata.Client.Account.SubscriptionId id := arckubernetes.NewConnectedClusterID(subscriptionId, model.ResourceGroupName, model.Name) existing, err := client.ConnectedClusterGet(ctx, id) @@ -222,6 +222,7 @@ func (r ArcKubernetesProvisionedClusterResource) Create() sdk.ResourceFunc { } metadata.SetID(id) + return nil }, } From 7aad4a7ae9192ac87af12b02a5bd648d98ff1ac6 Mon Sep 17 00:00:00 2001 From: teowa <104055472+teowa@users.noreply.github.com> Date: Tue, 10 Dec 2024 02:05:27 +0000 Subject: [PATCH 6/9] fix --- .../arc_kubernetes_provisioned_cluster_resource.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/services/arckubernetes/arc_kubernetes_provisioned_cluster_resource.go b/internal/services/arckubernetes/arc_kubernetes_provisioned_cluster_resource.go index e94c0ff82d4e..551c37d629d3 100644 --- a/internal/services/arckubernetes/arc_kubernetes_provisioned_cluster_resource.go +++ b/internal/services/arckubernetes/arc_kubernetes_provisioned_cluster_resource.go @@ -198,7 +198,7 @@ func (r ArcKubernetesProvisionedClusterResource) Create() sdk.ResourceFunc { } payload := &arckubernetes.ConnectedCluster{ - Identity: *expandedIdentity, + Identity: pointer.From(expandedIdentity), Location: location.Normalize(model.Location), Tags: pointer.To(model.Tags), Kind: pointer.To(arckubernetes.ConnectedClusterKindProvisionedCluster), From b820090b6aa9cf4d8193982eb84eb46d89026eeb Mon Sep 17 00:00:00 2001 From: teowa <104055472+teowa@users.noreply.github.com> Date: Thu, 12 Dec 2024 07:12:57 +0000 Subject: [PATCH 7/9] fix deleting issue --- ...kubernetes_provisioned_cluster_resource.go | 8 + .../services/arckubernetes/client/client.go | 21 +- .../provisionedclusterinstances/README.md | 375 +++++++++++++++++ .../provisionedclusterinstances/client.go | 26 ++ .../provisionedclusterinstances/constants.go | 383 ++++++++++++++++++ .../id_scopedagentpool.go | 122 ++++++ .../method_agentpoolcreateorupdate.go | 75 ++++ .../method_agentpooldelete.go | 70 ++++ .../method_agentpoolget.go | 53 +++ ...ethod_agentpoollistbyprovisionedcluster.go | 106 +++++ .../method_deletekubernetesversions.go | 71 ++++ .../method_deletevmskus.go | 71 ++++ .../method_getkubernetesversions.go | 55 +++ .../method_getupgradeprofile.go | 55 +++ .../method_getvmskus.go | 55 +++ .../method_hybrididentitymetadatadelete.go | 71 ++++ .../method_hybrididentitymetadataget.go | 55 +++ ...hod_hybrididentitymetadatalistbycluster.go | 106 +++++ .../method_hybrididentitymetadataput.go | 60 +++ .../method_kubernetesversionslist.go | 106 +++++ .../method_listadminkubeconfig.go | 72 ++++ .../method_listuserkubeconfig.go | 72 ++++ ...ovisionedclusterinstancescreateorupdate.go | 76 ++++ ...ethod_provisionedclusterinstancesdelete.go | 71 ++++ .../method_provisionedclusterinstancesget.go | 55 +++ .../method_provisionedclusterinstanceslist.go | 106 +++++ .../method_putkubernetesversions.go | 76 ++++ .../method_putvmskus.go | 76 ++++ .../method_vmskuslist.go | 106 +++++ .../model_addonstatusprofile.go | 11 + .../model_agentpool.go | 18 + .../model_agentpoolproperties.go | 20 + ...model_agentpoolprovisioningstatusstatus.go | 10 + .../model_agentpoolupdateprofile.go | 10 + .../model_cloudproviderprofile.go | 8 + ...cloudproviderprofileinfranetworkprofile.go | 8 + .../model_clustervmaccessprofile.go | 8 + .../model_controlplaneprofile.go | 10 + ...controlplaneprofilecontrolplaneendpoint.go | 8 + .../model_credentialresult.go | 9 + .../model_extendedlocation.go | 9 + .../model_hybrididentitymetadata.go | 16 + .../model_hybrididentitymetadataproperties.go | 10 + .../model_kubernetespatchversions.go | 9 + .../model_kubernetesversionprofile.go | 17 + ...odel_kubernetesversionprofileproperties.go | 9 + .../model_kubernetesversionproperties.go | 10 + .../model_kubernetesversionreadiness.go | 11 + .../model_linuxprofileproperties.go | 8 + .../model_linuxprofilepropertiesssh.go | 8 + ...uxprofilepropertiessshpublickeysinlined.go | 8 + .../model_listcredentialresponse.go | 13 + .../model_listcredentialresponseerror.go | 9 + .../model_listcredentialresponseproperties.go | 8 + .../model_namedagentpoolprofile.go | 19 + .../model_networkprofile.go | 10 + ...model_networkprofileloadbalancerprofile.go | 8 + .../model_provisionedcluster.go | 17 + .../model_provisionedclusterlicenseprofile.go | 8 + ...el_provisionedclusterpoolupgradeprofile.go | 10 + ...onedclusterpoolupgradeprofileproperties.go | 9 + .../model_provisionedclusterproperties.go | 19 + ...ionedclusterpropertiesautoscalerprofile.go | 24 ++ ...odel_provisionedclusterpropertiesstatus.go | 10 + .../model_provisionedclusterupgradeprofile.go | 16 + ...visionedclusterupgradeprofileproperties.go | 9 + .../model_storageprofile.go | 9 + .../model_storageprofilenfscsidriver.go | 8 + .../model_storageprofilesmbcsidriver.go | 8 + .../model_vmskucapabilities.go | 9 + .../model_vmskuprofile.go | 17 + .../model_vmskuprofileproperties.go | 9 + .../model_vmskuproperties.go | 12 + .../provisionedclusterinstances/predicates.go | 119 ++++++ .../provisionedclusterinstances/version.go | 10 + vendor/modules.txt | 1 + 76 files changed, 3274 insertions(+), 6 deletions(-) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/id_scopedagentpool.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_agentpoolcreateorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_agentpooldelete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_agentpoolget.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_agentpoollistbyprovisionedcluster.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_deletekubernetesversions.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_deletevmskus.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_getkubernetesversions.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_getupgradeprofile.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_getvmskus.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_hybrididentitymetadatadelete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_hybrididentitymetadataget.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_hybrididentitymetadatalistbycluster.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_hybrididentitymetadataput.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_kubernetesversionslist.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_listadminkubeconfig.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_listuserkubeconfig.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_provisionedclusterinstancescreateorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_provisionedclusterinstancesdelete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_provisionedclusterinstancesget.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_provisionedclusterinstanceslist.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_putkubernetesversions.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_putvmskus.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_vmskuslist.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_addonstatusprofile.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_agentpool.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_agentpoolproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_agentpoolprovisioningstatusstatus.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_agentpoolupdateprofile.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_cloudproviderprofile.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_cloudproviderprofileinfranetworkprofile.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_clustervmaccessprofile.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_controlplaneprofile.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_controlplaneprofilecontrolplaneendpoint.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_credentialresult.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_extendedlocation.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_hybrididentitymetadata.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_hybrididentitymetadataproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_kubernetespatchversions.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_kubernetesversionprofile.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_kubernetesversionprofileproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_kubernetesversionproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_kubernetesversionreadiness.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_linuxprofileproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_linuxprofilepropertiesssh.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_linuxprofilepropertiessshpublickeysinlined.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_listcredentialresponse.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_listcredentialresponseerror.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_listcredentialresponseproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_namedagentpoolprofile.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_networkprofile.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_networkprofileloadbalancerprofile.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedcluster.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterlicenseprofile.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterpoolupgradeprofile.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterpoolupgradeprofileproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterpropertiesautoscalerprofile.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterpropertiesstatus.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterupgradeprofile.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterupgradeprofileproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_storageprofile.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_storageprofilenfscsidriver.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_storageprofilesmbcsidriver.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_vmskucapabilities.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_vmskuprofile.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_vmskuprofileproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_vmskuproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/version.go diff --git a/internal/services/arckubernetes/arc_kubernetes_provisioned_cluster_resource.go b/internal/services/arckubernetes/arc_kubernetes_provisioned_cluster_resource.go index 551c37d629d3..776483b6e1b4 100644 --- a/internal/services/arckubernetes/arc_kubernetes_provisioned_cluster_resource.go +++ b/internal/services/arckubernetes/arc_kubernetes_provisioned_cluster_resource.go @@ -8,6 +8,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" @@ -350,12 +351,19 @@ func (r ArcKubernetesProvisionedClusterResource) Delete() sdk.ResourceFunc { Timeout: 30 * time.Minute, Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { client := metadata.Client.ArcKubernetes.ArcKubernetesClient + provisionedClusterInstanceClient := metadata.Client.ArcKubernetes.ProvisionedClusterInstancesClient id, err := arckubernetes.ParseConnectedClusterID(metadata.ResourceData.Id()) if err != nil { return err } + // workaround for Deleted cluster still visible https://learn.microsoft.com/en-us/azure/aks/hybrid/deleted-cluster-visible#workaround + scopeId := commonids.NewScopeID(id.ID()) + if err := provisionedClusterInstanceClient.ProvisionedClusterInstancesDeleteThenPoll(ctx, scopeId); err != nil { + return fmt.Errorf("deleting child Provisioned Cluster Instance: %+v", err) + } + if err := client.ConnectedClusterDeleteThenPoll(ctx, *id); err != nil { return fmt.Errorf("deleting %s: %+v", id, err) } diff --git a/internal/services/arckubernetes/client/client.go b/internal/services/arckubernetes/client/client.go index e9609c976da1..6ba9e4d9c817 100644 --- a/internal/services/arckubernetes/client/client.go +++ b/internal/services/arckubernetes/client/client.go @@ -6,6 +6,7 @@ package client import ( "fmt" + "github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances" "github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2024-01-01/connectedclusters" "github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/extensions" "github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration" @@ -13,9 +14,10 @@ import ( ) type Client struct { - ArcKubernetesClient *connectedclusters.ConnectedClustersClient - ExtensionsClient *extensions.ExtensionsClient - FluxConfigurationClient *fluxconfiguration.FluxConfigurationClient + ArcKubernetesClient *connectedclusters.ConnectedClustersClient + ExtensionsClient *extensions.ExtensionsClient + FluxConfigurationClient *fluxconfiguration.FluxConfigurationClient + ProvisionedClusterInstancesClient *provisionedclusterinstances.ProvisionedClusterInstancesClient } func NewClient(o *common.ClientOptions) (*Client, error) { @@ -37,9 +39,16 @@ func NewClient(o *common.ClientOptions) (*Client, error) { } o.Configure(fluxConfigurationClient.Client, o.Authorizers.ResourceManager) + provisionedClusterInstancesClientClient, err := provisionedclusterinstances.NewProvisionedClusterInstancesClientWithBaseURI(o.Environment.ResourceManager) + if err != nil { + return nil, fmt.Errorf("building ProvisionedClusterInstancesClient client: %+v", err) + } + o.Configure(provisionedClusterInstancesClientClient.Client, o.Authorizers.ResourceManager) + return &Client{ - ArcKubernetesClient: arcKubernetesClient, - ExtensionsClient: extensionsClient, - FluxConfigurationClient: fluxConfigurationClient, + ArcKubernetesClient: arcKubernetesClient, + ExtensionsClient: extensionsClient, + FluxConfigurationClient: fluxConfigurationClient, + ProvisionedClusterInstancesClient: provisionedClusterInstancesClientClient, }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/README.md new file mode 100644 index 000000000000..3a220dc02e95 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/README.md @@ -0,0 +1,375 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances` Documentation + +The `provisionedclusterinstances` SDK allows for interaction with Azure Resource Manager `hybridazurekubernetesservice` (API Version `2024-01-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances" +``` + + +### Client Initialization + +```go +client := provisionedclusterinstances.NewProvisionedClusterInstancesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ProvisionedClusterInstancesClient.AgentPoolCreateOrUpdate` + +```go +ctx := context.TODO() +id := provisionedclusterinstances.NewScopedAgentPoolID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "agentPoolName") + +payload := provisionedclusterinstances.AgentPool{ + // ... +} + + +if err := client.AgentPoolCreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `ProvisionedClusterInstancesClient.AgentPoolDelete` + +```go +ctx := context.TODO() +id := provisionedclusterinstances.NewScopedAgentPoolID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "agentPoolName") + +if err := client.AgentPoolDeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ProvisionedClusterInstancesClient.AgentPoolGet` + +```go +ctx := context.TODO() +id := provisionedclusterinstances.NewScopedAgentPoolID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "agentPoolName") + +read, err := client.AgentPoolGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ProvisionedClusterInstancesClient.AgentPoolListByProvisionedCluster` + +```go +ctx := context.TODO() +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") + +// alternatively `client.AgentPoolListByProvisionedCluster(ctx, id)` can be used to do batched pagination +items, err := client.AgentPoolListByProvisionedClusterComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ProvisionedClusterInstancesClient.DeleteKubernetesVersions` + +```go +ctx := context.TODO() +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") + +if err := client.DeleteKubernetesVersionsThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ProvisionedClusterInstancesClient.DeleteVMSkus` + +```go +ctx := context.TODO() +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") + +if err := client.DeleteVMSkusThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ProvisionedClusterInstancesClient.GetKubernetesVersions` + +```go +ctx := context.TODO() +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") + +read, err := client.GetKubernetesVersions(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ProvisionedClusterInstancesClient.GetUpgradeProfile` + +```go +ctx := context.TODO() +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") + +read, err := client.GetUpgradeProfile(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ProvisionedClusterInstancesClient.GetVMSkus` + +```go +ctx := context.TODO() +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") + +read, err := client.GetVMSkus(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ProvisionedClusterInstancesClient.HybridIdentityMetadataDelete` + +```go +ctx := context.TODO() +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") + +if err := client.HybridIdentityMetadataDeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ProvisionedClusterInstancesClient.HybridIdentityMetadataGet` + +```go +ctx := context.TODO() +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") + +read, err := client.HybridIdentityMetadataGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ProvisionedClusterInstancesClient.HybridIdentityMetadataListByCluster` + +```go +ctx := context.TODO() +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") + +// alternatively `client.HybridIdentityMetadataListByCluster(ctx, id)` can be used to do batched pagination +items, err := client.HybridIdentityMetadataListByClusterComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ProvisionedClusterInstancesClient.HybridIdentityMetadataPut` + +```go +ctx := context.TODO() +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") + +payload := provisionedclusterinstances.HybridIdentityMetadata{ + // ... +} + + +read, err := client.HybridIdentityMetadataPut(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ProvisionedClusterInstancesClient.KubernetesVersionsList` + +```go +ctx := context.TODO() +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") + +// alternatively `client.KubernetesVersionsList(ctx, id)` can be used to do batched pagination +items, err := client.KubernetesVersionsListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ProvisionedClusterInstancesClient.ListAdminKubeconfig` + +```go +ctx := context.TODO() +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") + +if err := client.ListAdminKubeconfigThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ProvisionedClusterInstancesClient.ListUserKubeconfig` + +```go +ctx := context.TODO() +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") + +if err := client.ListUserKubeconfigThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ProvisionedClusterInstancesClient.ProvisionedClusterInstancesCreateOrUpdate` + +```go +ctx := context.TODO() +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") + +payload := provisionedclusterinstances.ProvisionedCluster{ + // ... +} + + +if err := client.ProvisionedClusterInstancesCreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `ProvisionedClusterInstancesClient.ProvisionedClusterInstancesDelete` + +```go +ctx := context.TODO() +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") + +if err := client.ProvisionedClusterInstancesDeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ProvisionedClusterInstancesClient.ProvisionedClusterInstancesGet` + +```go +ctx := context.TODO() +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") + +read, err := client.ProvisionedClusterInstancesGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ProvisionedClusterInstancesClient.ProvisionedClusterInstancesList` + +```go +ctx := context.TODO() +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") + +// alternatively `client.ProvisionedClusterInstancesList(ctx, id)` can be used to do batched pagination +items, err := client.ProvisionedClusterInstancesListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ProvisionedClusterInstancesClient.PutKubernetesVersions` + +```go +ctx := context.TODO() +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") + +payload := provisionedclusterinstances.KubernetesVersionProfile{ + // ... +} + + +if err := client.PutKubernetesVersionsThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `ProvisionedClusterInstancesClient.PutVMSkus` + +```go +ctx := context.TODO() +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") + +payload := provisionedclusterinstances.VMSkuProfile{ + // ... +} + + +if err := client.PutVMSkusThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `ProvisionedClusterInstancesClient.VMSkusList` + +```go +ctx := context.TODO() +id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") + +// alternatively `client.VMSkusList(ctx, id)` can be used to do batched pagination +items, err := client.VMSkusListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/client.go new file mode 100644 index 000000000000..bcb260adbd11 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/client.go @@ -0,0 +1,26 @@ +package provisionedclusterinstances + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ProvisionedClusterInstancesClient struct { + Client *resourcemanager.Client +} + +func NewProvisionedClusterInstancesClientWithBaseURI(sdkApi sdkEnv.Api) (*ProvisionedClusterInstancesClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "provisionedclusterinstances", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating ProvisionedClusterInstancesClient: %+v", err) + } + + return &ProvisionedClusterInstancesClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/constants.go new file mode 100644 index 000000000000..a2569641fbf3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/constants.go @@ -0,0 +1,383 @@ +package provisionedclusterinstances + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AddonPhase string + +const ( + AddonPhaseDeleting AddonPhase = "deleting" + AddonPhaseFailed AddonPhase = "failed" + AddonPhasePending AddonPhase = "pending" + AddonPhaseProvisioned AddonPhase = "provisioned" + AddonPhaseProvisioning AddonPhase = "provisioning" + AddonPhaseProvisioningHelmChartInstalled AddonPhase = "provisioning {HelmChartInstalled}" + AddonPhaseProvisioningMSICertificateDownloaded AddonPhase = "provisioning {MSICertificateDownloaded}" + AddonPhaseUpgrading AddonPhase = "upgrading" +) + +func PossibleValuesForAddonPhase() []string { + return []string{ + string(AddonPhaseDeleting), + string(AddonPhaseFailed), + string(AddonPhasePending), + string(AddonPhaseProvisioned), + string(AddonPhaseProvisioning), + string(AddonPhaseProvisioningHelmChartInstalled), + string(AddonPhaseProvisioningMSICertificateDownloaded), + string(AddonPhaseUpgrading), + } +} + +func (s *AddonPhase) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAddonPhase(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAddonPhase(input string) (*AddonPhase, error) { + vals := map[string]AddonPhase{ + "deleting": AddonPhaseDeleting, + "failed": AddonPhaseFailed, + "pending": AddonPhasePending, + "provisioned": AddonPhaseProvisioned, + "provisioning": AddonPhaseProvisioning, + "provisioning {helmchartinstalled}": AddonPhaseProvisioningHelmChartInstalled, + "provisioning {msicertificatedownloaded}": AddonPhaseProvisioningMSICertificateDownloaded, + "upgrading": AddonPhaseUpgrading, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AddonPhase(input) + return &out, nil +} + +type AzureHybridBenefit string + +const ( + AzureHybridBenefitFalse AzureHybridBenefit = "False" + AzureHybridBenefitNotApplicable AzureHybridBenefit = "NotApplicable" + AzureHybridBenefitTrue AzureHybridBenefit = "True" +) + +func PossibleValuesForAzureHybridBenefit() []string { + return []string{ + string(AzureHybridBenefitFalse), + string(AzureHybridBenefitNotApplicable), + string(AzureHybridBenefitTrue), + } +} + +func (s *AzureHybridBenefit) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAzureHybridBenefit(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAzureHybridBenefit(input string) (*AzureHybridBenefit, error) { + vals := map[string]AzureHybridBenefit{ + "false": AzureHybridBenefitFalse, + "notapplicable": AzureHybridBenefitNotApplicable, + "true": AzureHybridBenefitTrue, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AzureHybridBenefit(input) + return &out, nil +} + +type Expander string + +const ( + ExpanderLeastNegativewaste Expander = "least-waste" + ExpanderMostNegativepods Expander = "most-pods" + ExpanderPriority Expander = "priority" + ExpanderRandom Expander = "random" +) + +func PossibleValuesForExpander() []string { + return []string{ + string(ExpanderLeastNegativewaste), + string(ExpanderMostNegativepods), + string(ExpanderPriority), + string(ExpanderRandom), + } +} + +func (s *Expander) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseExpander(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseExpander(input string) (*Expander, error) { + vals := map[string]Expander{ + "least-waste": ExpanderLeastNegativewaste, + "most-pods": ExpanderMostNegativepods, + "priority": ExpanderPriority, + "random": ExpanderRandom, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := Expander(input) + return &out, nil +} + +type ExtendedLocationTypes string + +const ( + ExtendedLocationTypesCustomLocation ExtendedLocationTypes = "CustomLocation" +) + +func PossibleValuesForExtendedLocationTypes() []string { + return []string{ + string(ExtendedLocationTypesCustomLocation), + } +} + +func (s *ExtendedLocationTypes) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseExtendedLocationTypes(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseExtendedLocationTypes(input string) (*ExtendedLocationTypes, error) { + vals := map[string]ExtendedLocationTypes{ + "customlocation": ExtendedLocationTypesCustomLocation, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ExtendedLocationTypes(input) + return &out, nil +} + +type NetworkPolicy string + +const ( + NetworkPolicyCalico NetworkPolicy = "calico" +) + +func PossibleValuesForNetworkPolicy() []string { + return []string{ + string(NetworkPolicyCalico), + } +} + +func (s *NetworkPolicy) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkPolicy(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkPolicy(input string) (*NetworkPolicy, error) { + vals := map[string]NetworkPolicy{ + "calico": NetworkPolicyCalico, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkPolicy(input) + return &out, nil +} + +type OSSKU string + +const ( + OSSKUCBLMariner OSSKU = "CBLMariner" + OSSKUWindowsTwoZeroOneNine OSSKU = "Windows2019" + OSSKUWindowsTwoZeroTwoTwo OSSKU = "Windows2022" +) + +func PossibleValuesForOSSKU() []string { + return []string{ + string(OSSKUCBLMariner), + string(OSSKUWindowsTwoZeroOneNine), + string(OSSKUWindowsTwoZeroTwoTwo), + } +} + +func (s *OSSKU) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseOSSKU(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseOSSKU(input string) (*OSSKU, error) { + vals := map[string]OSSKU{ + "cblmariner": OSSKUCBLMariner, + "windows2019": OSSKUWindowsTwoZeroOneNine, + "windows2022": OSSKUWindowsTwoZeroTwoTwo, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := OSSKU(input) + return &out, nil +} + +type OsType string + +const ( + OsTypeLinux OsType = "Linux" + OsTypeWindows OsType = "Windows" +) + +func PossibleValuesForOsType() []string { + return []string{ + string(OsTypeLinux), + string(OsTypeWindows), + } +} + +func (s *OsType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseOsType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseOsType(input string) (*OsType, error) { + vals := map[string]OsType{ + "linux": OsTypeLinux, + "windows": OsTypeWindows, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := OsType(input) + return &out, nil +} + +type ResourceProvisioningState string + +const ( + ResourceProvisioningStateAccepted ResourceProvisioningState = "Accepted" + ResourceProvisioningStateCanceled ResourceProvisioningState = "Canceled" + ResourceProvisioningStateCreating ResourceProvisioningState = "Creating" + ResourceProvisioningStateDeleting ResourceProvisioningState = "Deleting" + ResourceProvisioningStateFailed ResourceProvisioningState = "Failed" + ResourceProvisioningStatePending ResourceProvisioningState = "Pending" + ResourceProvisioningStateSucceeded ResourceProvisioningState = "Succeeded" + ResourceProvisioningStateUpdating ResourceProvisioningState = "Updating" + ResourceProvisioningStateUpgrading ResourceProvisioningState = "Upgrading" +) + +func PossibleValuesForResourceProvisioningState() []string { + return []string{ + string(ResourceProvisioningStateAccepted), + string(ResourceProvisioningStateCanceled), + string(ResourceProvisioningStateCreating), + string(ResourceProvisioningStateDeleting), + string(ResourceProvisioningStateFailed), + string(ResourceProvisioningStatePending), + string(ResourceProvisioningStateSucceeded), + string(ResourceProvisioningStateUpdating), + string(ResourceProvisioningStateUpgrading), + } +} + +func (s *ResourceProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseResourceProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseResourceProvisioningState(input string) (*ResourceProvisioningState, error) { + vals := map[string]ResourceProvisioningState{ + "accepted": ResourceProvisioningStateAccepted, + "canceled": ResourceProvisioningStateCanceled, + "creating": ResourceProvisioningStateCreating, + "deleting": ResourceProvisioningStateDeleting, + "failed": ResourceProvisioningStateFailed, + "pending": ResourceProvisioningStatePending, + "succeeded": ResourceProvisioningStateSucceeded, + "updating": ResourceProvisioningStateUpdating, + "upgrading": ResourceProvisioningStateUpgrading, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ResourceProvisioningState(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/id_scopedagentpool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/id_scopedagentpool.go new file mode 100644 index 000000000000..2879602cba63 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/id_scopedagentpool.go @@ -0,0 +1,122 @@ +package provisionedclusterinstances + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&ScopedAgentPoolId{}) +} + +var _ resourceids.ResourceId = &ScopedAgentPoolId{} + +// ScopedAgentPoolId is a struct representing the Resource ID for a Scoped Agent Pool +type ScopedAgentPoolId struct { + ConnectedClusterResourceUri string + AgentPoolName string +} + +// NewScopedAgentPoolID returns a new ScopedAgentPoolId struct +func NewScopedAgentPoolID(connectedClusterResourceUri string, agentPoolName string) ScopedAgentPoolId { + return ScopedAgentPoolId{ + ConnectedClusterResourceUri: connectedClusterResourceUri, + AgentPoolName: agentPoolName, + } +} + +// ParseScopedAgentPoolID parses 'input' into a ScopedAgentPoolId +func ParseScopedAgentPoolID(input string) (*ScopedAgentPoolId, error) { + parser := resourceids.NewParserFromResourceIdType(&ScopedAgentPoolId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ScopedAgentPoolId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseScopedAgentPoolIDInsensitively parses 'input' case-insensitively into a ScopedAgentPoolId +// note: this method should only be used for API response data and not user input +func ParseScopedAgentPoolIDInsensitively(input string) (*ScopedAgentPoolId, error) { + parser := resourceids.NewParserFromResourceIdType(&ScopedAgentPoolId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ScopedAgentPoolId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *ScopedAgentPoolId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.ConnectedClusterResourceUri, ok = input.Parsed["connectedClusterResourceUri"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "connectedClusterResourceUri", input) + } + + if id.AgentPoolName, ok = input.Parsed["agentPoolName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "agentPoolName", input) + } + + return nil +} + +// ValidateScopedAgentPoolID checks that 'input' can be parsed as a Scoped Agent Pool ID +func ValidateScopedAgentPoolID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseScopedAgentPoolID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Scoped Agent Pool ID +func (id ScopedAgentPoolId) ID() string { + fmtString := "/%s/providers/Microsoft.HybridContainerService/provisionedClusterInstances/default/agentPools/%s" + return fmt.Sprintf(fmtString, strings.TrimPrefix(id.ConnectedClusterResourceUri, "/"), id.AgentPoolName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Scoped Agent Pool ID +func (id ScopedAgentPoolId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.ScopeSegment("connectedClusterResourceUri", "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftHybridContainerService", "Microsoft.HybridContainerService", "Microsoft.HybridContainerService"), + resourceids.StaticSegment("staticProvisionedClusterInstances", "provisionedClusterInstances", "provisionedClusterInstances"), + resourceids.StaticSegment("staticDefault", "default", "default"), + resourceids.StaticSegment("staticAgentPools", "agentPools", "agentPools"), + resourceids.UserSpecifiedSegment("agentPoolName", "agentPoolName"), + } +} + +// String returns a human-readable description of this Scoped Agent Pool ID +func (id ScopedAgentPoolId) String() string { + components := []string{ + fmt.Sprintf("Connected Cluster Resource Uri: %q", id.ConnectedClusterResourceUri), + fmt.Sprintf("Agent Pool Name: %q", id.AgentPoolName), + } + return fmt.Sprintf("Scoped Agent Pool (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_agentpoolcreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_agentpoolcreateorupdate.go new file mode 100644 index 000000000000..c3c28ad2d81f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_agentpoolcreateorupdate.go @@ -0,0 +1,75 @@ +package provisionedclusterinstances + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AgentPoolCreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *AgentPool +} + +// AgentPoolCreateOrUpdate ... +func (c ProvisionedClusterInstancesClient) AgentPoolCreateOrUpdate(ctx context.Context, id ScopedAgentPoolId, input AgentPool) (result AgentPoolCreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// AgentPoolCreateOrUpdateThenPoll performs AgentPoolCreateOrUpdate then polls until it's completed +func (c ProvisionedClusterInstancesClient) AgentPoolCreateOrUpdateThenPoll(ctx context.Context, id ScopedAgentPoolId, input AgentPool) error { + result, err := c.AgentPoolCreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing AgentPoolCreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after AgentPoolCreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_agentpooldelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_agentpooldelete.go new file mode 100644 index 000000000000..a91b77fa5187 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_agentpooldelete.go @@ -0,0 +1,70 @@ +package provisionedclusterinstances + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AgentPoolDeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// AgentPoolDelete ... +func (c ProvisionedClusterInstancesClient) AgentPoolDelete(ctx context.Context, id ScopedAgentPoolId) (result AgentPoolDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// AgentPoolDeleteThenPoll performs AgentPoolDelete then polls until it's completed +func (c ProvisionedClusterInstancesClient) AgentPoolDeleteThenPoll(ctx context.Context, id ScopedAgentPoolId) error { + result, err := c.AgentPoolDelete(ctx, id) + if err != nil { + return fmt.Errorf("performing AgentPoolDelete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after AgentPoolDelete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_agentpoolget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_agentpoolget.go new file mode 100644 index 000000000000..f16c7489acf6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_agentpoolget.go @@ -0,0 +1,53 @@ +package provisionedclusterinstances + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AgentPoolGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *AgentPool +} + +// AgentPoolGet ... +func (c ProvisionedClusterInstancesClient) AgentPoolGet(ctx context.Context, id ScopedAgentPoolId) (result AgentPoolGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model AgentPool + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_agentpoollistbyprovisionedcluster.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_agentpoollistbyprovisionedcluster.go new file mode 100644 index 000000000000..a68a50ee246c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_agentpoollistbyprovisionedcluster.go @@ -0,0 +1,106 @@ +package provisionedclusterinstances + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AgentPoolListByProvisionedClusterOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]AgentPool +} + +type AgentPoolListByProvisionedClusterCompleteResult struct { + LatestHttpResponse *http.Response + Items []AgentPool +} + +type AgentPoolListByProvisionedClusterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AgentPoolListByProvisionedClusterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// AgentPoolListByProvisionedCluster ... +func (c ProvisionedClusterInstancesClient) AgentPoolListByProvisionedCluster(ctx context.Context, id commonids.ScopeId) (result AgentPoolListByProvisionedClusterOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &AgentPoolListByProvisionedClusterCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.HybridContainerService/provisionedClusterInstances/default/agentPools", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]AgentPool `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// AgentPoolListByProvisionedClusterComplete retrieves all the results into a single object +func (c ProvisionedClusterInstancesClient) AgentPoolListByProvisionedClusterComplete(ctx context.Context, id commonids.ScopeId) (AgentPoolListByProvisionedClusterCompleteResult, error) { + return c.AgentPoolListByProvisionedClusterCompleteMatchingPredicate(ctx, id, AgentPoolOperationPredicate{}) +} + +// AgentPoolListByProvisionedClusterCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ProvisionedClusterInstancesClient) AgentPoolListByProvisionedClusterCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, predicate AgentPoolOperationPredicate) (result AgentPoolListByProvisionedClusterCompleteResult, err error) { + items := make([]AgentPool, 0) + + resp, err := c.AgentPoolListByProvisionedCluster(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = AgentPoolListByProvisionedClusterCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_deletekubernetesversions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_deletekubernetesversions.go new file mode 100644 index 000000000000..f2fe944848aa --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_deletekubernetesversions.go @@ -0,0 +1,71 @@ +package provisionedclusterinstances + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteKubernetesVersionsOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// DeleteKubernetesVersions ... +func (c ProvisionedClusterInstancesClient) DeleteKubernetesVersions(ctx context.Context, id commonids.ScopeId) (result DeleteKubernetesVersionsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + }, + HttpMethod: http.MethodDelete, + Path: fmt.Sprintf("%s/providers/Microsoft.HybridContainerService/kubernetesVersions/default", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteKubernetesVersionsThenPoll performs DeleteKubernetesVersions then polls until it's completed +func (c ProvisionedClusterInstancesClient) DeleteKubernetesVersionsThenPoll(ctx context.Context, id commonids.ScopeId) error { + result, err := c.DeleteKubernetesVersions(ctx, id) + if err != nil { + return fmt.Errorf("performing DeleteKubernetesVersions: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after DeleteKubernetesVersions: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_deletevmskus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_deletevmskus.go new file mode 100644 index 000000000000..2092c810f005 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_deletevmskus.go @@ -0,0 +1,71 @@ +package provisionedclusterinstances + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteVMSkusOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// DeleteVMSkus ... +func (c ProvisionedClusterInstancesClient) DeleteVMSkus(ctx context.Context, id commonids.ScopeId) (result DeleteVMSkusOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + }, + HttpMethod: http.MethodDelete, + Path: fmt.Sprintf("%s/providers/Microsoft.HybridContainerService/skus/default", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteVMSkusThenPoll performs DeleteVMSkus then polls until it's completed +func (c ProvisionedClusterInstancesClient) DeleteVMSkusThenPoll(ctx context.Context, id commonids.ScopeId) error { + result, err := c.DeleteVMSkus(ctx, id) + if err != nil { + return fmt.Errorf("performing DeleteVMSkus: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after DeleteVMSkus: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_getkubernetesversions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_getkubernetesversions.go new file mode 100644 index 000000000000..b3c63e6b6a3f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_getkubernetesversions.go @@ -0,0 +1,55 @@ +package provisionedclusterinstances + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetKubernetesVersionsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *KubernetesVersionProfile +} + +// GetKubernetesVersions ... +func (c ProvisionedClusterInstancesClient) GetKubernetesVersions(ctx context.Context, id commonids.ScopeId) (result GetKubernetesVersionsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/providers/Microsoft.HybridContainerService/kubernetesVersions/default", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model KubernetesVersionProfile + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_getupgradeprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_getupgradeprofile.go new file mode 100644 index 000000000000..c6425cb99621 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_getupgradeprofile.go @@ -0,0 +1,55 @@ +package provisionedclusterinstances + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetUpgradeProfileOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ProvisionedClusterUpgradeProfile +} + +// GetUpgradeProfile ... +func (c ProvisionedClusterInstancesClient) GetUpgradeProfile(ctx context.Context, id commonids.ScopeId) (result GetUpgradeProfileOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/providers/Microsoft.HybridContainerService/provisionedClusterInstances/default/upgradeProfiles/default", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ProvisionedClusterUpgradeProfile + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_getvmskus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_getvmskus.go new file mode 100644 index 000000000000..1668ef6340dd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_getvmskus.go @@ -0,0 +1,55 @@ +package provisionedclusterinstances + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetVMSkusOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *VMSkuProfile +} + +// GetVMSkus ... +func (c ProvisionedClusterInstancesClient) GetVMSkus(ctx context.Context, id commonids.ScopeId) (result GetVMSkusOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/providers/Microsoft.HybridContainerService/skus/default", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model VMSkuProfile + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_hybrididentitymetadatadelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_hybrididentitymetadatadelete.go new file mode 100644 index 000000000000..8d6e9cdc7cae --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_hybrididentitymetadatadelete.go @@ -0,0 +1,71 @@ +package provisionedclusterinstances + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HybridIdentityMetadataDeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// HybridIdentityMetadataDelete ... +func (c ProvisionedClusterInstancesClient) HybridIdentityMetadataDelete(ctx context.Context, id commonids.ScopeId) (result HybridIdentityMetadataDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + }, + HttpMethod: http.MethodDelete, + Path: fmt.Sprintf("%s/providers/Microsoft.HybridContainerService/provisionedClusterInstances/default/hybridIdentityMetadata/default", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// HybridIdentityMetadataDeleteThenPoll performs HybridIdentityMetadataDelete then polls until it's completed +func (c ProvisionedClusterInstancesClient) HybridIdentityMetadataDeleteThenPoll(ctx context.Context, id commonids.ScopeId) error { + result, err := c.HybridIdentityMetadataDelete(ctx, id) + if err != nil { + return fmt.Errorf("performing HybridIdentityMetadataDelete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after HybridIdentityMetadataDelete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_hybrididentitymetadataget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_hybrididentitymetadataget.go new file mode 100644 index 000000000000..e3f2bd348b47 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_hybrididentitymetadataget.go @@ -0,0 +1,55 @@ +package provisionedclusterinstances + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HybridIdentityMetadataGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *HybridIdentityMetadata +} + +// HybridIdentityMetadataGet ... +func (c ProvisionedClusterInstancesClient) HybridIdentityMetadataGet(ctx context.Context, id commonids.ScopeId) (result HybridIdentityMetadataGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/providers/Microsoft.HybridContainerService/provisionedClusterInstances/default/hybridIdentityMetadata/default", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model HybridIdentityMetadata + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_hybrididentitymetadatalistbycluster.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_hybrididentitymetadatalistbycluster.go new file mode 100644 index 000000000000..173a87777413 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_hybrididentitymetadatalistbycluster.go @@ -0,0 +1,106 @@ +package provisionedclusterinstances + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HybridIdentityMetadataListByClusterOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]HybridIdentityMetadata +} + +type HybridIdentityMetadataListByClusterCompleteResult struct { + LatestHttpResponse *http.Response + Items []HybridIdentityMetadata +} + +type HybridIdentityMetadataListByClusterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *HybridIdentityMetadataListByClusterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// HybridIdentityMetadataListByCluster ... +func (c ProvisionedClusterInstancesClient) HybridIdentityMetadataListByCluster(ctx context.Context, id commonids.ScopeId) (result HybridIdentityMetadataListByClusterOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &HybridIdentityMetadataListByClusterCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.HybridContainerService/provisionedClusterInstances/default/hybridIdentityMetadata", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]HybridIdentityMetadata `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// HybridIdentityMetadataListByClusterComplete retrieves all the results into a single object +func (c ProvisionedClusterInstancesClient) HybridIdentityMetadataListByClusterComplete(ctx context.Context, id commonids.ScopeId) (HybridIdentityMetadataListByClusterCompleteResult, error) { + return c.HybridIdentityMetadataListByClusterCompleteMatchingPredicate(ctx, id, HybridIdentityMetadataOperationPredicate{}) +} + +// HybridIdentityMetadataListByClusterCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ProvisionedClusterInstancesClient) HybridIdentityMetadataListByClusterCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, predicate HybridIdentityMetadataOperationPredicate) (result HybridIdentityMetadataListByClusterCompleteResult, err error) { + items := make([]HybridIdentityMetadata, 0) + + resp, err := c.HybridIdentityMetadataListByCluster(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = HybridIdentityMetadataListByClusterCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_hybrididentitymetadataput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_hybrididentitymetadataput.go new file mode 100644 index 000000000000..ac29afaa56d5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_hybrididentitymetadataput.go @@ -0,0 +1,60 @@ +package provisionedclusterinstances + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HybridIdentityMetadataPutOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *HybridIdentityMetadata +} + +// HybridIdentityMetadataPut ... +func (c ProvisionedClusterInstancesClient) HybridIdentityMetadataPut(ctx context.Context, id commonids.ScopeId, input HybridIdentityMetadata) (result HybridIdentityMetadataPutOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: fmt.Sprintf("%s/providers/Microsoft.HybridContainerService/provisionedClusterInstances/default/hybridIdentityMetadata/default", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model HybridIdentityMetadata + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_kubernetesversionslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_kubernetesversionslist.go new file mode 100644 index 000000000000..2f3de43b89a3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_kubernetesversionslist.go @@ -0,0 +1,106 @@ +package provisionedclusterinstances + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type KubernetesVersionsListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]KubernetesVersionProfile +} + +type KubernetesVersionsListCompleteResult struct { + LatestHttpResponse *http.Response + Items []KubernetesVersionProfile +} + +type KubernetesVersionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *KubernetesVersionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// KubernetesVersionsList ... +func (c ProvisionedClusterInstancesClient) KubernetesVersionsList(ctx context.Context, id commonids.ScopeId) (result KubernetesVersionsListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &KubernetesVersionsListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.HybridContainerService/kubernetesVersions", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]KubernetesVersionProfile `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// KubernetesVersionsListComplete retrieves all the results into a single object +func (c ProvisionedClusterInstancesClient) KubernetesVersionsListComplete(ctx context.Context, id commonids.ScopeId) (KubernetesVersionsListCompleteResult, error) { + return c.KubernetesVersionsListCompleteMatchingPredicate(ctx, id, KubernetesVersionProfileOperationPredicate{}) +} + +// KubernetesVersionsListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ProvisionedClusterInstancesClient) KubernetesVersionsListCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, predicate KubernetesVersionProfileOperationPredicate) (result KubernetesVersionsListCompleteResult, err error) { + items := make([]KubernetesVersionProfile, 0) + + resp, err := c.KubernetesVersionsList(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = KubernetesVersionsListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_listadminkubeconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_listadminkubeconfig.go new file mode 100644 index 000000000000..50c24cc9973d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_listadminkubeconfig.go @@ -0,0 +1,72 @@ +package provisionedclusterinstances + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListAdminKubeconfigOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *ListCredentialResponse +} + +// ListAdminKubeconfig ... +func (c ProvisionedClusterInstancesClient) ListAdminKubeconfig(ctx context.Context, id commonids.ScopeId) (result ListAdminKubeconfigOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/providers/Microsoft.HybridContainerService/provisionedClusterInstances/default/listAdminKubeconfig", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// ListAdminKubeconfigThenPoll performs ListAdminKubeconfig then polls until it's completed +func (c ProvisionedClusterInstancesClient) ListAdminKubeconfigThenPoll(ctx context.Context, id commonids.ScopeId) error { + result, err := c.ListAdminKubeconfig(ctx, id) + if err != nil { + return fmt.Errorf("performing ListAdminKubeconfig: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after ListAdminKubeconfig: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_listuserkubeconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_listuserkubeconfig.go new file mode 100644 index 000000000000..7def6ef1e2e0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_listuserkubeconfig.go @@ -0,0 +1,72 @@ +package provisionedclusterinstances + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListUserKubeconfigOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *ListCredentialResponse +} + +// ListUserKubeconfig ... +func (c ProvisionedClusterInstancesClient) ListUserKubeconfig(ctx context.Context, id commonids.ScopeId) (result ListUserKubeconfigOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/providers/Microsoft.HybridContainerService/provisionedClusterInstances/default/listUserKubeconfig", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// ListUserKubeconfigThenPoll performs ListUserKubeconfig then polls until it's completed +func (c ProvisionedClusterInstancesClient) ListUserKubeconfigThenPoll(ctx context.Context, id commonids.ScopeId) error { + result, err := c.ListUserKubeconfig(ctx, id) + if err != nil { + return fmt.Errorf("performing ListUserKubeconfig: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after ListUserKubeconfig: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_provisionedclusterinstancescreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_provisionedclusterinstancescreateorupdate.go new file mode 100644 index 000000000000..790d34434625 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_provisionedclusterinstancescreateorupdate.go @@ -0,0 +1,76 @@ +package provisionedclusterinstances + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ProvisionedClusterInstancesCreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *ProvisionedCluster +} + +// ProvisionedClusterInstancesCreateOrUpdate ... +func (c ProvisionedClusterInstancesClient) ProvisionedClusterInstancesCreateOrUpdate(ctx context.Context, id commonids.ScopeId, input ProvisionedCluster) (result ProvisionedClusterInstancesCreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: fmt.Sprintf("%s/providers/Microsoft.HybridContainerService/provisionedClusterInstances/default", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// ProvisionedClusterInstancesCreateOrUpdateThenPoll performs ProvisionedClusterInstancesCreateOrUpdate then polls until it's completed +func (c ProvisionedClusterInstancesClient) ProvisionedClusterInstancesCreateOrUpdateThenPoll(ctx context.Context, id commonids.ScopeId, input ProvisionedCluster) error { + result, err := c.ProvisionedClusterInstancesCreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing ProvisionedClusterInstancesCreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after ProvisionedClusterInstancesCreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_provisionedclusterinstancesdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_provisionedclusterinstancesdelete.go new file mode 100644 index 000000000000..b37952d6590a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_provisionedclusterinstancesdelete.go @@ -0,0 +1,71 @@ +package provisionedclusterinstances + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ProvisionedClusterInstancesDeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// ProvisionedClusterInstancesDelete ... +func (c ProvisionedClusterInstancesClient) ProvisionedClusterInstancesDelete(ctx context.Context, id commonids.ScopeId) (result ProvisionedClusterInstancesDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + }, + HttpMethod: http.MethodDelete, + Path: fmt.Sprintf("%s/providers/Microsoft.HybridContainerService/provisionedClusterInstances/default", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// ProvisionedClusterInstancesDeleteThenPoll performs ProvisionedClusterInstancesDelete then polls until it's completed +func (c ProvisionedClusterInstancesClient) ProvisionedClusterInstancesDeleteThenPoll(ctx context.Context, id commonids.ScopeId) error { + result, err := c.ProvisionedClusterInstancesDelete(ctx, id) + if err != nil { + return fmt.Errorf("performing ProvisionedClusterInstancesDelete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after ProvisionedClusterInstancesDelete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_provisionedclusterinstancesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_provisionedclusterinstancesget.go new file mode 100644 index 000000000000..47e8e2dcc2ec --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_provisionedclusterinstancesget.go @@ -0,0 +1,55 @@ +package provisionedclusterinstances + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ProvisionedClusterInstancesGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ProvisionedCluster +} + +// ProvisionedClusterInstancesGet ... +func (c ProvisionedClusterInstancesClient) ProvisionedClusterInstancesGet(ctx context.Context, id commonids.ScopeId) (result ProvisionedClusterInstancesGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/providers/Microsoft.HybridContainerService/provisionedClusterInstances/default", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ProvisionedCluster + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_provisionedclusterinstanceslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_provisionedclusterinstanceslist.go new file mode 100644 index 000000000000..7f2aff66196b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_provisionedclusterinstanceslist.go @@ -0,0 +1,106 @@ +package provisionedclusterinstances + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ProvisionedClusterInstancesListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ProvisionedCluster +} + +type ProvisionedClusterInstancesListCompleteResult struct { + LatestHttpResponse *http.Response + Items []ProvisionedCluster +} + +type ProvisionedClusterInstancesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ProvisionedClusterInstancesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ProvisionedClusterInstancesList ... +func (c ProvisionedClusterInstancesClient) ProvisionedClusterInstancesList(ctx context.Context, id commonids.ScopeId) (result ProvisionedClusterInstancesListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ProvisionedClusterInstancesListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.HybridContainerService/provisionedClusterInstances", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]ProvisionedCluster `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ProvisionedClusterInstancesListComplete retrieves all the results into a single object +func (c ProvisionedClusterInstancesClient) ProvisionedClusterInstancesListComplete(ctx context.Context, id commonids.ScopeId) (ProvisionedClusterInstancesListCompleteResult, error) { + return c.ProvisionedClusterInstancesListCompleteMatchingPredicate(ctx, id, ProvisionedClusterOperationPredicate{}) +} + +// ProvisionedClusterInstancesListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ProvisionedClusterInstancesClient) ProvisionedClusterInstancesListCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, predicate ProvisionedClusterOperationPredicate) (result ProvisionedClusterInstancesListCompleteResult, err error) { + items := make([]ProvisionedCluster, 0) + + resp, err := c.ProvisionedClusterInstancesList(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ProvisionedClusterInstancesListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_putkubernetesversions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_putkubernetesversions.go new file mode 100644 index 000000000000..57aa50f3b12b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_putkubernetesversions.go @@ -0,0 +1,76 @@ +package provisionedclusterinstances + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PutKubernetesVersionsOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *KubernetesVersionProfile +} + +// PutKubernetesVersions ... +func (c ProvisionedClusterInstancesClient) PutKubernetesVersions(ctx context.Context, id commonids.ScopeId, input KubernetesVersionProfile) (result PutKubernetesVersionsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: fmt.Sprintf("%s/providers/Microsoft.HybridContainerService/kubernetesVersions/default", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// PutKubernetesVersionsThenPoll performs PutKubernetesVersions then polls until it's completed +func (c ProvisionedClusterInstancesClient) PutKubernetesVersionsThenPoll(ctx context.Context, id commonids.ScopeId, input KubernetesVersionProfile) error { + result, err := c.PutKubernetesVersions(ctx, id, input) + if err != nil { + return fmt.Errorf("performing PutKubernetesVersions: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after PutKubernetesVersions: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_putvmskus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_putvmskus.go new file mode 100644 index 000000000000..18ca7ccedf5a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_putvmskus.go @@ -0,0 +1,76 @@ +package provisionedclusterinstances + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PutVMSkusOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *VMSkuProfile +} + +// PutVMSkus ... +func (c ProvisionedClusterInstancesClient) PutVMSkus(ctx context.Context, id commonids.ScopeId, input VMSkuProfile) (result PutVMSkusOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: fmt.Sprintf("%s/providers/Microsoft.HybridContainerService/skus/default", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// PutVMSkusThenPoll performs PutVMSkus then polls until it's completed +func (c ProvisionedClusterInstancesClient) PutVMSkusThenPoll(ctx context.Context, id commonids.ScopeId, input VMSkuProfile) error { + result, err := c.PutVMSkus(ctx, id, input) + if err != nil { + return fmt.Errorf("performing PutVMSkus: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after PutVMSkus: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_vmskuslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_vmskuslist.go new file mode 100644 index 000000000000..2739c8e7dcda --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_vmskuslist.go @@ -0,0 +1,106 @@ +package provisionedclusterinstances + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VMSkusListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]VMSkuProfile +} + +type VMSkusListCompleteResult struct { + LatestHttpResponse *http.Response + Items []VMSkuProfile +} + +type VMSkusListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VMSkusListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// VMSkusList ... +func (c ProvisionedClusterInstancesClient) VMSkusList(ctx context.Context, id commonids.ScopeId) (result VMSkusListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &VMSkusListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.HybridContainerService/skus", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]VMSkuProfile `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// VMSkusListComplete retrieves all the results into a single object +func (c ProvisionedClusterInstancesClient) VMSkusListComplete(ctx context.Context, id commonids.ScopeId) (VMSkusListCompleteResult, error) { + return c.VMSkusListCompleteMatchingPredicate(ctx, id, VMSkuProfileOperationPredicate{}) +} + +// VMSkusListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ProvisionedClusterInstancesClient) VMSkusListCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, predicate VMSkuProfileOperationPredicate) (result VMSkusListCompleteResult, err error) { + items := make([]VMSkuProfile, 0) + + resp, err := c.VMSkusList(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = VMSkusListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_addonstatusprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_addonstatusprofile.go new file mode 100644 index 000000000000..1248fbea3c4b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_addonstatusprofile.go @@ -0,0 +1,11 @@ +package provisionedclusterinstances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AddonStatusProfile struct { + ErrorMessage *string `json:"errorMessage,omitempty"` + Name *string `json:"name,omitempty"` + Phase *AddonPhase `json:"phase,omitempty"` + Ready *bool `json:"ready,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_agentpool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_agentpool.go new file mode 100644 index 000000000000..4989e4e325f5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_agentpool.go @@ -0,0 +1,18 @@ +package provisionedclusterinstances + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AgentPool struct { + ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *AgentPoolProperties `json:"properties,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_agentpoolproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_agentpoolproperties.go new file mode 100644 index 000000000000..2dfc2e4608d8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_agentpoolproperties.go @@ -0,0 +1,20 @@ +package provisionedclusterinstances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AgentPoolProperties struct { + Count *int64 `json:"count,omitempty"` + EnableAutoScaling *bool `json:"enableAutoScaling,omitempty"` + KubernetesVersion *string `json:"kubernetesVersion,omitempty"` + MaxCount *int64 `json:"maxCount,omitempty"` + MaxPods *int64 `json:"maxPods,omitempty"` + MinCount *int64 `json:"minCount,omitempty"` + NodeLabels *map[string]string `json:"nodeLabels,omitempty"` + NodeTaints *[]string `json:"nodeTaints,omitempty"` + OsSKU *OSSKU `json:"osSKU,omitempty"` + OsType *OsType `json:"osType,omitempty"` + ProvisioningState *ResourceProvisioningState `json:"provisioningState,omitempty"` + Status *AgentPoolProvisioningStatusStatus `json:"status,omitempty"` + VMSize *string `json:"vmSize,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_agentpoolprovisioningstatusstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_agentpoolprovisioningstatusstatus.go new file mode 100644 index 000000000000..032b4a091493 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_agentpoolprovisioningstatusstatus.go @@ -0,0 +1,10 @@ +package provisionedclusterinstances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AgentPoolProvisioningStatusStatus struct { + CurrentState *ResourceProvisioningState `json:"currentState,omitempty"` + ErrorMessage *string `json:"errorMessage,omitempty"` + ReadyReplicas *[]AgentPoolUpdateProfile `json:"readyReplicas,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_agentpoolupdateprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_agentpoolupdateprofile.go new file mode 100644 index 000000000000..9e34bda2b1c6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_agentpoolupdateprofile.go @@ -0,0 +1,10 @@ +package provisionedclusterinstances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AgentPoolUpdateProfile struct { + Count *int64 `json:"count,omitempty"` + KubernetesVersion *string `json:"kubernetesVersion,omitempty"` + VMSize *string `json:"vmSize,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_cloudproviderprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_cloudproviderprofile.go new file mode 100644 index 000000000000..15ef3afdf380 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_cloudproviderprofile.go @@ -0,0 +1,8 @@ +package provisionedclusterinstances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CloudProviderProfile struct { + InfraNetworkProfile *CloudProviderProfileInfraNetworkProfile `json:"infraNetworkProfile,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_cloudproviderprofileinfranetworkprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_cloudproviderprofileinfranetworkprofile.go new file mode 100644 index 000000000000..8dd110324860 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_cloudproviderprofileinfranetworkprofile.go @@ -0,0 +1,8 @@ +package provisionedclusterinstances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CloudProviderProfileInfraNetworkProfile struct { + VnetSubnetIds *[]string `json:"vnetSubnetIds,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_clustervmaccessprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_clustervmaccessprofile.go new file mode 100644 index 000000000000..3ca8479e173e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_clustervmaccessprofile.go @@ -0,0 +1,8 @@ +package provisionedclusterinstances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ClusterVMAccessProfile struct { + AuthorizedIPRanges *string `json:"authorizedIPRanges,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_controlplaneprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_controlplaneprofile.go new file mode 100644 index 000000000000..356f71d0a389 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_controlplaneprofile.go @@ -0,0 +1,10 @@ +package provisionedclusterinstances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ControlPlaneProfile struct { + ControlPlaneEndpoint *ControlPlaneProfileControlPlaneEndpoint `json:"controlPlaneEndpoint,omitempty"` + Count *int64 `json:"count,omitempty"` + VMSize *string `json:"vmSize,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_controlplaneprofilecontrolplaneendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_controlplaneprofilecontrolplaneendpoint.go new file mode 100644 index 000000000000..d8e6b22b8772 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_controlplaneprofilecontrolplaneendpoint.go @@ -0,0 +1,8 @@ +package provisionedclusterinstances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ControlPlaneProfileControlPlaneEndpoint struct { + HostIP *string `json:"hostIP,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_credentialresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_credentialresult.go new file mode 100644 index 000000000000..f53ff3e4730a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_credentialresult.go @@ -0,0 +1,9 @@ +package provisionedclusterinstances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CredentialResult struct { + Name *string `json:"name,omitempty"` + Value *string `json:"value,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_extendedlocation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_extendedlocation.go new file mode 100644 index 000000000000..df5c35f415df --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_extendedlocation.go @@ -0,0 +1,9 @@ +package provisionedclusterinstances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExtendedLocation struct { + Name *string `json:"name,omitempty"` + Type *ExtendedLocationTypes `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_hybrididentitymetadata.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_hybrididentitymetadata.go new file mode 100644 index 000000000000..ba1c943e5571 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_hybrididentitymetadata.go @@ -0,0 +1,16 @@ +package provisionedclusterinstances + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HybridIdentityMetadata struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties HybridIdentityMetadataProperties `json:"properties"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_hybrididentitymetadataproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_hybrididentitymetadataproperties.go new file mode 100644 index 000000000000..775c85af4984 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_hybrididentitymetadataproperties.go @@ -0,0 +1,10 @@ +package provisionedclusterinstances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HybridIdentityMetadataProperties struct { + ProvisioningState *ResourceProvisioningState `json:"provisioningState,omitempty"` + PublicKey *string `json:"publicKey,omitempty"` + ResourceUid *string `json:"resourceUid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_kubernetespatchversions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_kubernetespatchversions.go new file mode 100644 index 000000000000..a1a2681bf521 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_kubernetespatchversions.go @@ -0,0 +1,9 @@ +package provisionedclusterinstances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type KubernetesPatchVersions struct { + Readiness *[]KubernetesVersionReadiness `json:"readiness,omitempty"` + Upgrades *[]string `json:"upgrades,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_kubernetesversionprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_kubernetesversionprofile.go new file mode 100644 index 000000000000..9e500cc683d7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_kubernetesversionprofile.go @@ -0,0 +1,17 @@ +package provisionedclusterinstances + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type KubernetesVersionProfile struct { + ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *KubernetesVersionProfileProperties `json:"properties,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_kubernetesversionprofileproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_kubernetesversionprofileproperties.go new file mode 100644 index 000000000000..93c54b0a9ca2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_kubernetesversionprofileproperties.go @@ -0,0 +1,9 @@ +package provisionedclusterinstances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type KubernetesVersionProfileProperties struct { + ProvisioningState *ResourceProvisioningState `json:"provisioningState,omitempty"` + Values *[]KubernetesVersionProperties `json:"values,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_kubernetesversionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_kubernetesversionproperties.go new file mode 100644 index 000000000000..595551b647ba --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_kubernetesversionproperties.go @@ -0,0 +1,10 @@ +package provisionedclusterinstances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type KubernetesVersionProperties struct { + IsPreview *bool `json:"isPreview,omitempty"` + PatchVersions *map[string]KubernetesPatchVersions `json:"patchVersions,omitempty"` + Version *string `json:"version,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_kubernetesversionreadiness.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_kubernetesversionreadiness.go new file mode 100644 index 000000000000..54e2ba9b537a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_kubernetesversionreadiness.go @@ -0,0 +1,11 @@ +package provisionedclusterinstances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type KubernetesVersionReadiness struct { + ErrorMessage *string `json:"errorMessage,omitempty"` + OsSku *OSSKU `json:"osSku,omitempty"` + OsType *OsType `json:"osType,omitempty"` + Ready *bool `json:"ready,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_linuxprofileproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_linuxprofileproperties.go new file mode 100644 index 000000000000..79cdda20ec99 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_linuxprofileproperties.go @@ -0,0 +1,8 @@ +package provisionedclusterinstances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LinuxProfileProperties struct { + Ssh *LinuxProfilePropertiesSsh `json:"ssh,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_linuxprofilepropertiesssh.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_linuxprofilepropertiesssh.go new file mode 100644 index 000000000000..12a2d64608f0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_linuxprofilepropertiesssh.go @@ -0,0 +1,8 @@ +package provisionedclusterinstances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LinuxProfilePropertiesSsh struct { + PublicKeys *[]LinuxProfilePropertiesSshPublicKeysInlined `json:"publicKeys,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_linuxprofilepropertiessshpublickeysinlined.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_linuxprofilepropertiessshpublickeysinlined.go new file mode 100644 index 000000000000..522a08e10ec1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_linuxprofilepropertiessshpublickeysinlined.go @@ -0,0 +1,8 @@ +package provisionedclusterinstances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LinuxProfilePropertiesSshPublicKeysInlined struct { + KeyData *string `json:"keyData,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_listcredentialresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_listcredentialresponse.go new file mode 100644 index 000000000000..2cf150dacb87 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_listcredentialresponse.go @@ -0,0 +1,13 @@ +package provisionedclusterinstances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListCredentialResponse struct { + Error *ListCredentialResponseError `json:"error,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ListCredentialResponseProperties `json:"properties,omitempty"` + ResourceId *string `json:"resourceId,omitempty"` + Status *ResourceProvisioningState `json:"status,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_listcredentialresponseerror.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_listcredentialresponseerror.go new file mode 100644 index 000000000000..65631706ff87 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_listcredentialresponseerror.go @@ -0,0 +1,9 @@ +package provisionedclusterinstances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListCredentialResponseError struct { + Code *string `json:"code,omitempty"` + Message *string `json:"message,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_listcredentialresponseproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_listcredentialresponseproperties.go new file mode 100644 index 000000000000..9993f067819c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_listcredentialresponseproperties.go @@ -0,0 +1,8 @@ +package provisionedclusterinstances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListCredentialResponseProperties struct { + Kubeconfigs *[]CredentialResult `json:"kubeconfigs,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_namedagentpoolprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_namedagentpoolprofile.go new file mode 100644 index 000000000000..ac5e4b41eb2e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_namedagentpoolprofile.go @@ -0,0 +1,19 @@ +package provisionedclusterinstances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NamedAgentPoolProfile struct { + Count *int64 `json:"count,omitempty"` + EnableAutoScaling *bool `json:"enableAutoScaling,omitempty"` + KubernetesVersion *string `json:"kubernetesVersion,omitempty"` + MaxCount *int64 `json:"maxCount,omitempty"` + MaxPods *int64 `json:"maxPods,omitempty"` + MinCount *int64 `json:"minCount,omitempty"` + Name *string `json:"name,omitempty"` + NodeLabels *map[string]string `json:"nodeLabels,omitempty"` + NodeTaints *[]string `json:"nodeTaints,omitempty"` + OsSKU *OSSKU `json:"osSKU,omitempty"` + OsType *OsType `json:"osType,omitempty"` + VMSize *string `json:"vmSize,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_networkprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_networkprofile.go new file mode 100644 index 000000000000..8f542600c3da --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_networkprofile.go @@ -0,0 +1,10 @@ +package provisionedclusterinstances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkProfile struct { + LoadBalancerProfile *NetworkProfileLoadBalancerProfile `json:"loadBalancerProfile,omitempty"` + NetworkPolicy *NetworkPolicy `json:"networkPolicy,omitempty"` + PodCidr *string `json:"podCidr,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_networkprofileloadbalancerprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_networkprofileloadbalancerprofile.go new file mode 100644 index 000000000000..6a9fa9a386cc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_networkprofileloadbalancerprofile.go @@ -0,0 +1,8 @@ +package provisionedclusterinstances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkProfileLoadBalancerProfile struct { + Count *int64 `json:"count,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedcluster.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedcluster.go new file mode 100644 index 000000000000..9093c96fc94f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedcluster.go @@ -0,0 +1,17 @@ +package provisionedclusterinstances + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ProvisionedCluster struct { + ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ProvisionedClusterProperties `json:"properties,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterlicenseprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterlicenseprofile.go new file mode 100644 index 000000000000..bec6f9004f16 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterlicenseprofile.go @@ -0,0 +1,8 @@ +package provisionedclusterinstances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ProvisionedClusterLicenseProfile struct { + AzureHybridBenefit *AzureHybridBenefit `json:"azureHybridBenefit,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterpoolupgradeprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterpoolupgradeprofile.go new file mode 100644 index 000000000000..64afa5f5e965 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterpoolupgradeprofile.go @@ -0,0 +1,10 @@ +package provisionedclusterinstances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ProvisionedClusterPoolUpgradeProfile struct { + KubernetesVersion *string `json:"kubernetesVersion,omitempty"` + OsType *OsType `json:"osType,omitempty"` + Upgrades *[]ProvisionedClusterPoolUpgradeProfileProperties `json:"upgrades,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterpoolupgradeprofileproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterpoolupgradeprofileproperties.go new file mode 100644 index 000000000000..8bfed453df63 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterpoolupgradeprofileproperties.go @@ -0,0 +1,9 @@ +package provisionedclusterinstances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ProvisionedClusterPoolUpgradeProfileProperties struct { + IsPreview *bool `json:"isPreview,omitempty"` + KubernetesVersion *string `json:"kubernetesVersion,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterproperties.go new file mode 100644 index 000000000000..fcb6073e7b22 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterproperties.go @@ -0,0 +1,19 @@ +package provisionedclusterinstances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ProvisionedClusterProperties struct { + AgentPoolProfiles *[]NamedAgentPoolProfile `json:"agentPoolProfiles,omitempty"` + AutoScalerProfile *ProvisionedClusterPropertiesAutoScalerProfile `json:"autoScalerProfile,omitempty"` + CloudProviderProfile *CloudProviderProfile `json:"cloudProviderProfile,omitempty"` + ClusterVMAccessProfile *ClusterVMAccessProfile `json:"clusterVMAccessProfile,omitempty"` + ControlPlane *ControlPlaneProfile `json:"controlPlane,omitempty"` + KubernetesVersion *string `json:"kubernetesVersion,omitempty"` + LicenseProfile *ProvisionedClusterLicenseProfile `json:"licenseProfile,omitempty"` + LinuxProfile *LinuxProfileProperties `json:"linuxProfile,omitempty"` + NetworkProfile *NetworkProfile `json:"networkProfile,omitempty"` + ProvisioningState *ResourceProvisioningState `json:"provisioningState,omitempty"` + Status *ProvisionedClusterPropertiesStatus `json:"status,omitempty"` + StorageProfile *StorageProfile `json:"storageProfile,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterpropertiesautoscalerprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterpropertiesautoscalerprofile.go new file mode 100644 index 000000000000..59a043e44dd3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterpropertiesautoscalerprofile.go @@ -0,0 +1,24 @@ +package provisionedclusterinstances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ProvisionedClusterPropertiesAutoScalerProfile struct { + BalanceSimilarNodeGroups *string `json:"balance-similar-node-groups,omitempty"` + Expander *Expander `json:"expander,omitempty"` + MaxEmptyBulkDelete *string `json:"max-empty-bulk-delete,omitempty"` + MaxGracefulTerminationSec *string `json:"max-graceful-termination-sec,omitempty"` + MaxNodeProvisionTime *string `json:"max-node-provision-time,omitempty"` + MaxTotalUnreadyPercentage *string `json:"max-total-unready-percentage,omitempty"` + NewPodScaleUpDelay *string `json:"new-pod-scale-up-delay,omitempty"` + OkTotalUnreadyCount *string `json:"ok-total-unready-count,omitempty"` + ScaleDownDelayAfterAdd *string `json:"scale-down-delay-after-add,omitempty"` + ScaleDownDelayAfterDelete *string `json:"scale-down-delay-after-delete,omitempty"` + ScaleDownDelayAfterFailure *string `json:"scale-down-delay-after-failure,omitempty"` + ScaleDownUnneededTime *string `json:"scale-down-unneeded-time,omitempty"` + ScaleDownUnreadyTime *string `json:"scale-down-unready-time,omitempty"` + ScaleDownUtilizationThreshold *string `json:"scale-down-utilization-threshold,omitempty"` + ScanInterval *string `json:"scan-interval,omitempty"` + SkipNodesWithLocalStorage *string `json:"skip-nodes-with-local-storage,omitempty"` + SkipNodesWithSystemPods *string `json:"skip-nodes-with-system-pods,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterpropertiesstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterpropertiesstatus.go new file mode 100644 index 000000000000..6c7d9e52430d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterpropertiesstatus.go @@ -0,0 +1,10 @@ +package provisionedclusterinstances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ProvisionedClusterPropertiesStatus struct { + ControlPlaneStatus *[]AddonStatusProfile `json:"controlPlaneStatus,omitempty"` + CurrentState *ResourceProvisioningState `json:"currentState,omitempty"` + ErrorMessage *string `json:"errorMessage,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterupgradeprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterupgradeprofile.go new file mode 100644 index 000000000000..7cbd0fe69da8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterupgradeprofile.go @@ -0,0 +1,16 @@ +package provisionedclusterinstances + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ProvisionedClusterUpgradeProfile struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties ProvisionedClusterUpgradeProfileProperties `json:"properties"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterupgradeprofileproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterupgradeprofileproperties.go new file mode 100644 index 000000000000..93bc41c63b02 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterupgradeprofileproperties.go @@ -0,0 +1,9 @@ +package provisionedclusterinstances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ProvisionedClusterUpgradeProfileProperties struct { + ControlPlaneProfile ProvisionedClusterPoolUpgradeProfile `json:"controlPlaneProfile"` + ProvisioningState *ResourceProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_storageprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_storageprofile.go new file mode 100644 index 000000000000..2a27029606c0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_storageprofile.go @@ -0,0 +1,9 @@ +package provisionedclusterinstances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StorageProfile struct { + NfsCsiDriver *StorageProfileNfsCSIDriver `json:"nfsCsiDriver,omitempty"` + SmbCsiDriver *StorageProfileSmbCSIDriver `json:"smbCsiDriver,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_storageprofilenfscsidriver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_storageprofilenfscsidriver.go new file mode 100644 index 000000000000..4064e020e57b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_storageprofilenfscsidriver.go @@ -0,0 +1,8 @@ +package provisionedclusterinstances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StorageProfileNfsCSIDriver struct { + Enabled *bool `json:"enabled,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_storageprofilesmbcsidriver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_storageprofilesmbcsidriver.go new file mode 100644 index 000000000000..f6eec4882849 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_storageprofilesmbcsidriver.go @@ -0,0 +1,8 @@ +package provisionedclusterinstances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StorageProfileSmbCSIDriver struct { + Enabled *bool `json:"enabled,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_vmskucapabilities.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_vmskucapabilities.go new file mode 100644 index 000000000000..905c81b29377 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_vmskucapabilities.go @@ -0,0 +1,9 @@ +package provisionedclusterinstances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VMSkuCapabilities struct { + Name *string `json:"name,omitempty"` + Value *string `json:"value,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_vmskuprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_vmskuprofile.go new file mode 100644 index 000000000000..a7bdad2924d2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_vmskuprofile.go @@ -0,0 +1,17 @@ +package provisionedclusterinstances + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VMSkuProfile struct { + ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VMSkuProfileProperties `json:"properties,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_vmskuprofileproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_vmskuprofileproperties.go new file mode 100644 index 000000000000..fcdfdb3244b6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_vmskuprofileproperties.go @@ -0,0 +1,9 @@ +package provisionedclusterinstances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VMSkuProfileProperties struct { + ProvisioningState *ResourceProvisioningState `json:"provisioningState,omitempty"` + Values *[]VMSkuProperties `json:"values,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_vmskuproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_vmskuproperties.go new file mode 100644 index 000000000000..fa2c904d575c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_vmskuproperties.go @@ -0,0 +1,12 @@ +package provisionedclusterinstances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VMSkuProperties struct { + Capabilities *[]VMSkuCapabilities `json:"capabilities,omitempty"` + Name *string `json:"name,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + Size *string `json:"size,omitempty"` + Tier *string `json:"tier,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/predicates.go new file mode 100644 index 000000000000..d8296c2d72d9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/predicates.go @@ -0,0 +1,119 @@ +package provisionedclusterinstances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AgentPoolOperationPredicate struct { + Id *string + Name *string + Type *string +} + +func (p AgentPoolOperationPredicate) Matches(input AgentPool) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type HybridIdentityMetadataOperationPredicate struct { + Id *string + Name *string + Type *string +} + +func (p HybridIdentityMetadataOperationPredicate) Matches(input HybridIdentityMetadata) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type KubernetesVersionProfileOperationPredicate struct { + Id *string + Name *string + Type *string +} + +func (p KubernetesVersionProfileOperationPredicate) Matches(input KubernetesVersionProfile) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type ProvisionedClusterOperationPredicate struct { + Id *string + Name *string + Type *string +} + +func (p ProvisionedClusterOperationPredicate) Matches(input ProvisionedCluster) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type VMSkuProfileOperationPredicate struct { + Id *string + Name *string + Type *string +} + +func (p VMSkuProfileOperationPredicate) Matches(input VMSkuProfile) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/version.go new file mode 100644 index 000000000000..31bf25f4b0a3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/version.go @@ -0,0 +1,10 @@ +package provisionedclusterinstances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-01-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/provisionedclusterinstances/2024-01-01" +} diff --git a/vendor/modules.txt b/vendor/modules.txt index 66fd72e9367e..ad9f75f03f85 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -568,6 +568,7 @@ github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/iot github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/resource github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2024-03-31/dicomservices github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2024-03-31/workspaces +github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machineextensions github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machines github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privateendpointconnections From f266514837ca74829cc97d54262b6a85c7938e3a Mon Sep 17 00:00:00 2001 From: teowa <104055472+teowa@users.noreply.github.com> Date: Fri, 13 Dec 2024 08:00:55 +0000 Subject: [PATCH 8/9] revert and change test location --- .teamcity/components/settings.kt | 3 +++ ...kubernetes_provisioned_cluster_resource.go | 8 ------- .../services/arckubernetes/client/client.go | 21 ++++++------------- 3 files changed, 9 insertions(+), 23 deletions(-) diff --git a/.teamcity/components/settings.kt b/.teamcity/components/settings.kt index 54ee3c4e52ff..2df87ed68bd9 100644 --- a/.teamcity/components/settings.kt +++ b/.teamcity/components/settings.kt @@ -39,6 +39,9 @@ var serviceTestConfigurationOverrides = mapOf( // App Service Plans for Linux are currently unavailable in WestUS2 "appservice" to testConfiguration(startHour = 3, daysOfWeek = "2,4,6", locationOverride = LocationConfiguration("westeurope", "westus2", "eastus2", true)), + // Arc Kubernetes Provisioned Cluster is only available in certain locations + "arckubernetes" to testConfiguration(locationOverride = LocationConfiguration("australiaeast", "eastus", "westeurope", true)), + // these tests all conflict with one another "authorization" to testConfiguration(parallelism = 1), diff --git a/internal/services/arckubernetes/arc_kubernetes_provisioned_cluster_resource.go b/internal/services/arckubernetes/arc_kubernetes_provisioned_cluster_resource.go index 776483b6e1b4..551c37d629d3 100644 --- a/internal/services/arckubernetes/arc_kubernetes_provisioned_cluster_resource.go +++ b/internal/services/arckubernetes/arc_kubernetes_provisioned_cluster_resource.go @@ -8,7 +8,6 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" @@ -351,19 +350,12 @@ func (r ArcKubernetesProvisionedClusterResource) Delete() sdk.ResourceFunc { Timeout: 30 * time.Minute, Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { client := metadata.Client.ArcKubernetes.ArcKubernetesClient - provisionedClusterInstanceClient := metadata.Client.ArcKubernetes.ProvisionedClusterInstancesClient id, err := arckubernetes.ParseConnectedClusterID(metadata.ResourceData.Id()) if err != nil { return err } - // workaround for Deleted cluster still visible https://learn.microsoft.com/en-us/azure/aks/hybrid/deleted-cluster-visible#workaround - scopeId := commonids.NewScopeID(id.ID()) - if err := provisionedClusterInstanceClient.ProvisionedClusterInstancesDeleteThenPoll(ctx, scopeId); err != nil { - return fmt.Errorf("deleting child Provisioned Cluster Instance: %+v", err) - } - if err := client.ConnectedClusterDeleteThenPoll(ctx, *id); err != nil { return fmt.Errorf("deleting %s: %+v", id, err) } diff --git a/internal/services/arckubernetes/client/client.go b/internal/services/arckubernetes/client/client.go index 6ba9e4d9c817..e9609c976da1 100644 --- a/internal/services/arckubernetes/client/client.go +++ b/internal/services/arckubernetes/client/client.go @@ -6,7 +6,6 @@ package client import ( "fmt" - "github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances" "github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2024-01-01/connectedclusters" "github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/extensions" "github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration" @@ -14,10 +13,9 @@ import ( ) type Client struct { - ArcKubernetesClient *connectedclusters.ConnectedClustersClient - ExtensionsClient *extensions.ExtensionsClient - FluxConfigurationClient *fluxconfiguration.FluxConfigurationClient - ProvisionedClusterInstancesClient *provisionedclusterinstances.ProvisionedClusterInstancesClient + ArcKubernetesClient *connectedclusters.ConnectedClustersClient + ExtensionsClient *extensions.ExtensionsClient + FluxConfigurationClient *fluxconfiguration.FluxConfigurationClient } func NewClient(o *common.ClientOptions) (*Client, error) { @@ -39,16 +37,9 @@ func NewClient(o *common.ClientOptions) (*Client, error) { } o.Configure(fluxConfigurationClient.Client, o.Authorizers.ResourceManager) - provisionedClusterInstancesClientClient, err := provisionedclusterinstances.NewProvisionedClusterInstancesClientWithBaseURI(o.Environment.ResourceManager) - if err != nil { - return nil, fmt.Errorf("building ProvisionedClusterInstancesClient client: %+v", err) - } - o.Configure(provisionedClusterInstancesClientClient.Client, o.Authorizers.ResourceManager) - return &Client{ - ArcKubernetesClient: arcKubernetesClient, - ExtensionsClient: extensionsClient, - FluxConfigurationClient: fluxConfigurationClient, - ProvisionedClusterInstancesClient: provisionedClusterInstancesClientClient, + ArcKubernetesClient: arcKubernetesClient, + ExtensionsClient: extensionsClient, + FluxConfigurationClient: fluxConfigurationClient, }, nil } From 3de516d348eee09e124396f33daa9d2c5fc834b2 Mon Sep 17 00:00:00 2001 From: teowa <104055472+teowa@users.noreply.github.com> Date: Mon, 16 Dec 2024 02:31:51 +0000 Subject: [PATCH 9/9] go mod vendor --- .../provisionedclusterinstances/README.md | 375 ----------------- .../provisionedclusterinstances/client.go | 26 -- .../provisionedclusterinstances/constants.go | 383 ------------------ .../id_scopedagentpool.go | 122 ------ .../method_agentpoolcreateorupdate.go | 75 ---- .../method_agentpooldelete.go | 70 ---- .../method_agentpoolget.go | 53 --- ...ethod_agentpoollistbyprovisionedcluster.go | 106 ----- .../method_deletekubernetesversions.go | 71 ---- .../method_deletevmskus.go | 71 ---- .../method_getkubernetesversions.go | 55 --- .../method_getupgradeprofile.go | 55 --- .../method_getvmskus.go | 55 --- .../method_hybrididentitymetadatadelete.go | 71 ---- .../method_hybrididentitymetadataget.go | 55 --- ...hod_hybrididentitymetadatalistbycluster.go | 106 ----- .../method_hybrididentitymetadataput.go | 60 --- .../method_kubernetesversionslist.go | 106 ----- .../method_listadminkubeconfig.go | 72 ---- .../method_listuserkubeconfig.go | 72 ---- ...ovisionedclusterinstancescreateorupdate.go | 76 ---- ...ethod_provisionedclusterinstancesdelete.go | 71 ---- .../method_provisionedclusterinstancesget.go | 55 --- .../method_provisionedclusterinstanceslist.go | 106 ----- .../method_putkubernetesversions.go | 76 ---- .../method_putvmskus.go | 76 ---- .../method_vmskuslist.go | 106 ----- .../model_addonstatusprofile.go | 11 - .../model_agentpool.go | 18 - .../model_agentpoolproperties.go | 20 - ...model_agentpoolprovisioningstatusstatus.go | 10 - .../model_agentpoolupdateprofile.go | 10 - .../model_cloudproviderprofile.go | 8 - ...cloudproviderprofileinfranetworkprofile.go | 8 - .../model_clustervmaccessprofile.go | 8 - .../model_controlplaneprofile.go | 10 - ...controlplaneprofilecontrolplaneendpoint.go | 8 - .../model_credentialresult.go | 9 - .../model_extendedlocation.go | 9 - .../model_hybrididentitymetadata.go | 16 - .../model_hybrididentitymetadataproperties.go | 10 - .../model_kubernetespatchversions.go | 9 - .../model_kubernetesversionprofile.go | 17 - ...odel_kubernetesversionprofileproperties.go | 9 - .../model_kubernetesversionproperties.go | 10 - .../model_kubernetesversionreadiness.go | 11 - .../model_linuxprofileproperties.go | 8 - .../model_linuxprofilepropertiesssh.go | 8 - ...uxprofilepropertiessshpublickeysinlined.go | 8 - .../model_listcredentialresponse.go | 13 - .../model_listcredentialresponseerror.go | 9 - .../model_listcredentialresponseproperties.go | 8 - .../model_namedagentpoolprofile.go | 19 - .../model_networkprofile.go | 10 - ...model_networkprofileloadbalancerprofile.go | 8 - .../model_provisionedcluster.go | 17 - .../model_provisionedclusterlicenseprofile.go | 8 - ...el_provisionedclusterpoolupgradeprofile.go | 10 - ...onedclusterpoolupgradeprofileproperties.go | 9 - .../model_provisionedclusterproperties.go | 19 - ...ionedclusterpropertiesautoscalerprofile.go | 24 -- ...odel_provisionedclusterpropertiesstatus.go | 10 - .../model_provisionedclusterupgradeprofile.go | 16 - ...visionedclusterupgradeprofileproperties.go | 9 - .../model_storageprofile.go | 9 - .../model_storageprofilenfscsidriver.go | 8 - .../model_storageprofilesmbcsidriver.go | 8 - .../model_vmskucapabilities.go | 9 - .../model_vmskuprofile.go | 17 - .../model_vmskuprofileproperties.go | 9 - .../model_vmskuproperties.go | 12 - .../provisionedclusterinstances/predicates.go | 119 ------ .../provisionedclusterinstances/version.go | 10 - vendor/modules.txt | 1 - 74 files changed, 3251 deletions(-) delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/client.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/constants.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/id_scopedagentpool.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_agentpoolcreateorupdate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_agentpooldelete.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_agentpoolget.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_agentpoollistbyprovisionedcluster.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_deletekubernetesversions.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_deletevmskus.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_getkubernetesversions.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_getupgradeprofile.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_getvmskus.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_hybrididentitymetadatadelete.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_hybrididentitymetadataget.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_hybrididentitymetadatalistbycluster.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_hybrididentitymetadataput.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_kubernetesversionslist.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_listadminkubeconfig.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_listuserkubeconfig.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_provisionedclusterinstancescreateorupdate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_provisionedclusterinstancesdelete.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_provisionedclusterinstancesget.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_provisionedclusterinstanceslist.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_putkubernetesversions.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_putvmskus.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_vmskuslist.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_addonstatusprofile.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_agentpool.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_agentpoolproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_agentpoolprovisioningstatusstatus.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_agentpoolupdateprofile.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_cloudproviderprofile.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_cloudproviderprofileinfranetworkprofile.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_clustervmaccessprofile.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_controlplaneprofile.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_controlplaneprofilecontrolplaneendpoint.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_credentialresult.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_extendedlocation.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_hybrididentitymetadata.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_hybrididentitymetadataproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_kubernetespatchversions.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_kubernetesversionprofile.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_kubernetesversionprofileproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_kubernetesversionproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_kubernetesversionreadiness.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_linuxprofileproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_linuxprofilepropertiesssh.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_linuxprofilepropertiessshpublickeysinlined.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_listcredentialresponse.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_listcredentialresponseerror.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_listcredentialresponseproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_namedagentpoolprofile.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_networkprofile.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_networkprofileloadbalancerprofile.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedcluster.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterlicenseprofile.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterpoolupgradeprofile.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterpoolupgradeprofileproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterpropertiesautoscalerprofile.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterpropertiesstatus.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterupgradeprofile.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterupgradeprofileproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_storageprofile.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_storageprofilenfscsidriver.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_storageprofilesmbcsidriver.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_vmskucapabilities.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_vmskuprofile.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_vmskuprofileproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_vmskuproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/predicates.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/version.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/README.md deleted file mode 100644 index 3a220dc02e95..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/README.md +++ /dev/null @@ -1,375 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances` Documentation - -The `provisionedclusterinstances` SDK allows for interaction with Azure Resource Manager `hybridazurekubernetesservice` (API Version `2024-01-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances" -``` - - -### Client Initialization - -```go -client := provisionedclusterinstances.NewProvisionedClusterInstancesClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `ProvisionedClusterInstancesClient.AgentPoolCreateOrUpdate` - -```go -ctx := context.TODO() -id := provisionedclusterinstances.NewScopedAgentPoolID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "agentPoolName") - -payload := provisionedclusterinstances.AgentPool{ - // ... -} - - -if err := client.AgentPoolCreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `ProvisionedClusterInstancesClient.AgentPoolDelete` - -```go -ctx := context.TODO() -id := provisionedclusterinstances.NewScopedAgentPoolID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "agentPoolName") - -if err := client.AgentPoolDeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `ProvisionedClusterInstancesClient.AgentPoolGet` - -```go -ctx := context.TODO() -id := provisionedclusterinstances.NewScopedAgentPoolID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "agentPoolName") - -read, err := client.AgentPoolGet(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ProvisionedClusterInstancesClient.AgentPoolListByProvisionedCluster` - -```go -ctx := context.TODO() -id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") - -// alternatively `client.AgentPoolListByProvisionedCluster(ctx, id)` can be used to do batched pagination -items, err := client.AgentPoolListByProvisionedClusterComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `ProvisionedClusterInstancesClient.DeleteKubernetesVersions` - -```go -ctx := context.TODO() -id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") - -if err := client.DeleteKubernetesVersionsThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `ProvisionedClusterInstancesClient.DeleteVMSkus` - -```go -ctx := context.TODO() -id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") - -if err := client.DeleteVMSkusThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `ProvisionedClusterInstancesClient.GetKubernetesVersions` - -```go -ctx := context.TODO() -id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") - -read, err := client.GetKubernetesVersions(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ProvisionedClusterInstancesClient.GetUpgradeProfile` - -```go -ctx := context.TODO() -id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") - -read, err := client.GetUpgradeProfile(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ProvisionedClusterInstancesClient.GetVMSkus` - -```go -ctx := context.TODO() -id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") - -read, err := client.GetVMSkus(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ProvisionedClusterInstancesClient.HybridIdentityMetadataDelete` - -```go -ctx := context.TODO() -id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") - -if err := client.HybridIdentityMetadataDeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `ProvisionedClusterInstancesClient.HybridIdentityMetadataGet` - -```go -ctx := context.TODO() -id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") - -read, err := client.HybridIdentityMetadataGet(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ProvisionedClusterInstancesClient.HybridIdentityMetadataListByCluster` - -```go -ctx := context.TODO() -id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") - -// alternatively `client.HybridIdentityMetadataListByCluster(ctx, id)` can be used to do batched pagination -items, err := client.HybridIdentityMetadataListByClusterComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `ProvisionedClusterInstancesClient.HybridIdentityMetadataPut` - -```go -ctx := context.TODO() -id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") - -payload := provisionedclusterinstances.HybridIdentityMetadata{ - // ... -} - - -read, err := client.HybridIdentityMetadataPut(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ProvisionedClusterInstancesClient.KubernetesVersionsList` - -```go -ctx := context.TODO() -id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") - -// alternatively `client.KubernetesVersionsList(ctx, id)` can be used to do batched pagination -items, err := client.KubernetesVersionsListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `ProvisionedClusterInstancesClient.ListAdminKubeconfig` - -```go -ctx := context.TODO() -id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") - -if err := client.ListAdminKubeconfigThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `ProvisionedClusterInstancesClient.ListUserKubeconfig` - -```go -ctx := context.TODO() -id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") - -if err := client.ListUserKubeconfigThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `ProvisionedClusterInstancesClient.ProvisionedClusterInstancesCreateOrUpdate` - -```go -ctx := context.TODO() -id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") - -payload := provisionedclusterinstances.ProvisionedCluster{ - // ... -} - - -if err := client.ProvisionedClusterInstancesCreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `ProvisionedClusterInstancesClient.ProvisionedClusterInstancesDelete` - -```go -ctx := context.TODO() -id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") - -if err := client.ProvisionedClusterInstancesDeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `ProvisionedClusterInstancesClient.ProvisionedClusterInstancesGet` - -```go -ctx := context.TODO() -id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") - -read, err := client.ProvisionedClusterInstancesGet(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ProvisionedClusterInstancesClient.ProvisionedClusterInstancesList` - -```go -ctx := context.TODO() -id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") - -// alternatively `client.ProvisionedClusterInstancesList(ctx, id)` can be used to do batched pagination -items, err := client.ProvisionedClusterInstancesListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `ProvisionedClusterInstancesClient.PutKubernetesVersions` - -```go -ctx := context.TODO() -id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") - -payload := provisionedclusterinstances.KubernetesVersionProfile{ - // ... -} - - -if err := client.PutKubernetesVersionsThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `ProvisionedClusterInstancesClient.PutVMSkus` - -```go -ctx := context.TODO() -id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") - -payload := provisionedclusterinstances.VMSkuProfile{ - // ... -} - - -if err := client.PutVMSkusThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `ProvisionedClusterInstancesClient.VMSkusList` - -```go -ctx := context.TODO() -id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") - -// alternatively `client.VMSkusList(ctx, id)` can be used to do batched pagination -items, err := client.VMSkusListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/client.go deleted file mode 100644 index bcb260adbd11..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/client.go +++ /dev/null @@ -1,26 +0,0 @@ -package provisionedclusterinstances - -import ( - "fmt" - - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ProvisionedClusterInstancesClient struct { - Client *resourcemanager.Client -} - -func NewProvisionedClusterInstancesClientWithBaseURI(sdkApi sdkEnv.Api) (*ProvisionedClusterInstancesClient, error) { - client, err := resourcemanager.NewClient(sdkApi, "provisionedclusterinstances", defaultApiVersion) - if err != nil { - return nil, fmt.Errorf("instantiating ProvisionedClusterInstancesClient: %+v", err) - } - - return &ProvisionedClusterInstancesClient{ - Client: client, - }, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/constants.go deleted file mode 100644 index a2569641fbf3..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/constants.go +++ /dev/null @@ -1,383 +0,0 @@ -package provisionedclusterinstances - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AddonPhase string - -const ( - AddonPhaseDeleting AddonPhase = "deleting" - AddonPhaseFailed AddonPhase = "failed" - AddonPhasePending AddonPhase = "pending" - AddonPhaseProvisioned AddonPhase = "provisioned" - AddonPhaseProvisioning AddonPhase = "provisioning" - AddonPhaseProvisioningHelmChartInstalled AddonPhase = "provisioning {HelmChartInstalled}" - AddonPhaseProvisioningMSICertificateDownloaded AddonPhase = "provisioning {MSICertificateDownloaded}" - AddonPhaseUpgrading AddonPhase = "upgrading" -) - -func PossibleValuesForAddonPhase() []string { - return []string{ - string(AddonPhaseDeleting), - string(AddonPhaseFailed), - string(AddonPhasePending), - string(AddonPhaseProvisioned), - string(AddonPhaseProvisioning), - string(AddonPhaseProvisioningHelmChartInstalled), - string(AddonPhaseProvisioningMSICertificateDownloaded), - string(AddonPhaseUpgrading), - } -} - -func (s *AddonPhase) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseAddonPhase(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseAddonPhase(input string) (*AddonPhase, error) { - vals := map[string]AddonPhase{ - "deleting": AddonPhaseDeleting, - "failed": AddonPhaseFailed, - "pending": AddonPhasePending, - "provisioned": AddonPhaseProvisioned, - "provisioning": AddonPhaseProvisioning, - "provisioning {helmchartinstalled}": AddonPhaseProvisioningHelmChartInstalled, - "provisioning {msicertificatedownloaded}": AddonPhaseProvisioningMSICertificateDownloaded, - "upgrading": AddonPhaseUpgrading, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := AddonPhase(input) - return &out, nil -} - -type AzureHybridBenefit string - -const ( - AzureHybridBenefitFalse AzureHybridBenefit = "False" - AzureHybridBenefitNotApplicable AzureHybridBenefit = "NotApplicable" - AzureHybridBenefitTrue AzureHybridBenefit = "True" -) - -func PossibleValuesForAzureHybridBenefit() []string { - return []string{ - string(AzureHybridBenefitFalse), - string(AzureHybridBenefitNotApplicable), - string(AzureHybridBenefitTrue), - } -} - -func (s *AzureHybridBenefit) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseAzureHybridBenefit(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseAzureHybridBenefit(input string) (*AzureHybridBenefit, error) { - vals := map[string]AzureHybridBenefit{ - "false": AzureHybridBenefitFalse, - "notapplicable": AzureHybridBenefitNotApplicable, - "true": AzureHybridBenefitTrue, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := AzureHybridBenefit(input) - return &out, nil -} - -type Expander string - -const ( - ExpanderLeastNegativewaste Expander = "least-waste" - ExpanderMostNegativepods Expander = "most-pods" - ExpanderPriority Expander = "priority" - ExpanderRandom Expander = "random" -) - -func PossibleValuesForExpander() []string { - return []string{ - string(ExpanderLeastNegativewaste), - string(ExpanderMostNegativepods), - string(ExpanderPriority), - string(ExpanderRandom), - } -} - -func (s *Expander) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseExpander(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseExpander(input string) (*Expander, error) { - vals := map[string]Expander{ - "least-waste": ExpanderLeastNegativewaste, - "most-pods": ExpanderMostNegativepods, - "priority": ExpanderPriority, - "random": ExpanderRandom, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := Expander(input) - return &out, nil -} - -type ExtendedLocationTypes string - -const ( - ExtendedLocationTypesCustomLocation ExtendedLocationTypes = "CustomLocation" -) - -func PossibleValuesForExtendedLocationTypes() []string { - return []string{ - string(ExtendedLocationTypesCustomLocation), - } -} - -func (s *ExtendedLocationTypes) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseExtendedLocationTypes(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseExtendedLocationTypes(input string) (*ExtendedLocationTypes, error) { - vals := map[string]ExtendedLocationTypes{ - "customlocation": ExtendedLocationTypesCustomLocation, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ExtendedLocationTypes(input) - return &out, nil -} - -type NetworkPolicy string - -const ( - NetworkPolicyCalico NetworkPolicy = "calico" -) - -func PossibleValuesForNetworkPolicy() []string { - return []string{ - string(NetworkPolicyCalico), - } -} - -func (s *NetworkPolicy) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseNetworkPolicy(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseNetworkPolicy(input string) (*NetworkPolicy, error) { - vals := map[string]NetworkPolicy{ - "calico": NetworkPolicyCalico, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := NetworkPolicy(input) - return &out, nil -} - -type OSSKU string - -const ( - OSSKUCBLMariner OSSKU = "CBLMariner" - OSSKUWindowsTwoZeroOneNine OSSKU = "Windows2019" - OSSKUWindowsTwoZeroTwoTwo OSSKU = "Windows2022" -) - -func PossibleValuesForOSSKU() []string { - return []string{ - string(OSSKUCBLMariner), - string(OSSKUWindowsTwoZeroOneNine), - string(OSSKUWindowsTwoZeroTwoTwo), - } -} - -func (s *OSSKU) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseOSSKU(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseOSSKU(input string) (*OSSKU, error) { - vals := map[string]OSSKU{ - "cblmariner": OSSKUCBLMariner, - "windows2019": OSSKUWindowsTwoZeroOneNine, - "windows2022": OSSKUWindowsTwoZeroTwoTwo, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := OSSKU(input) - return &out, nil -} - -type OsType string - -const ( - OsTypeLinux OsType = "Linux" - OsTypeWindows OsType = "Windows" -) - -func PossibleValuesForOsType() []string { - return []string{ - string(OsTypeLinux), - string(OsTypeWindows), - } -} - -func (s *OsType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseOsType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseOsType(input string) (*OsType, error) { - vals := map[string]OsType{ - "linux": OsTypeLinux, - "windows": OsTypeWindows, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := OsType(input) - return &out, nil -} - -type ResourceProvisioningState string - -const ( - ResourceProvisioningStateAccepted ResourceProvisioningState = "Accepted" - ResourceProvisioningStateCanceled ResourceProvisioningState = "Canceled" - ResourceProvisioningStateCreating ResourceProvisioningState = "Creating" - ResourceProvisioningStateDeleting ResourceProvisioningState = "Deleting" - ResourceProvisioningStateFailed ResourceProvisioningState = "Failed" - ResourceProvisioningStatePending ResourceProvisioningState = "Pending" - ResourceProvisioningStateSucceeded ResourceProvisioningState = "Succeeded" - ResourceProvisioningStateUpdating ResourceProvisioningState = "Updating" - ResourceProvisioningStateUpgrading ResourceProvisioningState = "Upgrading" -) - -func PossibleValuesForResourceProvisioningState() []string { - return []string{ - string(ResourceProvisioningStateAccepted), - string(ResourceProvisioningStateCanceled), - string(ResourceProvisioningStateCreating), - string(ResourceProvisioningStateDeleting), - string(ResourceProvisioningStateFailed), - string(ResourceProvisioningStatePending), - string(ResourceProvisioningStateSucceeded), - string(ResourceProvisioningStateUpdating), - string(ResourceProvisioningStateUpgrading), - } -} - -func (s *ResourceProvisioningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseResourceProvisioningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseResourceProvisioningState(input string) (*ResourceProvisioningState, error) { - vals := map[string]ResourceProvisioningState{ - "accepted": ResourceProvisioningStateAccepted, - "canceled": ResourceProvisioningStateCanceled, - "creating": ResourceProvisioningStateCreating, - "deleting": ResourceProvisioningStateDeleting, - "failed": ResourceProvisioningStateFailed, - "pending": ResourceProvisioningStatePending, - "succeeded": ResourceProvisioningStateSucceeded, - "updating": ResourceProvisioningStateUpdating, - "upgrading": ResourceProvisioningStateUpgrading, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ResourceProvisioningState(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/id_scopedagentpool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/id_scopedagentpool.go deleted file mode 100644 index 2879602cba63..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/id_scopedagentpool.go +++ /dev/null @@ -1,122 +0,0 @@ -package provisionedclusterinstances - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&ScopedAgentPoolId{}) -} - -var _ resourceids.ResourceId = &ScopedAgentPoolId{} - -// ScopedAgentPoolId is a struct representing the Resource ID for a Scoped Agent Pool -type ScopedAgentPoolId struct { - ConnectedClusterResourceUri string - AgentPoolName string -} - -// NewScopedAgentPoolID returns a new ScopedAgentPoolId struct -func NewScopedAgentPoolID(connectedClusterResourceUri string, agentPoolName string) ScopedAgentPoolId { - return ScopedAgentPoolId{ - ConnectedClusterResourceUri: connectedClusterResourceUri, - AgentPoolName: agentPoolName, - } -} - -// ParseScopedAgentPoolID parses 'input' into a ScopedAgentPoolId -func ParseScopedAgentPoolID(input string) (*ScopedAgentPoolId, error) { - parser := resourceids.NewParserFromResourceIdType(&ScopedAgentPoolId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := ScopedAgentPoolId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseScopedAgentPoolIDInsensitively parses 'input' case-insensitively into a ScopedAgentPoolId -// note: this method should only be used for API response data and not user input -func ParseScopedAgentPoolIDInsensitively(input string) (*ScopedAgentPoolId, error) { - parser := resourceids.NewParserFromResourceIdType(&ScopedAgentPoolId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := ScopedAgentPoolId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *ScopedAgentPoolId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.ConnectedClusterResourceUri, ok = input.Parsed["connectedClusterResourceUri"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "connectedClusterResourceUri", input) - } - - if id.AgentPoolName, ok = input.Parsed["agentPoolName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "agentPoolName", input) - } - - return nil -} - -// ValidateScopedAgentPoolID checks that 'input' can be parsed as a Scoped Agent Pool ID -func ValidateScopedAgentPoolID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseScopedAgentPoolID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Scoped Agent Pool ID -func (id ScopedAgentPoolId) ID() string { - fmtString := "/%s/providers/Microsoft.HybridContainerService/provisionedClusterInstances/default/agentPools/%s" - return fmt.Sprintf(fmtString, strings.TrimPrefix(id.ConnectedClusterResourceUri, "/"), id.AgentPoolName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Scoped Agent Pool ID -func (id ScopedAgentPoolId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.ScopeSegment("connectedClusterResourceUri", "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftHybridContainerService", "Microsoft.HybridContainerService", "Microsoft.HybridContainerService"), - resourceids.StaticSegment("staticProvisionedClusterInstances", "provisionedClusterInstances", "provisionedClusterInstances"), - resourceids.StaticSegment("staticDefault", "default", "default"), - resourceids.StaticSegment("staticAgentPools", "agentPools", "agentPools"), - resourceids.UserSpecifiedSegment("agentPoolName", "agentPoolName"), - } -} - -// String returns a human-readable description of this Scoped Agent Pool ID -func (id ScopedAgentPoolId) String() string { - components := []string{ - fmt.Sprintf("Connected Cluster Resource Uri: %q", id.ConnectedClusterResourceUri), - fmt.Sprintf("Agent Pool Name: %q", id.AgentPoolName), - } - return fmt.Sprintf("Scoped Agent Pool (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_agentpoolcreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_agentpoolcreateorupdate.go deleted file mode 100644 index c3c28ad2d81f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_agentpoolcreateorupdate.go +++ /dev/null @@ -1,75 +0,0 @@ -package provisionedclusterinstances - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AgentPoolCreateOrUpdateOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *AgentPool -} - -// AgentPoolCreateOrUpdate ... -func (c ProvisionedClusterInstancesClient) AgentPoolCreateOrUpdate(ctx context.Context, id ScopedAgentPoolId, input AgentPool) (result AgentPoolCreateOrUpdateOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusCreated, - http.StatusOK, - }, - HttpMethod: http.MethodPut, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// AgentPoolCreateOrUpdateThenPoll performs AgentPoolCreateOrUpdate then polls until it's completed -func (c ProvisionedClusterInstancesClient) AgentPoolCreateOrUpdateThenPoll(ctx context.Context, id ScopedAgentPoolId, input AgentPool) error { - result, err := c.AgentPoolCreateOrUpdate(ctx, id, input) - if err != nil { - return fmt.Errorf("performing AgentPoolCreateOrUpdate: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after AgentPoolCreateOrUpdate: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_agentpooldelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_agentpooldelete.go deleted file mode 100644 index a91b77fa5187..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_agentpooldelete.go +++ /dev/null @@ -1,70 +0,0 @@ -package provisionedclusterinstances - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AgentPoolDeleteOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData -} - -// AgentPoolDelete ... -func (c ProvisionedClusterInstancesClient) AgentPoolDelete(ctx context.Context, id ScopedAgentPoolId) (result AgentPoolDeleteOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusNoContent, - }, - HttpMethod: http.MethodDelete, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// AgentPoolDeleteThenPoll performs AgentPoolDelete then polls until it's completed -func (c ProvisionedClusterInstancesClient) AgentPoolDeleteThenPoll(ctx context.Context, id ScopedAgentPoolId) error { - result, err := c.AgentPoolDelete(ctx, id) - if err != nil { - return fmt.Errorf("performing AgentPoolDelete: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after AgentPoolDelete: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_agentpoolget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_agentpoolget.go deleted file mode 100644 index f16c7489acf6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_agentpoolget.go +++ /dev/null @@ -1,53 +0,0 @@ -package provisionedclusterinstances - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AgentPoolGetOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *AgentPool -} - -// AgentPoolGet ... -func (c ProvisionedClusterInstancesClient) AgentPoolGet(ctx context.Context, id ScopedAgentPoolId) (result AgentPoolGetOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model AgentPool - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_agentpoollistbyprovisionedcluster.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_agentpoollistbyprovisionedcluster.go deleted file mode 100644 index a68a50ee246c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_agentpoollistbyprovisionedcluster.go +++ /dev/null @@ -1,106 +0,0 @@ -package provisionedclusterinstances - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AgentPoolListByProvisionedClusterOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]AgentPool -} - -type AgentPoolListByProvisionedClusterCompleteResult struct { - LatestHttpResponse *http.Response - Items []AgentPool -} - -type AgentPoolListByProvisionedClusterCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *AgentPoolListByProvisionedClusterCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// AgentPoolListByProvisionedCluster ... -func (c ProvisionedClusterInstancesClient) AgentPoolListByProvisionedCluster(ctx context.Context, id commonids.ScopeId) (result AgentPoolListByProvisionedClusterOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &AgentPoolListByProvisionedClusterCustomPager{}, - Path: fmt.Sprintf("%s/providers/Microsoft.HybridContainerService/provisionedClusterInstances/default/agentPools", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]AgentPool `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// AgentPoolListByProvisionedClusterComplete retrieves all the results into a single object -func (c ProvisionedClusterInstancesClient) AgentPoolListByProvisionedClusterComplete(ctx context.Context, id commonids.ScopeId) (AgentPoolListByProvisionedClusterCompleteResult, error) { - return c.AgentPoolListByProvisionedClusterCompleteMatchingPredicate(ctx, id, AgentPoolOperationPredicate{}) -} - -// AgentPoolListByProvisionedClusterCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c ProvisionedClusterInstancesClient) AgentPoolListByProvisionedClusterCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, predicate AgentPoolOperationPredicate) (result AgentPoolListByProvisionedClusterCompleteResult, err error) { - items := make([]AgentPool, 0) - - resp, err := c.AgentPoolListByProvisionedCluster(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = AgentPoolListByProvisionedClusterCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_deletekubernetesversions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_deletekubernetesversions.go deleted file mode 100644 index f2fe944848aa..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_deletekubernetesversions.go +++ /dev/null @@ -1,71 +0,0 @@ -package provisionedclusterinstances - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DeleteKubernetesVersionsOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData -} - -// DeleteKubernetesVersions ... -func (c ProvisionedClusterInstancesClient) DeleteKubernetesVersions(ctx context.Context, id commonids.ScopeId) (result DeleteKubernetesVersionsOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusNoContent, - }, - HttpMethod: http.MethodDelete, - Path: fmt.Sprintf("%s/providers/Microsoft.HybridContainerService/kubernetesVersions/default", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// DeleteKubernetesVersionsThenPoll performs DeleteKubernetesVersions then polls until it's completed -func (c ProvisionedClusterInstancesClient) DeleteKubernetesVersionsThenPoll(ctx context.Context, id commonids.ScopeId) error { - result, err := c.DeleteKubernetesVersions(ctx, id) - if err != nil { - return fmt.Errorf("performing DeleteKubernetesVersions: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after DeleteKubernetesVersions: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_deletevmskus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_deletevmskus.go deleted file mode 100644 index 2092c810f005..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_deletevmskus.go +++ /dev/null @@ -1,71 +0,0 @@ -package provisionedclusterinstances - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DeleteVMSkusOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData -} - -// DeleteVMSkus ... -func (c ProvisionedClusterInstancesClient) DeleteVMSkus(ctx context.Context, id commonids.ScopeId) (result DeleteVMSkusOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusNoContent, - }, - HttpMethod: http.MethodDelete, - Path: fmt.Sprintf("%s/providers/Microsoft.HybridContainerService/skus/default", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// DeleteVMSkusThenPoll performs DeleteVMSkus then polls until it's completed -func (c ProvisionedClusterInstancesClient) DeleteVMSkusThenPoll(ctx context.Context, id commonids.ScopeId) error { - result, err := c.DeleteVMSkus(ctx, id) - if err != nil { - return fmt.Errorf("performing DeleteVMSkus: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after DeleteVMSkus: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_getkubernetesversions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_getkubernetesversions.go deleted file mode 100644 index b3c63e6b6a3f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_getkubernetesversions.go +++ /dev/null @@ -1,55 +0,0 @@ -package provisionedclusterinstances - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetKubernetesVersionsOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *KubernetesVersionProfile -} - -// GetKubernetesVersions ... -func (c ProvisionedClusterInstancesClient) GetKubernetesVersions(ctx context.Context, id commonids.ScopeId) (result GetKubernetesVersionsOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.HybridContainerService/kubernetesVersions/default", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model KubernetesVersionProfile - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_getupgradeprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_getupgradeprofile.go deleted file mode 100644 index c6425cb99621..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_getupgradeprofile.go +++ /dev/null @@ -1,55 +0,0 @@ -package provisionedclusterinstances - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetUpgradeProfileOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *ProvisionedClusterUpgradeProfile -} - -// GetUpgradeProfile ... -func (c ProvisionedClusterInstancesClient) GetUpgradeProfile(ctx context.Context, id commonids.ScopeId) (result GetUpgradeProfileOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.HybridContainerService/provisionedClusterInstances/default/upgradeProfiles/default", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model ProvisionedClusterUpgradeProfile - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_getvmskus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_getvmskus.go deleted file mode 100644 index 1668ef6340dd..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_getvmskus.go +++ /dev/null @@ -1,55 +0,0 @@ -package provisionedclusterinstances - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetVMSkusOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *VMSkuProfile -} - -// GetVMSkus ... -func (c ProvisionedClusterInstancesClient) GetVMSkus(ctx context.Context, id commonids.ScopeId) (result GetVMSkusOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.HybridContainerService/skus/default", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model VMSkuProfile - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_hybrididentitymetadatadelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_hybrididentitymetadatadelete.go deleted file mode 100644 index 8d6e9cdc7cae..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_hybrididentitymetadatadelete.go +++ /dev/null @@ -1,71 +0,0 @@ -package provisionedclusterinstances - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type HybridIdentityMetadataDeleteOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData -} - -// HybridIdentityMetadataDelete ... -func (c ProvisionedClusterInstancesClient) HybridIdentityMetadataDelete(ctx context.Context, id commonids.ScopeId) (result HybridIdentityMetadataDeleteOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusNoContent, - }, - HttpMethod: http.MethodDelete, - Path: fmt.Sprintf("%s/providers/Microsoft.HybridContainerService/provisionedClusterInstances/default/hybridIdentityMetadata/default", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// HybridIdentityMetadataDeleteThenPoll performs HybridIdentityMetadataDelete then polls until it's completed -func (c ProvisionedClusterInstancesClient) HybridIdentityMetadataDeleteThenPoll(ctx context.Context, id commonids.ScopeId) error { - result, err := c.HybridIdentityMetadataDelete(ctx, id) - if err != nil { - return fmt.Errorf("performing HybridIdentityMetadataDelete: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after HybridIdentityMetadataDelete: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_hybrididentitymetadataget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_hybrididentitymetadataget.go deleted file mode 100644 index e3f2bd348b47..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_hybrididentitymetadataget.go +++ /dev/null @@ -1,55 +0,0 @@ -package provisionedclusterinstances - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type HybridIdentityMetadataGetOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *HybridIdentityMetadata -} - -// HybridIdentityMetadataGet ... -func (c ProvisionedClusterInstancesClient) HybridIdentityMetadataGet(ctx context.Context, id commonids.ScopeId) (result HybridIdentityMetadataGetOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.HybridContainerService/provisionedClusterInstances/default/hybridIdentityMetadata/default", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model HybridIdentityMetadata - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_hybrididentitymetadatalistbycluster.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_hybrididentitymetadatalistbycluster.go deleted file mode 100644 index 173a87777413..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_hybrididentitymetadatalistbycluster.go +++ /dev/null @@ -1,106 +0,0 @@ -package provisionedclusterinstances - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type HybridIdentityMetadataListByClusterOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]HybridIdentityMetadata -} - -type HybridIdentityMetadataListByClusterCompleteResult struct { - LatestHttpResponse *http.Response - Items []HybridIdentityMetadata -} - -type HybridIdentityMetadataListByClusterCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *HybridIdentityMetadataListByClusterCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// HybridIdentityMetadataListByCluster ... -func (c ProvisionedClusterInstancesClient) HybridIdentityMetadataListByCluster(ctx context.Context, id commonids.ScopeId) (result HybridIdentityMetadataListByClusterOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &HybridIdentityMetadataListByClusterCustomPager{}, - Path: fmt.Sprintf("%s/providers/Microsoft.HybridContainerService/provisionedClusterInstances/default/hybridIdentityMetadata", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]HybridIdentityMetadata `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// HybridIdentityMetadataListByClusterComplete retrieves all the results into a single object -func (c ProvisionedClusterInstancesClient) HybridIdentityMetadataListByClusterComplete(ctx context.Context, id commonids.ScopeId) (HybridIdentityMetadataListByClusterCompleteResult, error) { - return c.HybridIdentityMetadataListByClusterCompleteMatchingPredicate(ctx, id, HybridIdentityMetadataOperationPredicate{}) -} - -// HybridIdentityMetadataListByClusterCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c ProvisionedClusterInstancesClient) HybridIdentityMetadataListByClusterCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, predicate HybridIdentityMetadataOperationPredicate) (result HybridIdentityMetadataListByClusterCompleteResult, err error) { - items := make([]HybridIdentityMetadata, 0) - - resp, err := c.HybridIdentityMetadataListByCluster(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = HybridIdentityMetadataListByClusterCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_hybrididentitymetadataput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_hybrididentitymetadataput.go deleted file mode 100644 index ac29afaa56d5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_hybrididentitymetadataput.go +++ /dev/null @@ -1,60 +0,0 @@ -package provisionedclusterinstances - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type HybridIdentityMetadataPutOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *HybridIdentityMetadata -} - -// HybridIdentityMetadataPut ... -func (c ProvisionedClusterInstancesClient) HybridIdentityMetadataPut(ctx context.Context, id commonids.ScopeId, input HybridIdentityMetadata) (result HybridIdentityMetadataPutOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusCreated, - http.StatusOK, - }, - HttpMethod: http.MethodPut, - Path: fmt.Sprintf("%s/providers/Microsoft.HybridContainerService/provisionedClusterInstances/default/hybridIdentityMetadata/default", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model HybridIdentityMetadata - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_kubernetesversionslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_kubernetesversionslist.go deleted file mode 100644 index 2f3de43b89a3..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_kubernetesversionslist.go +++ /dev/null @@ -1,106 +0,0 @@ -package provisionedclusterinstances - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type KubernetesVersionsListOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]KubernetesVersionProfile -} - -type KubernetesVersionsListCompleteResult struct { - LatestHttpResponse *http.Response - Items []KubernetesVersionProfile -} - -type KubernetesVersionsListCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *KubernetesVersionsListCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// KubernetesVersionsList ... -func (c ProvisionedClusterInstancesClient) KubernetesVersionsList(ctx context.Context, id commonids.ScopeId) (result KubernetesVersionsListOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &KubernetesVersionsListCustomPager{}, - Path: fmt.Sprintf("%s/providers/Microsoft.HybridContainerService/kubernetesVersions", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]KubernetesVersionProfile `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// KubernetesVersionsListComplete retrieves all the results into a single object -func (c ProvisionedClusterInstancesClient) KubernetesVersionsListComplete(ctx context.Context, id commonids.ScopeId) (KubernetesVersionsListCompleteResult, error) { - return c.KubernetesVersionsListCompleteMatchingPredicate(ctx, id, KubernetesVersionProfileOperationPredicate{}) -} - -// KubernetesVersionsListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c ProvisionedClusterInstancesClient) KubernetesVersionsListCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, predicate KubernetesVersionProfileOperationPredicate) (result KubernetesVersionsListCompleteResult, err error) { - items := make([]KubernetesVersionProfile, 0) - - resp, err := c.KubernetesVersionsList(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = KubernetesVersionsListCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_listadminkubeconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_listadminkubeconfig.go deleted file mode 100644 index 50c24cc9973d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_listadminkubeconfig.go +++ /dev/null @@ -1,72 +0,0 @@ -package provisionedclusterinstances - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListAdminKubeconfigOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *ListCredentialResponse -} - -// ListAdminKubeconfig ... -func (c ProvisionedClusterInstancesClient) ListAdminKubeconfig(ctx context.Context, id commonids.ScopeId) (result ListAdminKubeconfigOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusOK, - }, - HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/providers/Microsoft.HybridContainerService/provisionedClusterInstances/default/listAdminKubeconfig", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// ListAdminKubeconfigThenPoll performs ListAdminKubeconfig then polls until it's completed -func (c ProvisionedClusterInstancesClient) ListAdminKubeconfigThenPoll(ctx context.Context, id commonids.ScopeId) error { - result, err := c.ListAdminKubeconfig(ctx, id) - if err != nil { - return fmt.Errorf("performing ListAdminKubeconfig: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after ListAdminKubeconfig: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_listuserkubeconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_listuserkubeconfig.go deleted file mode 100644 index 7def6ef1e2e0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_listuserkubeconfig.go +++ /dev/null @@ -1,72 +0,0 @@ -package provisionedclusterinstances - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListUserKubeconfigOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *ListCredentialResponse -} - -// ListUserKubeconfig ... -func (c ProvisionedClusterInstancesClient) ListUserKubeconfig(ctx context.Context, id commonids.ScopeId) (result ListUserKubeconfigOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusOK, - }, - HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/providers/Microsoft.HybridContainerService/provisionedClusterInstances/default/listUserKubeconfig", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// ListUserKubeconfigThenPoll performs ListUserKubeconfig then polls until it's completed -func (c ProvisionedClusterInstancesClient) ListUserKubeconfigThenPoll(ctx context.Context, id commonids.ScopeId) error { - result, err := c.ListUserKubeconfig(ctx, id) - if err != nil { - return fmt.Errorf("performing ListUserKubeconfig: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after ListUserKubeconfig: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_provisionedclusterinstancescreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_provisionedclusterinstancescreateorupdate.go deleted file mode 100644 index 790d34434625..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_provisionedclusterinstancescreateorupdate.go +++ /dev/null @@ -1,76 +0,0 @@ -package provisionedclusterinstances - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ProvisionedClusterInstancesCreateOrUpdateOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *ProvisionedCluster -} - -// ProvisionedClusterInstancesCreateOrUpdate ... -func (c ProvisionedClusterInstancesClient) ProvisionedClusterInstancesCreateOrUpdate(ctx context.Context, id commonids.ScopeId, input ProvisionedCluster) (result ProvisionedClusterInstancesCreateOrUpdateOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusCreated, - http.StatusOK, - }, - HttpMethod: http.MethodPut, - Path: fmt.Sprintf("%s/providers/Microsoft.HybridContainerService/provisionedClusterInstances/default", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// ProvisionedClusterInstancesCreateOrUpdateThenPoll performs ProvisionedClusterInstancesCreateOrUpdate then polls until it's completed -func (c ProvisionedClusterInstancesClient) ProvisionedClusterInstancesCreateOrUpdateThenPoll(ctx context.Context, id commonids.ScopeId, input ProvisionedCluster) error { - result, err := c.ProvisionedClusterInstancesCreateOrUpdate(ctx, id, input) - if err != nil { - return fmt.Errorf("performing ProvisionedClusterInstancesCreateOrUpdate: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after ProvisionedClusterInstancesCreateOrUpdate: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_provisionedclusterinstancesdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_provisionedclusterinstancesdelete.go deleted file mode 100644 index b37952d6590a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_provisionedclusterinstancesdelete.go +++ /dev/null @@ -1,71 +0,0 @@ -package provisionedclusterinstances - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ProvisionedClusterInstancesDeleteOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData -} - -// ProvisionedClusterInstancesDelete ... -func (c ProvisionedClusterInstancesClient) ProvisionedClusterInstancesDelete(ctx context.Context, id commonids.ScopeId) (result ProvisionedClusterInstancesDeleteOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusNoContent, - }, - HttpMethod: http.MethodDelete, - Path: fmt.Sprintf("%s/providers/Microsoft.HybridContainerService/provisionedClusterInstances/default", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// ProvisionedClusterInstancesDeleteThenPoll performs ProvisionedClusterInstancesDelete then polls until it's completed -func (c ProvisionedClusterInstancesClient) ProvisionedClusterInstancesDeleteThenPoll(ctx context.Context, id commonids.ScopeId) error { - result, err := c.ProvisionedClusterInstancesDelete(ctx, id) - if err != nil { - return fmt.Errorf("performing ProvisionedClusterInstancesDelete: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after ProvisionedClusterInstancesDelete: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_provisionedclusterinstancesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_provisionedclusterinstancesget.go deleted file mode 100644 index 47e8e2dcc2ec..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_provisionedclusterinstancesget.go +++ /dev/null @@ -1,55 +0,0 @@ -package provisionedclusterinstances - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ProvisionedClusterInstancesGetOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *ProvisionedCluster -} - -// ProvisionedClusterInstancesGet ... -func (c ProvisionedClusterInstancesClient) ProvisionedClusterInstancesGet(ctx context.Context, id commonids.ScopeId) (result ProvisionedClusterInstancesGetOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.HybridContainerService/provisionedClusterInstances/default", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model ProvisionedCluster - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_provisionedclusterinstanceslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_provisionedclusterinstanceslist.go deleted file mode 100644 index 7f2aff66196b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_provisionedclusterinstanceslist.go +++ /dev/null @@ -1,106 +0,0 @@ -package provisionedclusterinstances - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ProvisionedClusterInstancesListOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]ProvisionedCluster -} - -type ProvisionedClusterInstancesListCompleteResult struct { - LatestHttpResponse *http.Response - Items []ProvisionedCluster -} - -type ProvisionedClusterInstancesListCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ProvisionedClusterInstancesListCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// ProvisionedClusterInstancesList ... -func (c ProvisionedClusterInstancesClient) ProvisionedClusterInstancesList(ctx context.Context, id commonids.ScopeId) (result ProvisionedClusterInstancesListOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &ProvisionedClusterInstancesListCustomPager{}, - Path: fmt.Sprintf("%s/providers/Microsoft.HybridContainerService/provisionedClusterInstances", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]ProvisionedCluster `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ProvisionedClusterInstancesListComplete retrieves all the results into a single object -func (c ProvisionedClusterInstancesClient) ProvisionedClusterInstancesListComplete(ctx context.Context, id commonids.ScopeId) (ProvisionedClusterInstancesListCompleteResult, error) { - return c.ProvisionedClusterInstancesListCompleteMatchingPredicate(ctx, id, ProvisionedClusterOperationPredicate{}) -} - -// ProvisionedClusterInstancesListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c ProvisionedClusterInstancesClient) ProvisionedClusterInstancesListCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, predicate ProvisionedClusterOperationPredicate) (result ProvisionedClusterInstancesListCompleteResult, err error) { - items := make([]ProvisionedCluster, 0) - - resp, err := c.ProvisionedClusterInstancesList(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ProvisionedClusterInstancesListCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_putkubernetesversions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_putkubernetesversions.go deleted file mode 100644 index 57aa50f3b12b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_putkubernetesversions.go +++ /dev/null @@ -1,76 +0,0 @@ -package provisionedclusterinstances - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PutKubernetesVersionsOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *KubernetesVersionProfile -} - -// PutKubernetesVersions ... -func (c ProvisionedClusterInstancesClient) PutKubernetesVersions(ctx context.Context, id commonids.ScopeId, input KubernetesVersionProfile) (result PutKubernetesVersionsOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusCreated, - http.StatusOK, - }, - HttpMethod: http.MethodPut, - Path: fmt.Sprintf("%s/providers/Microsoft.HybridContainerService/kubernetesVersions/default", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// PutKubernetesVersionsThenPoll performs PutKubernetesVersions then polls until it's completed -func (c ProvisionedClusterInstancesClient) PutKubernetesVersionsThenPoll(ctx context.Context, id commonids.ScopeId, input KubernetesVersionProfile) error { - result, err := c.PutKubernetesVersions(ctx, id, input) - if err != nil { - return fmt.Errorf("performing PutKubernetesVersions: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after PutKubernetesVersions: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_putvmskus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_putvmskus.go deleted file mode 100644 index 18ca7ccedf5a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_putvmskus.go +++ /dev/null @@ -1,76 +0,0 @@ -package provisionedclusterinstances - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PutVMSkusOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *VMSkuProfile -} - -// PutVMSkus ... -func (c ProvisionedClusterInstancesClient) PutVMSkus(ctx context.Context, id commonids.ScopeId, input VMSkuProfile) (result PutVMSkusOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusCreated, - http.StatusOK, - }, - HttpMethod: http.MethodPut, - Path: fmt.Sprintf("%s/providers/Microsoft.HybridContainerService/skus/default", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// PutVMSkusThenPoll performs PutVMSkus then polls until it's completed -func (c ProvisionedClusterInstancesClient) PutVMSkusThenPoll(ctx context.Context, id commonids.ScopeId, input VMSkuProfile) error { - result, err := c.PutVMSkus(ctx, id, input) - if err != nil { - return fmt.Errorf("performing PutVMSkus: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after PutVMSkus: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_vmskuslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_vmskuslist.go deleted file mode 100644 index 2739c8e7dcda..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_vmskuslist.go +++ /dev/null @@ -1,106 +0,0 @@ -package provisionedclusterinstances - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VMSkusListOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]VMSkuProfile -} - -type VMSkusListCompleteResult struct { - LatestHttpResponse *http.Response - Items []VMSkuProfile -} - -type VMSkusListCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *VMSkusListCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// VMSkusList ... -func (c ProvisionedClusterInstancesClient) VMSkusList(ctx context.Context, id commonids.ScopeId) (result VMSkusListOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &VMSkusListCustomPager{}, - Path: fmt.Sprintf("%s/providers/Microsoft.HybridContainerService/skus", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]VMSkuProfile `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// VMSkusListComplete retrieves all the results into a single object -func (c ProvisionedClusterInstancesClient) VMSkusListComplete(ctx context.Context, id commonids.ScopeId) (VMSkusListCompleteResult, error) { - return c.VMSkusListCompleteMatchingPredicate(ctx, id, VMSkuProfileOperationPredicate{}) -} - -// VMSkusListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c ProvisionedClusterInstancesClient) VMSkusListCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, predicate VMSkuProfileOperationPredicate) (result VMSkusListCompleteResult, err error) { - items := make([]VMSkuProfile, 0) - - resp, err := c.VMSkusList(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = VMSkusListCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_addonstatusprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_addonstatusprofile.go deleted file mode 100644 index 1248fbea3c4b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_addonstatusprofile.go +++ /dev/null @@ -1,11 +0,0 @@ -package provisionedclusterinstances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AddonStatusProfile struct { - ErrorMessage *string `json:"errorMessage,omitempty"` - Name *string `json:"name,omitempty"` - Phase *AddonPhase `json:"phase,omitempty"` - Ready *bool `json:"ready,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_agentpool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_agentpool.go deleted file mode 100644 index 4989e4e325f5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_agentpool.go +++ /dev/null @@ -1,18 +0,0 @@ -package provisionedclusterinstances - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AgentPool struct { - ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *AgentPoolProperties `json:"properties,omitempty"` - SystemData *systemdata.SystemData `json:"systemData,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_agentpoolproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_agentpoolproperties.go deleted file mode 100644 index 2dfc2e4608d8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_agentpoolproperties.go +++ /dev/null @@ -1,20 +0,0 @@ -package provisionedclusterinstances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AgentPoolProperties struct { - Count *int64 `json:"count,omitempty"` - EnableAutoScaling *bool `json:"enableAutoScaling,omitempty"` - KubernetesVersion *string `json:"kubernetesVersion,omitempty"` - MaxCount *int64 `json:"maxCount,omitempty"` - MaxPods *int64 `json:"maxPods,omitempty"` - MinCount *int64 `json:"minCount,omitempty"` - NodeLabels *map[string]string `json:"nodeLabels,omitempty"` - NodeTaints *[]string `json:"nodeTaints,omitempty"` - OsSKU *OSSKU `json:"osSKU,omitempty"` - OsType *OsType `json:"osType,omitempty"` - ProvisioningState *ResourceProvisioningState `json:"provisioningState,omitempty"` - Status *AgentPoolProvisioningStatusStatus `json:"status,omitempty"` - VMSize *string `json:"vmSize,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_agentpoolprovisioningstatusstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_agentpoolprovisioningstatusstatus.go deleted file mode 100644 index 032b4a091493..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_agentpoolprovisioningstatusstatus.go +++ /dev/null @@ -1,10 +0,0 @@ -package provisionedclusterinstances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AgentPoolProvisioningStatusStatus struct { - CurrentState *ResourceProvisioningState `json:"currentState,omitempty"` - ErrorMessage *string `json:"errorMessage,omitempty"` - ReadyReplicas *[]AgentPoolUpdateProfile `json:"readyReplicas,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_agentpoolupdateprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_agentpoolupdateprofile.go deleted file mode 100644 index 9e34bda2b1c6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_agentpoolupdateprofile.go +++ /dev/null @@ -1,10 +0,0 @@ -package provisionedclusterinstances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AgentPoolUpdateProfile struct { - Count *int64 `json:"count,omitempty"` - KubernetesVersion *string `json:"kubernetesVersion,omitempty"` - VMSize *string `json:"vmSize,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_cloudproviderprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_cloudproviderprofile.go deleted file mode 100644 index 15ef3afdf380..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_cloudproviderprofile.go +++ /dev/null @@ -1,8 +0,0 @@ -package provisionedclusterinstances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CloudProviderProfile struct { - InfraNetworkProfile *CloudProviderProfileInfraNetworkProfile `json:"infraNetworkProfile,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_cloudproviderprofileinfranetworkprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_cloudproviderprofileinfranetworkprofile.go deleted file mode 100644 index 8dd110324860..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_cloudproviderprofileinfranetworkprofile.go +++ /dev/null @@ -1,8 +0,0 @@ -package provisionedclusterinstances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CloudProviderProfileInfraNetworkProfile struct { - VnetSubnetIds *[]string `json:"vnetSubnetIds,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_clustervmaccessprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_clustervmaccessprofile.go deleted file mode 100644 index 3ca8479e173e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_clustervmaccessprofile.go +++ /dev/null @@ -1,8 +0,0 @@ -package provisionedclusterinstances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ClusterVMAccessProfile struct { - AuthorizedIPRanges *string `json:"authorizedIPRanges,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_controlplaneprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_controlplaneprofile.go deleted file mode 100644 index 356f71d0a389..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_controlplaneprofile.go +++ /dev/null @@ -1,10 +0,0 @@ -package provisionedclusterinstances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ControlPlaneProfile struct { - ControlPlaneEndpoint *ControlPlaneProfileControlPlaneEndpoint `json:"controlPlaneEndpoint,omitempty"` - Count *int64 `json:"count,omitempty"` - VMSize *string `json:"vmSize,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_controlplaneprofilecontrolplaneendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_controlplaneprofilecontrolplaneendpoint.go deleted file mode 100644 index d8e6b22b8772..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_controlplaneprofilecontrolplaneendpoint.go +++ /dev/null @@ -1,8 +0,0 @@ -package provisionedclusterinstances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ControlPlaneProfileControlPlaneEndpoint struct { - HostIP *string `json:"hostIP,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_credentialresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_credentialresult.go deleted file mode 100644 index f53ff3e4730a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_credentialresult.go +++ /dev/null @@ -1,9 +0,0 @@ -package provisionedclusterinstances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CredentialResult struct { - Name *string `json:"name,omitempty"` - Value *string `json:"value,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_extendedlocation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_extendedlocation.go deleted file mode 100644 index df5c35f415df..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_extendedlocation.go +++ /dev/null @@ -1,9 +0,0 @@ -package provisionedclusterinstances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ExtendedLocation struct { - Name *string `json:"name,omitempty"` - Type *ExtendedLocationTypes `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_hybrididentitymetadata.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_hybrididentitymetadata.go deleted file mode 100644 index ba1c943e5571..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_hybrididentitymetadata.go +++ /dev/null @@ -1,16 +0,0 @@ -package provisionedclusterinstances - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type HybridIdentityMetadata struct { - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties HybridIdentityMetadataProperties `json:"properties"` - SystemData *systemdata.SystemData `json:"systemData,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_hybrididentitymetadataproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_hybrididentitymetadataproperties.go deleted file mode 100644 index 775c85af4984..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_hybrididentitymetadataproperties.go +++ /dev/null @@ -1,10 +0,0 @@ -package provisionedclusterinstances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type HybridIdentityMetadataProperties struct { - ProvisioningState *ResourceProvisioningState `json:"provisioningState,omitempty"` - PublicKey *string `json:"publicKey,omitempty"` - ResourceUid *string `json:"resourceUid,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_kubernetespatchversions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_kubernetespatchversions.go deleted file mode 100644 index a1a2681bf521..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_kubernetespatchversions.go +++ /dev/null @@ -1,9 +0,0 @@ -package provisionedclusterinstances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type KubernetesPatchVersions struct { - Readiness *[]KubernetesVersionReadiness `json:"readiness,omitempty"` - Upgrades *[]string `json:"upgrades,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_kubernetesversionprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_kubernetesversionprofile.go deleted file mode 100644 index 9e500cc683d7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_kubernetesversionprofile.go +++ /dev/null @@ -1,17 +0,0 @@ -package provisionedclusterinstances - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type KubernetesVersionProfile struct { - ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *KubernetesVersionProfileProperties `json:"properties,omitempty"` - SystemData *systemdata.SystemData `json:"systemData,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_kubernetesversionprofileproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_kubernetesversionprofileproperties.go deleted file mode 100644 index 93c54b0a9ca2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_kubernetesversionprofileproperties.go +++ /dev/null @@ -1,9 +0,0 @@ -package provisionedclusterinstances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type KubernetesVersionProfileProperties struct { - ProvisioningState *ResourceProvisioningState `json:"provisioningState,omitempty"` - Values *[]KubernetesVersionProperties `json:"values,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_kubernetesversionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_kubernetesversionproperties.go deleted file mode 100644 index 595551b647ba..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_kubernetesversionproperties.go +++ /dev/null @@ -1,10 +0,0 @@ -package provisionedclusterinstances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type KubernetesVersionProperties struct { - IsPreview *bool `json:"isPreview,omitempty"` - PatchVersions *map[string]KubernetesPatchVersions `json:"patchVersions,omitempty"` - Version *string `json:"version,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_kubernetesversionreadiness.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_kubernetesversionreadiness.go deleted file mode 100644 index 54e2ba9b537a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_kubernetesversionreadiness.go +++ /dev/null @@ -1,11 +0,0 @@ -package provisionedclusterinstances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type KubernetesVersionReadiness struct { - ErrorMessage *string `json:"errorMessage,omitempty"` - OsSku *OSSKU `json:"osSku,omitempty"` - OsType *OsType `json:"osType,omitempty"` - Ready *bool `json:"ready,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_linuxprofileproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_linuxprofileproperties.go deleted file mode 100644 index 79cdda20ec99..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_linuxprofileproperties.go +++ /dev/null @@ -1,8 +0,0 @@ -package provisionedclusterinstances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type LinuxProfileProperties struct { - Ssh *LinuxProfilePropertiesSsh `json:"ssh,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_linuxprofilepropertiesssh.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_linuxprofilepropertiesssh.go deleted file mode 100644 index 12a2d64608f0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_linuxprofilepropertiesssh.go +++ /dev/null @@ -1,8 +0,0 @@ -package provisionedclusterinstances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type LinuxProfilePropertiesSsh struct { - PublicKeys *[]LinuxProfilePropertiesSshPublicKeysInlined `json:"publicKeys,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_linuxprofilepropertiessshpublickeysinlined.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_linuxprofilepropertiessshpublickeysinlined.go deleted file mode 100644 index 522a08e10ec1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_linuxprofilepropertiessshpublickeysinlined.go +++ /dev/null @@ -1,8 +0,0 @@ -package provisionedclusterinstances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type LinuxProfilePropertiesSshPublicKeysInlined struct { - KeyData *string `json:"keyData,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_listcredentialresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_listcredentialresponse.go deleted file mode 100644 index 2cf150dacb87..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_listcredentialresponse.go +++ /dev/null @@ -1,13 +0,0 @@ -package provisionedclusterinstances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListCredentialResponse struct { - Error *ListCredentialResponseError `json:"error,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *ListCredentialResponseProperties `json:"properties,omitempty"` - ResourceId *string `json:"resourceId,omitempty"` - Status *ResourceProvisioningState `json:"status,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_listcredentialresponseerror.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_listcredentialresponseerror.go deleted file mode 100644 index 65631706ff87..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_listcredentialresponseerror.go +++ /dev/null @@ -1,9 +0,0 @@ -package provisionedclusterinstances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListCredentialResponseError struct { - Code *string `json:"code,omitempty"` - Message *string `json:"message,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_listcredentialresponseproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_listcredentialresponseproperties.go deleted file mode 100644 index 9993f067819c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_listcredentialresponseproperties.go +++ /dev/null @@ -1,8 +0,0 @@ -package provisionedclusterinstances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListCredentialResponseProperties struct { - Kubeconfigs *[]CredentialResult `json:"kubeconfigs,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_namedagentpoolprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_namedagentpoolprofile.go deleted file mode 100644 index ac5e4b41eb2e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_namedagentpoolprofile.go +++ /dev/null @@ -1,19 +0,0 @@ -package provisionedclusterinstances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NamedAgentPoolProfile struct { - Count *int64 `json:"count,omitempty"` - EnableAutoScaling *bool `json:"enableAutoScaling,omitempty"` - KubernetesVersion *string `json:"kubernetesVersion,omitempty"` - MaxCount *int64 `json:"maxCount,omitempty"` - MaxPods *int64 `json:"maxPods,omitempty"` - MinCount *int64 `json:"minCount,omitempty"` - Name *string `json:"name,omitempty"` - NodeLabels *map[string]string `json:"nodeLabels,omitempty"` - NodeTaints *[]string `json:"nodeTaints,omitempty"` - OsSKU *OSSKU `json:"osSKU,omitempty"` - OsType *OsType `json:"osType,omitempty"` - VMSize *string `json:"vmSize,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_networkprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_networkprofile.go deleted file mode 100644 index 8f542600c3da..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_networkprofile.go +++ /dev/null @@ -1,10 +0,0 @@ -package provisionedclusterinstances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkProfile struct { - LoadBalancerProfile *NetworkProfileLoadBalancerProfile `json:"loadBalancerProfile,omitempty"` - NetworkPolicy *NetworkPolicy `json:"networkPolicy,omitempty"` - PodCidr *string `json:"podCidr,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_networkprofileloadbalancerprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_networkprofileloadbalancerprofile.go deleted file mode 100644 index 6a9fa9a386cc..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_networkprofileloadbalancerprofile.go +++ /dev/null @@ -1,8 +0,0 @@ -package provisionedclusterinstances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkProfileLoadBalancerProfile struct { - Count *int64 `json:"count,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedcluster.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedcluster.go deleted file mode 100644 index 9093c96fc94f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedcluster.go +++ /dev/null @@ -1,17 +0,0 @@ -package provisionedclusterinstances - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ProvisionedCluster struct { - ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *ProvisionedClusterProperties `json:"properties,omitempty"` - SystemData *systemdata.SystemData `json:"systemData,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterlicenseprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterlicenseprofile.go deleted file mode 100644 index bec6f9004f16..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterlicenseprofile.go +++ /dev/null @@ -1,8 +0,0 @@ -package provisionedclusterinstances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ProvisionedClusterLicenseProfile struct { - AzureHybridBenefit *AzureHybridBenefit `json:"azureHybridBenefit,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterpoolupgradeprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterpoolupgradeprofile.go deleted file mode 100644 index 64afa5f5e965..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterpoolupgradeprofile.go +++ /dev/null @@ -1,10 +0,0 @@ -package provisionedclusterinstances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ProvisionedClusterPoolUpgradeProfile struct { - KubernetesVersion *string `json:"kubernetesVersion,omitempty"` - OsType *OsType `json:"osType,omitempty"` - Upgrades *[]ProvisionedClusterPoolUpgradeProfileProperties `json:"upgrades,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterpoolupgradeprofileproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterpoolupgradeprofileproperties.go deleted file mode 100644 index 8bfed453df63..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterpoolupgradeprofileproperties.go +++ /dev/null @@ -1,9 +0,0 @@ -package provisionedclusterinstances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ProvisionedClusterPoolUpgradeProfileProperties struct { - IsPreview *bool `json:"isPreview,omitempty"` - KubernetesVersion *string `json:"kubernetesVersion,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterproperties.go deleted file mode 100644 index fcb6073e7b22..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterproperties.go +++ /dev/null @@ -1,19 +0,0 @@ -package provisionedclusterinstances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ProvisionedClusterProperties struct { - AgentPoolProfiles *[]NamedAgentPoolProfile `json:"agentPoolProfiles,omitempty"` - AutoScalerProfile *ProvisionedClusterPropertiesAutoScalerProfile `json:"autoScalerProfile,omitempty"` - CloudProviderProfile *CloudProviderProfile `json:"cloudProviderProfile,omitempty"` - ClusterVMAccessProfile *ClusterVMAccessProfile `json:"clusterVMAccessProfile,omitempty"` - ControlPlane *ControlPlaneProfile `json:"controlPlane,omitempty"` - KubernetesVersion *string `json:"kubernetesVersion,omitempty"` - LicenseProfile *ProvisionedClusterLicenseProfile `json:"licenseProfile,omitempty"` - LinuxProfile *LinuxProfileProperties `json:"linuxProfile,omitempty"` - NetworkProfile *NetworkProfile `json:"networkProfile,omitempty"` - ProvisioningState *ResourceProvisioningState `json:"provisioningState,omitempty"` - Status *ProvisionedClusterPropertiesStatus `json:"status,omitempty"` - StorageProfile *StorageProfile `json:"storageProfile,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterpropertiesautoscalerprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterpropertiesautoscalerprofile.go deleted file mode 100644 index 59a043e44dd3..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterpropertiesautoscalerprofile.go +++ /dev/null @@ -1,24 +0,0 @@ -package provisionedclusterinstances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ProvisionedClusterPropertiesAutoScalerProfile struct { - BalanceSimilarNodeGroups *string `json:"balance-similar-node-groups,omitempty"` - Expander *Expander `json:"expander,omitempty"` - MaxEmptyBulkDelete *string `json:"max-empty-bulk-delete,omitempty"` - MaxGracefulTerminationSec *string `json:"max-graceful-termination-sec,omitempty"` - MaxNodeProvisionTime *string `json:"max-node-provision-time,omitempty"` - MaxTotalUnreadyPercentage *string `json:"max-total-unready-percentage,omitempty"` - NewPodScaleUpDelay *string `json:"new-pod-scale-up-delay,omitempty"` - OkTotalUnreadyCount *string `json:"ok-total-unready-count,omitempty"` - ScaleDownDelayAfterAdd *string `json:"scale-down-delay-after-add,omitempty"` - ScaleDownDelayAfterDelete *string `json:"scale-down-delay-after-delete,omitempty"` - ScaleDownDelayAfterFailure *string `json:"scale-down-delay-after-failure,omitempty"` - ScaleDownUnneededTime *string `json:"scale-down-unneeded-time,omitempty"` - ScaleDownUnreadyTime *string `json:"scale-down-unready-time,omitempty"` - ScaleDownUtilizationThreshold *string `json:"scale-down-utilization-threshold,omitempty"` - ScanInterval *string `json:"scan-interval,omitempty"` - SkipNodesWithLocalStorage *string `json:"skip-nodes-with-local-storage,omitempty"` - SkipNodesWithSystemPods *string `json:"skip-nodes-with-system-pods,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterpropertiesstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterpropertiesstatus.go deleted file mode 100644 index 6c7d9e52430d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterpropertiesstatus.go +++ /dev/null @@ -1,10 +0,0 @@ -package provisionedclusterinstances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ProvisionedClusterPropertiesStatus struct { - ControlPlaneStatus *[]AddonStatusProfile `json:"controlPlaneStatus,omitempty"` - CurrentState *ResourceProvisioningState `json:"currentState,omitempty"` - ErrorMessage *string `json:"errorMessage,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterupgradeprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterupgradeprofile.go deleted file mode 100644 index 7cbd0fe69da8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterupgradeprofile.go +++ /dev/null @@ -1,16 +0,0 @@ -package provisionedclusterinstances - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ProvisionedClusterUpgradeProfile struct { - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties ProvisionedClusterUpgradeProfileProperties `json:"properties"` - SystemData *systemdata.SystemData `json:"systemData,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterupgradeprofileproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterupgradeprofileproperties.go deleted file mode 100644 index 93bc41c63b02..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_provisionedclusterupgradeprofileproperties.go +++ /dev/null @@ -1,9 +0,0 @@ -package provisionedclusterinstances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ProvisionedClusterUpgradeProfileProperties struct { - ControlPlaneProfile ProvisionedClusterPoolUpgradeProfile `json:"controlPlaneProfile"` - ProvisioningState *ResourceProvisioningState `json:"provisioningState,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_storageprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_storageprofile.go deleted file mode 100644 index 2a27029606c0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_storageprofile.go +++ /dev/null @@ -1,9 +0,0 @@ -package provisionedclusterinstances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type StorageProfile struct { - NfsCsiDriver *StorageProfileNfsCSIDriver `json:"nfsCsiDriver,omitempty"` - SmbCsiDriver *StorageProfileSmbCSIDriver `json:"smbCsiDriver,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_storageprofilenfscsidriver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_storageprofilenfscsidriver.go deleted file mode 100644 index 4064e020e57b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_storageprofilenfscsidriver.go +++ /dev/null @@ -1,8 +0,0 @@ -package provisionedclusterinstances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type StorageProfileNfsCSIDriver struct { - Enabled *bool `json:"enabled,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_storageprofilesmbcsidriver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_storageprofilesmbcsidriver.go deleted file mode 100644 index f6eec4882849..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_storageprofilesmbcsidriver.go +++ /dev/null @@ -1,8 +0,0 @@ -package provisionedclusterinstances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type StorageProfileSmbCSIDriver struct { - Enabled *bool `json:"enabled,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_vmskucapabilities.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_vmskucapabilities.go deleted file mode 100644 index 905c81b29377..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_vmskucapabilities.go +++ /dev/null @@ -1,9 +0,0 @@ -package provisionedclusterinstances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VMSkuCapabilities struct { - Name *string `json:"name,omitempty"` - Value *string `json:"value,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_vmskuprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_vmskuprofile.go deleted file mode 100644 index a7bdad2924d2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_vmskuprofile.go +++ /dev/null @@ -1,17 +0,0 @@ -package provisionedclusterinstances - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VMSkuProfile struct { - ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *VMSkuProfileProperties `json:"properties,omitempty"` - SystemData *systemdata.SystemData `json:"systemData,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_vmskuprofileproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_vmskuprofileproperties.go deleted file mode 100644 index fcdfdb3244b6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_vmskuprofileproperties.go +++ /dev/null @@ -1,9 +0,0 @@ -package provisionedclusterinstances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VMSkuProfileProperties struct { - ProvisioningState *ResourceProvisioningState `json:"provisioningState,omitempty"` - Values *[]VMSkuProperties `json:"values,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_vmskuproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_vmskuproperties.go deleted file mode 100644 index fa2c904d575c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/model_vmskuproperties.go +++ /dev/null @@ -1,12 +0,0 @@ -package provisionedclusterinstances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VMSkuProperties struct { - Capabilities *[]VMSkuCapabilities `json:"capabilities,omitempty"` - Name *string `json:"name,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - Size *string `json:"size,omitempty"` - Tier *string `json:"tier,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/predicates.go deleted file mode 100644 index d8296c2d72d9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/predicates.go +++ /dev/null @@ -1,119 +0,0 @@ -package provisionedclusterinstances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AgentPoolOperationPredicate struct { - Id *string - Name *string - Type *string -} - -func (p AgentPoolOperationPredicate) Matches(input AgentPool) bool { - - if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { - return false - } - - if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { - return false - } - - if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { - return false - } - - return true -} - -type HybridIdentityMetadataOperationPredicate struct { - Id *string - Name *string - Type *string -} - -func (p HybridIdentityMetadataOperationPredicate) Matches(input HybridIdentityMetadata) bool { - - if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { - return false - } - - if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { - return false - } - - if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { - return false - } - - return true -} - -type KubernetesVersionProfileOperationPredicate struct { - Id *string - Name *string - Type *string -} - -func (p KubernetesVersionProfileOperationPredicate) Matches(input KubernetesVersionProfile) bool { - - if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { - return false - } - - if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { - return false - } - - if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { - return false - } - - return true -} - -type ProvisionedClusterOperationPredicate struct { - Id *string - Name *string - Type *string -} - -func (p ProvisionedClusterOperationPredicate) Matches(input ProvisionedCluster) bool { - - if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { - return false - } - - if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { - return false - } - - if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { - return false - } - - return true -} - -type VMSkuProfileOperationPredicate struct { - Id *string - Name *string - Type *string -} - -func (p VMSkuProfileOperationPredicate) Matches(input VMSkuProfile) bool { - - if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { - return false - } - - if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { - return false - } - - if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { - return false - } - - return true -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/version.go deleted file mode 100644 index 31bf25f4b0a3..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package provisionedclusterinstances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2024-01-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/provisionedclusterinstances/2024-01-01" -} diff --git a/vendor/modules.txt b/vendor/modules.txt index 2dd1ff837a78..a00e6eefd3fc 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -573,7 +573,6 @@ github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/iot github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/resource github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2024-03-31/dicomservices github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2024-03-31/workspaces -github.com/hashicorp/go-azure-sdk/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machineextensions github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machines github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privateendpointconnections