repo
stringlengths
6
47
file_url
stringlengths
77
269
file_path
stringlengths
5
186
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-07 08:35:43
2026-01-07 08:55:24
truncated
bool
2 classes
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/versioning/findOlderVersions_test.go
provider/pkg/versioning/findOlderVersions_test.go
package versioning import ( "testing" "time" "github.com/brianvoe/gofakeit/v6" "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/openapi" "github.com/stretchr/testify/assert" ) func TestFindOlderVersions(t *testing.T) { moduleA := openapi.ModuleName("moduleA") resourceA := "resourceA" resourceB := "reso...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/versioning/build_schema_test.go
provider/pkg/versioning/build_schema_test.go
package versioning import ( "fmt" "os" "path" "strings" "testing" "github.com/stretchr/testify/assert" ) func TestExampleStability(t *testing.T) { // These are examples of resources which have been unstable in the docs schema generation in the past. // We disable these tests to avoid breaking the build. Re-e...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/versioning/gen_bench_test.go
provider/pkg/versioning/gen_bench_test.go
package versioning import ( "path" "testing" "github.com/blang/semver" "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/gen" "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/openapi" ) // BenchmarkGen benchmarks the generation of the Pulumi schema. // Run by executing `go test -benchmem -run=^$ -tag...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/versioning/resourceRemoval_test.go
provider/pkg/versioning/resourceRemoval_test.go
// Copyright 2016-2020, Pulumi Corporation. package versioning import ( "testing" "github.com/stretchr/testify/assert" ) func TestSqueezePreserve(t *testing.T) { squeeze := ResourceRemovals{ "azure-native:provider/version1:resourceA": "azure-native:provider/version2:resourceA", } squeeze.PreserveResources([]...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/versioning/manualCuration_test.go
provider/pkg/versioning/manualCuration_test.go
package versioning import ( "testing" "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/openapi" "github.com/stretchr/testify/assert" ) func TestIsExcluded_NoProviders(t *testing.T) { var curations = make(Curations) isExcluded, err := curations.IsExcluded("Compute", "someResource", "2020-01-01") assert....
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/versioning/findNewerVersions.go
provider/pkg/versioning/findNewerVersions.go
package versioning import ( "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/collections" "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/openapi" ) func FindNewerVersions(specVersions ModuleVersionResources, defaultVersions openapi.DefaultVersions) openapi.ModuleVersionList { olderModuleVersions := o...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/versioning/defaultVersion_test.go
provider/pkg/versioning/defaultVersion_test.go
package versioning import ( "testing" "time" "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/collections" "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/openapi" "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/providerlist" "github.com/stretchr/testify/assert" ) func TestFindMinimalVersio...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/pcl/utils.go
provider/pkg/pcl/utils.go
// Copyright 2021, Pulumi Corporation. All rights reserved. package pcl import ( "unicode" "unicode/utf8" "github.com/hashicorp/hcl/v2" "github.com/hashicorp/hcl/v2/hclsyntax" "github.com/pulumi/pulumi/pkg/v3/codegen/hcl2/model" "github.com/zclconf/go-cty/cty" ) // Camel replaces the first contiguous string ...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/pcl/formatter.go
provider/pkg/pcl/formatter.go
// Copyright 2021, Pulumi Corporation. All rights reserved. package pcl import ( "strings" "github.com/hashicorp/hcl/v2/hclsyntax" "github.com/pulumi/pulumi/pkg/v3/codegen/hcl2/model" "github.com/pulumi/pulumi/pkg/v3/codegen/hcl2/syntax" "github.com/zclconf/go-cty/cty" ) // a formatter formats PCL into a cano...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/pcl/pcl.go
provider/pkg/pcl/pcl.go
// Copyright 2021, Pulumi Corporation. All rights reserved. package pcl import ( "reflect" "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/util" "github.com/pulumi/pulumi/pkg/v3/codegen/hcl2/model" "github.com/pulumi/pulumi/sdk/v3/go/common/util/contract" "github.com/zclconf/go-cty/cty" ) // null repre...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/azure/client.go
provider/pkg/azure/client.go
package azure import ( "context" ) type AzureDeleter interface { Delete(ctx context.Context, id, apiVersion, asyncStyle string, queryParams map[string]any) error } type AzureClient interface { AzureDeleter CanCreate(ctx context.Context, id, path, apiVersion, readMethod string, isSingletonResource, hasDefaultBody...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/azure/client_azcore.go
provider/pkg/azure/client_azcore.go
// Copyright 2016-2024, Pulumi Corporation. package azure import ( "context" "encoding/json" "fmt" "io" "net/http" "net/url" "reflect" "strings" "sync" "testing" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" armruntime "github.com/Azure/azure-s...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/azure/azure_test.go
provider/pkg/azure/azure_test.go
// Copyright 2016-2024, Pulumi Corporation. package azure import ( "encoding/base64" "encoding/json" "net/http" "os" "regexp" "testing" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/stretchr/testify/assert" ) func TestBuildUserAgent(t *testing.T) { tests := []struct { name string part...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/azure/client_azcore_test.go
provider/pkg/azure/client_azcore_test.go
// Copyright 2016-2024, Pulumi Corporation. package azure import ( "context" "errors" "fmt" "io" "net/http" "net/url" "strings" "testing" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake" "gi...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
true
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/azure/azure.go
provider/pkg/azure/azure.go
// Copyright 2016-2024, Pulumi Corporation. package azure import ( "context" "encoding/base64" "encoding/json" "errors" "fmt" "net/http" "os" "strings" "github.com/Azure/azure-sdk-for-go/sdk/azcore" _ "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" "github.com/pulumi/pulumi/sdk/v3/go/common/uti...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/azure/serialize.go
provider/pkg/azure/serialize.go
package azure import ( "context" "strings" "sync" ) // Resource type patterns that require serialization due to exclusive lock constraints var ( // Web Apps require serialization due to limitations on handling hardware infrastructure in the AZ Core SDK. webAppResourcePattern = "/providers/Microsoft.Web/sites/" )...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/azure/cloud/cloud.go
provider/pkg/azure/cloud/cloud.go
// Copyright 2016-2024, Pulumi Corporation. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/azure/cloud/cloud_test.go
provider/pkg/azure/cloud/cloud_test.go
// Copyright 2016-2024, Pulumi Corporation. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/azure/cloud/metadata/models.go
provider/pkg/azure/cloud/metadata/models.go
// Copyright (c) HashiCorp, Inc. // SPDX-License-Identifier: MPL-2.0 package metadata type MetaData struct { Authentication Authentication DnsSuffixes DnsSuffixes Name string ResourceIdentifiers ResourceIdentifiers ResourceManagerEndpoint string } type Authentication ...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/azure/cloud/metadata/client.go
provider/pkg/azure/cloud/metadata/client.go
// Copyright (c) HashiCorp, Inc. // SPDX-License-Identifier: MPL-2.0 package metadata import ( "bytes" "context" "crypto/tls" "encoding/json" "fmt" "io" "log" "net" "net/http" "runtime" "time" ) type Client struct { endpoint string } func NewClientWithEndpoint(endpoint string) *Client { return &Client{...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/azure/cloud/metadata/client_test.go
provider/pkg/azure/cloud/metadata/client_test.go
// Copyright (c) HashiCorp, Inc. // SPDX-License-Identifier: MPL-2.0 package metadata_test import ( "context" "fmt" "log" "net" "net/http" "reflect" "testing" "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/azure/cloud/metadata" ) var ( metadata20150101 = `{"galleryEndpoint":"https://gallery.azure.c...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/azure/cloud/metadata/helpers.go
provider/pkg/azure/cloud/metadata/helpers.go
// Copyright (c) HashiCorp, Inc. // SPDX-License-Identifier: MPL-2.0 package metadata import "strings" func normalizeResourceId(resourceId string) string { return strings.TrimRight(resourceId, "/") }
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/azure/cloud/metadata/server/main.go
provider/pkg/azure/cloud/metadata/server/main.go
// Copyright 2016-2024, Pulumi Corporation. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/gen/gen_aliases_test.go
provider/pkg/gen/gen_aliases_test.go
package gen import ( "os" "path" "testing" "github.com/blang/semver" "github.com/gkampitakis/go-snaps/snaps" "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/openapi" ) func TestAliasesGen(t *testing.T) { wd, err := os.Getwd() if err != nil { t.Fatal(err) } // We take a snapshot of the schema as we...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/gen/merging_test.go
provider/pkg/gen/merging_test.go
// Copyright 2016-2021, Pulumi Corporation. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/gen/readParams.go
provider/pkg/gen/readParams.go
// Copyright 2024, Pulumi Corporation. All rights reserved. package gen // Map of "azure-native:foo:Bar" -> map of URL params and values, to be used in GET requests. // When the spec defines optional query parameters for GET requests, the provider doesn't use them // by default. Add them here to be used by default. ...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/gen/exclude.go
provider/pkg/gen/exclude.go
// Copyright 2021, Pulumi Corporation. All rights reserved. package gen import ( "regexp" ) // excludeResourcePatterns lists resources being skipped due to known codegen issues. var excludeResourcePatterns = []string{ "azure-native:chaos:Experiment", "azure-native:datafactory:Pipeline", // go codegen goes full C...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/gen/compatibleTypes_test.go
provider/pkg/gen/compatibleTypes_test.go
// Copyright 2021, Pulumi Corporation. All rights reserved. package gen import ( "github.com/pulumi/pulumi/pkg/v3/codegen/schema" "github.com/stretchr/testify/assert" "testing" ) func TestComplexTypeMerge(t *testing.T) { t.Run("Empty output", func(t *testing.T) { t1 := schema.ComplexTypeSpec{} t2 := schema....
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/gen/types_test.go
provider/pkg/gen/types_test.go
package gen import ( "testing" "github.com/go-openapi/spec" "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/openapi" "github.com/pulumi/pulumi/pkg/v3/codegen/schema" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) func TestEnumExtensionCaseCollapsing(t *testing.T) { generat...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/gen/examples_test.go
provider/pkg/gen/examples_test.go
// Copyright 2022, Pulumi Corporation. All rights reserved. package gen import ( "testing" "github.com/segmentio/encoding/json" "github.com/stretchr/testify/assert" ) func TestExtractResponseNameId(t *testing.T) { // from connectedvmware/resource-manager/Microsoft.ConnectedVMwarevSphere/preview/2020-10-01-prev...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/gen/types.go
provider/pkg/gen/types.go
// Copyright 2016-2021, Pulumi Corporation. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/gen/propertyDefaults_test.go
provider/pkg/gen/propertyDefaults_test.go
package gen import ( "testing" "github.com/stretchr/testify/assert" ) func TestDefaultsForStorageAccount(t *testing.T) { def := propertyDefaults("storage", "StorageAccount") assert.NotNil(t, def) assert.Contains(t, def, "networkRuleSet") assert.Equal(t, 1, len(def)) } func TestDefaultsAreSpecificToStorageAcc...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/gen/docs_test.go
provider/pkg/gen/docs_test.go
package gen import ( "os" "path/filepath" "testing" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) func TestCanLookupExtraDocs(t *testing.T) { rootDir := t.TempDir() docsDir := filepath.Join(rootDir, "docs", "resources") require.NoError(t, os.MkdirAll(docsDir, 0755)) for _, do...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/gen/propertyDefaults.go
provider/pkg/gen/propertyDefaults.go
package gen import "strings" // In some cases, we need to set default values for properties that are not given as inputs. // One case is when the property was set and is then removed from the input, but Azure treats // the omission as "no change" instead of removing the value. // propertyDefaults returns a map of pro...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/gen/compatibleTokens.go
provider/pkg/gen/compatibleTokens.go
package gen import ( "fmt" "strings" "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/collections" "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/openapi" "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/openapi/paths" "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/resources" "githu...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/gen/utilities.go
provider/pkg/gen/utilities.go
// Copyright 2016-2020, Pulumi Corporation. package gen import ( "strings" "unicode" ) var legalIdentifierReplacer *strings.Replacer // MakeLegalIdentifier removes characters that are not allowed in identifiers. func MakeLegalIdentifier(s string) string { if legalIdentifierReplacer == nil { legalIdentifierRepl...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/gen/gen_dashboard_test.go
provider/pkg/gen/gen_dashboard_test.go
package gen import ( "os" "path" "testing" "github.com/blang/semver" "github.com/gkampitakis/go-snaps/snaps" "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/openapi" "github.com/stretchr/testify/assert" ) func TestPortalDashboardGen(t *testing.T) { wd, err := os.Getwd() if err != nil { t.Fatal(err)...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/gen/properties_test.go
provider/pkg/gen/properties_test.go
package gen import ( "testing" "github.com/go-openapi/spec" "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/openapi" "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/resources" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) func makeSchema(mutability ...string) *opena...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/gen/params.go
provider/pkg/gen/params.go
// Copyright 2021, Pulumi Corporation. All rights reserved. package gen import ( "fmt" "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/convert" "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/debug" "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/resources" "github.com/pulumi/pulumi-azure-...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/gen/docs.go
provider/pkg/gen/docs.go
package gen import ( "os" "path/filepath" "regexp" "strings" ) func getAdditionalDocs(rootDir, resourceTok string) *string { withoutPrefix := strings.TrimPrefix(resourceTok, "azure-native:") filename := regexp.MustCompile(`[^a-zA-Z0-9]`).ReplaceAllString(withoutPrefix, "-") file, err := os.ReadFile(filepath.Jo...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/gen/emitFiles.go
provider/pkg/gen/emitFiles.go
package gen import ( "encoding/json" "os" "path" "strings" "github.com/pkg/errors" "github.com/pulumi/pulumi/sdk/v3/go/common/util/contract" "gopkg.in/yaml.v3" ) type FilePath = string type FileData = interface{} type FileMap = map[FilePath]FileData func EmitFiles(outDir string, files FileMap) ([]string, er...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/gen/properties.go
provider/pkg/gen/properties.go
// Copyright 2016-2021, Pulumi Corporation. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/gen/gen_vnet_test.go
provider/pkg/gen/gen_vnet_test.go
package gen import ( "os" "path" "testing" "github.com/blang/semver" "github.com/gkampitakis/go-snaps/snaps" "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/openapi" ) func TestVnetGen(t *testing.T) { wd, err := os.Getwd() if err != nil { t.Fatal(err) } // We take a snapshot of the schema as we're...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/gen/examples.go
provider/pkg/gen/examples.go
// Copyright 2022, Pulumi Corporation. All rights reserved. package gen import ( "fmt" "log" "os" "path" "path/filepath" "regexp" "strings" "text/template" "time" "github.com/segmentio/encoding/json" "github.com/hashicorp/hcl/v2" "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/debug" "github.co...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/gen/params_test.go
provider/pkg/gen/params_test.go
// Copyright 2021, Pulumi Corporation. All rights reserved. package gen import ( "fmt" "os" "strings" "testing" "github.com/segmentio/encoding/json" "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/resources" "github.com/stretchr/testify/require" ) func TestFlattenParams(t *testing.T) { var metadata...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/gen/replacement.go
provider/pkg/gen/replacement.go
// Copyright 2021, Pulumi Corporation. All rights reserved. package gen import ( "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/openapi" "github.com/pulumi/pulumi/pkg/v3/codegen" ) // forceNewMap is a map of Module Name -> Resource Name -> Properties that cause replacements. // API Versions are currently ...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/gen/merging.go
provider/pkg/gen/merging.go
package gen import ( "fmt" "strings" "github.com/pkg/errors" "github.com/pulumi/pulumi/pkg/v3/codegen" "github.com/pulumi/pulumi/pkg/v3/codegen/schema" "github.com/pulumi/pulumi/sdk/v3/go/common/util/contract" ) // mergeTypes checks that two type specs are allowed to be represented as a single schema type. // ...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/gen/goModVersion_test.go
provider/pkg/gen/goModVersion_test.go
// Copyright 2016-2020, Pulumi Corporation. package gen import ( "testing" "github.com/blang/semver" "github.com/stretchr/testify/assert" ) func testVersion(input, expected string) func(t *testing.T) { return func(t *testing.T) { version, err := semver.Parse(input) if err != nil { assert.Error(t, err) ...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/gen/utilities_test.go
provider/pkg/gen/utilities_test.go
// Copyright 2016-2020, Pulumi Corporation. package gen import "testing" func TestToLowerCamel(t *testing.T) { cases := [][]string{ {"foo-bar", "fooBar"}, {"TestCase", "testCase"}, {"", ""}, {"AnyKind of_string", "anyKindOfString"}, {"AnyKind.of-string", "anyKindOfString"}, {"ID", "id"}, {"TTL", "ttl"...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/gen/schema_test.go
provider/pkg/gen/schema_test.go
// Copyright 2016-2020, Pulumi Corporation. package gen import ( "fmt" "strings" "testing" "github.com/go-openapi/spec" "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/openapi" "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/version" pschema "github.com/pulumi/pulumi/pkg/v3/codegen/schema" "git...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/gen/requiredContainers.go
provider/pkg/gen/requiredContainers.go
package gen // Some resources which require empty containers to be present in the request body // aren't listed as required in the specification, so we add them here manually. func additionalRequiredContainers(resourceTok string) RequiredContainers { switch resourceTok { case "azure-native:app:ManagedEnvironment": ...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/gen/schema.go
provider/pkg/gen/schema.go
// Copyright 2016-2021, Pulumi Corporation. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
true
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/squeeze/squeeze.go
provider/pkg/squeeze/squeeze.go
package squeeze import ( "fmt" "sort" "strings" "time" mapset "github.com/deckarep/golang-set/v2" "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/util" "github.com/pulumi/pulumi/pkg/v3/codegen/schema" ) // CompareAll returns a map of resource tokens to be removed with an optional token to a resource i...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/squeeze/squeeze_test.go
provider/pkg/squeeze/squeeze_test.go
package squeeze import ( "testing" "github.com/stretchr/testify/assert" ) func TestApiVersionToDate(t *testing.T) { t.Run("simple", func(t *testing.T) { apiVersion := "v20200101" date, err := apiVersionToDate(apiVersion) assert.NoError(t, err) expected := "2020-01-01" actual := date.Format("2006-01-02")...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/providerlist/providerlist.go
provider/pkg/providerlist/providerlist.go
package providerlist import ( "encoding/json" "io" "os" "strings" "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/openapi" "github.com/pulumi/pulumi/pkg/v3/codegen" ) // LoweredProviderName e.g. analysisservices type LoweredProviderName = string // ResourcePath is a lowered resource path e.g. locations...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/collections/orderableSet.go
provider/pkg/collections/orderableSet.go
package collections import ( "cmp" "slices" ) type OrderableSet[T cmp.Ordered] struct { m map[T]struct{} } func NewOrderableSet[T cmp.Ordered](values ...T) *OrderableSet[T] { newSet := &OrderableSet[T]{m: make(map[T]struct{})} for _, value := range values { newSet.Add(value) } return newSet } func (s *Orde...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/provider/azure_cli.go
provider/pkg/provider/azure_cli.go
// Copyright 2016-2025, Pulumi Corporation. package provider import ( "bytes" "context" "encoding/json" "os" "os/exec" "strings" "time" "github.com/pkg/errors" "github.com/pulumi/pulumi/sdk/v3/go/common/util/logging" ) // Subscription represents a Subscription from the Azure CLI type Subscription struct { ...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/provider/auth_azidentity_test.go
provider/pkg/provider/auth_azidentity_test.go
// Copyright 2016-2024, Pulumi Corporation. package provider import ( "context" _ "embed" "net/http" "net/http/httptest" "os" "path/filepath" "reflect" "testing" "github.com/Azure/azure-sdk-for-go/sdk/azcore" azcloud "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/s...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/provider/provider_parameterize_test.go
provider/pkg/provider/provider_parameterize_test.go
// Copyright 2025, Pulumi Corporation. package provider import ( "context" "encoding/json" "os" "path/filepath" "strings" "testing" "github.com/pulumi/providertest/pulumitest" "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/resources" pschema "github.com/pulumi/pulumi/pkg/v3/codegen/schema" rpc "git...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/provider/serve.go
provider/pkg/provider/serve.go
// Copyright 2016-2020, Pulumi Corporation. package provider import ( "github.com/pulumi/pulumi/pkg/v3/resource/provider" "github.com/pulumi/pulumi/sdk/v3/go/common/util/cmdutil" rpc "github.com/pulumi/pulumi/sdk/v3/proto/go" ) // Serve launches the gRPC server for the resource provider. func Serve(providerName, ...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/provider/log.go
provider/pkg/provider/log.go
// Copyright 2016-2020, Pulumi Corporation. package provider import ( "bufio" "context" "strings" "github.com/pulumi/pulumi/pkg/v3/resource/provider" "github.com/pulumi/pulumi/sdk/v3/go/common/diag" "github.com/pulumi/pulumi/sdk/v3/go/common/util/contract" ) // LogRedirector creates a new redirection writer t...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/provider/properties_diff_test.go
provider/pkg/provider/properties_diff_test.go
// Copyright 2016-2018, Pulumi Corporation. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/provider/provider_parameterize.go
provider/pkg/provider/provider_parameterize.go
// Copyright 2025, Pulumi Corporation. package provider import ( "bytes" "context" "encoding/base64" "encoding/json" "fmt" "os" "path/filepath" "regexp" "strings" "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/openapi" "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/resources" "github.com/...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/provider/auth_getclientconfig.go
provider/pkg/provider/auth_getclientconfig.go
// Copyright 2016-2025, Pulumi Corporation. package provider import ( "context" "fmt" "net/url" "strings" azpolicy "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" msgraphsdk "github.com/microsoftgraph/msgraph-sdk-go" auth "github.com/microsoftgraph/msgraph-sdk-go-core/authentication" "github.com/micros...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/provider/diff.go
provider/pkg/provider/diff.go
// Copyright 2016-2020, Pulumi Corporation. package provider import ( "fmt" "log" "os" "reflect" "regexp" "sort" "strconv" "strings" "github.com/davegardnerisme/deephash" "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/resources" "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/version" "git...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/provider/autonaming_test.go
provider/pkg/provider/autonaming_test.go
// Copyright 2016-2024, Pulumi Corporation. package provider import ( "context" "testing" structpb "github.com/golang/protobuf/ptypes/struct" "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/resources" "github.com/pulumi/pulumi/sdk/v3/go/common/resource" "github.com/pulumi/pulumi/sdk/v3/go/common/resourc...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/provider/auth.go
provider/pkg/provider/auth.go
// Copyright 2016-2022, Pulumi Corporation. package provider import ( "bytes" "encoding/json" "fmt" "os/exec" "strings" goversion "github.com/hashicorp/go-version" ) func getAzVersion() (*goversion.Version, error) { _, err := exec.LookPath("az") if err != nil { return nil, fmt.Errorf("could not find `az`:...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/provider/provider_e2e_test.go
provider/pkg/provider/provider_e2e_test.go
// Copyright 2023, Pulumi Corporation. All rights reserved. // Disable running if we've specifically selected unit tests to run as this is an integration test. // This is easier than having to remember to explicitly tag every unit test with `//go:build unit || all`. //go:build !unit package provider import ( "cont...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/provider/auth_azidentity.go
provider/pkg/provider/auth_azidentity.go
// Copyright 2016-2022, Pulumi Corporation. package provider import ( "context" "crypto" "crypto/x509" "encoding/json" "fmt" "io" "net/http" "net/url" "os" "github.com/Azure/azure-sdk-for-go/sdk/azcore" _ "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" // initialize the well-known cloud configu...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/provider/provider.go
provider/pkg/provider/provider.go
// Copyright 2016-2024, Pulumi Corporation. package provider import ( "context" "fmt" "log" "math" "os" "reflect" "regexp" "strings" "time" "github.com/blang/semver" structpb "github.com/golang/protobuf/ptypes/struct" "github.com/pulumi/pulumi/sdk/v3/go/common/diag" "github.com/pulumi/pulumi/sdk/v3/go/c...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
true
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/provider/diff_test.go
provider/pkg/provider/diff_test.go
// Copyright 2016-2020, Pulumi Corporation. package provider import ( "encoding/json" "fmt" "testing" "unicode" "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/resources" "github.com/pulumi/pulumi/sdk/v3/go/common/resource" "github.com/pulumi/pulumi/sdk/v3/go/common/util/deepcopy" rpc "github.com/pulu...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
true
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/provider/provider_test.go
provider/pkg/provider/provider_test.go
package provider import ( "context" "fmt" "reflect" "testing" "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake" "github.com/blang/semver" structpb "github.com/golang/protobuf/ptypes/struct" az "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/azure" "github.com/pulumi/pulumi-azure-native/v2/provider/...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
true
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/provider/crud/crud.go
provider/pkg/provider/crud/crud.go
package crud import ( "context" "fmt" "net/url" "strings" structpb "github.com/golang/protobuf/ptypes/struct" "github.com/pkg/errors" "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/azure" "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/convert" "github.com/pulumi/pulumi-azure-native/v2/provide...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/provider/crud/crud_test.go
provider/pkg/provider/crud/crud_test.go
package crud import ( "context" "net/http" "testing" "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/azure" "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/resources" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) func TestPathParamsErrorHandling(t *testing.T) { t....
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/provider/crud/subresources_test.go
provider/pkg/provider/crud/subresources_test.go
package crud import ( "testing" "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/resources" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) func TestWritePropertiesToBody(t *testing.T) { t.Run("empty", func(t *testing.T) { missingProperties := []propertyPath{} bodyParams :...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/versionLookup/query_test.go
provider/pkg/versionLookup/query_test.go
package versionLookup_test import ( "testing" "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/openapi" "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/versionLookup" "github.com/stretchr/testify/assert" ) func TestLookup(t *testing.T) { result, ok := versionLookup.GetDefaultApiVersionForResource("...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/versionLookup/query.go
provider/pkg/versionLookup/query.go
package versionLookup import ( _ "embed" "gopkg.in/yaml.v3" ) //go:embed default-versions.yaml var rawVersionLock []byte // versionLock is a map from Azure provider name to resource name to API version. // This is actually the openapi.DefaultVersionLock type but we don't want to import openapi here // to avoid cy...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/resources/raw_map.go
provider/pkg/resources/raw_map.go
package resources import ( "fmt" "unsafe" "github.com/segmentio/encoding/json" ) type MapLike[T any] interface { Get(key string) (T, bool, error) } type GoMap[T any] map[string]T func (m GoMap[T]) Get(key string) (T, bool, error) { value, ok := m[key] return value, ok, nil } type PartialMap[T any] struct { ...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/resources/resources.go
provider/pkg/resources/resources.go
// Copyright 2016-2020, Pulumi Corporation. package resources import ( "encoding/json" "fmt" "regexp" "sort" "strings" "unicode" "github.com/gedex/inflector" "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/version" ) // SingleValueProperty is the name of the property that we insert into the schema fo...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/resources/ids_test.go
provider/pkg/resources/ids_test.go
// Copyright 2024, Pulumi Corporation. package resources import ( "fmt" "testing" "github.com/stretchr/testify/assert" ) type resourceIDCase struct { id string path string } func TestParseResourceID(t *testing.T) { t.Run("invalid", func(t *testing.T) { cases := []resourceIDCase{ // ID shorter than Pat...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/resources/typeVisitor_test.go
provider/pkg/resources/typeVisitor_test.go
// Copyright 2024, Pulumi Corporation. All rights reserved. package resources import ( "testing" "github.com/pulumi/pulumi/pkg/v3/codegen/schema" "github.com/stretchr/testify/assert" ) func TestVisitPackageSpecTypes(t *testing.T) { pkg := &schema.PackageSpec{ Resources: map[string]schema.ResourceSpec{ "az...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/resources/typeVisitor.go
provider/pkg/resources/typeVisitor.go
// Copyright 2024, Pulumi Corporation. All rights reserved. package resources import ( "strings" "github.com/pulumi/pulumi/pkg/v3/codegen" pschema "github.com/pulumi/pulumi/pkg/v3/codegen/schema" ) // VisitPackageSpecTypes navigates all resources and functions, searching for all schema types that they reference...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/resources/resources_test.go
provider/pkg/resources/resources_test.go
// Copyright 2016-2020, Pulumi Corporation. package resources import ( "testing" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) type resourceNameTestCase struct { operationID string path string expected string } func TestStandardResourceNames(t *testing.T) { // Empty ...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/resources/ids.go
provider/pkg/resources/ids.go
// Copyright 2024, Pulumi Corporation. package resources import ( "fmt" "regexp" "strings" "github.com/pkg/errors" ) // ParseResourceID extracts templated values from the given resource ID based on the names of those templated // values in an HTTP path. The structure of id and path must match: we validate it by...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/resources/customresources/custom_storage_azidentity.go
provider/pkg/resources/customresources/custom_storage_azidentity.go
// Copyright 2021, Pulumi Corporation. All rights reserved. package customresources import ( "context" "encoding/base64" "fmt" "net/http" neturl "net/url" "regexp" "strings" "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/resources" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/resources/customresources/custom_webapp.go
provider/pkg/resources/customresources/custom_webapp.go
// Copyright 2024, Pulumi Corporation. All rights reserved. package customresources import ( "context" "fmt" "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/azure" "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/provider/crud" "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/resources" "gi...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/resources/customresources/custom_postgres_config.go
provider/pkg/resources/customresources/custom_postgres_config.go
// Copyright 2024, Pulumi Corporation. All rights reserved. package customresources import ( "context" "fmt" "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/provider/crud" "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/resources" "github.com/pulumi/pulumi/sdk/v3/go/common/resource" ) // Server ...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/resources/customresources/customresources.go
provider/pkg/resources/customresources/customresources.go
// Copyright 2021, Pulumi Corporation. All rights reserved. package customresources import ( "context" "fmt" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/keyvault/armkeyvault" "github.com/pulumi/pulumi-...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/resources/customresources/custom_pim_test.go
provider/pkg/resources/customresources/custom_pim_test.go
package customresources import ( "context" "encoding/json" "testing" "github.com/pkg/errors" "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/azure" "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/convert" "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/provider/crud" "github.com/pulumi/pu...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/resources/customresources/custom_webapp_read_test.go
provider/pkg/resources/customresources/custom_webapp_read_test.go
package customresources import ( "testing" "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/util" "github.com/stretchr/testify/require" ) func TestFilterRedactedPublishingUsername(t *testing.T) { for name, testCase := range map[string]struct { response map[string]any shouldContai...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/resources/customresources/custom_recoveryservices_test.go
provider/pkg/resources/customresources/custom_recoveryservices_test.go
// Copyright 2024, Pulumi Corporation. All rights reserved. package customresources import ( "context" "testing" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" recovery "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicesbackup/v4" "github.com/pulumi/pulumi-azu...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/resources/customresources/custom_roleassignment_test.go
provider/pkg/resources/customresources/custom_roleassignment_test.go
// Copyright 2025, Pulumi Corporation. All rights reserved. package customresources import ( "context" "encoding/json" "fmt" "testing" "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/azure" "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/resources" "github.com/pulumi/pulumi/sdk/v3/go/common/res...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/resources/customresources/custom_recoveryservices.go
provider/pkg/resources/customresources/custom_recoveryservices.go
// Copyright 2024, Pulumi Corporation. All rights reserved. package customresources import ( "context" "fmt" "strings" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" recovery "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armre...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/resources/customresources/custom_blob_container_legal_hold.go
provider/pkg/resources/customresources/custom_blob_container_legal_hold.go
package customresources import ( "context" "strings" "github.com/pkg/errors" "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/azure" . "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/resources" "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/util" "github.com/pulumi/pulumi-azure-native/v2/p...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/resources/customresources/custom_pim_eligibility_test.go
provider/pkg/resources/customresources/custom_pim_eligibility_test.go
// Copyright 2025, Pulumi Corporation. All rights reserved. package customresources import ( "context" "slices" "testing" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/authorization/armauthorization/v3" "github.com/google/uuid" "github.com/pkg/e...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/resources/customresources/custom_storage_azidentity_test.go
provider/pkg/resources/customresources/custom_storage_azidentity_test.go
package customresources import ( "context" "crypto/md5" "encoding/base64" "net/http" "testing" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" azfake "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake" azpolicy "github.com/Azure/azure-sdk-for-go/sdk/azcore/po...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/resources/customresources/customresources_test.go
provider/pkg/resources/customresources/customresources_test.go
// Copyright 2024, Pulumi Corporation. All rights reserved. package customresources import ( "testing" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) func TestIsSingleton(t *testing.T) { assert.False(t, IsSingleton("")) assert.False(t, IsSingleton("/subscriptions/{subscriptionId}...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/resources/customresources/custom_portal_dashboard.go
provider/pkg/resources/customresources/custom_portal_dashboard.go
// Copyright 2024, Pulumi Corporation. All rights reserved. package customresources import ( "fmt" "reflect" "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/resources" "github.com/pulumi/pulumi/pkg/v3/codegen/schema" ) // portalDashboard creates an override for the portal:Dashboard resource types. // //...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/resources/customresources/custom_postgres_config_test.go
provider/pkg/resources/customresources/custom_postgres_config_test.go
// Copyright 2024, Pulumi Corporation. All rights reserved. package customresources import ( "testing" "github.com/stretchr/testify/require" ) func TestGetValueFromAzureResponse(t *testing.T) { t.Run("happy path", func(t *testing.T) { resp := map[string]any{ "properties": map[string]any{ "defaultValue"...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false
pulumi/pulumi-azure-native
https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/resources/customresources/custom_keyvault.go
provider/pkg/resources/customresources/custom_keyvault.go
// Copyright 2021, Pulumi Corporation. All rights reserved. package customresources import ( "context" "fmt" "net/http" "strings" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azkeys" "github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azsecrets"...
go
Apache-2.0
1f14b038c133f406184984d9980dfcacb7141599
2026-01-07T09:42:26.479506Z
false